/* ============================================================
   SCHOOL ACCESS PORTAL — Midnight Slate v3
   Dark hero panel + Premium white form card
   All .hero-*, .form-panel, .request-* names preserved
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --req-primary:      #313de4;
    --req-primary-dk:   #2530b8;
    --req-teal:         #28732c;
    --req-teal-dk:      #1f5922;
    --req-gold:         #c9921f;
    --req-surface:      #ffffff;
    --req-surface-soft: #f7faf8;
    --req-page-bg:      #173720;
    --req-page-bg-2:    #1f5922;
    --req-line:         #dce5de;
    --req-dark-line:    rgba(255, 255, 255, 0.08);
    --req-text:         #162019;
    --req-text-inv:     #f1f5f9;
    --req-muted:        #5f6e66;
    --req-muted-inv:    #94a3b8;
    --req-success-bg:   #ecfdf5;
    --req-success-text: #064e3b;
    --req-error-bg:     #fff1f2;
    --req-error-text:   #881337;
    --req-shadow-card:  0 24px 64px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    --req-shadow-btn:   0 10px 30px rgba(99, 102, 241, 0.35);
    --req-shadow-glow:  0 0 0 4px rgba(99, 102, 241, 0.12);
    --req-radius-xl:    28px;
    --req-radius-lg:    20px;
    --req-radius-md:    14px;
    --req-radius-sm:    10px;
    --req-ease:         cubic-bezier(0.22, 1, 0.36, 1);
    --req-font:         "Inter", "Lexend Deca", "Segoe UI", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
    font-family: var(--req-font);
    color: var(--req-text);
    background: var(--req-page-bg);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ── Page shell ─────────────────────────────────────────────── */
.public-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* ═══════════════════════════════════════════════════════════
   HERO PANEL — Dark left side
═══════════════════════════════════════════════════════════ */
.hero-panel {
    position: relative;
    overflow: hidden;
    background: var(--req-page-bg);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(49, 61, 228, 0.30) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at -10% 60%, rgba(40, 115, 44, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 110% 90%, rgba(49, 61, 228, 0.15) 0%, transparent 55%);
    border-right: 1px solid var(--req-dark-line);
    display: flex;
    align-items: stretch;
}




/* Floating accent orb */
.hero-panel::after {
    content: "";
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

/* ── Hero content ── */
.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: heroFadeUp 0.6s var(--req-ease) both;
}

/* Brand pill */
.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 10px;
    border: 1px solid rgba(49, 61, 228, 0.30);
    border-radius: 999px;
    background: rgba(49, 61, 228, 0.10);
    backdrop-filter: blur(12px);
    width: fit-content;
    margin-bottom: 36px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hero-brand:hover {
    border-color: rgba(49, 61, 228, 0.50);
    background: rgba(49, 61, 228, 0.15);
}
.hero-brand img {
    width: 30px; height: 30px;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.9;
}
.hero-brand span {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a5b4fc;
}

/* Kicker */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--req-teal);
    margin-bottom: 16px;
}
.hero-kicker::before {
    content: "";
    display: inline-block;
    width: 22px; height: 2px;
    border-radius: 1px;
    background: var(--req-teal);
    opacity: 0.65;
}

/* Headline */
.hero-copy h1 {
    font-size: clamp(2.4rem, 3.2vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--req-text-inv);
    margin-bottom: 22px;
}
.hero-copy h1 span {
    background: linear-gradient(135deg, #a5b4fc 0%, #5eead4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lead text */
.hero-lead {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--req-muted-inv);
    max-width: 480px;
    margin-bottom: 44px;
}

/* Trust stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--req-dark-line);
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-stat strong {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--req-text-inv);
    line-height: 1;
}
.hero-stat span {
    font-size: 0.76rem;
    color: var(--req-muted-inv);
    font-weight: 500;
    opacity: 0.8;
}
.hero-stats__divider {
    width: 1px;
    height: 28px;
    background: var(--req-dark-line);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FORM PANEL — Right side (light)
═══════════════════════════════════════════════════════════ */
.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    background: #f8fafc;
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(20, 184, 166, 0.04) 0%, transparent 55%);
    animation: formFadeUp 0.6s 0.1s var(--req-ease) both;
}

/* ── Request card ── */
.request-card {
    width: 100%;
    max-width: 460px;
    background: var(--req-surface);
    border: 1px solid var(--req-line);
    border-radius: var(--req-radius-xl);
    box-shadow: var(--req-shadow-card);
    overflow: hidden;
    position: relative;
}

/* Top gradient rule */
.request-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--req-primary), var(--req-teal));
    border-radius: var(--req-radius-xl) var(--req-radius-xl) 0 0;
}

/* Corner orb */
.request-card::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 61, 228, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Card header */
.request-card__header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--req-line);
    position: relative;
    z-index: 1;
}

.request-card__logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.request-card__logo {
    width: 48px; height: 48px;
    object-fit: contain;
    padding: 9px;
    border-radius: 14px;
    background: rgba(49, 61, 228, 0.07);
    border: 1px solid rgba(49, 61, 228, 0.14);
    flex-shrink: 0;
}

