/* Viking Diagnostics — shared styles */

:root {
  --clr-bg: #0b0e12;
  --clr-bg-alt: #12161c;
  --clr-card: #171c24;
  --clr-border: #262c36;
  --clr-text: #e9edf2;
  --clr-text-muted: #9aa4b2;
  --clr-accent: #d3a24b;      /* aged brass/gold, viking feel */
  --clr-accent-2: #6f8ba8;    /* cold steel blue */
  --clr-danger: #c25b4a;
  --clr-success: #5fa87a;
  --radius: 10px;
  --max-width: 1140px;
  --font-head: 'Cinzel', 'Sora', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
img, video { max-width: 100%; height: auto; }

body {
  margin: 0;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: var(--clr-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--clr-border);
  background: rgba(11, 14, 18, 0.96);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--clr-text);
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--clr-accent); }

/* Header right side: desktop nav + actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--clr-accent);
  text-decoration: none;
}
.header-order-btn {
  padding: 9px 18px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  white-space: nowrap;
}

/* Nav Desktop */
.nav {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px; /* Generous, clean spacing between Home, ECM Repair, Other Services, FAQ, Contact */
}
.nav-links a {
  color: var(--clr-text-muted);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 6px 4px;
  transition: color 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}
.nav-links a.active {
  color: var(--clr-accent);
  font-weight: 600;
}
.nav-mobile-header,
.nav-mobile-actions,
.nav-icon {
  display: none;
}

/* Nav Toggle Button */
.nav-toggle {
  display: none;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 102;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover {
  border-color: var(--clr-accent);
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Backdrop (Disabled: no dark overlay on mobile) */
.nav-backdrop {
  display: none !important;
}

/* Mobile Nav Drawer (< 920px) — Touch-First & Generously Spaced */
@media (max-width: 920px) {
  .header-inner {
    padding: 10px 16px;
  }
  .header-right {
    gap: 12px; /* Prevent header collision between Order button and hamburger */
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .header-phone {
    display: none;
  }
  .header-order-btn {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
  }
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: #0d121c;
    border-left: 1px solid var(--clr-border);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px 18px max(24px, env(safe-area-inset-bottom, 24px));
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
  }
  /* Remove the closed drawer from layout entirely. This is more robust than
     relying on an off-canvas transform when Android/Brave is zoomed out. */
  .nav:not(.open) {
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
  }
  .nav-mobile-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  .nav-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--clr-text-muted);
    font-size: 1.6rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  .nav-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--clr-accent);
  }

  /* Mobile Nav Links: Touch-optimized (min 48px), thumb-friendly spacing */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    min-height: 50px;
    border-radius: 10px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--clr-text);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(211, 162, 75, 0.3);
    color: var(--clr-accent);
    text-decoration: none;
  }
  .nav-links a.active {
    background: rgba(211, 162, 75, 0.14);
    border-color: rgba(211, 162, 75, 0.4);
    color: var(--clr-accent);
    font-weight: 700;
  }
  .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-mobile-actions .btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .nav-fb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    min-height: 48px;
    background: #1877f2;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
  }
  .nav-fb-link:hover {
    background: #166fe5;
    text-decoration: none;
  }
}

/* Extra compact mobile phones (< 420px) */
@media (max-width: 420px) {
  .header-inner {
    padding: 8px 12px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .header-order-btn {
    padding: 7px 11px !important;
    font-size: 0.78rem !important;
  }
}

/* ===== Fullscreen Hero (Zero Overlay, 100% Visible Photo) ===== */
.hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--clr-border);
}
.hero-fullscreen {
  position: relative;
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: flex-end;
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: cover;
  border-bottom: 2px solid var(--clr-border);
  padding: 32px 0;
  overflow: hidden;
}

.hero-banner {
  background-image: url('assets/viking-brand-banner.webp?v=20260916b');
  background-position: center 50%;
}

