/* ============================================
   Master home page — one-page Admission Form
   Exact replica of the approved "Landing page 1-4" mocks
   (rotating hero banner + cream ADMISSION FORM panel).

   Mock geometry key (1440px mock ÷ 4 = 360 CSS px):
   page #162346 · hero 346×240 r12 · panel cream r12 inset 7
   inner card inset 17 · inputs #0b2148 h22 r6 · labels 12px #0e1b3d

   Scoped under .app-shell.home-apply. While IDLE the default chat/avatar
   chrome is hidden and the page is: sticky header / scrollable middle /
   sticky 4-button nav. During a live "Ask Adam" call the shell gains
   .voice-chat-mode and the standard call chrome returns untouched.
   ============================================ */

:root {
    --uh-nav-height: 86px;
    --uh-orange: #f18e08;      /* mock accent orange */
    --uh-page: #162346;        /* page bg behind hero/panel */
    --uh-panel: #fcf3e5;       /* outer cream panel */
    --uh-card: #faf3e7;        /* inner cream card */
    --uh-input: #0b2148;       /* navy input plate */
    --uh-navy: #131e42;        /* heading navy */
    --uh-label: #0e1b3d;       /* field label navy */
    --uh-placeholder: #8a91a3;
    --uh-note: #6d6353;        /* notes on cream */
}

/* ── Idle layout: header + full-height scrollable middle ── */
.app-shell.home-apply:not(.voice-chat-mode) {
    --header-height: 46px;    /* compact header, per mock */
    grid-template-rows:
        var(--header-height)
        auto
        1fr
        0
        0
        0;
}
/* Compact header contents to match the 46px bar */
.app-shell.home-apply:not(.voice-chat-mode) .header-logo {
    width: 34px;
    height: 34px;
}
.app-shell.home-apply:not(.voice-chat-mode) .header-uni { font-size: 12.5px; }
.app-shell.home-apply:not(.voice-chat-mode) .header-south-asia { font-size: 14px; }

/* Mock typeface: Poppins across the whole home skin (idle + sheets). */
.app-shell.home-apply .text-window,
.uh-nav,
.uh-sheet,
.uh-review-overlay {
    font-family: 'Poppins', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.app-shell.home-apply:not(.voice-chat-mode) .chat-bar,
.app-shell.home-apply:not(.voice-chat-mode) .visual-window,
.app-shell.home-apply:not(.voice-chat-mode) .bottom-nav,
.app-shell.home-apply:not(.voice-chat-mode) .chat-panel-header,
.app-shell.home-apply:not(.voice-chat-mode) .narration-mute-btn,
.app-shell.home-apply:not(.voice-chat-mode) .voice-transcript-panel {
    display: none !important;
}

/* The middle scrolls under the fixed nav — keep the last content clear of it. */
.app-shell.home-apply:not(.voice-chat-mode) .text-window {
    border-bottom: none;
    background: var(--uh-page);
    padding: 0 7px calc(var(--uh-nav-height) + 26px);
}

/* During a live call the new home chrome gets out of the way. */
.app-shell.home-apply.voice-chat-mode .uh-nav,
.app-shell.home-apply.voice-chat-mode .uh-backdrop,
.app-shell.home-apply.voice-chat-mode .uh-sheet,
.app-shell.home-apply.voice-chat-mode .uh-review-overlay {
    display: none !important;
}

body.uh-lock { overflow: hidden; }

/* Author display rules must not defeat the `hidden` attribute. */
.uh-sheet[hidden],
.uh-backdrop[hidden],
.uh-review-overlay[hidden],
.uh-verify[hidden],
.uh-thanks[hidden],
.uh-form-msg[hidden] {
    display: none !important;
}

/* ════════ HERO (swipeable carousel — slides 1→2→3→4, 15s auto) ════════ */
.uh-hero {
    position: relative;
    margin: 8px 0 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1388 / 964;   /* CDN banner ratio — 346×240 css on mock */
    background: #0d1830;        /* plate while the first image loads */
    transform: translateZ(0);   /* keep radius clipping on iOS */
    touch-action: pan-y;        /* horizontal swipes are ours; page still scrolls vertically */
    user-select: none;
    -webkit-user-select: none;
}
.uh-hero-track {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    transition: transform 450ms ease;
    will-change: transform;
}
.uh-hero-track.is-dragging { transition: none; }  /* slide follows the finger 1:1 */
.uh-hero-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}
/* Blurred ambient twins — only used by the ≥1024px full-width hero band. */
.uh-hero-blur { display: none; }

