:root {
  --bg: #060a18;
  --card: #121a31;
  --text: #f0ebff;
  --muted: #c0b5e8;
  --brand: #f59e0b;
  --brand-2: #fbbf24;
  --ok: #22c55e;
  --err: #ef4444;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 72px; }
.header { text-align: center; margin: 8px 0 16px; }
.brand-logo { display:block; margin: 8px auto 10px; max-width: 260px; width: 70%; height: auto; }
.header h1 { margin: 0; font-size: 28px; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

.screen { background: var(--card); border-radius: 14px; padding: 16px; margin: 12px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
h2 { font-size: 18px; margin: 0 0 12px; }

.options { display: grid; gap: 12px; }
.options-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 2px solid transparent; background: #2a2b31; color: var(--text); font-size: 18px; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn:focus { outline: 3px solid #fff2; outline-offset: 2px; }
.btn:hover { background: #31333a; }
.btn.option[aria-checked="true"], .btn.toggle[aria-pressed="true"] { border-color: var(--brand); background: #3a2c15; box-shadow: inset 0 0 0 999px #0002; }
.btn.primary { background: var(--brand); color: #131313; font-weight: 700; }
.btn.primary:hover { background: var(--brand-2); }
.btn.secondary { background: #2b2c33; }
.btn.cta { background: var(--ok); color: #0b1114; font-weight: 800; font-size: 20px; min-height: 60px; }
.btn.cta:hover { background: #16a34a; }

.delta { color: var(--muted); font-weight: 600; margin-left: 10px; }
.note { color: var(--muted); font-size: 14px; margin: 10px 2px 4px; }

.field { display: grid; gap: 6px; margin: 12px 0; }
.field span { font-weight: 600; font-size: 14px; color: var(--muted); }
input, textarea { width: 100%; background: #2a2b31; border: 2px solid #383a41; color: var(--text); border-radius: 10px; padding: 14px 12px; font-size: 16px; }
input:focus, textarea:focus { border-color: var(--brand); outline: none; }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .grid { grid-template-columns: 1fr 1fr; } }

.nav { display: flex; gap: 12px; margin-top: 12px; }

.quote-line { background: #1e2329; padding: 10px 12px; border-left: 4px solid var(--brand); border-radius: 8px; }

#recap { display: grid; gap: 8px; padding: 8px 0; }
#recap .pill { background: #23262d; border-radius: 999px; padding: 8px 12px; display: inline-block; }

.error { color: var(--err); font-size: 14px; margin-top: -6px; }

button, input, textarea { font-family: inherit; }
button { touch-action: manipulation; }

/* Tap-friendly buttons */
.btn {
  min-height: 56px;
  font-size: 18px;
  line-height: 1.2;
  padding: 14px 16px;
}

/* Spacing for option lists */
.options { display: grid; gap: 12px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .options-grid { grid-template-columns: 1fr; } }

/* Progress bar and step count */
.progress-wrap { height: 6px; background: #1f2026; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg,#7c5cff,#4ad1c9); transition: width .25s ease; }
.step-count { color:#9aa3b2; font-size: 13px; margin: 0 0 8px; }

/* Trust strip */
.trust { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 12px; list-style:none; padding:0; margin:6px 0 14px; color:#c7cfe0; font-size:13px; }
.trust li { padding:6px 10px; border:1px solid rgba(255,255,255,.15); border-radius:999px; }

/* Quote teaser/line */
.quote-line { color:#e7ebf7; font-weight:600; margin: 6px 0 10px; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.final-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  object-fit: cover;
}

.step5-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 12px;
}

.step5-content {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step5-layout .final-image {
  flex: 0 1 340px;
  max-width: 360px;
}

/* Visually hidden utility (for a11y range control) */
.sr-only {
  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;
}

/* Before/After slider */
.ba-wrap {
  margin: 12px 0 16px;
  display: block;
}
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1115;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ba-wrap, .ba-frame {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  filter: saturate(1.05) contrast(1.02);
}
.ba-before { opacity: 1; }
.ba-after { opacity: 1; transition: clip-path .18s ease; }

/* Handle & divider */
.ba-handle { position: absolute; inset: 0; pointer-events: none; }
.ba-bar {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.ba-grip {
  position: absolute; left: calc(50% - 18px); top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 4px 14px rgba(0,0,0,.35);
}
  
/* Captions */
.ba-captions {
  position: absolute; inset: 10px 10px auto 10px;
  display: flex; justify-content: space-between;
  pointer-events: none; font-size: 12px; font-weight: 600;
  color: #e7ebf7; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.ba-cap-left, .ba-cap-right {
  padding: 4px 8px; background: rgba(0,0,0,.35);
  border-radius: 999px; border: 1px solid rgba(255,255,255,.15);
}

/* Remove old visible range styling */
.ba-range { display: none !important; }

@media (max-width: 560px) {
  .ba-frame { border-radius: 12px; }
}

/* Step 1 vehicle options on a single row with icons */
.vehicle-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.vehicle-options::-webkit-scrollbar {
  height: 6px;
}

.vehicle-options::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

.vehicle-options .btn {
  width: auto;
  min-width: 200px;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 12px;
  padding-inline: 18px;
  scroll-snap-align: center;
  white-space: nowrap;
}

.vehicle-options .btn-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
}

.vehicle-options .btn-label {
  font-weight: 600;
}

@media (max-width: 540px) {
  .vehicle-options {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding-bottom: 0;
  }

  .vehicle-options .btn {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .step5-layout {
    flex-direction: column;
  }

  .step5-content {
    order: 1;
  }

  .step5-layout .final-image {
    order: 2;
    max-width: 100%;
    margin-top: 16px;
    margin-bottom: 1.5rem;
  }
}

#step-2 .btn.secondary {
  background: var(--brand);
  color: #131313;
  border-color: var(--brand);
}

#step-2 .btn.secondary:hover {
  background: var(--brand-2);
}

/* Floating call FAB */
.call-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand, #f59e0b);
  color: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1200;
  -webkit-tap-highlight-color: transparent;
}

.call-fab .fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.call-fab .fab-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.call-fab .fab-text {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.call-fab:focus {
  outline: none;
}

.call-fab:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 12px 26px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) {
  .call-fab:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
  }
}

.call-fab:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .call-fab,
  .call-fab:hover,
  .call-fab:active {
    transition: none;
    transform: none;
  }
}

@media (min-width: 768px) {
  .call-fab {
    width: 56px;
    height: 56px;
    gap: 2px;
  }

  .call-fab .fab-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 359px), print {
  .call-fab {
    display: none !important;
  }
}

body.fixed-footer-offset .call-fab {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