.hero-compact-bar {
  background: rgba(11, 14, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(211, 162, 75, 0.6);
  border-radius: 16px;
  padding: 28px 34px;
  max-width: 560px;
  margin-left: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.hero-compact-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 3px 0 10px;
  line-height: 1.2;
  color: #fff;
}

.hero-compact-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.hero-compact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-fullscreen {
    min-height: 75vh;
    padding: 16px 0;
  }
  .hero-compact-bar {
    padding: 16px 18px;
    margin: 0 12px;
    max-width: none;
    border-radius: 12px;
  }
  .hero-compact-title {
    font-size: 1.3rem;
    margin: 2px 0 6px;
  }
  .hero-compact-desc {
    font-size: 0.88rem;
    margin: 0 0 12px;
    line-height: 1.4;
  }
  .hero-compact-actions .btn {
    padding: 11px 20px !important;
    font-size: 0.9rem;
  }
}

.hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 12px;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-check {
  color: var(--clr-accent);
  font-weight: 800;
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--clr-accent); color: #17110a; }
.btn-primary:hover { background: #e2b664; }
.btn-outline { border-color: var(--clr-border); color: var(--clr-text); background: transparent; }
.btn-outline:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.btn-full { width: 100%; justify-content: center; }

/* ===== Sections ===== */
section { padding: 64px 0; }
.section-header { max-width: 680px; margin: 0 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem; color: var(--clr-accent-2); font-weight: 700; }
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }
.section-desc { color: var(--clr-text-muted); }

/* ===== Cards / grid ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 0; font-family: var(--font-head); font-size: 1.15rem; }

/* ===== Service / product cards ===== */
.service-card { display: flex; flex-direction: column; gap: 10px; }
.service-price { font-size: 1.4rem; font-weight: 700; color: var(--clr-accent); }
.service-price .was { font-size: 0.95rem; color: var(--clr-text-muted); text-decoration: line-through; font-weight: 400; margin-right: 8px; }
.badge { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 100px; background: rgba(95,168,122,0.15); color: var(--clr-success); font-weight: 700; }
.badge-priority { background: rgba(194,91,74,0.15); color: var(--clr-danger); }

/* ===== Shipping options ===== */
.ship-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ship-table th, .ship-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--clr-border); font-size: 0.92rem; }
.ship-table th { color: var(--clr-text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }

/* ===== Order status pill ===== */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--clr-border); color: var(--clr-text-muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clr-accent-2); }

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--clr-text-muted); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 7px; border: 1px solid var(--clr-border);
  background: var(--clr-bg-alt); color: var(--clr-text); font-family: inherit; font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--clr-accent); }
.form-status { min-height: 1.2em; font-size: 0.9rem; margin-top: 10px; }
.form-status.ok { color: var(--clr-success); }
.form-status.err { color: var(--clr-danger); }