/* Slide dots — shaded orange, active one lights up; tap to jump */
.uh-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 2;
}
.uh-hero-dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(241, 142, 8, 0.38);   /* shaded --uh-orange */
    box-shadow: 0 0 0 1px rgba(13, 24, 48, 0.3);
    cursor: pointer;
    transition: background 300ms ease, transform 300ms ease;
    -webkit-tap-highlight-color: transparent;
}
.uh-hero-dot::after {                       /* enlarge tap target to ~24px */
    content: "";
    position: absolute;
    inset: -8px;
}
.uh-hero-dot.is-active {
    background: var(--uh-orange);
    transform: scale(1.3);
}

/* ════════ CREAM FORM PANEL ════════ */
.uh-panel {
    position: relative;
    margin: 19px 0 0;
    background: linear-gradient(180deg, #fdf5e8 0%, #f3e9d6 100%);
    border-radius: 12px;
    padding: 9px 17px 20px;
}
/* Halftone dot texture (top-right + bottom-left corners, per mock) */
.uh-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: radial-gradient(rgba(196, 152, 84, 0.30) 1.2px, transparent 1.6px);
    background-size: 7px 7px;
    -webkit-mask-image:
        radial-gradient(230px 300px at 100% 4%, rgba(0, 0, 0, 0.85), transparent 68%),
        radial-gradient(210px 260px at 0% 100%, rgba(0, 0, 0, 0.55), transparent 68%);
    mask-image:
        radial-gradient(230px 300px at 100% 4%, rgba(0, 0, 0, 0.85), transparent 68%),
        radial-gradient(210px 260px at 0% 100%, rgba(0, 0, 0, 0.55), transparent 68%);
}

/* ════════ "ADMISSION FORM" heading (navy + orange bar, per mock) ════════ */
.uh-form-heading {
    position: relative;
    text-align: left;
    font-size: 22.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 32px;
    color: var(--uh-navy);
    margin: 0 0 14px;
    padding-left: 12px;
}
.uh-form-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5px;
    height: 32px;
    background: var(--uh-orange);
}

