/* ==========================================================================
   Highland Quote Builder V2 — Dirty Birdy Powersports
   Dark automotive configurator theme
   ========================================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg: #08080a;
  --surface: #0e0e10;
  --surface-2: #141416;
  --surface-3: #1a1a1c;
  --border: #1a1a1c;
  --border-light: #2a2a2e;
  --text: #e8e6e3;
  --text-muted: #8a8a8e;
  --text-dim: #5a5a5e;
  --gold: #cf9b32;
  --gold-hover: #dbb85e;
  --gold-dim: rgba(207, 155, 50, 0.15);
  --gold-dimmer: rgba(207, 155, 50, 0.08);
  --red: #e53e3e;
  --green: #38a169;

  /* Typography */
  --font-body: 'Barlow', system-ui, -apple-system, sans-serif;
  --font-ui: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Layout */
  --max-w: 640px;
  --header-h: 56px;
  --step-nav-h: 48px;
  --bar-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--step-nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--bar-h) + 24px);
  overflow-x: hidden;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--gold);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* SR only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.header-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.dealer-badge {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-phone {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.header-phone:hover { color: var(--gold-hover); }

/* ---------- STEP NAV ---------- */
.step-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--step-nav-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.step-nav::-webkit-scrollbar { display: none; }

.step-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-2);
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
}

.step-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--space-3);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.step-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.step-tab:hover { color: var(--text-muted); }
.step-tab.active { color: var(--gold); }
.step-tab.active::after { transform: scaleX(1); }
.step-tab.visited { color: var(--text-muted); }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.step-tab.active .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.step-tab.visited .step-num {
  background: var(--border-light);
  border-color: var(--border-light);
  color: var(--text);
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  padding: var(--space-6) 0 var(--space-12);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------- SECTION HEADINGS ---------- */
.section-heading {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.build-section {
  margin-bottom: var(--space-12);
}

/* ---------- MODEL CARDS ---------- */
.model-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.model-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  font-family: inherit;
  color: var(--text);
}

.model-card:hover { border-color: var(--border-light); background: var(--surface-2); }
.model-card.selected { border-color: var(--gold); background: var(--gold-dimmer); }

.model-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.model-badge.bestseller {
  background: var(--gold-dim);
  color: var(--gold);
}

.model-badge.crewcab {
  background: rgba(56, 161, 105, 0.15);
  color: #68d391;
}

.model-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.model-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.model-tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: var(--space-3);
}

.model-price-block {
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}

