/* ═══════════════════════════════════════════
   index.css — styles for the landing page
   (hero, form, stepper, success state)
   ═══════════════════════════════════════════ */

/* ── HERO ── */
.hero {
    background: var(--grad);
    padding: 28px 24px 120px;
    position: relative;
    overflow: hidden;
}

.hero-in {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .95);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1);  }
    50%       { opacity: .5; transform: scale(.8); }
}

.hero h1 {
    font-family: var(--fd);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -.5px;
}

.hero h1 em { font-style: normal; }

.badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 50px;
}


/* ── FORM OUTER ── */
.form-wrap {
    padding: 0 20px 60px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.form-heading-wrap {
    padding: 32px 44px 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    background: var(--white);
}

.form-heading {
    font-family: var(--fd);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 400;
    color: var(--g900);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--g100);
}

@media (max-width: 768px) {
    .form-heading-wrap { padding: 24px 20px 0; }
}

.form-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xl);
    overflow: hidden;
}


/* ── FORM SECTIONS ── */
.sec {
    padding: 40px 44px;
}

.sec-opt {
    background: var(--pale);
    border-top: 1px solid rgba(239, 78, 35, .1);
}

@media (max-width: 768px) {
    .sec { padding: 28px 20px; }
}

.sec-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.sec-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(239, 78, 35, .3);
}

.sec-icon-soft {
    background: linear-gradient(135deg, #F6912B, #FCBA63);
    box-shadow: 0 3px 12px rgba(246, 145, 43, .3);
}

.sec-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--g900);
}

.sec-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}

.pill-req { background: rgba(239, 78, 35, .1);  color: var(--brand); }
.pill-opt { background: rgba(246, 145, 43, .15); color: #B56900; }

.sec-hint {
    font-size: 13px;
    color: var(--g400);
    margin-bottom: 26px;
    padding-left: 0;
}

@media (max-width: 768px) {
    .sec-hint { padding-left: 0; margin-top: 6px; }
}


/* ── FORM GRID ── */
.fg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 22px;
}

.s2 { grid-column: span 2; }
.s3 { grid-column: 1 / -1; }

@media (max-width: 768px) {
    .fg { grid-template-columns: 1fr; }
    .s2, .s3 { grid-column: 1; }
}

@media (min-width: 769px) and (max-width: 960px) {
    .fg { grid-template-columns: repeat(2, 1fr); }
    .s3 { grid-column: 1 / -1; }
}


/* ── T&C ROW ── */
.tnc-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.tnc-cb {
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.tnc-txt {
    font-size: 14px;
    color: var(--g600);
    line-height: 1.6;
}

.tnc-lnk {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(239, 78, 35, .3);
    transition: border-color .15s;
}

.tnc-lnk:hover { border-color: var(--brand); }


/* ── DATE INPUT ── */
input[type="date"] {
    cursor: pointer;
}


/* ── SUBMIT BUTTON (loading state — visual from .btn-primary) ── */
.sub-btn {
    min-width: 140px;
    padding: 14px 22px;
    gap: 10px;
}

.btn-arrow { transition: transform .2s; }
.sub-btn:hover .btn-arrow { transform: translateX(4px); }

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .65s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.sub-btn.loading .btn-txt,
.sub-btn.loading .btn-arrow { display: none; }
.sub-btn.loading .spinner    { display: block; }

/* Next button loading state */
#nextBtn.loading .btn-txt,
#nextBtn.loading .btn-arrow { display: none; }
#nextBtn.loading .spinner    { display: block; }


/* ── STEPPER INDICATOR ── */
.stepper-indicator {
    padding: 20px 44px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--g100);
}

@media (max-width: 768px) {
    .stepper-indicator { padding: 16px 20px 14px; }
}

.step-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.step-label-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--g900);
}

.step-count-text {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--g400);
    white-space: nowrap;
    margin-left: 12px;
}

.step-count-text strong {
    color: var(--brand);
    font-weight: 700;
}

.progress-track {
    height: 5px;
    background: var(--g100);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 99px;
    transition: width 0.35s cubic-bezier(.4, 0, .2, 1);
    width: 33.33%;
}

.step-panel        { display: none; }
.step-panel.active { display: block; }


/* ── STEP FOOTER ── */
.step-footer {
    padding: 24px 44px 36px;
    border-top: 1px solid var(--g100);
    background: var(--white);
}

@media (max-width: 768px) {
    .step-footer { padding: 20px 20px 28px; }
}

.step-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.snr { margin-left: auto; }

#tncRow,
#backBtn,
#submitBtn { display: none; }

/* ── BACK BUTTON (visual from .btn-secondary, size overrides here) ── */
.back-btn {
    padding: 12px 22px;
    font-size: 14.5px;
    color: var(--g600);
    gap: 7px;
}


/* ── SUCCESS STATE (inline form) ── */
.success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 40px;
    text-align: center;
    min-height: 420px;
}

.success.show { display: flex; }

.success .suc-msg { max-width: 440px; }


/* ── RADIO BUTTONS (medical issue) ── */
#f-medical-desc { display: none; }
#medical_desc   { min-height: 80px; }

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--g700);
}

.radio-label input[type="radio"] {
    accent-color: var(--brand);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}


/* ── SCHEDULE PREFERENCES section override ── */
.sec-opt-plain {
    background-color: var(--white);
    border-color: var(--g200);
}

.sec-opt-plain .sec-hd { margin-bottom: 13px; }


/* ── STAT NUMBER SUFFIXES ── */
.stat-sup { font-size: 0.7em; }


/* ── SUBJECT MULTI-SELECT ── */
.ms-wrap { position: relative; }

.ms-trigger {
    width: 100%;
    min-height: 44px;
    padding: 8px 40px 8px 12px;
    background: var(--white);
    border: 1.5px solid var(--g200);
    border-radius: var(--r-sm);
    font-family: var(--fb);
    font-size: 14.5px;
    color: var(--g800);
    text-align: left;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.ms-trigger:focus,
.ms-trigger[aria-expanded="true"] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(239, 78, 35, .1);
}

.ms-trigger-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    padding-top: 2px;
}

.ms-placeholder { color: var(--g400); }

.ms-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 78, 35, .1);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ms-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--g400);
    pointer-events: none;
    transition: transform .2s;
    flex-shrink: 0;
}

.ms-wrap.open .ms-chevron { transform: translateY(-50%) rotate(180deg); }

.ms-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--g200);
    border-radius: var(--r-sm);
    box-shadow: 0 8px 24px rgba(14, 16, 32, .12);
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
}

.ms-wrap.open .ms-dropdown { display: block; }

.ms-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: var(--g800);
    transition: background .1s;
    user-select: none;
}

.ms-option:hover { background: var(--pale); }

.ms-option:has(input:checked) { background: rgba(239, 78, 35, .05); }

.ms-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    -webkit-appearance: auto;
    appearance: auto;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