/* ════════ Section cards (light inner cards on the cream panel) ════════ */
.uh-card {
    position: relative;
    background: var(--uh-card);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(112, 84, 44, 0.14);
    padding: 8px 14px 16px;
    margin: 0 0 14px;
}
.uh-card-title {
    color: var(--uh-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 6px;
}
.uh-sub-title {
    color: var(--uh-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 14px 0 9px;
}
.uh-card-title + .uh-sub-title { margin-top: 0; }

/* ── Fields ── */
.uh-field { margin-bottom: 9px; }
.uh-row {
    display: grid;
    grid-template-columns: 125fr 133fr;   /* exact mock column ratio */
    gap: 27px;
}
.uh-row .uh-field { margin-bottom: 9px; }

.uh-label {
    display: block;
    color: var(--uh-label);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 3px;
}
.uh-label span { color: var(--uh-label); }
.uh-label-multi { line-height: 1.45; }

.uh-field input[type="text"],
.uh-field input[type="tel"],
.uh-field input[type="email"],
.uh-field input[type="date"],
.uh-field select {
    width: 100%;
    height: 22px;
    background: var(--uh-input);
    border: none;
    border-radius: 6px;
    color: #e8ebf5;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0 11px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 5px rgba(19, 30, 66, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.uh-field input::placeholder {
    color: var(--uh-placeholder);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.uh-field input:focus,
.uh-field select:focus {
    box-shadow: 0 0 0 2px rgba(241, 142, 8, 0.45), 0 2px 5px rgba(19, 30, 66, 0.28);
}
.uh-field input[type="date"] {
    color-scheme: dark;
}
.uh-field input[type="date"]:invalid,
.uh-field input[type="date"]:not(:focus):placeholder-shown { color: var(--uh-placeholder); }

/* Selects: chevron affordance like the mock */
.uh-select-wrap { position: relative; }
.uh-select-wrap::after {
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.7px solid #c3c9da;
    border-bottom: 1.7px solid #c3c9da;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.uh-select-wrap select {
    padding-right: 28px;
    color: var(--uh-placeholder);
    text-transform: uppercase;
}
.uh-select-wrap select.uh-has-value { color: #e8ebf5; }
.uh-select-wrap select option { background: var(--uh-input); color: #e8ebf5; }
.uh-select-wrap select:disabled { opacity: 0.75; cursor: not-allowed; }

/* Year fields: calendar icon on the right (mock) */
.uh-year-wrap { position: relative; }
.uh-year-wrap input { padding-right: 30px; }
.uh-year-ico {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: #aab1c6;
    pointer-events: none;
}

/* DOB: typed DD/MM/YYYY + calendar button opening the native picker */
.uh-dob-wrap { position: relative; }
.uh-dob-wrap input[type="text"] { padding-right: 30px; }
.uh-dob-wrap input.uh-dob-picker {
    position: absolute;
    right: 10px;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}
.uh-dob-cal {
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 5px;
    color: #aab1c6;
    cursor: pointer;
}
.uh-dob-cal:hover { color: var(--uh-orange); }
.uh-dob-cal svg { width: 12px; height: 12px; }

/* ── Radios (orange ring when selected, navy ring when not — mock) ── */
.uh-radio-row {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 22px;
}
.uh-radio-row-wide { gap: 38px; min-height: 22px; }
.uh-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--uh-navy);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
}
.uh-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
/* Mock: 11.5px ring — navy outline idle, thick orange ring when selected */
.uh-radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 0 0 0 1.6px var(--uh-navy);
    flex: 0 0 auto;
    transition: box-shadow 120ms ease;
}
.uh-radio input:checked + .uh-radio-dot {
    box-shadow: inset 0 0 0 3.5px var(--uh-orange);
}
.uh-radio input:focus-visible + .uh-radio-dot {
    outline: 2px solid var(--uh-orange);
    outline-offset: 3px;
}

/* ── Checkbox lines (TRANSFER OF CREDITS / AWAITING RESULT) ── */
.uh-check-line {
    display: flex;
    justify-content: flex-end;
    padding: 4px 2px 2px;
}
.uh-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}
.uh-check-label {
    color: var(--uh-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.uh-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.uh-check-box {
    width: 16px;
    height: 16px;
    border: 1.7px solid var(--uh-orange);
    border-radius: 4px;
    background: transparent;
    flex: 0 0 auto;
    position: relative;
    transition: background 120ms ease;
}
.uh-check input:checked + .uh-check-box { background: var(--uh-orange); }
.uh-check input:checked + .uh-check-box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(42deg);
}
.uh-check input:focus-visible + .uh-check-box {
    outline: 2px solid var(--uh-orange);
    outline-offset: 3px;
}

/* ── Notes under YES/NO groups ── */
.uh-note {
    color: var(--uh-note);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 8px 0 2px;
}

/* ── Inline field errors ── */
.uh-error {
    display: block;
    color: #c0392b;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 4px;
    min-height: 0;
}
.uh-field.has-error input,
.uh-field.has-error select { box-shadow: 0 0 0 2px rgba(211, 70, 50, 0.65); }

/* ── Form-level message ── */
.uh-form-msg {
    background: #fdeaea;
    border: 1px solid rgba(192, 57, 43, 0.45);
    border-radius: 8px;
    color: #8e2b20;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    padding: 10px 12px;
    margin: 0 0 14px;
}
.uh-form-msg.is-good {
    background: #e8f7ee;
    border-color: rgba(24, 128, 76, 0.45);
    color: #14663d;
}

/* ── Big orange buttons (REVIEW / SUBMIT) ── */
.uh-btn {
    display: block;
    width: 100%;
    background: var(--uh-orange);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 16px;
    margin: 0 0 10px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(241, 142, 8, 0.35);
    transition: filter 120ms ease, transform 80ms ease;
}
.uh-btn:hover { filter: brightness(1.06); }
.uh-btn:active { transform: scale(0.995); }
.uh-btn:disabled { opacity: 0.65; cursor: not-allowed; }
#uh-review-btn { margin-top: 26px; margin-bottom: 0; }
.uh-btn-small {
    display: inline-block;
    width: auto;
    font-size: 13px;
    padding: 6px 15px;
    margin: 0;
}
.uh-btn-ghost {
    background: transparent;
    border: 2px solid var(--uh-orange);
    color: var(--uh-orange);
    box-shadow: none;
}

/* ════════ Orange section headings (verification / payment) ════════ */
.uh-orange-heading {
    color: var(--uh-orange);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 10px;
}

/* ════════ ACCOUNT VERIFICATION ════════ */
.uh-verify { margin: 24px 0 8px; }
.uh-verify-text {
    color: #c9d0e2;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.uh-otp-row {
    display: flex;
    gap: 12px;
    margin: 0 0 16px;
}
.uh-otp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.uh-otp input {
    width: 80px;
    height: 30px;
    background: transparent;
    border: 1.5px solid #45507a;
    border-radius: 6px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
}
.uh-otp input::placeholder { color: #d5d9e8; letter-spacing: 3px; }
.uh-otp input:focus { border-color: var(--uh-orange); }
.uh-otp-label {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ════════ THANK YOU box (white, green title) ════════ */
.uh-thanks {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 14px 16px;
    margin: 14px 0 8px;
}
.uh-thanks-title {
    color: #0e774f;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.uh-thanks-body {
    color: #0a0f1e;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin: 0;
}
.uh-thanks-body strong { font-weight: 800; }

/* ════════ PAYMENT METHODS ════════ */
.uh-pay { margin-top: 20px; }
.uh-pay-title {
    font-size: 21px;
    margin-bottom: 14px;
}
.uh-pay-intro {
    color: #c9d0e2;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0 0 20px;
}

/* Accordion rows (slate bars — sit on the dark page bg) */
.uh-acc { margin: 0 6px 12px; }
.uh-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: #313c65;
    border: none;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: left;
    padding: 6px 10px;
    min-height: 28px;
    cursor: pointer;
}
.uh-acc-chev {
    flex: 0 0 auto;
    color: #c3c9da;
    transition: transform 180ms ease;
}
.uh-acc-chev svg { width: 14px; height: 14px; display: block; }
.uh-acc.is-open .uh-acc-chev { transform: rotate(180deg); }
.uh-acc-body {
    display: none;
    padding: 16px 0 6px 8px;
}
.uh-acc.is-open .uh-acc-body { display: block; }

/* White detail boxes (bank details / voucher) */
.uh-white-box {
    position: relative;
    display: block;
    background: #ffffff;
    color: #0a0f1e;
    padding: 11px 40px 11px 11px;
    margin: 0 0 16px;
    text-decoration: none;
}
.uh-bank-lines p {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #0a0f1e;
}
.uh-bank-lines p strong { font-weight: 800; }
.uh-copy-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: none;
    border: none;
    color: #0a0f1e;
    padding: 6px;
    cursor: pointer;
}
.uh-copy-btn.is-copied { color: #0e774f; }
.uh-copy-btn.is-copied::after {
    content: "Copied";
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #0e774f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Voucher rows (white bar + download icon) */
.uh-voucher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    min-height: 30px;
}
.uh-voucher-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.uh-voucher svg { flex: 0 0 auto; width: 16px; height: 16px; }
.uh-voucher:hover { filter: brightness(0.97); }

/* Body copy inside accordion (uppercase white/gray, * bullets) */
.uh-pay-line {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.uh-after { margin-top: 16px; }
.uh-pay-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.uh-pay-list li {
    position: relative;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding-left: 16px;
    margin-bottom: 8px;
}
.uh-pay-list li::before {
    content: "*";
    position: absolute;
    left: 1px;
    top: 1px;
    color: #ffffff;
}
.uh-pay-list a { color: var(--uh-orange); }

/* ════════ STICKY BOTTOM NAV (dark bar, orange icons — mock) ════════ */
.uh-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: var(--uh-nav-height);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.15fr;
    align-items: stretch;
    background: #10162c;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
}
.uh-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: none;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--text-white);
    font-family: inherit;
    cursor: pointer;
    padding: 8px 4px;
}
.uh-nav-btn:last-child { border-right: none; }
.uh-nav-btn:active { background: rgba(255, 255, 255, 0.05); }
.uh-nav-icon { color: var(--uh-orange); display: flex; }
.uh-nav-label {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.2px;
}
.uh-nav-adam img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--uh-orange);
    box-shadow: 0 0 10px rgba(247, 148, 30, 0.45);
}
.uh-nav-btn--adam .uh-nav-label { font-size: 14.5px; }