.model-msrp {
  display: block;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.model-card.selected .model-msrp { color: var(--gold); }

.model-price-breakdown {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ---------- HERO IMAGE ---------- */
.hero-image-wrap {
  margin-bottom: var(--space-4);
  background: radial-gradient(ellipse at center bottom, rgba(207,155,50,0.06) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  padding: var(--space-4) 0;
}

.hero-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  max-width: 560px;
  margin: 0 auto;
}

.hero-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-img.active { opacity: 1; }

/* ---------- QUICK SPECS ---------- */
.quick-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.spec-item {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spec-sep {
  color: var(--text-dim);
  font-size: 10px;
}

/* ---------- COLOR SWATCHES ---------- */
.color-swatches {
  display: flex;
  gap: var(--space-3);
  border: none;
}

.color-swatch {
  flex: 1;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  color: var(--text);
}

.color-swatch:hover { border-color: var(--border-light); }
.color-swatch.selected { border-color: var(--gold); background: var(--gold-dimmer); }

.swatch-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.swatch-camo {
  background-image: repeating-conic-gradient(#4a5a3a 0% 25%, #3a4a2a 25% 50%, #5a6a4a 50% 75%, #4a5a3a 75%) !important;
  background-size: 8px 8px;
}

.swatch-name {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.swatch-price {
  font-size: 11px;
  color: var(--text-dim);
}

.color-swatch.selected .swatch-price { color: var(--gold); }

/* ---------- INSTALL TOGGLE ---------- */
.install-toggle-wrap {
  margin-bottom: var(--space-5);
}

.install-toggle {
  display: inline-flex;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.install-btn {
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.install-btn.active {
  background: var(--gold);
  color: #000;
}

.install-note {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- PROMO CODE ---------- */
.promo-wrap {
  margin-bottom: var(--space-5);
}

.promo-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-1);
}

.promo-input-row {
  display: flex;
  gap: var(--space-2);
  max-width: 320px;
}

.promo-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

.promo-input:focus {
  border-color: var(--gold);
  outline: none;
}

.promo-apply {
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.promo-apply:hover { background: var(--border); }

.promo-msg {
  font-size: 12px;
  margin-top: var(--space-1);
  min-height: 18px;
}
.promo-msg.success { color: var(--green); }
.promo-msg.error { color: var(--red); }

.shipping-note {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-5);
}

/* ---------- ACCESSORIES ---------- */
.acc-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--surface);
}

.acc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.acc-category-header:hover { background: var(--surface-2); }

.acc-category-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.acc-count {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
}

.acc-count.visible { display: inline-block; }

.acc-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--text-dim);
}

.acc-category.open .acc-chevron {
  transform: rotate(180deg);
}

.acc-items {
  display: none;
  padding: 0 var(--space-4) var(--space-3);
}

.acc-category.open .acc-items { display: block; }

/* Accessory Item */
.acc-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.acc-item:last-child { border-bottom: none; }

.acc-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.acc-item.selected .acc-checkbox,
.acc-upgrade.selected .acc-checkbox {
  border-color: var(--gold);
  background: var(--gold);
}

.acc-checkbox-icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.15s;
}

.acc-item.selected .acc-checkbox-icon,
.acc-upgrade.selected .acc-checkbox-icon { opacity: 1; }

.acc-item-info {
  flex: 1;
  min-width: 0;
}

.acc-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.acc-item-labor {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.acc-item-price {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.acc-item.selected .acc-item-price,
.acc-upgrade.selected .acc-item-price { color: var(--gold); }

/* Upgrade sub-item */
.acc-upgrade {
  margin-left: 34px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  display: none;
  cursor: pointer;
  align-items: center;
  gap: var(--space-3);
  transition: opacity 0.2s;
}

.acc-upgrade:hover { opacity: 0.85; }
.acc-upgrade.visible { display: flex; }

.acc-upgrade .acc-item-name { font-size: 13px; color: var(--text-muted); }
.acc-upgrade .acc-item-name::before { content: '↳ '; color: var(--text-dim); }

/* ---------- PROTECTION PLANS ---------- */
.protection-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.protection-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  color: var(--text);
}

.protection-card:hover { border-color: var(--border-light); }
.protection-card.selected { border-color: var(--gold); background: var(--gold-dimmer); }

.plan-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.protection-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.protection-card.selected .radio-circle { border-color: var(--gold); }

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.15s;
}

.protection-card.selected .radio-dot { opacity: 1; }

.protection-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.protection-price {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.protection-card.selected .protection-price { color: var(--gold); }

.protection-brief {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.protection-details {
  display: none;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

.protection-details.open { display: block; }

.protection-details ul {
  list-style: none;
  padding: 0;
}

.protection-details li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.protection-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}

.details-toggle {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: var(--space-2) 0 0;
  transition: color 0.2s;
}
.details-toggle:hover { color: var(--gold-hover); }

/* ---------- PAYMENT ---------- */
.payment-toggle {
  display: inline-flex;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.pay-tab {
  padding: 10px 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.pay-tab.active {
  background: var(--gold);
  color: #000;
}

.payment-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.term-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border: none;
}

.term-btn {
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.term-btn:hover { border-color: var(--border-light); color: var(--text); }
.term-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dimmer); }

.down-payment-row {
  margin-bottom: var(--space-5);
}

.field-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.input-prefix-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 200px;
}

.input-prefix-wrap:focus-within { border-color: var(--gold); }

.input-prefix {
  padding: 0 0 0 12px;
  color: var(--text-dim);
  font-size: 14px;
}

.input-prefix-wrap .field-input {
  border: none;
  background: transparent;
  padding-left: 4px;
}
.input-prefix-wrap .field-input:focus { outline: none; }

.field-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s;
}

.field-input:focus { border-color: var(--gold); outline: none; }
.field-input::placeholder { color: var(--text-dim); }

/* Remove number input spinners */
.field-input[type="number"] { -moz-appearance: textfield; }
.field-input[type="number"]::-webkit-inner-spin-button,
.field-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.monthly-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--gold-dimmer);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.monthly-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.monthly-amount {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.payment-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Cash panel */
.cash-total-block {
  text-align: center;
  padding: var(--space-6) 0;
}

.cash-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.cash-amount {
  font-family: var(--font-ui);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}

/* ---------- BUILD SUMMARY ---------- */
.build-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.summary-section {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.summary-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.summary-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-1);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 2px 0;
  font-size: 13px;
}