/* ===== Order form ===== */
.checkout-page { min-height: 100vh; }
.checkout-page .site-header { position: relative; }
.checkout-page .hero { padding: 34px 0 28px; }
.checkout-page .hero h1 { margin-bottom: 8px; }
.checkout-page .hero .lead { max-width: 760px; margin: 0; }
.checkout-main { padding: 0 0 48px; }
.checkout-container { max-width: 1040px; }
.checkout-page #intakeForm { max-width: 1000px; margin: 0 auto; padding: 28px; }
.order-section {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.checkout-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.checkout-subsection {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.checkout-subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.checkout-subsection-note {
  margin: -5px 0 14px;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}
.checkout-price-hint {
  min-height: 1.25em;
  margin-top: 6px;
  color: var(--clr-accent);
  font-size: 0.82rem;
  font-weight: 700;
}
.mobile-order-summary {
  display: none;
}
.mobile-step > summary {
  list-style: none;
}
.mobile-step > summary::-webkit-details-marker {
  display: none;
}
.mobile-step-next {
  display: none;
}
.order-vehicle-section { font-size: 1rem; }
.order-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.order-section-kicker { display: block; color: var(--clr-accent); font-size: .85rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.order-section h2 { margin: 3px 0 0; color: #fff; font-size: 1.4rem; line-height: 1.25; }
.required-note { color: #dbeafe; font-size: .85rem; font-weight: 700; border: 1px solid rgba(147,197,253,.65); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.vehicle-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.vehicle-fields label, .lead-time-label label { margin-bottom: 7px; color: #e2e8f0; font-size: 1rem; }
.vehicle-fields input, .vehicle-fields select { min-height: 52px; font-size: 1rem; }
.lead-time-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.lead-time-label label { margin: 0; }
.lead-time-label span { color: #cbd5e1; font-size: .9rem; }
.lead-time-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-time-option { display: flex; align-items: center; gap: 12px; cursor: pointer; background: var(--clr-card); border: 2px solid var(--clr-border); border-radius: 8px; padding: 14px; transition: border-color .2s, background .2s; }
.lead-time-option:hover, .lead-time-option.is-selected { border-color: var(--clr-success); background: #1b2930; }
.lead-time-option.lead-time-priority:hover { border-color: #f59e0b; }
.lead-time-option input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--clr-success); }
.lead-time-option span { display: flex; flex-direction: column; gap: 2px; }
.lead-time-option strong { color: #fff; font-size: 1rem; }
.lead-time-option small { color: #cbd5e1; font-size: .88rem; }

#intakeForm label { line-height: 1.35; }
#intakeForm input, #intakeForm select { min-height: 48px; font-size: 16px; }

@media (max-width: 640px) {
  .checkout-page .hero { padding: 24px 0 20px; }
  .checkout-page #intakeForm { padding: 18px 14px; border-radius: 10px; }
  .vehicle-fields, .lead-time-options { grid-template-columns: 1fr; }
  .lead-time-label { display: block; }
  .lead-time-label span { display: block; margin-top: -2px; }
  .order-section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 768px) {
  body.checkout-page {
    background: var(--clr-bg);
  }
  .checkout-page .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .checkout-page .header-inner {
    min-height: 60px;
    padding: 8px 14px;
  }
  .checkout-page .logo {
    gap: 8px;
    font-size: 1rem;
  }
  .checkout-page .logo-img {
    width: 34px;
    height: 34px;
  }
  .checkout-page .hero {
    padding: 12px 14px 14px !important;
    border-bottom: 1px solid var(--clr-border);
  }
  .checkout-page .hero .container {
    padding: 0;
  }
  .checkout-page .hero h1 {
    font-size: 1.45rem !important;
    line-height: 1.2;
    margin: 8px 0 0 !important;
  }
  .checkout-page .hero-tag {
    margin-top: 10px !important;
    font-size: 0.72rem;
  }
  .checkout-page .checkout-trust {
    display: none !important;
  }
  .mobile-order-summary {
    position: sticky;
    top: 60px;
    z-index: 40;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    background: #111820;
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  }
  .mobile-order-summary div {
    min-width: 0;
  }
  .mobile-order-summary strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .mobile-order-summary small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--clr-text-muted);
    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-order-summary > strong {
    flex: 0 0 auto;
    color: var(--clr-accent);
    font-size: 1.1rem;
  }
  .checkout-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .checkout-main {
    padding: 0;
  }
  .checkout-page #intakeForm {
    max-width: none;
    padding: 0 14px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .checkout-page #intakeForm > #formStatus {
    margin: 14px 0 !important;
  }
  .checkout-page .order-section,
  .checkout-page .checkout-card {
    margin: 0;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--clr-border);
    border-radius: 0;
    background: transparent;
  }
  .checkout-page .mobile-step > summary {
    min-height: 40px;
    gap: 12px;
    flex-direction: row !important;
    align-items: center !important;
  }
  .checkout-page .mobile-step > summary > div {
    min-width: 0;
  }
  .checkout-page .mobile-step > summary h2 {
    font-size: 1.12rem;
  }
  .checkout-page .mobile-step > summary .required-note {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .checkout-page .mobile-step[open] > summary {
    margin-bottom: 18px !important;
  }
  .checkout-page input,
  .checkout-page select,
  .checkout-page textarea {
    min-height: 48px;
    border-radius: 12px;
    border-color: #3a4552;
    background: #171d25;
  }
  .checkout-page .form-row-responsive,
  .checkout-page .city-state-zip-grid {
    gap: 14px;
  }
  .checkout-page .lead-time-options {
    gap: 10px;
  }
  .checkout-page .lead-time-option {
    min-height: 64px;
    padding: 12px;
    border-radius: 12px;
  }
  .checkout-page .checkout-subsection {
    margin-top: 22px;
    padding-top: 18px;
  }
  .checkout-page .checkout-subsection-heading {
    font-size: 0.98rem;
  }
  .checkout-page .checkout-price-hint {
    font-size: 0.78rem;
  }
  .checkout-page .mobile-step-next {
    min-height: 50px;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: var(--clr-accent);
    color: #17110a;
    box-shadow: 0 6px 16px rgba(211, 162, 75, 0.18);
  }
  .checkout-page .mobile-step-next:active,
  .checkout-page .mobile-step-next:focus-visible {
    background: #e3b967;
  }
  .checkout-page .order-total-summary {
    margin: 0;
    padding: 19px 0;
    border: 0;
    border-bottom: 1px solid var(--clr-border);
    border-radius: 0;
    background: transparent !important;
  }
  .checkout-page .order-total-summary > div:last-child {
    text-align: left !important;
  }
  .checkout-page .checkout-reassurance {
    margin: 0;
    padding: 16px 0;
    border: 0 !important;
    border-bottom: 1px solid var(--clr-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .checkout-page .order-actions {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 18px;
  }
  .checkout-page .order-actions > * {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }
  .checkout-page .order-actions .btn-primary {
    order: -1;
  }
  .checkout-page .site-footer {
    padding: 28px 14px;
  }
  .mobile-step {
    padding: 14px;
  }
  .mobile-step > summary {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
  }
  .mobile-step > summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--clr-accent);
    font-size: 1.6rem;
    line-height: 1;
    margin-left: auto;
  }
  .mobile-step[open] > summary {
    margin-bottom: 16px !important;
  }
  .mobile-step[open] > summary::after {
    content: '−';
  }
  .checkout-card {
    padding: 14px;
  }
  .mobile-step-next {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--clr-accent);
    border-radius: 8px;
    background: rgba(211, 162, 75, 0.12);
    color: var(--clr-accent);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-step-next:active,
  .mobile-step-next:focus-visible {
    background: var(--clr-accent);
    color: #17110a;
  }
  .checkout-page .order-section h2 {
    font-size: 1.2rem;
  }
}

/* ===== Sticky Mobile Bottom Bar ===== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  body:not(.no-mobile-bar) {
    padding-bottom: 68px; /* Prevents sticky bar from hiding page content/footers */
  }
  .mobile-bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(11, 14, 18, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--clr-border);
    z-index: 45;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  }
  .mob-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--clr-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s, color 0.15s;
    user-select: none;
  }
  .mob-bar-btn:active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-accent);
    text-decoration: none;
  }
  .mob-bar-btn:hover {
    text-decoration: none;
  }
  .mob-bar-icon {
    font-size: 1.15rem;
    line-height: 1;
  }
  .mob-bar-order {
    background: var(--clr-accent);
    color: #17110a !important;
    font-weight: 700;
    font-size: 0.8rem;
    border-right: none;
  }
  .mob-bar-order .mob-bar-icon {
    font-size: 1rem;
  }
  .mob-bar-order:active {
    background: #e2b664;
  }
}

