:root {
  --teal: #308D8C;
  --teal-dark: #0F6466;
  --teal-darker: #0B4D4F;
  --teal-tint: #E8F3F3;
  --ink: #191919;
  --muted: #5C6266;
  --line: #D9DEE0;
  --bg: #F5F7F7;
  --card: #FFFFFF;
  --error: #B42318;
  --error-tint: #FEF3F2;
  --radius: 10px;
  --heading: "Poppins", system-ui, sans-serif;
  --body: "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
}
a { color: var(--teal-dark); }
a:hover { color: var(--teal-darker); }

/* Header and footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font: 800 17px/1 var(--heading); letter-spacing: .02em;
}
.brand img { display: block; }
.header-phone {
  font: 600 15px/1 var(--heading); text-decoration: none; color: var(--teal-dark);
  white-space: nowrap;
}
.site-footer {
  padding: 24px 20px 40px; text-align: center; color: var(--muted); font-size: 13px;
}
.site-footer p { margin: 0 auto; max-width: 720px; }

/* Page */
.page { max-width: 760px; margin: 0 auto; padding: 32px 16px 0; }
.intro { margin-bottom: 20px; }
h1 {
  margin: 0 0 8px;
  font: 800 clamp(26px, 5vw, 36px)/1.15 var(--heading);
  text-transform: uppercase; color: var(--teal);
}
.intro p { margin: 0; color: var(--muted); font-size: 17px; max-width: 560px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 24px 24px;
}

/* Sections */
.section { border: 0; margin: 0; padding: 20px 0 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.section legend {
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px;
  font: 600 18px/1.2 var(--heading);
}
.step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-dark); color: #fff; font: 600 14px/1 var(--heading);
}

.grid { display: grid; gap: 14px 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: 110px repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.narrow { max-width: 260px; margin-top: 14px; }
label, .label { font-weight: 500; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }

input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #B8C0C3; border-radius: var(--radius); background: #fff;
  font: 16px/1.4 var(--body); color: var(--ink);
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15, 100, 102, .25); outline-offset: 0; border-color: var(--teal-dark);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }

.hint { margin: 0; min-height: 20px; font-size: 14px; color: var(--muted); }
.hint.ok { color: var(--teal-dark); font-weight: 500; }
.hint.bad, .field-error { color: var(--error); }
.field-error { margin: 0; font-size: 14px; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* Vehicles */
.vehicle { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #FBFCFC; }
.vehicle + .vehicle { margin-top: 14px; }
.vehicle-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.vehicle-title { margin: 0; font: 600 15px/1 var(--heading); }
.remove-vehicle { margin-left: auto; }
.vehicle .vin { margin-bottom: 4px; }
.vehicle-opts { margin-top: 14px; align-items: end; }

.seg { display: inline-flex; border: 1px solid #B8C0C3; border-radius: 999px; padding: 2px; background: #fff; }
.seg-btn {
  border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; min-height: 34px;
  font: 500 14px/1 var(--body); color: var(--muted); cursor: pointer;
}
.seg-btn.is-on { background: var(--teal-dark); color: #fff; }

.pill-group { display: flex; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 44px;
  padding: 0 16px; border: 1px solid #B8C0C3; border-radius: var(--radius); background: #fff; font-weight: 500;
}
.pill input:checked + span { background: var(--teal-tint); border-color: var(--teal-dark); color: var(--teal-darker); }
.pill input:focus-visible + span { outline: 3px solid rgba(15, 100, 102, .3); }

/* Trailer choice */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px;
  border: 1px solid #B8C0C3; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400;
}
.choice-card input { position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--teal-dark); }
.choice-title { font: 600 15px/1.3 var(--heading); }
.choice-text { font-size: 14px; color: var(--muted); }
.choice-card:has(input:checked) { border-color: var(--teal-dark); background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal-dark); }

/* Checkboxes */
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-weight: 400; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 1px 0 0; accent-color: var(--teal-dark); }
.check.compact { margin: 0 0 12px; color: var(--ink); font-size: 15px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px;
  border: 0; border-radius: 6px; background: var(--teal-dark); color: #fff; cursor: pointer;
  font: 600 16px/1 var(--heading); text-transform: uppercase; letter-spacing: .04em;
}
.btn:hover { background: var(--teal-darker); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-link {
  border: 0; background: none; padding: 8px 0; margin-top: 10px; min-height: 40px;
  color: var(--teal-dark); font: 500 15px/1 var(--body); cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }
.remove-vehicle { margin-top: 0; color: var(--muted); font-size: 14px; }

.submit-row { padding-top: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }

.form-error {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--error-tint); color: var(--error); border: 1px solid #F4C7C3; font-size: 15px;
}

/* Thank-you */
.thanks { padding: 28px 24px; }
.thanks h2 { margin: 0 0 8px; font: 800 26px/1.2 var(--heading); text-transform: uppercase; color: var(--teal); }
.thanks p { margin: 0 0 12px; }
.ref-line strong { font: 600 18px/1 var(--heading); letter-spacing: .02em; }
.thanks:focus { outline: none; }

/* Phone */
@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .brand { font-size: 15px; }
  .page { padding-top: 22px; }
  .card { padding: 4px 16px 20px; border-radius: 12px; }
  .grid.two, .grid.three, .choice-cards { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .vehicle { padding: 14px; }
  .field.narrow { max-width: none; }
  .btn { width: 100%; }
}
