:root {
    color-scheme: light;
    --ink: #172235;
    --muted: #667085;
    --line: #dce2ea;
    --surface: #ffffff;
    --canvas: #f3f5f8;
    --brand: #1458d4;
    --brand-dark: #0d3f9d;
    --accent: #e7efff;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.page-shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.hero { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 28px; }
.brand-mark { display: grid; flex: 0 0 56px; height: 56px; place-items: center; border-radius: 16px; color: white; background: var(--brand); font-weight: 800; letter-spacing: .04em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.12; }
h2 { margin-bottom: 3px; font-size: 1.25rem; }
h3 { margin-bottom: 0; }
.lead { max-width: 720px; color: var(--muted); margin-bottom: 0; }
.eyebrow { margin-bottom: 5px; color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.intake-form { display: grid; gap: 20px; }
.form-card { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 32px rgb(23 34 53 / 5%); }
.section-heading, .heading-group { display: flex; gap: 14px; align-items: flex-start; }
.section-heading { margin-bottom: 24px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.split-heading { justify-content: space-between; }
.step { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--brand); font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid > *, .file-drop { min-width: 0; }
.field-grid.compact { gap: 15px; }
.field, .field > span { display: block; }
.field > span { margin-bottom: 7px; font-weight: 700; font-size: .9rem; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.field input, .field select, .field textarea, .captcha-field input { width: 100%; border: 1px solid #c7ced8; border-radius: 10px; padding: 11px 13px; color: var(--ink); background: white; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(20 88 212 / 14%); }
.field .invalid { border-color: var(--danger); }
.full-width { grid-column: 1 / -1; }
.wheel-list { display: grid; gap: 16px; }
.wheel-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfe; }
.wheel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.remove-link { border: 0; padding: 7px; color: var(--danger); background: transparent; font-weight: 700; }
.wheel-card:only-child .remove-link { visibility: hidden; }
.file-drop { display: grid; gap: 5px; margin-top: 18px; padding: 18px; border: 1px dashed #9aa8bb; border-radius: 12px; background: white; color: var(--muted); font-size: .88rem; }
.file-drop:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(20 88 212 / 10%); }
.file-drop input { width: 100%; min-width: 0; max-width: 100%; margin-top: 8px; }
.file-drop output { margin-top: 4px; color: var(--brand-dark); font-weight: 700; }
.file-title { color: var(--ink); font-weight: 800; font-size: .95rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; padding: 10px 17px; text-decoration: none; font-weight: 800; transition: background .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button.primary { border: 1px solid var(--brand); color: white; background: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { border: 1px solid #b8c7e3; color: var(--brand-dark); background: white; white-space: nowrap; }
.button:disabled { cursor: wait; opacity: .65; }
.captcha-field { max-width: 260px; }
.check-field { display: flex; gap: 11px; align-items: flex-start; margin: 24px 0; }
.check-field input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; }
.submit-row { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
.submit-row p { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.alert { margin-bottom: 20px; padding: 17px 20px; border: 1px solid #f3b8b3; border-radius: 12px; color: var(--danger); background: var(--danger-bg); }
.alert p { margin: 4px 0 0; }
.error { color: var(--danger) !important; font-weight: 700; }
.block-error { display: block; margin-top: 9px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.success-shell { display: grid; min-height: 100vh; place-items: center; padding: 32px 0; }
.success-card { max-width: 620px; text-align: center; }
.success-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; place-items: center; border-radius: 50%; color: #067647; background: #dcfae6; font-size: 2rem; font-weight: 900; }
.reference { display: block; width: fit-content; margin: 8px auto 20px; padding: 12px 18px; border-radius: 9px; color: var(--brand-dark); background: var(--accent); font-size: 1.25rem; letter-spacing: .04em; }

@media (max-width: 700px) {
    .page-shell { width: min(100% - 20px, 960px); padding-top: 24px; }
    .hero { gap: 13px; }
    .brand-mark { flex-basis: 46px; height: 46px; border-radius: 12px; }
    .field-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
    .split-heading, .submit-row { align-items: stretch; flex-direction: column; }
    .split-heading .button { margin-left: 48px; }
    .submit-row .button { width: 100%; }
    .wheel-card { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
