:root {
  color-scheme: dark;
  --bg: #101418;
  --surface: #181e24;
  --surface-2: #202831;
  --text: #f7f9fb;
  --muted: #a9b4bf;
  --line: #303a44;
  --brand: #ff6b35;
  --brand-dark: #e9501d;
  --mint: #5ee6ad;
  --error: #ff9b9b;
  --error-bg: #3a2024;
  --info-bg: #202d3a;
  --radius: 18px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -180px, #38241c 0, transparent 480px), var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
button, input { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }
a { color: #ffab8b; text-underline-offset: 3px; }
a:hover { color: #ffc6af; }
[hidden], .hidden { display: none !important; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px; background: white; color: black; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { width: min(100% - 32px, 960px); min-height: 72px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.brand-bell { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); font-size: 18px; box-shadow: 0 6px 20px #ff6b3530; }
.page-shell { width: min(100% - 28px, 720px); margin: 0 auto; padding: 20px 0 max(38px, env(safe-area-inset-bottom)); }
.intro { margin: 4px 2px 24px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1, h2 { margin: 0; line-height: 1.14; letter-spacing: -.035em; }
h1 { max-width: 520px; font-size: clamp(32px, 8vw, 48px); }
h2 { font-size: clamp(25px, 6vw, 32px); }
.intro p, .step-help { color: var(--muted); }
.intro p { max-width: 580px; margin: 12px 0 0; font-size: 14px; }
.form-card { padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: #181e24f5; box-shadow: 0 24px 60px #0004; }
.progress { margin-bottom: 22px; }
.progress ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 12px; }
.progress li { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #7f8c98; text-align: center; }
.progress li span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #42505c; border-radius: 50%; font-size: 12px; font-weight: 800; }
.progress li small { max-width: 82px; font-size: 10px; font-weight: 700; line-height: 1.25; }
.progress li.active, .progress li.complete { color: var(--text); }
.progress li.active span { border-color: var(--brand); background: var(--brand); color: white; }
.progress li.complete span { border-color: var(--mint); background: #5ee6ad20; color: var(--mint); }
.progress li.skipped span { border-color: #52606c; color: #9eabb6; }
.progress-track { height: 5px; overflow: hidden; border-radius: 20px; background: #303a44; }
#progressFill { width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ff9c72); transition: width .2s ease; }
.step-caption { margin: 7px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; }
.save-status { margin: 0 0 16px; color: #91a0ad; font-size: 11px; }
.step-panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.step-panel legend { width: 100%; margin: 0 0 5px; padding: 0; color: var(--text); font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.step-help { margin: 0 0 20px; font-size: 13px; }
.field { min-width: 0; margin-bottom: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.field label:not(.file-picker), .group-label { display: block; margin: 0 0 6px; color: #e7ecf0; font-size: 12px; font-weight: 700; }
.field input:not([type="radio"]):not([type="checkbox"]), #trackingForm input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #3b4651; border-radius: 11px; outline: 0; background: #11171c; color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, #trackingForm input::placeholder { color: #6f7d89; }
.field input:focus, #trackingForm input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #ff6b3520; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field small { display: block; margin-top: 6px; color: #8f9ca8; font-size: 10px; line-height: 1.45; }
.field .field-error, .field-error { color: var(--error); font-size: 11px; font-weight: 600; }
.field-error:empty { display: none; }
.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.vehicle-option { position: relative; cursor: pointer; }
.vehicle-option input { position: absolute; opacity: 0; pointer-events: none; }
.vehicle-option span { display: flex; min-height: 76px; height: 100%; padding: 12px 8px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #3a4650; border-radius: 12px; background: #13191f; color: #dce3e9; font-size: 11px; font-weight: 700; text-align: center; transition: border-color .15s, background .15s; }
.vehicle-option b { font-size: 23px; line-height: 1; }
.vehicle-option input:checked + span { border-color: var(--brand); background: #ff6b3512; color: white; box-shadow: inset 0 0 0 1px var(--brand); }
.vehicle-option input:focus-visible + span { outline: 3px solid #ffab8b; outline-offset: 2px; }
.notice { margin: 0 0 18px; padding: 14px; border: 1px solid #35485b; border-radius: 12px; background: var(--info-bg); color: #dce7f1; font-size: 12px; }
.notice strong { display: block; color: white; line-height: 1.4; }
.notice p { margin: 6px 0 0; }
.notice-error { border-color: #81434a; background: var(--error-bg); color: var(--error); overflow-wrap: anywhere; }
.notice-secure { border-color: #35604f; background: #193027; }
.help-link { display: inline-flex; min-height: 40px; align-items: center; margin-top: 9px; color: #ffc0a8; font-weight: 800; }
.file-picker { display: flex; min-height: 86px; padding: 15px; align-items: center; gap: 12px; border: 1px dashed #5b6a77; border-radius: 12px; background: #13191f; cursor: pointer; }
.file-picker:hover { border-color: var(--brand); background: #ff6b3509; }
.file-picker:has(+ .file-input:focus-visible) { outline: 3px solid #ffab8b; outline-offset: 2px; }
.file-picker strong { display: block; overflow: hidden; color: #f4f7f9; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; max-width: min(65vw, 490px); }
.file-picker small { color: #8f9ca8; }
.file-icon { font-size: 25px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.inline-help { color: var(--muted); font-size: 11px; line-height: 1.55; }
.consents { padding-top: 2px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0 5px; color: #d4dce3; font-size: 11px; cursor: pointer; }
.check-field input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--brand); }
.form-actions { display: flex; gap: 10px; margin-top: 23px; }
.button { min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .12s, background .12s, border-color .12s; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .58; }
.button:focus-visible, a:focus-visible { outline: 3px solid #ffab8b; outline-offset: 3px; }
.button-primary { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: white; box-shadow: 0 8px 20px #ff6b3520; }
.button-primary:hover { background: #ff7b4c; }
.button-secondary { border-color: #3c4853; background: #242d35; color: #f0f4f7; }
.button-quiet { border-color: #3b4650; background: #181e24; color: #e6ecf1; }
.button-small { min-height: 40px; padding: 8px 11px; font-size: 10px; }
.button-back { display: block; margin: 0 0 20px; padding-left: 0; background: transparent; color: #c5d0da; }
.spinner { width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.saved-application { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #37614f; border-radius: 13px; background: #193027; }
.saved-application strong, .saved-application span { display: block; }
.saved-application strong { font-size: 12px; }
.saved-application span { margin-top: 3px; color: #a8b9b0; font-size: 10px; }
.status-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 22px 0 16px; }
.status-heading small, .reference-box small { display: block; margin-bottom: 4px; color: #8795a1; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-heading code { color: #cbd5dd; font-size: 10px; }
.status-pill { flex: 0 0 auto; padding: 5px 8px; border-radius: 30px; background: #554319; color: #ffe19a; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-pill.approved { background: #193c2b; color: var(--mint); }
.status-pill.rejected { background: #462328; color: var(--error); }
.status-list { margin: 0 0 18px; }
.status-list div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #303a44; font-size: 12px; }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; color: white; font-weight: 700; text-align: right; }
.document-status { display: grid; gap: 8px; margin: 16px 0; }
.document-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; background: #11171c; color: #d5dde4; font-size: 11px; }
.document-row span:last-child { color: var(--mint); font-weight: 700; text-transform: capitalize; }
.success-card { text-align: center; }
.success-card > p { color: var(--muted); font-size: 13px; }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 17px; border-radius: 50%; background: #5ee6ad20; color: var(--mint); font-size: 30px; font-weight: 800; }
.reference-box { margin: 15px 0; padding: 13px; border: 1px solid #34404a; border-radius: 11px; background: #11171c; text-align: left; }
.reference-box code { display: block; color: #f1f5f8; font-size: 11px; line-height: 1.5; user-select: all; }
.success-card .button { width: 100%; margin-top: 9px; }
.site-footer { width: min(100% - 32px, 720px); margin: 0 auto; padding: 0 0 max(26px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px 18px; color: #778591; font-size: 10px; }
.site-footer span { flex: 1 1 180px; }
.site-footer a { color: #9ba8b3; }
@media (min-width: 560px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vehicle-option span { min-height: 92px; font-size: 10px; }
  .page-shell { padding-top: 30px; }
}
@media (max-width: 420px) {
  .site-header { width: calc(100% - 24px); }
  .brand { font-size: 15px; }
  .brand-bell { width: 32px; height: 32px; }
  .button-small { max-width: 145px; }
  .page-shell { width: calc(100% - 20px); padding-top: 12px; }
  .form-card { border-radius: 18px; }
  .progress li small { font-size: 8px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button-secondary { flex: 0 0 92px; }
  .saved-application { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