.summary-line-name { color: var(--text); }
.summary-line-price { color: var(--text-muted); font-family: var(--font-ui); font-weight: 600; white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-3);
  border-top: 1px solid var(--gold);
}

.summary-total-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.summary-total-price {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- LEAD FORM ---------- */
.lead-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: var(--space-4);
}

.required { color: var(--gold); }
.optional { color: var(--text-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }

.field-input.error { border-color: var(--red); }

.submit-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover { background: var(--gold-hover); }
.submit-btn:active { transform: scale(0.98); }

.form-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* ---------- SUCCESS STATE ---------- */
.success-state {
  text-align: center;
  padding: var(--space-8) 0;
}

.success-icon { margin-bottom: var(--space-4); }

.success-title {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--gold);
}

.success-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.success-summary {
  text-align: left;
  margin-bottom: var(--space-6);
}

.book-call-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s;
}

.book-call-btn:hover { background: var(--gold-hover); }

.finance-apply-btn {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s;
  margin-top: 10px;
}

.finance-apply-btn:hover {
  background: rgba(207, 155, 50, 0.1);
  color: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* ---------- STICKY BOTTOM BAR ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
}

.sticky-bar-fade {
  height: 24px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  min-height: var(--bar-h);
  position: relative;
  z-index: 2;
}

/* Full-width background behind bar */
.sticky-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bar-h) + 24px);
  background: linear-gradient(to bottom, transparent 0%, var(--surface) 24px, var(--surface) 100%);
  border-top: none;
  z-index: 0;
  pointer-events: none;
}

.sticky-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 1;
}