/* ===== How Mail-In Repair Works (3-Step Cards) ===== */
.how-it-works-section {
  padding: 64px 0;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .how-it-works-section {
    padding: 44px 0;
  }
}
.how-step-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.how-step-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(211, 162, 75, 0.15);
  color: var(--clr-accent);
  border: 1px solid rgba(211, 162, 75, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
}
.how-step-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.how-step-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 8px;
}
.how-step-card p {
  color: var(--clr-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ===== Supported Models Selector Grid ===== */
.models-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.model-quick-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.model-quick-card:hover {
  border-color: var(--clr-accent);
  background: #1b212b;
  text-decoration: none;
  transform: translateY(-2px);
}
.model-quick-info strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}
.model-quick-info span {
  display: block;
  color: var(--clr-text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}
.model-quick-price {
  text-align: right;
  flex-shrink: 0;
}
.model-quick-price .price-tag {
  display: block;
  color: var(--clr-accent);
  font-weight: 800;
  font-size: 1.05rem;
}
.model-quick-price .price-cta {
  display: block;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Responsive grid helper for promo / quantity */
.form-row-responsive {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  align-items: center;
}
@media (max-width: 600px) {
  .form-row-responsive {
    grid-template-columns: 1fr !important;
  }
}

.city-state-zip-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .city-state-zip-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--clr-border); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--clr-accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--clr-text-muted); margin: 12px 0 0; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--clr-border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--clr-text-muted); }
.social-links a:hover { color: var(--clr-accent); }
.footer-copyright { color: var(--clr-text-muted); font-size: 0.85rem; }

