/* Public surface — V2 design system */

:root {
    --c-blue: #0052CC;
    --c-blue-dark: #003D99;
    --c-blue-bg: #EFF6FF;
    --c-blue-12: rgba(0,82,204,0.12);
    --c-blue-18: rgba(0,82,204,0.18);
    --c-charcoal: #1A1A1A;
    --c-muted: #6B7280;
    --c-border: #E5E7EB;
    --c-light-gray: #F5F5F5;
    --c-white: #FFFFFF;
    --c-green: #00D084;
    --c-green-soft: #ECFDF5;
    --c-red: #DC2626;
    --c-red-soft: #FEF2F2;
    --c-amber: #D97706;
    --c-amber-soft: #FFFBEB;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--c-light-gray);
    color: var(--c-charcoal);
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.public-header {
    background: var(--c-blue);
    height: 78px;
    display: flex; align-items: center;
    flex-shrink: 0;
}
.public-header .inner {
    width: 100%; max-width: 1440px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
}
.public-header .logo { display: inline-flex; align-items: center; }
.public-header .logo img { height: 44px; width: auto; display: block; }
.public-header .lang { display: flex; gap: 6px; align-items: center; }
.public-header .lang span { font-size: 13px; }
.public-header .lang .active { color: #fff; font-weight: 700; }
.public-header .lang .inactive { color: rgba(255,255,255,0.55); }
.public-header .lang .sep { width: 1px; height: 12px; background: rgba(255,255,255,0.3); }
@media (min-width: 768px) { .public-header { height: 88px; } .public-header .logo img { height: 48px; } }

.public-main { flex: 1; display: flex; flex-direction: column; }
.public-footer {
    background: #fff;
    border-top: 1px solid var(--c-border);
    padding: 18px 24px;
    text-align: center;
    font-size: 12px; color: var(--c-muted);
}

/* ── Page split: blue panel + form (Apply desktop) ────────────────────── */
.split-shell { display: grid; grid-template-columns: 1fr; flex: 1; }
@media (min-width: 1024px) {
    .split-shell { grid-template-columns: 520px 1fr; }
}

.split-left {
    background: var(--c-blue); color: #fff;
    padding: 40px 28px;
    display: flex; flex-direction: column;
}
.split-left .stripe { display: none; }
.split-left h1 {
    font-size: 32px; font-weight: 900;
    letter-spacing: -0.8px; line-height: 1.1;
    margin: 24px 0 14px;
}
.split-left p.lead {
    color: rgba(255,255,255,0.78); font-size: 15px;
    line-height: 1.65; margin-bottom: 24px;
}
.split-left ul.benefits { list-style: none; padding: 0; }
.split-left ul.benefits li {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; font-size: 15px;
    color: rgba(255,255,255,0.9); font-weight: 500;
}
.split-left ul.benefits li::before {
    content: ""; width: 20px; height: 20px;
    border-radius: 10px; background: var(--c-green);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6l2.5 2.5L10 3' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: center;
}
@media (min-width: 1024px) {
    .split-left { padding: 56px; }
    .split-left h1 { font-size: 44px; margin-top: 32px; }
}

.split-right {
    background: var(--c-light-gray);
    padding: 32px 24px;
    display: flex; flex-direction: column;
}
@media (min-width: 1024px) { .split-right { padding: 56px 64px; } }
.split-right h2 {
    font-size: 22px; font-weight: 700; letter-spacing: -0.4px;
    margin-bottom: 6px;
}
.split-right .lead-form { font-size: 14px; color: var(--c-muted); margin-bottom: 24px; }

.apply-card {
    background: var(--c-white); border-radius: 16px;
    padding: 24px; box-shadow: var(--shadow-card);
}
@media (min-width: 1024px) { .apply-card { padding: 28px; } }

/* ── Mobile/tablet centered card (Apply mobile/tablet, AccountSetup, Login) */
.center-shell {
    flex: 1; display: flex;
    align-items: flex-start; justify-content: center;
    padding: 36px 20px;
}
.center-card {
    width: 100%; max-width: 560px;
    background: var(--c-white); border-radius: 20px;
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .center-card { padding: 36px 40px; } }
.center-card h1 {
    font-size: 26px; font-weight: 800;
    letter-spacing: -0.5px; margin-bottom: 8px;
}
.center-card p.lead { font-size: 14px; color: var(--c-muted); line-height: 1.6; margin-bottom: 24px; }

/* ── Walk-in event banner ────────────────────────────────────────────── */
.walkin-banner {
    background: var(--c-blue); color: #fff;
    padding: 16px 24px;
}
.walkin-banner .k {
    font-size: 12px; font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.walkin-banner .title {
    font-size: 18px; font-weight: 800;
    line-height: 1.3;
}
.walkin-banner .sub {
    font-size: 13px; color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.p-field { display: flex; flex-direction: column; gap: 6px; }
.p-field + .p-field { margin-top: 14px; }
.p-row-2 > .p-field + .p-field,
.p-row-2-3 > .p-field + .p-field { margin-top: 0; }
.p-field label {
    font-size: 13px; font-weight: 600; color: var(--c-charcoal);
    display: flex; gap: 2px;
}
.p-field label .req { color: var(--c-blue); }
.p-field input[type=text],
.p-field input[type=email],
.p-field input[type=tel],
.p-field input[type=password],
.p-field input[type=number],
.p-field input[type=date],
.p-field input[type=url],
.p-field input:not([type]),
.p-field select,
.p-field textarea {
    height: 44px;
    background: var(--c-white);
    border: 1.5px solid var(--c-border);
    border-radius: 10px;
    padding: 0 13px;
    font-size: 14px; color: var(--c-charcoal);
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.p-field textarea { height: auto; min-height: 90px; padding: 12px 13px; line-height: 1.5; resize: vertical; }
.p-field input:focus, .p-field select:focus, .p-field textarea:focus {
    outline: none; border-color: var(--c-blue);
    box-shadow: 0 0 0 3px var(--c-blue-18);
}
.p-field .hint { font-size: 11px; color: var(--c-muted); }
.err { font-size: 13px; color: var(--c-red); min-height: 16px; }
.p-field input[readonly] { background: #F3F4F6; color: var(--c-muted); }

.p-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-row-2-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
@media (max-width: 640px) { .p-row-2, .p-row-2-3 { grid-template-columns: 1fr; } }

/* Checkbox / radio option lists (people-experience, marketing-source).
   Match the .p-consent aesthetic: blue-bordered 18px box, blue checkmark / dot. */
.p-check-list, .p-radio-list {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 4px;
}
.p-check-item, .p-radio-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500; color: var(--c-charcoal);
    cursor: pointer;
}
.p-check-item input[type=checkbox],
.p-radio-item input[type=radio] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; margin: 0; flex-shrink: 0;
    border: 2px solid var(--c-blue); background: var(--c-white);
    cursor: pointer; position: relative;
}
.p-check-item input[type=checkbox] { border-radius: 5px; }
.p-radio-item input[type=radio] { border-radius: 50%; }
.p-check-item input[type=checkbox]:checked {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6l2.5 2.5L10 3' fill='none' stroke='%230052CC' stroke-width='2.5' stroke-linecap='round'/></svg>");
    background-position: center; background-repeat: no-repeat;
}
.p-radio-item input[type=radio]:checked {
    background-image: radial-gradient(circle, var(--c-blue) 0 4px, transparent 5px);
}
.p-check-item input:focus-visible,
.p-radio-item input:focus-visible {
    outline: none; box-shadow: 0 0 0 3px var(--c-blue-18);
}

.p-consent {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px;
}
.p-consent .check {
    width: 18px; height: 18px; border-radius: 5px;
    border: 2px solid var(--c-blue);
    background: var(--c-blue-12);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
    position: relative;
}
.p-consent .check input {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0;
}
.p-consent .check::after {
    content: ""; width: 10px; height: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6l2.5 2.5L10 3' fill='none' stroke='%230052CC' stroke-width='2.5' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: center;
    opacity: 0;
    pointer-events: none;
}
.p-consent .check:has(input:checked)::after { opacity: 1; }
.p-consent .lbl { font-size: 12px; color: var(--c-charcoal); line-height: 1.5; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.p-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 24px;
    background: var(--c-blue); color: #fff;
    border: none; border-radius: 12px;
    font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,82,204,0.28);
    font-family: inherit; letter-spacing: -0.2px;
}
.p-btn:hover { background: var(--c-blue-dark); color: #fff; text-decoration: none; }
.p-btn.block { width: 100%; }
.p-btn.secondary {
    background: var(--c-white); color: var(--c-blue);
    border: 1.5px solid var(--c-blue);
    box-shadow: none;
}
.p-btn.secondary:hover { background: var(--c-blue-bg); }

/* ── Form summary / banners ──────────────────────────────────────────── */
.p-form-summary {
    background: var(--c-red-soft); color: var(--c-red);
    border: 1px solid var(--c-red);
    border-radius: 10px; padding: 10px 14px;
    font-size: 13px; margin-bottom: 14px;
}
.p-form-summary:empty { display: none; }
.p-form-summary ul { padding-left: 18px; margin: 0; }

.p-banner-closed {
    background: var(--c-amber-soft); color: #92400E;
    border: 1px solid var(--c-amber);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}

/* ── Thank-you ───────────────────────────────────────────────────────── */
.thankyou-shell {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 28px; text-align: center;
}
.thankyou-icon {
    width: 72px; height: 72px; border-radius: 36px;
    background: var(--c-green); display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 22px;
}
.thankyou-icon svg { width: 32px; height: 32px; stroke: #fff; }
.thankyou-shell h1 {
    font-size: 28px; font-weight: 900;
    letter-spacing: -0.6px; margin-bottom: 10px;
}
.thankyou-shell .lead {
    font-size: 15px; color: var(--c-muted);
    line-height: 1.65; margin-bottom: 24px;
    max-width: 480px;
}
.thankyou-card {
    background: var(--c-white); border: 1px solid var(--c-border);
    border-radius: 16px; padding: 18px 20px;
    width: 100%; max-width: 480px; text-align: left;
}
.thankyou-card .label {
    font-size: 11px; font-weight: 700; color: var(--c-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.thankyou-card .step {
    display: flex; gap: 12px; margin-bottom: 10px;
    align-items: flex-start;
}
.thankyou-card .step .n {
    width: 22px; height: 22px; border-radius: 11px;
    background: var(--c-blue-12);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
    font-size: 12px; font-weight: 800; color: var(--c-blue);
}
.thankyou-card .step .text {
    font-size: 13px; color: var(--c-charcoal);
    line-height: 1.5; padding-top: 3px;
}

/* Walk-in confirmation (blue background) */
.walkin-confirmed {
    flex: 1;
    background: var(--c-blue);
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 28px; text-align: center;
}
.walkin-confirmed .icon {
    width: 80px; height: 80px; border-radius: 40px;
    background: rgba(255,255,255,0.2);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.walkin-confirmed .icon svg { width: 36px; height: 36px; stroke: #fff; }
.walkin-confirmed .label {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.65); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 10px;
}
.walkin-confirmed h1 {
    font-size: 32px; font-weight: 900;
    letter-spacing: -0.8px; color: #fff;
    margin-bottom: 4px;
}
.walkin-confirmed .sub {
    font-size: 16px; color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
}
.walkin-confirmed .event-card {
    background: rgba(255,255,255,0.15);
    border-radius: 16px; padding: 18px 22px;
    width: 100%; max-width: 380px; text-align: left;
    margin-bottom: 16px;
}
.walkin-confirmed .event-card .k {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.6); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px;
}
.walkin-confirmed .event-card .title {
    font-size: 18px; font-weight: 700; color: #fff;
    margin-bottom: 4px;
}
.walkin-confirmed .event-card .loc {
    font-size: 14px; color: rgba(255,255,255,0.8);
}
.walkin-confirmed .instructions {
    background: rgba(255,255,255,0.15);
    border-radius: 12px; padding: 14px 20px;
    width: 100%; max-width: 380px;
    text-align: center; font-size: 15px;
    font-weight: 600; color: #fff;
}

/* ── Privacy page ────────────────────────────────────────────────────── */
.privacy-shell { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.privacy-shell h1 {
    font-size: 28px; font-weight: 900;
    letter-spacing: -0.6px; margin-bottom: 4px;
}
.privacy-body { max-width: 760px; }
.privacy-body h2 {
    font-size: 18px; font-weight: 700; color: var(--c-charcoal);
    margin: 24px 0 8px;
}
.privacy-body h2:first-child { margin-top: 16px; }
.privacy-body p {
    font-size: 14px; color: var(--c-muted); line-height: 1.7;
    margin-bottom: 8px;
}
.privacy-body a { color: var(--c-blue); }

/* ── Privacy modal (apply form) ──────────────────────────────────────── */
.privacy-modal {
    border: 0; border-radius: 16px; padding: 0;
    max-width: 720px; width: calc(100% - 32px);
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    background: #fff;
}
.privacy-modal::backdrop { background: rgba(0,0,0,0.45); }
.privacy-modal-content {
    padding: 24px 28px;
    max-height: calc(85vh - 80px); overflow-y: auto;
}
.privacy-modal-content h2 { font-size: 16px; color: var(--c-charcoal); margin: 18px 0 6px; font-weight: 700; }
.privacy-modal-content h2:first-of-type { margin-top: 0; }
.privacy-modal-content p { font-size: 14px; color: var(--c-muted); line-height: 1.6; }
.privacy-modal-footer {
    border-top: 1px solid var(--c-border);
    padding: 14px 28px;
    display: flex; justify-content: flex-end;
}

/* ── Honeypot ─────────────────────────────────────────────────────────── */
.hp { position: absolute; left: -9999px; top: -9999px; }

/* ── Public landing ───────────────────────────────────────────────────── */
.landing-shell {
    max-width: 720px; margin: 0 auto;
    padding: 48px 24px; text-align: center;
}
.landing-shell h1 {
    font-size: 32px; font-weight: 900;
    letter-spacing: -0.8px; margin-bottom: 12px;
}
.landing-shell p { font-size: 15px; color: var(--c-muted); margin-bottom: 24px; line-height: 1.65; }

/* ── Beta badge (footer) ─────────────────────────────────────────────────── */
.beta-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--c-muted);
    background: var(--c-light-gray);
}