.sticky-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sticky-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sticky-total {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sticky-summary {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  flex-shrink: 0;
}

.sticky-monthly {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.sticky-cta {
  padding: 10px 18px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.sticky-cta:hover { background: var(--gold-hover); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  :root {
    --header-h: 52px;
  }

  .header-logo img { height: 28px; }
  .dealer-badge { font-size: 9px; }
  .header-phone { font-size: 12px; }

  .model-cards {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .model-card {
    padding: var(--space-3);
  }

  .model-msrp { font-size: 20px; }

  .color-swatches {
    gap: var(--space-2);
  }

  .swatch-circle {
    width: 32px;
    height: 32px;
  }

  .monthly-amount { font-size: 24px; }

  .cash-amount { font-size: 32px; }

  .sticky-total { font-size: 18px; }
  .sticky-cta { padding: 8px 14px; font-size: 11px; }
}

@media (min-width: 481px) {
  .model-tagline { display: block; }
}

/* ---------- SUCCESS STATE — BOOK A CALL CARD ---------- */
.book-call-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.book-call-phone {
  font-size: 14px;
  color: var(--text-muted);
}

.book-call-tel {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.book-call-tel:hover { color: var(--gold-hover); }

.success-continue {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.success-continue:hover { color: var(--text-muted); }

/* ---------- SOFT EMAIL CAPTURE BAR ---------- */
.soft-capture-bar {
  position: relative;
  background: rgba(207, 155, 50, 0.06);
  border: 1px solid rgba(207, 155, 50, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  /* hidden by default, slide-down on reveal */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-bottom 0.4s ease;
  /* collapsed: no bottom margin */
  margin-bottom: 0;
}

.soft-capture-bar.soft-capture-visible {
  max-height: 120px;
  opacity: 1;
  margin-bottom: var(--space-6);
}

.soft-capture-bar.soft-capture-dismissed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.soft-capture-dismiss {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.soft-capture-dismiss:hover { color: var(--text-muted); }

.soft-capture-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.soft-capture-label {
  font-size: 13px;
  color: var(--text);
  padding-right: var(--space-6);
}

.soft-capture-input-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.soft-capture-email {
  flex: 1;
  padding: 9px 12px;
  font-size: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
}
.soft-capture-email:focus { border-color: var(--gold); outline: none; }
.soft-capture-email.error { border-color: var(--red); }

.soft-capture-save {
  padding: 9px 18px;
  background: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.soft-capture-save:hover {
  background: var(--gold);
  color: #000;
}

.soft-capture-success {
  display: none;
  align-items: center;
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
  gap: var(--space-2);
}

/* ---------- EXIT-INTENT BOTTOM SHEET ---------- */
.exit-intent-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #111113;
  border-top: 2px solid var(--gold);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
}

.exit-intent-sheet.exit-sheet-visible {
  transform: translateY(0);
}

.exit-sheet-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-8);
  position: relative;
}

.exit-sheet-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.exit-sheet-close:hover { color: var(--text-muted); }

.exit-sheet-heading {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-1);
}

.exit-sheet-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.exit-sheet-form {
  width: 100%;
}

.exit-sheet-input-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.exit-sheet-email {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text);
}
.exit-sheet-email:focus { border-color: var(--gold); outline: none; }
.exit-sheet-email.error { border-color: var(--red); }

.exit-sheet-save {
  padding: 10px 20px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.exit-sheet-save:hover { background: var(--gold-hover); }

/* ---------- TOAST NOTIFICATION ---------- */
.hs-toast {
  position: fixed;
  bottom: calc(var(--bar-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  z-index: 300;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hs-toast--error { border-color: var(--red); color: var(--text); }
.hs-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ---------- SUBMIT BUTTON LOADING STATE ---------- */
.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- ACCESSORY ITEM SUBTITLE DESC ---------- */
.acc-item-desc {
  display: block;
  font-size: 11px;
  color: #3a3a3a;
  margin-top: 2px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- ACCESSORY INFO BUTTON ---------- */
.acc-info-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #333;
  background: none;
  color: #555;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-top: 1px;
}

.acc-info-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- DETAIL DRAWER OVERLAY ---------- */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.detail-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- DETAIL DRAWER ---------- */
.detail-drawer {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: #111113;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2e transparent;
}

.detail-drawer::-webkit-scrollbar { width: 4px; }
.detail-drawer::-webkit-scrollbar-track { background: transparent; }
.detail-drawer::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 4px; }

.detail-drawer--open {
  transform: translateY(0);
}

/* Drag handle */
.drawer-handle {
  width: 36px;
  height: 4px;
  background: #3a3a3e;
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Close button */
.drawer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  z-index: 1;
}
.drawer-close:hover { color: var(--text-muted); }

/* Images */
.drawer-images {
  width: 100%;
  height: 200px;
  background: #0a0a0c;
  margin-top: 8px;
  overflow: hidden;
}

.drawer-images--scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  height: 200px;
}
.drawer-images--scroll::-webkit-scrollbar { display: none; }

.drawer-img {
  height: 200px;
  width: auto;
  min-width: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.drawer-img--single {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

/* Body content */
.drawer-body {
  padding: 20px 20px 32px;
}

.drawer-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.drawer-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Price block */
.drawer-price-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: rgba(207, 155, 50, 0.06);
  border: 1px solid rgba(207, 155, 50, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.drawer-price-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 4px;
}

.drawer-price-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.drawer-price-amount {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}

.drawer-price-breakdown {
  font-size: 12px;
  color: var(--text-dim);
}

.drawer-promo-strike {
  text-decoration: line-through;
  margin-right: 3px;
}

.drawer-promo-free {
  color: var(--green);
  font-weight: 600;
}

/* Add to Build / Remove button */
.drawer-add-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.drawer-add-btn:hover { background: var(--gold-hover); }
.drawer-add-btn:active { transform: scale(0.98); }

.drawer-add-btn--remove {
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.drawer-add-btn--remove:hover {
  background: var(--border);
  color: var(--text);
}