/* ===== Utility ===== */
.text-muted { color: var(--clr-text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===== Checkout blueprint: light repair intake + separate secure checkout ===== */
body.checkout-light {
  background: #f4f6f8;
  color: #1a1a1a;
}
.checkout-light .site-header {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}
.checkout-secure-badge {
  display: none;
}
.checkout-light .logo-text,
.checkout-light .header-phone {
  color: #1a1a1a;
}
.checkout-light .nav-toggle .bar {
  background: #ffffff;
}
.checkout-light .hero {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
  color: #1a1a1a;
}
.checkout-light .hero h1 {
  color: #1a1a1a !important;
}
.checkout-light .hero-tag {
  color: #64748b;
}
.checkout-light .hero a {
  color: #2563eb !important;
}
.checkout-light .checkout-main {
  background: #f4f6f8;
}
.checkout-light #intakeForm {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}
.checkout-light .order-vehicle-section {
  background: #ffffff !important;
  border: 1px solid #dfe5ec !important;
  color: #1a1a1a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.checkout-light .order-vehicle-section h2,
.checkout-light .order-vehicle-section .checkout-subsection-heading {
  color: #111827 !important;
}
.checkout-light .order-vehicle-section label,
.checkout-light .order-vehicle-section .lead-time-label span,
.checkout-light .order-vehicle-section > div > div > div,
.checkout-light .order-vehicle-section #leadTimeSection > div:last-child {
  color: #475569 !important;
}
.checkout-light .order-vehicle-section input,
.checkout-light .order-vehicle-section select,
.checkout-light .order-vehicle-section textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1a1a1a !important;
}
.checkout-light .order-vehicle-section input::placeholder {
  color: #94a3b8 !important;
}
.checkout-light .order-vehicle-section .lead-time-option {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
.checkout-light .order-vehicle-section .lead-time-option strong {
  color: #111827 !important;
}
.checkout-light .order-vehicle-section .lead-time-option small {
  color: #64748b !important;
}
.checkout-light .checkout-light-step {
  background: #ffffff !important;
  border: 1px solid #dfe5ec !important;
  color: #1a1a1a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.checkout-light .checkout-light-step > summary h2 {
  color: #111827 !important;
}
.checkout-light .checkout-light-step .order-section-kicker {
  color: #9a6a18;
}
.checkout-light .checkout-light-step .checkout-subsection {
  border-top-color: #e5e7eb;
}
.checkout-light .checkout-light-step .checkout-subsection-heading {
  color: #111827;
}
.checkout-light .checkout-light-step .checkout-subsection-note,
.checkout-light .checkout-light-step label {
  color: #475569 !important;
}
.checkout-order-summary {
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
}
.checkout-order-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #111827;
  font-size: 1.05rem;
}
.checkout-edit-step,
.checkout-summary-edit {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.checkout-edit-step {
  display: block;
  padding: 0;
  margin: 0 0 14px;
  color: #2563eb;
  font-size: 0.9rem;
}
.checkout-summary-primary {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}
.checkout-summary-secondary {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.86rem;
}
.checkout-price-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dbe3ec;
}
.checkout-price-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #475569;
  font-size: 0.9rem;
}
.checkout-price-lines strong {
  color: #1a1a1a;
  white-space: nowrap;
}
.checkout-discount-line strong {
  color: #047857;
}
.checkout-total-line {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
  font-size: 1rem !important;
  font-weight: 800;
}
.checkout-total-line strong {
  color: #9a6a18 !important;
  font-size: 1.25rem;
}
.checkout-step-note {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
}
.checkout-light .checkout-light-step input,
.checkout-light .checkout-light-step select,
.checkout-light .checkout-light-step textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1a1a1a !important;
}
.checkout-light .checkout-light-step input::placeholder {
  color: #94a3b8;
}
.checkout-light .checkout-light-step .checkout-order-summary {
  background: #f8fafc;
  border-color: #dbe3ec;
}
.checkout-light .checkout-light-step .checkout-edit-step,
.checkout-light .checkout-light-step .checkout-summary-edit {
  color: #2563eb;
}
.checkout-light .checkout-light-step .checkout-price-lines {
  border-top-color: #dbe3ec;
}
.checkout-light .checkout-light-step .checkout-price-lines > div {
  color: #475569;
}
.checkout-light .checkout-light-step .checkout-price-lines strong {
  color: #1a1a1a;
}
.checkout-light .checkout-light-step .checkout-price-lines .checkout-discount-line strong {
  color: #047857;
}
.checkout-light .checkout-light-step .checkout-total-line {
  border-top-color: #cbd5e1;
}
.checkout-light .checkout-light-step .checkout-total-line span,
.checkout-light .checkout-light-step .checkout-total-line strong {
  color: #111827;
}
.checkout-light .checkout-promo-details {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}
.checkout-light .checkout-promo-details summary {
  cursor: pointer;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}