.request-card__logo-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.request-card__eyebrow {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--req-primary);
}

.request-card__app-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--req-text);
}

.request-card__header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--req-text);
    margin-bottom: 9px;
}

.request-card__header p {
    font-size: 0.88rem;
    color: var(--req-muted);
    line-height: 1.7;
}

/* Card body */
.request-card__body {
    padding: 26px 32px 32px;
    position: relative;
    z-index: 1;
}

/* ── Alert ── */
.request-alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-left: 3px solid currentColor;
    border-radius: var(--req-radius-sm);
    font-size: 0.88rem;
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: alertIn 0.3s var(--req-ease);
}
.request-alert::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.request-alert--success {
    background: var(--req-success-bg);
    color: var(--req-success-text);
}
.request-alert--success::before { content: "\f058"; }
.request-alert--error {
    background: var(--req-error-bg);
    color: var(--req-error-text);
}
.request-alert--error::before { content: "\f071"; }

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form ── */
.request-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.request-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.request-field > span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--req-text);
}

.request-input-wrap {
    position: relative;
}
.request-input-wrap > i {
    position: absolute;
    top: 50%; left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.88rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}
.request-input-wrap:focus-within > i {
    color: var(--req-primary);
}

.request-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 46px;
    border: 1.5px solid var(--req-line);
    border-radius: var(--req-radius-md);
    background: var(--req-surface-soft);
    color: var(--req-text);
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s var(--req-ease), box-shadow 0.2s var(--req-ease), background 0.2s;
}
.request-input-wrap input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
}
.request-input-wrap input:hover {
    border-color: rgba(49, 61, 228, 0.28);
    background: var(--req-surface);
}
.request-input-wrap input:focus {
    background: var(--req-surface);
    border-color: rgba(49, 61, 228, 0.50);
    box-shadow: var(--req-shadow-glow);
}

.request-field-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--req-muted);
}
.request-field-hint i {
    font-size: 0.68rem;
    color: var(--req-primary);
}

/* ── Submit button ── */
.request-submit {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--req-radius-md);
    background: linear-gradient(135deg, var(--req-primary) 0%, var(--req-primary-dk) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(49, 61, 228, 0.35);
    transition: transform 0.22s var(--req-ease), box-shadow 0.22s var(--req-ease), filter 0.22s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}
/* Shimmer sweep */
.request-submit::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--req-ease);
}
.request-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(49, 61, 228, 0.42);
}
.request-submit:hover::after { transform: translateX(100%); }
.request-submit:active { transform: translateY(0); box-shadow: 0 10px 30px rgba(49, 61, 228, 0.35); }
.request-submit:focus-visible {
    outline: 3px solid rgba(49, 61, 228, 0.3);
    outline-offset: 3px;
}
.request-submit.is-loading {
    pointer-events: none;
    filter: brightness(0.9);
}

/* Spinner */
.submit-loader {
    display: none;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.72s linear infinite;
    flex-shrink: 0;
}
.request-submit.is-loading .submit-loader { display: inline-block; }
.request-submit.is-loading .submit-label { opacity: 0.82; }

/* ── School match card ── */
.school-match-card {
    margin-bottom: 18px;
    border-radius: var(--req-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(40, 115, 44, 0.22);
    animation: matchSlideIn 0.4s var(--req-ease) both;
}

@keyframes matchSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.school-match-card__top {
    padding: 18px 20px 14px;
    background: linear-gradient(135deg, rgba(40, 115, 44, 0.07) 0%, rgba(49, 61, 228, 0.05) 100%);
    border-bottom: 1px solid rgba(40, 115, 44, 0.14);
}

.school-match-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--req-teal-dk);
    margin-bottom: 6px;
}
.school-match-card__eyebrow i { font-size: 0.68rem; }

.school-match-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--req-text);
    line-height: 1.25;
}

.school-match-card__body {
    padding: 16px 20px;
    background: var(--req-surface-soft);
}

.school-match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.school-match-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.school-match-item span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--req-muted);
}
.school-match-item strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--req-text);
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    letter-spacing: 0.04em;
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes formFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.08); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .public-shell {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        border-right: none;
        border-bottom: 1px solid var(--req-dark-line);
    }

    .hero-copy {
        padding: 52px 48px;
        max-width: 100%;
    }

    .form-panel {
        padding: 44px 32px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Phablet (≤ 768px): hide hero, show form only
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .public-shell {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .hero-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        padding: 36px 24px;
        align-items: center;
    }

    .request-card__header,
    .request-card__body {
        padding-left: 26px;
        padding-right: 26px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 540px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 540px) {
    .form-panel {
        padding: 24px 14px 36px;
    }
    .request-card {
        border-radius: var(--req-radius-lg);
    }
    .request-card__header {
        padding: 24px 20px 20px;
    }
    .request-card__body {
        padding: 20px 20px 26px;
    }
    .request-card__header h2 {
        font-size: 1.4rem;
    }
    .school-match-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Extra-small (≤ 380px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .form-panel {
        padding: 20px 10px 30px;
    }
    .request-card__header,
    .request-card__body {
        padding-left: 16px;
        padding-right: 16px;
    }
}
