/* === MODAL VISIBILITY === */
.fullscreen-modal.active {
    display: flex !important;
    opacity: 1 !important;
}

/* === PREMIUM MODAL CONTAINER === */
#bookingModal {
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.modal-container {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === LEFT SECTION: INSTRUCTIONS === */
.modal-left {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    position: relative;
    overflow: hidden;
}

.modal-left::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: #FFC120;
    opacity: 0.05;
    border-radius: 50%;
}

.modal-video {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
    overflow: hidden;
    border-radius: 10px;
}

.modal-instructions::-webkit-scrollbar {
    width: 5px;
}

.modal-instructions::-webkit-scrollbar-track {
    background: transparent;
}

.modal-instructions::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.modal-instructions::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.instruction-step {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0.35rem !important;
}

.instruction-step:hover {
    transform: translateX(2px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #FFC120;
}

.step-icon {
    background: #FFF9E6;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-content {
    line-height: 1.3;
}

/* === RIGHT SECTION: FORM === */
.modal-right {
    background: white;
}

.modal-header-title h2 {
    color: #111827;
    letter-spacing: -0.01em;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: #6B7280;
    margin-bottom: 0.35rem;
    display: block;
    font-weight: 600;
}

/* === FORM STEPS === */
.booking-form {
    padding-right: 0.5rem;
}

.booking-form::-webkit-scrollbar {
    width: 5px;
}

.booking-form::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

.booking-form::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.booking-form::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.exam-type-section {
    margin-bottom: 0.5rem;
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
}

.form-group input,
.form-group select {
    width: 100%;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    background: white;
    border-color: #FFC120;
    box-shadow: 0 0 0 2px rgba(255, 193, 32, 0.1);
    outline: none;
}

/* === EXAM TYPE BUTTONS === */
.exam-type-buttons {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.exam-type-btn {
    flex: 1;
    min-width: 90px;
    padding: 0.5rem 0.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1.5px solid #E5E7EB;
    background: #F9FAFB;
    color: #4B5563;
    transition: all 0.2s ease;
}

.exam-type-btn:hover {
    border-color: #FFC119;
    background: white;
}

.exam-type-btn.active {
    background: #111827;
    color: white;
    border-color: #111827;
    box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.1);
}

/* === RADIO OPTIONS === */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.radio-option {
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.radio-option:hover {
    border-color: #FFC120;
}

.radio-option input {
    margin-top: 0.15rem;
}

.radio-option input:checked+span {
    color: #111827;
    font-weight: 600;
}

/* === REVIEW SECTION === */
.review-section {
    background: #F3F4F6;
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px dashed #D1D5DB;
    margin-bottom: 0.75rem;
}

.review-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

/* .review-title::before { } - Removed empty ruleset */

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.review-label {
    color: #6B7280;
    font-weight: 500;
}

.review-value {
    color: #111827;
    font-weight: 600;
}

/* === AUTH BUTTONS === */
.auth-section {
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.auth-buttons {
    background: #F3F4F6;
    padding: 0.25rem;
    border-radius: 10px;
    display: flex;
    margin-bottom: 0.75rem;
}

.auth-btn {
    flex: 1;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: transparent;
    color: #6B7280;
    font-weight: 600;
    font-size: 0.8rem;
}

.auth-btn.active {
    background: white;
    color: #111827;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* === FOOTER BUTTONS === */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: auto;
}

.btn-next,
.btn-submit-final {
    background: #FFC120;
    color: #111827;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px -5px rgba(255, 193, 32, 0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-next:hover,
.btn-submit-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -5px rgba(255, 193, 32, 0.5);
    filter: brightness(1.05);
}

.btn-back {
    background: transparent;
    color: #6B7280;
    font-weight: 600;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
}

.btn-back:hover {
    color: #111827;
}

.step2-footer {
    justify-content: space-between;
}

/* === ACCOUNT LINK === */
.account-link {
    background: #FFF9E6;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 193, 32, 0.3);
    margin-top: 0.5rem;
}

/* === FORM LINK ROW === */
.form-link-row {
    margin-bottom: 0.5rem;
}

.check-slots-link {
    display: inline-block;
    color: #FFC120;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: underline;
}

.check-slots-link:hover {
    color: #e6ad00;
}

/* === FORM ROW === */
.form-row {
    display: flex;
    gap: 0.5rem;
}

.form-group-half {
    flex: 1;
}

/* Mobile styles override */
@media (max-width: 1024px) {
    .modal-container {
        width: 98%;
        height: 96vh;
    }

    .modal-left {
        display: none !important;
    }

    .modal-right {
        width: 100%;
        padding: 1rem;
    }

    .modal-header-title h2 {
        font-size: 1rem;
    }

    .exam-type-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group-half {
        width: 100%;
    }

    .btn-submit-final,
    .btn-next {
        width: 100%;
        border-radius: 14px;
    }

    .step2-footer {
        flex-direction: column-reverse;
    }

    .btn-back {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 1025px) {
    .modal-container {
        max-width: 1100px;
    }
}

/* Success Modal Animation */
@keyframes successPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

#successModal.flex .success-modal-content {
    animation: successPopIn 0.4s ease-out;
}

#successModal.flex .success-icon {
    animation: checkBounce 0.5s ease-out 0.2s both;
}

/* === intl-tel-input OVERRIDES === */
.iti {
    width: 100%;
    margin-bottom: 4px;
}

.iti__country-list {
    z-index: 10000 !important;
    background-color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    max-height: 250px !important;
    border: 1px solid #e5e7eb !important;
    width: 100% !important;
    min-width: 300px;
    overflow-x: hidden !important;
}

.iti__country {
    padding: 10px 15px !important;
    font-size: 14px !important;
    color: #1A1A1A !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.iti__country:hover {
    background-color: #FFF9E6 !important;
}

.iti__country.iti__highlight {
    background-color: #FFC120 !important;
    color: #1A1A1A !important;
}

.iti__flag-container {
    padding: 2px !important;
}

.iti__selected-dial-code {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
    margin-left: 4px !important;
}

.iti__arrow {
    border-top-color: #666 !important;
}

.iti__arrow--up {
    border-bottom-color: #666 !important;
}