:root {
  color-scheme: light;
  --ink: #122e46;
  --muted: #4a6276;
  --line: #d6e2ec;
  --surface: #fff;
  --background: #f2f6f9;
  --brand: #075c7d;
  --brand-dark: #09445d;
  --cyan: #57d9f6;
  --accent-bg: #e9f8fe;
  --danger: #a12e34;
  --shadow: 0 6px 24px #18375009;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; margin: 0; font-size: 1rem; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid #137da4; outline-offset: 3px; }
h1, h2, p, ol, ul, dl, dd { margin: 0; }
.shell { width: min(1100px, calc(100% - 56px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }

.masthead { background: #fdfdfd; }
.masthead-inner, .brand { display: flex; align-items: center; }
.masthead-inner { justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { gap: 12px; }
.brand-image { position: relative; display: block; width: 116px; height: 47px; overflow: hidden; }
.brand-image img { position: absolute; width: 143px; max-width: none; height: auto; left: -14px; top: -43px; }
.brand-division {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}
.access {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #cfdee9;
  border-radius: 100px;
  padding: 6px 12px;
  color: #234b63;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.lock { position: relative; width: 12px; height: 9px; margin-top: 4px; border: 1.5px solid currentColor; border-radius: 2px; }
.lock::before { content: ""; position: absolute; top: -7px; left: 1px; width: 7px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }

.hero { overflow: hidden; color: #fff; background: radial-gradient(ellipse at 86% 42%, #124660, transparent 54%), #102b42; border-bottom: 3px solid #32c4e9; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; min-height: 244px; padding-block: 28px; }
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(2.25rem, 4.25vw, 3.4rem); line-height: 1.035; letter-spacing: -.049em; text-wrap: balance; }
.hero h1 span { color: var(--cyan); }
.hero p { max-width: 510px; margin-top: 16px; color: #d5e6f1; font-size: 1.0625rem; }
.hero-vehicles {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 13%, #000 83%, transparent);
  mask-composite: intersect;
}

.workspace { padding-block: 28px 48px; min-height: 50vh; }
.stepper { margin-bottom: 22px; }
.stepper ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; gap: 10px; }
.stepper button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: .9375rem;
  font-weight: 650;
}
.stepper button[aria-current="step"] { border-color: #7dcbe4; background: var(--accent-bg); color: var(--brand-dark); }
.stepper button:not([aria-current]):enabled:hover { border-color: #6590a7; color: var(--ink); }
.step-number { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #eaf0f5; color: #3a556a; font-size: .875rem; font-weight: 700; }
[aria-current="step"] .step-number { color: #fff; background: var(--brand); }
[data-complete] .step-number { color: var(--brand-dark); background: #e0f3fa; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(265px, .47fr); align-items: start; gap: 22px; }
.panel, .checklist { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.panel-body { padding: 25px 28px 26px; }
.panel h2 { font-size: clamp(1.625rem, 3.4vw, 1.875rem); line-height: 1.16; letter-spacing: -.035em; }
.panel h2:focus { outline: none; }
.intro { color: var(--muted); margin: 8px 0 20px; }
.choice-group { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
input[type="radio"], input[type="checkbox"] { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; accent-color: var(--brand); }
.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; background: #f8fafc; }
.next-only { justify-content: flex-end; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 9px 15px; cursor: pointer; text-decoration: none; text-align: center; font-size: .9375rem; font-weight: 700; line-height: 1.25; }
.primary { color: #fff; background: var(--brand); }
.primary:hover { background: var(--brand-dark); }
.secondary { color: var(--ink); background: var(--surface); border-color: #c9d9e5; }
.secondary:hover { border-color: #6995ab; background: #edf8fc; }

.sidebar { display: grid; gap: 14px; }
.checklist summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 54px; padding: 13px 17px 9px; list-style: none; cursor: pointer; border-radius: 14px; }
.checklist summary::-webkit-details-marker { display: none; }
.checklist-heading { margin-inline-end: auto; font-size: 1rem; font-weight: 750; }
.checklist-total { color: var(--brand-dark); font-size: .875rem; font-weight: 700; }
.chevron { width: 8px; height: 8px; margin-inline: 2px; margin-bottom: 4px; transform: rotate(45deg); border: solid #46687c; border-width: 0 2px 2px 0; }
details[open] .chevron { margin-bottom: 0; transform: rotate(225deg); }
.checklist-body { padding: 0 17px 16px; }
progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 6px; overflow: hidden; color: #1084a6; background: #e1ebf2; }
progress::-webkit-progress-bar { background: #e1ebf2; }
progress::-webkit-progress-value { background: #1084a6; }
progress::-moz-progress-bar { background: #1084a6; }
.checklist ul { display: grid; gap: 7px; list-style: none; padding: 0; margin-top: 13px; }
.checklist li { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .875rem; }
.checklist li.is-ready { color: #195c69; }
.checklist li.needs-title { color: #804e20; }
.item-mark { display: inline-grid; place-items: center; border: 1px solid #8fa7b9; border-radius: 50%; width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; font-size: .6875rem; line-height: 1; }
.is-ready .item-mark { background: #e8f8f6; border-color: #75aea9; font-weight: 800; }
.needs-title .item-mark { border-color: #bc8b58; background: #fff5e7; font-weight: 800; }
.review-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border: 1px solid #cadfe9; border-radius: 11px; background: #eaf4fa; }
.review-note h2 { font-size: .9375rem; font-weight: 750; }
.review-note p { margin-top: 3px; color: #39576e; font-size: .875rem; }
.info-icon { display: grid; place-items: center; border: 1px solid #48809a; border-radius: 50%; margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; color: #125977; font-family: Georgia, serif; font-size: .8125rem; font-weight: bold; line-height: 1; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.field { display: grid; align-content: start; min-width: 0; gap: 5px; }
.field label, fieldset legend { color: var(--ink); font-size: .9375rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 450; }
input:not([type="radio"], [type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b7ccdb;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--ink);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #5d7284; opacity: 1; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #41667f 50%), linear-gradient(135deg, #41667f 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.locations, .pedimento-field { margin-top: 19px; }
.quote-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 7px; }
.quote-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 650;
}
.quote-options label:hover { border-color: #6590a7; }
.quote-options label:has(:checked) { border-color: #398aa8; background: var(--accent-bg); }
.identity-field, .details-fields { margin-top: 14px; }
.title-option { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin-top: 5px; font-size: .9375rem; cursor: pointer; }
.vehicle-id { font-family: ui-monospace, Consolas, monospace; letter-spacing: .035em; }
.vin-lookup { margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.vin-lookup h3 { margin: 0 0 4px; font-size: 1rem; }
.vin-lookup .summary { margin: 8px 0 0; }
#vin-retry { margin-top: 8px; }
#review-vin-status { margin: -6px 0 14px; }
.hint { color: var(--muted); font-size: .875rem; }
.field-error { color: var(--danger); font-size: .875rem; font-weight: 650; }
.field-error:not([hidden]) { margin-top: 3px; }
[aria-invalid="true"]:not([type="radio"]) { border-color: var(--danger); }
.notice { margin-top: 10px; padding: 10px 12px; border-inline-start: 3px solid #d4a36a; border-radius: 4px; background: #fff6e8; color: #6d461f; font-size: .9375rem; }
.summary { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.summary div { display: grid; grid-template-columns: minmax(105px, .65fr) minmax(0, 1fr); gap: 8px; padding: 9px 12px; font-size: .9375rem; }
.summary div:nth-child(odd) { background: #f4f8fb; }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 650; overflow-wrap: anywhere; }
#review-title-hint { margin-bottom: 16px; }
.contact, #copy-fallback { margin-top: 13px; }
.copy-status { margin-top: 8px; color: #1a5d68; font-size: .875rem; font-weight: 700; }
.copy-status:empty { display: none; }
.review-actions { flex-wrap: wrap; justify-content: flex-end; }
#edit-button { margin-right: auto; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; padding-block: 16px; font-size: .875rem; }
.footer strong { color: #315169; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 36px); }
  .hero-inner { min-height: 0; padding-block: 24px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 12px; }
  .sidebar { display: contents; }
  .checklist { order: -1; }
  .checklist summary { padding-block: 12px; }
  .review-note { margin-top: 2px; }
  .stepper { margin-bottom: 12px; }
  .workspace { padding-top: 16px; padding-bottom: 30px; }
}

@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; gap: 6px; padding-block: 25px 9px; }
  .hero h1 { text-wrap: initial; }
  .hero-vehicles { justify-self: center; max-width: 470px; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .masthead-inner { min-height: 63px; gap: 8px; }
  .brand { display: block; }
  .brand-image { width: 98px; height: 38px; }
  .brand-image img { width: 121px; top: -37px; left: -12px; }
  .brand-division { display: none; }
  .access { padding: 5px 9px; }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.55rem); }
  .hero p { margin-top: 12px; font-size: 1rem; }
  .stepper ol { gap: 6px; }
  .stepper button { gap: 5px; min-height: 59px; padding: 7px; font-size: .875rem; line-height: 1.14; }
  .step-number { width: 22px; height: 22px; flex-basis: 22px; font-size: .75rem; }
  .panel-body { padding: 17px 15px 18px; }
  .intro { margin-bottom: 15px; }
  .panel-actions { padding: 12px 15px; }
  .panel-actions .button { padding-inline: 11px; }
  .next-only .button { width: 100%; }
  .field-grid { gap: 11px 10px; }
  .locations, .quote-options { grid-template-columns: 1fr; }
  .review-actions #whatsapp-link { width: 100%; }
}

@media (max-width: 345px) {
  .stepper button { flex-direction: column; text-align: center; }
  .field-grid { grid-template-columns: 1fr; }
}
