:root {
  --navy: #0f2540;
  --navy-2: #16355c;
  --accent: #1f6fe0;
  --accent-dark: #1858b8;
  --green: #0d8a4f;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1b2733;
  --muted: #5b6b7c;
  --border: #dbe4ee;
  --err: #c0392b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; width: 100%; }
.hidden { display: none !important; }

/* Demo ribbon */
.demo-ribbon {
  background: #b3540a;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 0;
}
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.brand span { color: #6fb3ff; }
.header-note { font-size: 13px; color: #9fb4cc; }

main { flex: 1; padding: 32px 0 56px; }

/* Hero */
.hero { text-align: center; margin: 24px 0 28px; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 12px; color: var(--navy); letter-spacing: -0.02em; }
.hero .sub { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(15, 37, 64, 0.06);
}
.card.center { text-align: center; padding: 44px 28px; }
.card h2 { margin: 0 0 18px; font-size: 22px; color: var(--navy); letter-spacing: -0.01em; }

/* Fields */
.field { margin-bottom: 16px; flex: 1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
  color: var(--text);
}
.field input:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row { display: flex; gap: 14px; }
.err { color: var(--err); font-size: 13px; margin-top: 6px; min-height: 1em; }

/* Honeypot — visually removed, still in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 6px;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #9db8dc; cursor: default; }
.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  margin-top: 18px;
  padding: 6px 0;
}
.btn-back:hover { color: var(--navy); }

/* Trust row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

/* Progress */
.progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 6px 0 18px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.25s ease;
}
.progress-bar-full { width: 100%; }

.vehicle-chip {
  display: inline-block;
  background: var(--navy);
  color: #cfe1f7;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.vehicle-chip:empty { display: none; }

/* Options */
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.12s, background 0.12s;
  width: 100%;
  color: var(--text);
}
.opt:hover { border-color: var(--accent); background: #f4f8fe; }
.opt .opt-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.sub-small { color: var(--muted); font-size: 14px; margin: -8px 0 18px; }

/* Spinner */
.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Offer */
.offer-card { border-top: 5px solid var(--green); }
.offer-label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.offer-amount { font-size: clamp(44px, 9vw, 64px); font-weight: 800; color: var(--navy); margin: 8px 0 4px; letter-spacing: -0.03em; }
.offer-terms { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 8px; }
.offer-next { text-align: left; max-width: 440px; margin: 26px auto 0; background: var(--bg); border-radius: 10px; padding: 18px 22px; }
.offer-next h3 { margin: 0 0 10px; font-size: 15px; color: var(--navy); }
.offer-next ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.offer-next li { margin-bottom: 6px; }

.callback-icon { font-size: 40px; margin-bottom: 10px; }

/* ETA on working screen */
.eta-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  max-width: 320px;
  margin: 22px auto 8px;
  overflow: hidden;
}
.eta-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.9s linear;
}
.eta-text { color: var(--muted); font-size: 13px; margin: 0; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #8fa6c1;
  font-size: 12.5px;
  padding: 22px 0;
}
.site-footer p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .row { flex-direction: column; gap: 0; }
  .card { padding: 20px; }
  .trust-row { gap: 12px; font-size: 13px; }
}