.checkout-light .checkout-promo-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.checkout-light .checkout-promo-row input {
  flex: 1;
  min-width: 0;
}
.checkout-light .checkout-promo-row .btn-outline {
  min-height: 48px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #ffffff;
  color: #2563eb;
  font-weight: 800;
}
.checkout-light .checkout-next-steps {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #efd28a;
  border-radius: 12px;
  background: #fffbeb;
  color: #4a3a15;
}
.checkout-light .checkout-next-steps strong {
  color: #3f2f0a;
}
.checkout-light .checkout-next-steps ol {
  margin: 8px 0 0 20px;
  padding: 0;
  line-height: 1.6;
}
.checkout-light .checkout-reassurance {
  background: #f8fafc !important;
  border-color: #dbe3ec !important;
}
.checkout-light .checkout-reassurance > div {
  color: #334155 !important;
}
.checkout-light .checkout-reassurance a {
  color: #2563eb !important;
}
.checkout-light .checkout-reassurance span {
  color: #94a3b8 !important;
}
.checkout-light .order-actions > a {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
.checkout-light .mobile-order-summary {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}
.checkout-light .mobile-order-summary strong:first-child {
  color: #111827;
}
.checkout-light .mobile-order-summary small {
  color: #64748b;
}
.checkout-light .site-footer {
  background: #ffffff;
  border-top-color: #e5e7eb;
}
.checkout-light .site-footer a,
.checkout-light .footer-copyright {
  color: #64748b;
}

.checkout-light .mobile-step-next {
  display: flex !important;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #b7791f;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(183, 121, 31, 0.2);
}
.checkout-light .mobile-step-next:hover,
.checkout-light .mobile-step-next:focus-visible {
  background: #996515;
}
.checkout-light .checkout-step-note {
  color: #64748b;
}

/* Step 2 is a separate checkout view, so the customer gets a clean Shopify-style
   transition instead of seeing the repair form and payment form as one long page. */
.checkout-light:not(.checkout-view-payment) #detailsStepSection {
  display: none !important;
}
.checkout-view-payment {
  background: #ffffff;
}
.checkout-view-payment .site-header {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}
.checkout-view-payment .header-phone,
.checkout-view-payment .nav-toggle,
.checkout-view-payment .nav,
.checkout-view-payment #checkoutHero,
.checkout-view-payment #mobileOrderSummary,
.checkout-view-payment #modelStepSection {
  display: none !important;
}
.checkout-view-payment .checkout-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}
.checkout-view-payment #checkoutMain {
  background: #ffffff;
  padding: 0 0 48px;
}
.checkout-view-payment .checkout-container {
  max-width: 760px;
}
.checkout-view-payment #intakeForm {
  max-width: 760px !important;
  padding: 24px 0 48px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.checkout-view-payment #detailsStepSection {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.checkout-view-payment #detailsStepSection > summary {
  display: block !important;
  margin-bottom: 18px !important;
  pointer-events: none;
}
.checkout-view-payment #detailsStepSection > summary::after {
  display: none !important;
}
.checkout-view-payment .checkout-edit-step {
  margin-bottom: 18px;
}
.checkout-view-payment .checkout-order-summary {
  background: #f8fafc;
}

