/**
 * advisor-form.css
 * Dedicated styles for Talk To An Advisor page (advisor-form.html)
 */

/* ==========================================================
   ADVISOR FORM PAGE LAYOUT & CARD
========================================================== */

.advisor-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f6fbff 0%, #eef6ff 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 20px;
}

.advisor-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid rgba(0, 64, 128, .08);
    border-radius: 22px;
    padding: 22px 25px;
    box-shadow:
        0 18px 40px rgba(0, 64, 128, .08),
        0 3px 10px rgba(0, 64, 128, .04);
}

.advisor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #edf4ff;
    color: #004080;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.advisor-header {
    text-align: center;
    margin-bottom: 15px;
}

.advisor-header h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    color: #004080;
}

.advisor-header p {
    color: #60758a;
    font-size: 17px;
}

input,
select {
    height: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    height: 44px;
    border: 1px solid #dceaf5;
    border-radius: 12px;
    background: #fbfdff;
    padding: 0 14px;
    font-size: 15px;
    transition: .25s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 0 4px rgba(0, 64, 128, .08);
}

textarea {
    height: 90px !important;
    padding-top: 12px !important;
    border-radius: 12px;
    resize: none;
}

.submit-btn {
    display: block;
    width: 220px;
    height: 46px;
    margin: 0;
    border: none;
    border-radius: 14px;
    background: #004080;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease;
    box-shadow: 0 10px 25px rgba(0, 64, 128, .18);
    letter-spacing: .3px;
}

.submit-btn:hover {
    background: #00a651;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 166, 81, .25);
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.security-note {
    text-align: center;
    color: #60758a;
    font-size: 13px;
    margin: 0;
}

/* ==========================================================
   ADVISOR OTP MODAL FLOW
========================================================== */

.advisor-otp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.advisor-otp-modal.show {
    display: flex;
}

.otp-modal-card {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 35px;
    text-align: center;
    animation: popup .25s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
}

.otp-icon {
    width: 70px;
    height: 70px;
    color: #004080;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #eef6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.otp-modal-card h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #004080;
}

.otp-modal-card p {
    color: #6f7f92;
    line-height: 1.6;
}

.advisor-api-status {
    min-height: 1.4em;
    margin: 12px 0;
    font-size: 14px;
}

.advisor-api-status.is-error {
    color: #b42318;
}

.advisor-api-status.is-success {
    color: #16794b;
    margin-bottom: 20px;
}

.otp-email {
    color: #004080;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    word-break: break-all;
}

.otp-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.cancel-btn {
    background: none;
    border: none;
    color: #66778c;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 10px;
    transition: .2s ease;
}

.cancel-btn:hover {
    background: #f5f8fb;
}

.send-btn {
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.send-btn:hover {
    background: #00a651;
}

.resend-btn {
    background: #e0f2fe;
    color: #0369a1;
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.resend-btn:hover:not(:disabled) {
    background: #bae6fd;
}

.resend-btn:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.otp-box {
    width: 50px;
    height: 55px;
    border: 1px solid #dceaf5;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    outline: none;
    transition: .3s;
}

.otp-box:focus {
    border-color: #004080;
    box-shadow: 0 0 0 4px rgba(0, 64, 128, .08);
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================
   MOBILE RESPONSIVENESS
========================================================== */

@media (max-width: 768px) {
    .advisor-page {
        padding: 20px 12px;
    }

    .advisor-card {
        width: 100%;
        max-width: 100%;
        padding: 18px;
        border-radius: 18px;
    }

    .advisor-header h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .advisor-header p {
        font-size: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group input,
    .form-group select {
        width: 100%;
    }

    textarea {
        width: 100%;
        height: 80px !important;
    }

    .submit-btn {
        width: 100%;
        max-width: 260px;
        margin: 20px auto 0;
    }

    .brand-logo {
        width: 170px;
        height: auto;
    }

    .nav-wrap {
        padding: 0 10px;
    }

    .menu-toggle {
        font-size: 24px;
    }
}

/* ==========================================================
   SUCCESS MODAL WITH PROGRESS LOADER
========================================================== */

.success-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    z-index: 99999;
}

.success-modal.show {
    display: flex;
}

.success-card {
    width: 90%;
    max-width: 520px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    animation: popup .25s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e8faf0;
    color: #00a651;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
}

.success-card h2 {
    color: #004080;
    font-size: 28px;
    margin-bottom: 10px;
}

.success-card p {
    color: #66778c;
    font-size: 16px;
    margin: 0;
}

.success-progress {
    width: 100%;
    height: 6px;
    background: #dceaf5;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 30px;
}

.success-progress-fill {
    width: 0%;
    height: 100%;
    background: #004080;
}
