.modal {
    z-index: 1050;
}
.modal-backdrop {
    z-index: 1040 !important;
}
.modal-dialog {
    max-width: 800px;
    width: 90%;
    margin: 1.75rem auto;
}
.modal-content {
    background: #1e2a44;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 6px 12px rgba(64, 196, 255, 0.3);
    position: relative;
}
.modal-header {
    border: none;
    padding: 0.5rem 1rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1053;
}
.btn-close {
    background-color: #40c4ff;
    opacity: 1;
    border-radius: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
}
.btn-close:hover {
    background-color: #0288d1;
}
.modal-body {
    padding: 0;
    display: flex;
    flex-direction: row;
    z-index: 1052;
}
.popup-image {
    width: 50%;
    border-radius: 0.5rem 0 0 0.5rem;
    overflow: hidden;
    align-self: flex-start;
}
.popup-image img.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    margin: 0;
}
.popup-form {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1052;
}
.popup-form h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-control {
    background: #ffffff;
    border: 1px solid #40c4ff;
    color: #000000;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-size: 1rem;
    z-index: 1052;
}
.form-control:focus {
    border-color: #80deea;
    box-shadow: 0 0 5px rgba(128, 222, 234, 0.5);
}
.form-control::placeholder {
    color: #999999;
}
.btn-popup-bonus {
    background: #40c4ff;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-align: center;
    border: none;
    transition: background 0.3s;
    margin-top: 1rem;
    z-index: 1052;
}
.btn-popup-bonus:hover {
    background: #0288d1;
}
.error-message {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95%;
    }
    .modal-body {
        flex-direction: column;
    }
    .modal-header {
        padding: 0.5rem;
    }
    .popup-image {
        width: 100%;
        height: 300px;
        border-radius: 0.5rem 0.5rem 0 0;
    }
    .popup-form {
        width: 100%;
        padding: 1.5rem;
    }
    .popup-form h3 {
        font-size: 1.5rem;
    }
}