@media (max-width: 768px) {
  .checkout-light .order-vehicle-section {
    border: 1px solid #dfe5ec !important;
  }
  .checkout-view-payment .header-inner {
    min-height: 60px;
    padding: 8px 14px;
  }
  .checkout-view-payment .checkout-secure-badge {
    font-size: 0.72rem;
  }
  .checkout-view-payment #checkoutMain {
    padding: 0 14px 28px;
  }
  .checkout-view-payment #intakeForm {
    padding: 20px 0 36px !important;
  }
  .checkout-view-payment .checkout-light-step > summary h2 {
    font-size: 1.3rem;
  }
  .checkout-view-payment .checkout-light-step {
    scroll-margin-top: 0;
  }
}

@media (max-width: 768px) {
  .checkout-light .mobile-step {
    scroll-margin-top: 124px;
  }
  .checkout-light .order-vehicle-section,
  .checkout-light .checkout-light-step {
    margin: 14px 0 !important;
    padding: 20px 14px !important;
    border-radius: 14px !important;
  }
  .checkout-light .checkout-light-step {
    border: 1px solid #dfe5ec !important;
  }
  .checkout-light .checkout-page .hero {
    background: #ffffff;
  }
  .checkout-light .checkout-promo-row {
    flex-direction: column;
  }
}

/* ===== Footer cleanup ===== */
.site-footer {
  padding: 28px 0;
  margin-top: 48px;
}
.footer-inner {
  min-width: 0;
  row-gap: 16px;
}
.footer-inner > div:first-child {
  min-width: 0;
}
.footer-copyright {
  margin: 0;
  line-height: 1.5;
}
.social-links {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-width: 0;
}
.social-links a {
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 28px 14px;
    margin-top: 32px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .footer-inner > div:first-child {
    width: 100%;
    align-items: flex-start !important;
  }
  .footer-inner > div:first-child .footer-copyright {
    flex: 1;
    min-width: 0;
  }
  .social-links {
    width: 100%;
    justify-content: flex-start;
    padding-top: 14px;
    border-top: 1px solid var(--clr-border);
    gap: 10px 14px;
    font-size: 0.85rem;
  }
}