/* ════════ BOTTOM SHEETS ════════ */
.uh-backdrop {
    position: fixed;
    inset: 0;
    z-index: 940;
    background: rgba(4, 8, 20, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.uh-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    background: #131a38;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease;
}
.uh-sheet.is-open { transform: translateY(0); opacity: 1; }
.uh-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.uh-sheet-title {
    color: var(--uh-orange);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.uh-sheet-close {
    background: none;
    border: none;
    color: #cfd6e6;
    font-size: 26px;
    line-height: 1;
    padding: 2px 8px;
    cursor: pointer;
}
.uh-sheet-body {
    overflow-y: auto;
    padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 20px);
}
.uh-menu-list { display: flex; flex-direction: column; gap: 10px; }
.uh-menu-link {
    position: relative;
    display: block;
    background: #313c65;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 16px;
}
.uh-menu-link:active { background: #3d4670; }
.uh-menu-new {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--uh-orange);
    color: #101830;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 9px;
}
.uh-sheet-placeholder {
    color: #cfd6e6;
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0;
}
.uh-sheet-placeholder a { color: var(--uh-orange); }

/* ════════ REVIEW MODAL ════════ */
.uh-review-overlay {
    position: fixed;
    inset: 0;
    z-index: 960;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    background: rgba(4, 8, 20, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.uh-review-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    background: #131a38;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    overflow: hidden;
}
.uh-review-body {
    overflow-y: auto;
    padding: 6px 18px;
}
.uh-review-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.uh-review-row span {
    color: #aab1c6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    flex: 0 0 auto;
}
.uh-review-row strong {
    color: var(--text-white);
    font-size: 14.5px;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.uh-review-actions {
    display: flex;
    gap: 12px;
    padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.uh-review-actions .uh-btn {
    margin: 0;
    font-size: 15.5px;
    padding: 13px 10px;
}

/* ════════ DESKTOP — shared ≥769px (chrome, type, nav pill, modals) ════════ */
@media (min-width: 769px) {
    .app-shell.home-apply:not(.voice-chat-mode) {
        grid-template-areas:
            "header"
            "title"
            "text"
            "chat"
            "visual"
            "nav";
        grid-template-columns: 100%;
        grid-template-rows:
            var(--header-height)
            auto
            1fr
            0
            0
            0;
    }
    .app-shell.home-apply:not(.voice-chat-mode) .text-window {
        border-left: none;
        padding: 0 32px calc(var(--uh-nav-height) + 40px);
    }
    .uh-panel { padding: 14px 24px 26px; }
    .uh-form-heading { font-size: 26px; line-height: 36px; }
    .uh-form-heading::before { height: 36px; }
    .uh-card { padding: 14px 20px 20px; }
    .uh-form { display: block; }

    /* Nav: centered pill-ish bar on wide screens */
    .uh-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(680px, 94vw);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: none;
        border-radius: 16px 16px 0 0;
    }

    /* Sheets become centered modals */
    .uh-sheet {
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -46%);
        width: min(560px, 92vw);
        max-height: 76vh;
        border-radius: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }
    .uh-sheet.is-open { transform: translate(-50%, -50%); }
}

/* ── Tablet (769–1023px): keep the single centered column ── */
@media (min-width: 769px) and (max-width: 1023.98px) {
    .uh-hero,
    .uh-panel,
    .uh-verify,
    .uh-thanks,
    .uh-pay,
    .uh-form-msg {
        width: 100%;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }
    .uh-hero { margin-top: 16px; }
    .uh-panel { margin-top: 24px; }
    #uh-review-btn, #uh-submit-btn { max-width: 620px; margin-left: auto; margin-right: auto; }
}

/* ════════ DESKTOP (≥1024px): full-width hero band on top (sharp banner
   centered + its own blurred copy filling the sides), form below ════════ */
@media (min-width: 1024px) {
    .app-shell.home-apply:not(.voice-chat-mode) .text-window {
        padding: 0 40px calc(var(--uh-nav-height) + 48px);
        /* Ambient brand glows so the space around the column feels designed. */
        background:
            radial-gradient(860px 520px at -8% -4%, rgba(241, 142, 8, 0.11), transparent 62%),
            radial-gradient(940px 600px at 108% 10%, rgba(72, 118, 255, 0.16), transparent 64%),
            radial-gradient(820px 480px at 50% 112%, rgba(241, 142, 8, 0.08), transparent 66%),
            var(--uh-page);
    }

    /* Form column — wide and centered under the full-bleed hero band. */
    .uh-panel,
    .uh-verify,
    .uh-thanks,
    .uh-pay,
    .uh-form-msg,
    #uh-review-btn,
    #uh-submit-btn {
        width: min(100%, 1000px);
        margin-left: auto;
        margin-right: auto;
    }

    /* HERO BAND: spans the whole window width and exactly fits the space
       between the header and the bottom nav — the sharp banner is always
       shown COMPLETE (object-fit: contain); its blurred twin covers the
       sides so there is no empty space anywhere. */
    .uh-hero {
        width: 100%;
        aspect-ratio: auto;
        height: calc(100vh - var(--header-height, 46px) - var(--uh-nav-height) - 32px);
        height: calc(100dvh - var(--header-height, 46px) - var(--uh-nav-height) - 32px);
        margin-top: 14px;
        border-radius: 18px;
        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(241, 142, 8, 0.16);
    }
    .uh-hero-blur {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.18);
        filter: blur(34px) saturate(1.15) brightness(0.66);
        opacity: 0;
        transition: opacity 800ms ease;
    }
    .uh-hero-blur.is-active { opacity: 1; }
    .uh-hero-img {
        object-fit: contain;
        filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.5));
    }
    .uh-hero-dots { bottom: 14px; gap: 9px; z-index: 3; }
    .uh-hero-dot { width: 9px; height: 9px; }

    /* Cream panel: roomier padding, softer radius, deeper shadow. */
    .uh-panel {
        margin-top: 34px;
        border-radius: 16px;
        padding: 22px 36px 34px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    }
    .uh-form-heading { font-size: 28px; line-height: 40px; }
    .uh-form-heading::before { height: 40px; width: 3px; }
    .uh-card {
        border-radius: 12px;
        padding: 18px 26px 24px;
        margin-bottom: 18px;
    }
    .uh-card-title { font-size: 15px; margin-bottom: 10px; }
    .uh-sub-title { font-size: 12.5px; }

    /* Comfortable desktop control sizes (mock is phone-scaled). */
    .uh-row { gap: 36px; }
    .uh-field { margin-bottom: 13px; }
    .uh-row .uh-field { margin-bottom: 13px; }
    .uh-label { font-size: 11px; margin-bottom: 5px; }
    .uh-field input[type="text"],
    .uh-field input[type="tel"],
    .uh-field input[type="email"],
    .uh-field input[type="date"],
    .uh-field select {
        height: 32px;
        border-radius: 7px;
        font-size: 12px;
        padding: 0 13px;
    }
    .uh-radio-row, .uh-radio-row-wide { min-height: 32px; }
    .uh-radio { font-size: 12px; }
    .uh-radio-dot { width: 14px; height: 14px; }
    .uh-check-label { font-size: 12px; }
    .uh-note { font-size: 11.5px; }
    .uh-dob-cal { width: 26px; height: 26px; }
    .uh-dob-cal svg { width: 14px; height: 14px; }
    .uh-year-ico { width: 14px; height: 14px; }

    /* Buttons: bigger click targets to match the wider column. */
    .uh-btn {
        font-size: 17px;
        padding: 13px 18px;
        border-radius: 10px;
    }
    .uh-btn-small { font-size: 14px; padding: 8px 18px; }
    #uh-review-btn { margin-top: 30px; }
    .uh-verify { margin-top: 28px; }
}
