@font-face { font-family: avenirltpro_regular; src: url("../../assets/fonts/AvenirNextLTProRegular.ttf"); }
@font-face { font-family: futurb; src: url("../../assets/fonts/futurab.ttf"); }

:root {
  --ink: #212121;
  --muted: #5e5e5e;
  --yellow: #ffea00;
  --yellow-dark: #e7d50e;
  --teal: #f44336;
  --line: #e6e6e6;
  --soft: #fff7ed;
  --error: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(145deg, #fff8ef, #f8e4d8);
  font: 16px/1.5 avenirltpro_regular, Arial, sans-serif;
}
button, input, select { font: inherit; }
.shell { min-height: 100vh; display: grid; place-items: center; padding: 36px 18px; }
.quote-card {
  width: min(950px, 100%);
  min-height: 560px;
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(30, 44, 40, .16), 0 3px 12px rgba(30, 44, 40, .08);
}
.progress { position: relative; height: 10px; margin: 4px 0 40px; border-radius: 99px; background: #edf0ef; }
.progress span { display: block; width: 8%; height: 100%; border-radius: inherit; background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 12px, #f9e93d 12px, #f9e93d 23px); transition: width .3s; }
.car { position: absolute; top: -11px; left: calc(8% - 22px); width: 46px; height: 29px; border: 3px solid #07656b; border-radius: 9px 13px 7px 7px; background: var(--teal); box-shadow: inset 10px 0 #1da5a9; transition: left .3s; }
.car::before, .car::after { content: ""; position: absolute; bottom: -7px; width: 9px; height: 8px; border-radius: 50%; background: #263439; }
.car::before { left: 5px; } .car::after { right: 5px; }
.car b { position: absolute; inset: 4px 11px 7px 9px; border: 2px solid #b9eff0; border-radius: 4px; }
h1 { max-width: 760px; margin: 0 0 8px; color: #f44336; font: 800 clamp(1.75rem, 4vw, 2.5rem)/1.15 futurb, Arial, sans-serif; letter-spacing: -.03em; }
h1:focus { outline: none; }
h2 { font-family: futurb, Arial, sans-serif; }
.lede { max-width: 720px; margin: 0 0 28px; color: var(--muted); }
.fields { display: grid; gap: 18px; max-width: 760px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label, .field-label { display: grid; gap: 7px; font-weight: 700; }
input, select {
  width: 100%; min-height: 54px; padding: 12px 15px; color: var(--ink); background: #fff;
  border: 1px solid #bfc9cc; border-radius: 0; outline: none;
}
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(244, 67, 54, .13); }
input:disabled {
  color: #7c8589;
  background: #dfe4e5;
  border-color: #c2cacc;
  cursor: not-allowed;
  opacity: 1;
}
input[aria-invalid="true"] { border-color: var(--error); }
.is-invalid { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }
.is-invalid-group { padding: 8px; border: 2px solid var(--error); border-radius: 18px; }
.switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.switch button { padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; }
.switch button.active { color: #fff; border-color: var(--teal); background: var(--teal); }
.answers { display: grid; gap: 12px; max-width: 720px; }
.answer { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; font-weight: 700; transition: .15s; }
.answer:hover { border-color: #9aa9ac; transform: translateY(-1px); }
.answer.selected { border-color: var(--teal); color: #05666a; background: #eaf8f7; box-shadow: 0 5px 14px rgba(8,127,131,.1); }
.answer.disabled { color: #90989b; background: #f1f2f2; cursor: not-allowed; transform: none; }
.answer input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.choice-note { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; font-weight: 400; }
.locations { margin-top: 24px; padding: 19px; border-radius: 17px; background: var(--soft); }
.locations strong { display: block; margin-bottom: 12px; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.location-grid label, .checkline { display: flex; align-items: center; gap: 9px; padding: 10px; font-weight: 600; }
.location-grid input, .checkline input { width: 19px; min-height: 19px; }
.actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 44px; }
.button { min-width: 150px; padding: 13px 24px; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.button:disabled { opacity: .55; cursor: wait; }
.primary { background: var(--yellow); color: #f44336; }
.primary:hover { background: var(--yellow-dark); }
.secondary { background: #eef2f1; color: var(--ink); }
.danger { background: #bd3d30; color: #fff; }
.form-error { max-width: 760px; margin-top: 20px; padding: 12px 15px; color: var(--error); background: #fff0ee; border-left: 4px solid var(--error); border-radius: 8px; }
.helper-text { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: .93rem; }
.vin-help { justify-self: start; margin-top: -8px; padding: 0; color: var(--teal); border: 0; background: transparent; cursor: pointer; font-weight: 700; text-decoration: underline; }
.vin-help::before { content: "i"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border: 1px solid currentColor; border-radius: 50%; font: 700 .78rem/1 Georgia, serif; text-decoration: none; }
.help-list { margin: 0; padding-left: 22px; text-align: left; }
.help-list li { margin: 6px 0; }
.constraint-note { max-width: 720px; margin-top: 18px; padding: 12px 15px; color: #594900; background: #fff9cf; border-left: 4px solid var(--yellow-dark); border-radius: 8px; font-weight: 700; }
.inline-error { margin: 4px 0 0; color: var(--error); font-size: .9rem; font-weight: 600; }
.combobox { position: relative; }
.combobox input { padding-right: 46px; }
.combobox::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 47px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #526166;
  border-bottom: 2px solid #526166;
  pointer-events: none;
  transform: rotate(45deg) translateY(-3px);
}
.combobox:has(input:disabled) { cursor: not-allowed; }
.combobox:has(input:disabled)::after { border-color: #98a2a5; }
.combo-list { position: absolute; z-index: 5; top: calc(100% + 5px); width: 100%; max-height: 220px; overflow: auto; margin: 0; padding: 5px; list-style: none; background: #fff; border: 1px solid #bfc9cc; border-radius: 12px; box-shadow: 0 12px 24px rgba(20,30,27,.14); }
.combo-list li { padding: 9px 11px; border-radius: 8px; cursor: pointer; }
.combo-list li:hover, .combo-list li.active { background: #eaf8f7; color: #05666a; }
.combo-list .combo-empty { color: var(--muted); cursor: default; font-style: italic; }
.combo-list .combo-empty:hover { color: var(--muted); background: transparent; }
.offer { text-align: center; padding: 35px 10px; }
.offer .amount { display: block; margin: 14px 0; color: var(--teal); font: 800 clamp(3.5rem, 12vw, 6.5rem)/1 "Trebuchet MS", Arial, sans-serif; }
.accept-layout { display: grid; grid-template-columns: minmax(245px, .8fr) minmax(0, 1.8fr); gap: 30px; align-items: start; }
.offer-side { min-width: 0; padding: 26px; color: #fff; border: 0; border-radius: 8px; background: linear-gradient(145deg, #f98d12, #dd311b); box-shadow: 0 10px 28px rgba(221, 49, 27, .22); }
.offer-side span { display: block; color: #d7f4f3; }
.offer-side strong { display: block; margin: 12px 0; color: #fff; white-space: nowrap; letter-spacing: -.06em; font: 800 clamp(2.25rem, 5vw, 4rem)/1 "Trebuchet MS", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.offer-side p { margin-bottom: 0; color: #d7f4f3; font-weight: 700; }
.accept-details { min-width: 0; }
.consent-disclosure { max-width: 760px; margin: 22px 0 0; padding: 13px 15px; color: #445055; background: var(--soft); border-radius: 10px; font-size: .92rem; }
.consent-disclosure span { display: block; margin-top: 9px; color: var(--muted); font-size: .95em; }
.vin-control { min-width: 0; }
.vin-label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-weight: 700; }
.vin-label .vin-help { margin: 0; white-space: nowrap; }
#step:has(.accept-layout) ~ .actions { margin-top: 26px; }
.no-offer-message { margin-inline: auto; text-align: left; }
.summary-car { width: 130px; height: 52px; margin: 25px auto; border-radius: 45px 60px 12px 12px; background: var(--teal); box-shadow: inset 35px 0 #15a3a5; position: relative; }
.summary-car::after { content: ""; position: absolute; inset: 12px 30px 19px; border-radius: 12px; background: #b9eff0; }
.success-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 20px auto; color: #fff; background: var(--teal); border-radius: 50%; font-size: 2.5rem; }
.modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(12, 22, 22, .68); }
.modal[hidden] { display: none; }
.modal-panel { position: relative; width: min(560px, 100%); padding: 35px; text-align: center; background: #fff; border-radius: 22px; box-shadow: 0 20px 70px #0007; }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; color: #6b7476; font-size: 2rem; cursor: pointer; }
.info-mark { display: grid; place-items: center; width: 50px; height: 50px; margin: auto; border: 2px solid var(--teal); border-radius: 50%; color: var(--teal); font: 800 1.5rem Georgia, serif; }
.modal-panel strong { display: block; color: var(--teal); font: 800 3.2rem Georgia, serif; }
.modal-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

@media (max-width: 650px) {
  .shell { padding: 12px; align-items: start; }
  .quote-card { min-height: calc(100vh - 24px); padding: 24px 18px; border-radius: 20px; }
  .fields.two, .fields.three, .location-grid, .accept-layout { grid-template-columns: 1fr; }
  .actions { position: sticky; bottom: 0; margin: 35px -8px -8px; padding: 14px 8px 8px; background: linear-gradient(transparent, #fff 18%); }
  .button { min-width: 0; flex: 1; padding-inline: 15px; }
  .modal-actions { flex-direction: column; }
}
