/* =============================================================================
   WIZARD V4 — Stitch Design System
   Brand colour controlled entirely by --uw-primary below.
   Each garage overrides this one variable in their Webflow embed.
   ============================================================================= */

/* === ROOT: TENANT COLOUR + STITCH SURFACE TOKENS === */
:root {
  /* ── TENANT BRAND ── override --uw-primary + --uw-primary-rgb per garage ── */
  --uw-primary:             #FA8700;   /* Maxamy amber-orange — the single tenant override point */
  --uw-primary-dark:        #d97000;   /* darker amber — gradient end; update when overriding primary */

  /* ── CTA ROLE — defaults to primary; separable for advanced tenants ── */
  --uw-cta:                 var(--uw-primary);
  --uw-cta-dark:            var(--uw-primary-dark);
  /* Contrast rule: white on #FA8700 = 2.46:1 (FAIL). Dark text on light primaries. */
  --uw-cta-text:            var(--uw-on-surface);  /* dark text for orange CTAs */

  /* ── SURFACE SCALE — light mode, white-dominant ── */
  --uw-surface:             #f7f9fb;   /* page bg — barely-blue tint (clean, clinical) */
  --uw-surface-low:         #f2f4f6;   /* section bg, sidebar, inactive cards */
  --uw-surface-lowest:      #eff1f3;   /* deepest surface bg for nested elements */
  --uw-surface-mid:         #eceef0;   /* dividers, inner borders */
  --uw-surface-high:        #e6e8ea;   /* raised elements, icon chips */
  --uw-surface-top:         #e0e3e5;   /* strongest inactive surface */
  --uw-white:               #ffffff;   /* pure white for active cards */

  /* ── SELECTED STATE ── */
  --uw-selected-bg:         #fef9f0;   /* white + faint amber tint for selected cards */

  /* ── TEXT SCALE ── */
  --uw-on-surface:          #191c1e;   /* near-black, primary body text */
  --uw-on-variant:          #444653;   /* medium dark, secondary headings */
  --uw-on-surface-variant:  #444653;   /* alias — some components use this name */
  --uw-secondary:           #515f74;   /* slate, meta text + descriptions */
  --uw-outline:             #6a6b7a;   /* label text (was #757684 — darkened to 5.25:1 on white) */
  --uw-outline-var:         #c4c5d5;   /* light borders, placeholders */

  /* ── SUCCESS / TRUST / GUARANTEE — fixed semantic green (not tenant-branded) ──
     Rationale: green = verified, safe, included. Universal trust signal.
     Used for: guarantee badges, feature ticks, price-lock, verified icons.
     #1a7a49 = 5.36:1 on white; 4.75:1 on success-bg. WCAG AA. */
  --uw-success:             #1a7a49;
  --uw-success-bg:          #f0faf5;   /* very light mint for success badge bg */

  /* ── ERROR ── */
  --uw-error:               #ba1a1a;
  --uw-error-bg:            #fff8f8;
  --uw-error-bg-alt:        #fff5f5;

  /* ── UK REGISTRATION PLATE — authentic heraldic colours, do not override ── */
  --uw-reg-yellow:          #FFD300;
  --uw-reg-blue:            #003399;
  --uw-plate-border:        #1a1a1a;
  --uw-plate-inner:         #000000;
  --uw-flag-bg:             #012169;

  /* ── LAYOUT ── */
  --uw-sidebar-w:           256px;

  /* ── RGB CHANNELS — enables rgba(var(--uw-X-rgb), alpha) pattern ── */
  --uw-primary-rgb:         250, 135, 0;   /* RGB of #FA8700 — update alongside --uw-primary */
  --uw-on-surface-rgb:      25, 28, 30;
  --uw-error-rgb:           186, 26, 26;
  --uw-outline-var-rgb:     196, 197, 213;
  --uw-success-rgb:         26, 122, 73;
  --uw-white-rgb:           255, 255, 255;
  --uw-black-rgb:           0, 0, 0;
}

/* === RESET === */
.v4-wrapper *,
.v4-wrapper *::before,
.v4-wrapper *::after { box-sizing: border-box; }
.v4-wrapper h1, .v4-wrapper h2, .v4-wrapper h3, .v4-wrapper h4 { margin: 0; padding: 0; }
.v4-wrapper p { margin: 0; padding: 0; }
.v4-wrapper button { cursor: pointer; font-family: 'Inter', sans-serif; }
.v4-wrapper a { color: var(--uw-primary); text-decoration: none; }
.v4-wrapper a:hover { text-decoration: underline; }

/* === WRAPPER LAYOUT === */
.v4-wrapper {
  display: flex;
  min-height: 600px;
  font-family: 'Inter', sans-serif;
  color: var(--uw-on-surface);
  background: var(--uw-surface);
  width: 100%;
}

/* === SIDEBAR === */
.v4-sidebar {
  width: var(--uw-sidebar-w);
  flex-shrink: 0;
  background: var(--uw-surface-low);
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 560px;
}

.v4-sidebar-header {
  padding: 0 24px 32px 24px;
}

.v4-sidebar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--uw-primary);
}

.v4-sidebar-sub {
  font-size: 10px;
  color: var(--uw-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.v4-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.v4-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--uw-secondary);
  opacity: 0.5;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

.v4-sidebar-item .material-symbols-outlined {
  font-size: 20px;
}

.v4-sidebar-item.active {
  background: var(--uw-white);
  color: var(--uw-primary);
  opacity: 1;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(var(--uw-black-rgb),0.07);
  font-weight: 600;
  border-left: 3px solid var(--uw-primary);
  cursor: default;
}

.v4-sidebar-item.reachable {
  opacity: 1;
  cursor: pointer;
}

.v4-sidebar-item.reachable:hover {
  background: var(--uw-white);
  color: var(--uw-on-surface);
  opacity: 1;
}

.v4-sidebar-item.active.reachable {
  cursor: pointer;
}

.v4-sidebar-item.active.reachable:hover {
  opacity: 0.8;
}

/* === MAIN CONTENT === */
.v4-main {
  flex: 1;
  padding: 48px 52px;
  min-width: 0;
}

/* === STEPS (show/hide) === */
.v4-step { display: none; }
.v4-step.active { display: block; }

/* === PROGRESS BAR === */
.v4-progress { margin-bottom: 40px; }

.v4-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.v4-progress-phase {
  font-size: 13px;
  font-weight: 700;
  color: var(--uw-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Poppins', sans-serif;
}

.v4-progress-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--uw-outline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.v4-progress-track {
  height: 6px;
  background: var(--uw-surface-top);
  border-radius: 999px;
  overflow: hidden;
}

.v4-progress-fill {
  height: 100%;
  background: var(--uw-primary);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* === STEP HEADER === */
.v4-step-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--uw-on-surface);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.v4-step-sub {
  font-size: 15px;
  color: var(--uw-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

.v4-vehicle-banner {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--uw-on-surface);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* === SERVICE TYPE GRID (Step 1) === */
.v4-type-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}
.v4-type-grid-1 { grid-template-columns: 1fr; max-width: 440px; }
.v4-type-grid-2 { grid-template-columns: repeat(2, 1fr); }
.v4-type-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v4-type-grid-4 { grid-template-columns: repeat(2, 1fr); }

.v4-type-card {
  background: var(--uw-white);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(var(--uw-on-surface-rgb),0.04);
}

/* Card with top image — overrides padding so image goes edge-to-edge */
.v4-type-card.v4-type-card-img-top {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.v4-type-card-photo {
  width: 100%;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}

.v4-type-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.v4-type-card-img-top:hover .v4-type-card-photo img {
  transform: scale(1.04);
}

.v4-type-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.v4-type-card:hover {
  border-color: var(--uw-outline-var);
  box-shadow: 0 8px 24px rgba(var(--uw-on-surface-rgb),0.08);
  transform: translateY(-2px);
}

.v4-type-card.selected {
  border-color: var(--uw-primary);
  background: var(--uw-selected-bg);
  box-shadow: 0 0 0 4px rgba(var(--uw-primary-rgb),0.08), 0 8px 24px rgba(var(--uw-on-surface-rgb),0.08);
}

.v4-type-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--uw-surface-low);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.v4-type-icon-wrap .material-symbols-outlined {
  font-size: 22px;
  color: var(--uw-primary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.v4-type-card.selected .v4-type-icon-wrap {
  background: var(--uw-primary);
}

.v4-type-card.selected .v4-type-icon-wrap .material-symbols-outlined {
  color: var(--uw-white);
}

.v4-type-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uw-outline);
}

.v4-type-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--uw-on-surface);
  line-height: 1.2;
}

.v4-type-desc {
  font-size: 13px;
  color: var(--uw-secondary);
  line-height: 1.55;
  flex: 1;
}

.v4-type-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--uw-primary);
  margin-top: 8px;
  cursor: pointer;
  width: fit-content;
}

.v4-type-cta:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v4-type-cta .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.15s ease;
}

.v4-type-cta:hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* === REG PLATE (Step 2) === */
.v4-reg-section {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.v4-reg-plate-wrap {
  margin: 32px auto;
  max-width: 400px;
}

.v4-reg-plate {
  background: var(--uw-reg-yellow);
  border: 6px solid var(--uw-plate-border);
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  height: 96px;
  overflow: hidden;
  box-shadow:
    0 2px 0 var(--uw-plate-inner) inset,
    0 -1px 0 rgba(var(--uw-white-rgb),0.15) inset,
    0 6px 18px rgba(var(--uw-on-surface-rgb),0.18),
    0 2px 6px rgba(var(--uw-on-surface-rgb),0.10);
}

.v4-reg-flag {
  background: var(--uw-flag-bg);
  width: 52px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 7px;
  flex-shrink: 0;
}

.v4-reg-flag-union-jack {
  width: 34px;
  height: 22px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.v4-reg-flag-union-jack svg {
  width: 100%;
  height: 100%;
  display: block;
}

.v4-reg-flag-gb {
  font-size: 10px;
  font-weight: 900;
  color: var(--uw-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
}

.v4-reg-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: 6px;
  text-align: center;
  color: var(--uw-on-surface);
  text-transform: uppercase;
  padding: 0 12px;
  width: 100%;
}

.v4-reg-input::placeholder {
  color: rgba(var(--uw-on-surface-rgb),0.25);
}

.v4-reg-tagline {
  font-size: 12px;
  color: var(--uw-secondary);
  margin-top: 32px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* Trust badge GRID (3 cards — matches Stitch 2._registration_lookup) */
.v4-reg-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.v4-reg-trust-card {
  background: var(--uw-surface-low);
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.v4-reg-trust-icon {
  width: 44px;
  height: 44px;
  background: var(--uw-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--uw-on-surface-rgb),0.06);
  flex-shrink: 0;
}

.v4-reg-trust-icon .material-symbols-outlined {
  font-size: 20px;
  color: var(--uw-success);       /* green = verified data source (trust signal) */
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.v4-reg-trust-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--uw-on-surface);
}

.v4-reg-trust-desc {
  font-size: 11px;
  color: var(--uw-secondary);
  line-height: 1.5;
}

/* === VEHICLE CONFIRMATION (Step 3) — 12-col bento layout === */
.v4-vehicle-bento {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

.v4-vehicle-plate-panel {
  background: var(--uw-surface-low);
  border-radius: 16px;
  padding: 40px;
}

.v4-vehicle-plate-big {
  display: flex;
  align-items: stretch;
  background: var(--uw-reg-yellow);
  border: 3px solid var(--uw-on-surface);
  border-radius: 8px;
  height: 88px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(var(--uw-on-surface-rgb),0.12);
}

.v4-vehicle-plate-big .v4-reg-flag {
  width: 44px;
  padding: 10px 0;
}

.v4-vehicle-plate-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--uw-on-surface);
  text-transform: uppercase;
}

.v4-vehicle-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.v4-vehicle-stat-card {
  background: var(--uw-white);
  border-radius: 12px;
  padding: 18px 14px;
  border: 1px solid rgba(var(--uw-outline-var-rgb),0.2);
}

.v4-vehicle-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uw-outline);
  margin-bottom: 6px;
}

.v4-vehicle-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--uw-on-surface);
}

/* Right specs panel */
.v4-vehicle-specs-panel {
  background: var(--uw-surface-low);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
}

.v4-vehicle-specs-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uw-outline);
  margin-bottom: 16px;
}

.v4-vehicle-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(var(--uw-outline-var-rgb),0.2);
}

.v4-vehicle-spec-row:last-child { border-bottom: none; }

.v4-vehicle-spec-key {
  font-size: 12px;
  color: var(--uw-secondary);
  font-weight: 500;
}

.v4-vehicle-spec-val {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--uw-on-surface);
}

/* === IMAGE PLACEHOLDERS === */
.v4-sidebar-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  margin-top: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.v4-sidebar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keep placeholder style for any remaining dev slots */
.v4-image-placeholder {
  width: 100%;
  height: 160px;
  background: var(--uw-on-surface);
  border-radius: 12px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.v4-image-placeholder span {
  color: rgba(var(--uw-white-rgb),0.4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 20px;
  line-height: 1.6;
}

/* === SERVICE TABS (pill strip — matches Stitch) === */
.v4-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--uw-surface-low);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.v4-tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--uw-on-variant);
  transition: all 0.2s;
  cursor: pointer;
}

.v4-tab:hover {
  color: var(--uw-on-surface);
}

.v4-tab.active {
  background: var(--uw-white);
  color: var(--uw-primary);
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(var(--uw-on-surface-rgb),0.1);
}

/* === STEP 4: 12-COL GRID === */
.v4-12grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 48px;
  align-items: start;
}

.v4-col-main { min-width: 0; }

/* === SERVICING CARDS === */
.v4-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.v4-service-card {
  background: var(--uw-surface-low);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.v4-service-card:hover {
  background: var(--uw-white);
  border-color: var(--uw-outline-var);
}

.v4-service-card.selected {
  background: var(--uw-selected-bg);
  border-color: var(--uw-primary);   /* solid primary — removes ambiguity of semi-transparent border */
  box-shadow: 0 4px 20px rgba(var(--uw-on-surface-rgb),0.08);
}

.v4-card-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--uw-primary);
  color: var(--uw-white);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: none;
  white-space: nowrap;
}

.v4-service-card.selected .v4-card-badge { display: block; }

.v4-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uw-secondary);
  margin-bottom: 10px;
}

.v4-service-card.selected .v4-card-eyebrow {
  color: var(--uw-primary);
}

.v4-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--uw-on-surface);
  margin-bottom: 8px;
}

.v4-card-desc {
  font-size: 13px;
  color: var(--uw-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.v4-card-price {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--uw-primary);
  line-height: 1;
}

.v4-card-vat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uw-secondary);
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Servicing: unselected select button, selected = gradient */
.v4-service-select-btn {
  width: 100%;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--uw-surface-high);
  color: var(--uw-on-surface);
  pointer-events: none; /* click is on card */
}

.v4-service-card.selected .v4-service-select-btn {
  background: linear-gradient(135deg, var(--uw-cta) 0%, var(--uw-cta-dark) 100%);
  color: var(--uw-cta-text);
}

/* === WHAT'S INCLUDED SECTION === */
.v4-includes {
  background: var(--uw-surface-low);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
}

.v4-includes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
}

.v4-includes-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--uw-on-surface);
}

.v4-includes-toggle-icon {
  font-size: 24px;
  color: var(--uw-primary);
  transition: transform 0.2s;
}

.v4-includes-toggle-icon.open {
  transform: rotate(180deg);
}

.v4-includes-body {
  display: none;
  margin-top: 24px;
}

.v4-includes-body.open {
  display: block;
}

.v4-includes-level {
  margin-bottom: 24px;
}

.v4-includes-level:last-of-type {
  margin-bottom: 0;
}

.v4-includes-level-header {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--uw-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--uw-surface-mid);
}

/* Description paragraph inside diagnostics includes sections */
.v4-diag-includes-desc {
  font-size: 13px;
  color: var(--uw-secondary);
  line-height: 1.6;
  margin: 10px 0 0;
}

.v4-includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
  margin-top: 16px;
}

.v4-include-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v4-include-item .material-symbols-outlined {
  font-size: 16px;
  color: var(--uw-success);       /* green = "this is included" — universal feature-tick signal */
  flex-shrink: 0;
  margin-top: 1px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.v4-include-text { font-size: 13px; font-weight: 500; color: var(--uw-on-variant); }
.v4-include-text-bold { color: var(--uw-primary); }
.v4-include-sub { font-size: 12px; color: var(--uw-secondary); margin-top: 2px; line-height: 1.4; }

.v4-guarantee-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--uw-surface-top);
  font-size: 13px;
  font-weight: 600;
  color: var(--uw-on-surface);
}

.v4-guarantee-row .material-symbols-outlined {
  font-size: 18px;
  color: var(--uw-success);       /* green = guarantee/verified — distinct from brand orange */
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* === REPAIR CATEGORY CARDS === */
.v4-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.v4-cat-card {
  background: var(--uw-surface-low);
  border-radius: 12px;
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.v4-cat-card:hover {
  background: var(--uw-white);
  box-shadow: 0 4px 16px rgba(var(--uw-on-surface-rgb),0.07);
}

.v4-cat-card.selected {
  background: var(--uw-selected-bg);
  outline: 2px solid var(--uw-primary);
  box-shadow: 0 4px 20px rgba(var(--uw-on-surface-rgb),0.09);
}

.v4-cat-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--uw-primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.v4-cat-card.selected .v4-cat-check { display: flex; }

.v4-cat-check .material-symbols-outlined {
  font-size: 14px;
  color: var(--uw-white);
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.v4-cat-icon {
  margin-bottom: 12px;
}

.v4-cat-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--uw-secondary);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.v4-cat-card.selected .v4-cat-icon .material-symbols-outlined {
  color: var(--uw-primary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.v4-cat-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--uw-on-surface);
  margin-bottom: 4px;
}

/* === REPAIR SUB-SERVICES SECTION (combined on same page) === */
/* === REPAIRS SIDEBAR CHIPS === */
.v4-repair-chips {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v4-repair-chips.v4-repair-chips-empty {
  display: none;
}

.v4-repair-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--uw-surface-lowest);
  border: 1px solid rgba(var(--uw-primary-rgb),0.15);
  border-radius: 8px;
  padding: 6px 8px 6px 10px;
  gap: 8px;
}

.v4-repair-chip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.v4-repair-chip-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--uw-on-surface);
  line-height: 1.3;
}

.v4-repair-chip-positions {
  font-size: 11px;
  font-weight: 400;
  color: var(--uw-primary);
  line-height: 1.2;
}

.v4-repair-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  color: var(--uw-secondary);
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.v4-repair-chip-remove:hover {
  color: var(--uw-error);
  background: rgba(var(--uw-error-rgb),0.08);
}

.v4-repair-chip-remove .material-symbols-outlined {
  font-size: 14px;
}

.v4-repair-quote-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--uw-secondary);
  line-height: 1.5;
  background: var(--uw-surface-low);
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
}

.v4-repair-quote-note .material-symbols-outlined {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--uw-primary);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* === REPAIR SUB-SECTION === */
.v4-repair-sub-section {
  background: var(--uw-surface-low);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
}

.v4-repair-sub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.v4-repair-sub-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--uw-on-surface);
  margin-bottom: 4px;
}

.v4-repair-sub-sub {
  font-size: 13px;
  color: var(--uw-secondary);
}

.v4-repair-active-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--uw-primary);
  background: rgba(var(--uw-primary-rgb),0.08);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.v4-svc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v4-svc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--uw-white);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.v4-svc-item:hover {
  box-shadow: 0 2px 12px rgba(var(--uw-on-surface-rgb),0.07);
  transform: translateX(2px);
}

.v4-svc-item.selected {
  border-color: var(--uw-primary);
  background: var(--uw-selected-bg);
  box-shadow: 0 2px 12px rgba(var(--uw-on-surface-rgb),0.07);
}

.v4-svc-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid var(--uw-outline-var);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.v4-svc-item.selected .v4-svc-checkbox {
  background: var(--uw-primary);
  border-color: var(--uw-primary);
}

.v4-svc-checkbox .material-symbols-outlined {
  font-size: 14px;
  color: var(--uw-white);
  display: none;
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.v4-svc-item.selected .v4-svc-checkbox .material-symbols-outlined { display: block; }

.v4-svc-item-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v4-svc-item-icon .material-symbols-outlined {
  font-size: 22px;
  color: var(--uw-secondary);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.v4-svc-item.selected .v4-svc-item-icon .material-symbols-outlined {
  color: var(--uw-primary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.v4-svc-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--uw-on-surface);
}

.v4-svc-poa {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--uw-secondary);
  flex-shrink: 0;
}

/* === BRAKE POSITION SELECTOR === */
.v4-brake-positions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 18px 14px 72px;
  background: var(--uw-surface-low);
  margin: -10px 0 10px;
  border-radius: 0 0 12px 12px;
}

.v4-brake-pos-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--uw-white);
  border-radius: 8px;
  border: 1.5px solid var(--uw-outline-var);
  font-size: 12px;
  font-weight: 600;
  color: var(--uw-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.v4-brake-pos-btn.active {
  border-color: var(--uw-primary);
  color: var(--uw-primary);
  background: rgba(var(--uw-primary-rgb),0.05);
}

.v4-brake-pos-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

/* === DIAGNOSTICS HORIZONTAL CARDS (matches Stitch 4._diagnostics_selection) === */
.v4-diag-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.v4-diag-card {
  background: var(--uw-surface-low);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.v4-diag-card:hover {
  background: var(--uw-white);
  border-color: var(--uw-outline-var);
}

.v4-diag-card.selected {
  background: var(--uw-selected-bg);
  border-color: var(--uw-primary);   /* solid border — unambiguous selection */
  box-shadow: 0 4px 20px rgba(var(--uw-on-surface-rgb),0.08);
}

.v4-diag-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--uw-surface-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v4-diag-card-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--uw-secondary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.v4-diag-card.selected .v4-diag-card-icon {
  background: rgba(var(--uw-primary-rgb),0.08);
}

.v4-diag-card.selected .v4-diag-card-icon .material-symbols-outlined {
  color: var(--uw-primary);
}

.v4-diag-card-content { flex: 1; }

.v4-diag-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 16px;
}

.v4-diag-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--uw-on-surface);
}

.v4-diag-card-price {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--uw-primary);
  flex-shrink: 0;
}

.v4-diag-card-desc {
  font-size: 13px;
  color: var(--uw-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.v4-diag-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v4-diag-feature-chip {
  background: var(--uw-surface-mid);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--uw-secondary);
}

.v4-diag-card-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--uw-outline-var);
  flex-shrink: 0;
  transition: all 0.15s;
  align-self: center;
}

.v4-diag-card.selected .v4-diag-card-radio {
  border-color: var(--uw-primary);
  background: var(--uw-primary);
  box-shadow: inset 0 0 0 3px var(--uw-white);
}

.v4-diag-recommended-badge {
  position: absolute;
  top: -11px;
  right: 24px;
  background: var(--uw-primary);
  color: var(--uw-white);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: none;
}

.v4-diag-card.selected .v4-diag-recommended-badge { display: block; }

/* === INSPECTION TIER CARDS (stacked — matches Stitch 4._inspection_tiers) === */
.v4-insp-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.v4-insp-card {
  background: var(--uw-white);
  border-radius: 16px;
  padding: 28px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.v4-insp-card:hover {
  border-color: var(--uw-outline-var);  /* neutral hover — primary reserved for confirmed selection */
}

.v4-insp-card.selected {
  background: var(--uw-selected-bg);
  border-color: var(--uw-primary);      /* solid — no opacity ambiguity */
  box-shadow: 0 8px 28px rgba(var(--uw-on-surface-rgb),0.09);
}

.v4-insp-best-value-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--uw-primary);
  color: var(--uw-white);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 32px;
  transform: rotate(45deg) translate(28%, -4px);
  transform-origin: top right;
}

.v4-insp-card-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.v4-insp-card-left { flex: 1; }

.v4-insp-card-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.v4-insp-card-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--uw-primary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.v4-insp-card-name {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--uw-on-surface);
}

.v4-insp-card-desc {
  font-size: 13px;
  color: var(--uw-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.v4-insp-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v4-insp-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--uw-on-surface);
}

.v4-insp-feature .material-symbols-outlined {
  font-size: 18px;
  color: var(--uw-success);       /* green = feature included in this inspection tier */
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  flex-shrink: 0;
}

.v4-insp-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 140px;
}

.v4-insp-price-label {
  font-size: 11px;
  color: var(--uw-secondary);
  text-align: right;
}

.v4-insp-price {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--uw-primary);
  text-align: right;
  line-height: 1;
}

.v4-insp-select-btn {
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--uw-outline-var);
  background: none;
  color: var(--uw-on-surface);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.v4-insp-card.selected .v4-insp-select-btn {
  background: linear-gradient(135deg, var(--uw-cta) 0%, var(--uw-cta-dark) 100%);
  color: var(--uw-cta-text);
  border-color: transparent;
  transform: scale(1.05);
}

/* Tier card subtitle (Essential vehicle check / Everything in Basic, plus: etc.) */
.v4-insp-card-subtitle {
  font-size: 12px;
  color: var(--uw-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* === INSPECTION EXPANDABLE CHECKLIST === */
.v4-insp-checklist-section {
  margin-top: 28px;
}

.v4-insp-checklist-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--uw-outline-var);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--uw-primary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}

.v4-insp-checklist-toggle:hover {
  background: var(--uw-surface-low);
  border-color: var(--uw-primary);
}

.v4-insp-checklist-toggle .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s;
}

.v4-insp-checklist-wrap {
  display: none;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--uw-surface-mid);
}

.v4-insp-checklist-wrap.open {
  display: block;
}

.v4-insp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.v4-insp-th {
  background: var(--uw-surface-low);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--uw-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--uw-surface-mid);
  position: sticky;
  top: 0;
}

.v4-insp-th-tier {
  text-align: center;
  width: 80px;
}

.v4-insp-section-row td {
  background: var(--uw-surface-low);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  color: var(--uw-on-surface);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--uw-surface-mid);
}

.v4-insp-row:hover td {
  background: var(--uw-surface);
}

.v4-insp-td {
  padding: 9px 14px;
  color: var(--uw-on-surface);
  border-bottom: 1px solid var(--uw-surface-low);
  vertical-align: middle;
}

.v4-insp-td-c {
  text-align: center;
  width: 80px;
}

.v4-insp-tick {
  font-size: 16px;
  color: var(--uw-success);       /* green = "included in this tier" — scannable at a glance */
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  vertical-align: middle;
}

.v4-insp-dash {
  color: var(--uw-secondary);
  opacity: 0.4;
  font-size: 14px;
}

/* === STEP 4 SUMMARY SIDEBAR === */
.v4-step4-sidebar {
  position: sticky;
  top: 32px;
}

.v4-summary-card {
  background: var(--uw-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(var(--uw-on-surface-rgb),0.06);
  border: 1px solid rgba(var(--uw-outline-var-rgb),0.15);
}

.v4-summary-stripe {
  height: 4px;
  background: linear-gradient(135deg, var(--uw-primary) 0%, var(--uw-primary-dark) 100%);
}

.v4-summary-inner { padding: 24px 28px; }

.v4-summary-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--uw-on-surface);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--uw-surface-mid);
}

.v4-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.v4-summary-icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--uw-surface-high);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v4-summary-icon-chip .material-symbols-outlined {
  font-size: 20px;
  color: var(--uw-primary);
}

.v4-summary-row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--uw-outline);
  margin-bottom: 3px;
}

.v4-summary-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--uw-on-surface);
}

.v4-change-reg-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--uw-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  text-align: left;
  transition: color 0.15s;
}

.v4-change-reg-link:hover {
  color: var(--uw-primary);
}

.v4-summary-price-block {
  background: var(--uw-surface-low);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
}

.v4-summary-price-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--uw-secondary);
  margin-bottom: 4px;
}

.v4-summary-price-value {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--uw-primary);
  line-height: 1;
}

.v4-summary-price-vat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uw-secondary);
  margin-top: 4px;
}

.v4-price-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--uw-success);          /* green = "price is guaranteed/locked" */
  background: var(--uw-success-bg);  /* mint bg — success semantic */
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 12px;
}

.v4-price-lock .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* === NAVIGATION BUTTONS === */
.v4-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 16px;
}

.v4-nav-right { justify-content: flex-end; }

.v4-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
}

.v4-btn .material-symbols-outlined { font-size: 18px; }

.v4-btn-primary {
  background: linear-gradient(135deg, var(--uw-cta) 0%, var(--uw-cta-dark) 100%);
  color: var(--uw-cta-text);   /* dark text — #191c1e on #FA8700 = 7.19:1 WCAG AAA */
  box-shadow: 0 4px 16px rgba(var(--uw-primary-rgb),0.3);
}

.v4-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--uw-primary-rgb),0.4);
}

.v4-btn-ghost {
  background: none;
  color: var(--uw-secondary);
  border: none;
}

.v4-btn-ghost:hover {
  background: var(--uw-surface-low);
  color: var(--uw-on-surface);
}

.v4-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* === SPINNER === */
.v4-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(var(--uw-white-rgb),0.3);
  border-radius: 50%;
  border-top-color: var(--uw-white);
  animation: v4spin 0.75s linear infinite;
  vertical-align: middle;
}

@keyframes v4spin { to { transform: rotate(360deg); } }

/* === SKELETON LOADING === */
.v4-skeleton {
  background: var(--uw-surface-high);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.v4-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--uw-white-rgb),0.6) 50%, transparent 100%);
  animation: v4shimmer 1.4s infinite;
}

@keyframes v4shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.v4-loading-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px 0 24px; font-size: 14px; color: var(--uw-secondary); }
.v4-skeleton-reg { height: 72px; width: 240px; margin: 0 auto 24px; border-radius: 6px; }
.v4-skeleton-row { height: 16px; margin-bottom: 12px; border-radius: 6px; }
.v4-skeleton-row.w-short { width: 55%; }
.v4-skeleton-row.w-med { width: 75%; }
.v4-skeleton-row.w-full { width: 100%; }
.v4-skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; }

/* === ERRORS === */
.v4-error {
  color: var(--uw-error);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  display: none;
}

/* === CONTACT STEP: ASYMMETRIC GRID === */
.v4-asym-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3.5rem;
  align-items: start;
}

/* === FORM SECTIONS === */
.v4-form-section {
  background: var(--uw-surface-low);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
}

.v4-form-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.v4-form-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--uw-primary);
  color: var(--uw-white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}

.v4-form-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--uw-on-surface);
}

.v4-form-section-sub {
  font-size: 13px;
  color: var(--uw-secondary);
  margin-top: 2px;
}

.v4-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.v4-field-full { margin-bottom: 18px; }

.v4-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--uw-on-variant);
  margin-bottom: 8px;
}

.v4-input {
  width: 100%;
  height: 52px;
  background: var(--uw-white);
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--uw-on-surface);
  transition: box-shadow 0.2s;
  outline: none;
}

.v4-input::placeholder { color: var(--uw-outline-var); }
.v4-input:focus { box-shadow: 0 0 0 3px rgba(var(--uw-primary-rgb),0.14); }
.v4-input.invalid { box-shadow: 0 0 0 3px rgba(var(--uw-error-rgb),0.18) !important; background: var(--uw-error-bg); }

textarea.v4-input {
  height: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
  min-height: 100px;
}

.v4-input[type="date"] { cursor: pointer; }

/* === TIME TOGGLE === */
.v4-time-toggle {
  display: flex;
  gap: 8px;
}

.v4-time-btn {
  flex: 1;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--uw-white);
  color: var(--uw-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.v4-time-btn:hover { border-color: var(--uw-outline-var); color: var(--uw-on-surface); }

.v4-time-btn.active {
  background: var(--uw-primary);
  border-color: var(--uw-primary);
  color: var(--uw-white);
  font-weight: 600;
}

.v4-time-toggle.v4-time-toggle-invalid .v4-time-btn:not(.active) {
  border-color: var(--uw-error);
  background: var(--uw-error-bg-alt);
}

.v4-mechanic-note {
  font-size: 12px;
  color: var(--uw-secondary);
  font-style: italic;
  margin-top: 14px;
  line-height: 1.5;
}

/* === CONSENT ROW === */
.v4-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--uw-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.v4-consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--uw-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.v4-consent-row a { color: var(--uw-primary); }
.v4-consent-row a:hover { text-decoration: underline; }

/* === CONTACT SUMMARY SIDEBAR === */
.v4-contact-summary-col {
  position: relative;
}

.v4-contact-summary {
  position: sticky;
  top: 32px;
  background: var(--uw-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(var(--uw-on-surface-rgb),0.07);
  border: 1px solid rgba(var(--uw-outline-var-rgb),0.12);
}

.v4-contact-summary-inner { padding: 32px; }

.v4-contact-summary-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--uw-on-surface);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v4-guarantee-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--uw-success-bg);  /* mint green bg — "verified" semantic */
  color: var(--uw-success);           /* forest green — 5.36:1 on success-bg */
  border-radius: 999px;
  padding: 5px 10px;
}

.v4-guarantee-badge .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.v4-contact-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--uw-surface-mid);
}

.v4-contact-summary-row:last-of-type { border-bottom: none; }

.v4-contact-row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--uw-outline);
  margin-bottom: 3px;
}

.v4-contact-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--uw-on-surface);
}

.v4-contact-price-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--uw-surface-top);
}

.v4-contact-price-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--uw-secondary);
  margin-bottom: 6px;
}

.v4-contact-price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.v4-contact-price-value {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--uw-primary);
  line-height: 1;
}

.v4-contact-price-value.v4-price-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--uw-on-surface-variant);
}

.v4-contact-price-vat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uw-secondary);
}

.v4-submit-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--uw-cta) 0%, var(--uw-cta-dark) 100%);
  color: var(--uw-cta-text);   /* dark text — WCAG AAA on orange */
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(var(--uw-primary-rgb),0.28);
  transition: all 0.2s;
}

.v4-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(var(--uw-primary-rgb),0.38);
}

.v4-submit-btn .material-symbols-outlined { font-size: 18px; }

/* Step 4 sidebar Continue button */
.v4-sidebar-next-btn {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--uw-cta) 0%, var(--uw-cta-dark) 100%);
  color: var(--uw-cta-text);
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--uw-primary-rgb),0.25);
  transition: all 0.2s;
}

.v4-sidebar-next-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--uw-primary-rgb),0.35);
}

.v4-sidebar-next-btn .material-symbols-outlined { font-size: 16px; }

.v4-sidebar-next-btn:focus-visible {
  outline: 3px solid var(--uw-primary);
  outline-offset: 3px;
}

.v4-submit-footnote {
  font-size: 11px;
  color: var(--uw-outline);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  padding: 0 8px;
}

.v4-repair-quote-note-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(var(--uw-primary-rgb),0.05);
  border-left: 3px solid var(--uw-primary);
  border-radius: 0 10px 10px 0;
  padding: 16px;
  margin-top: 24px;
}

.v4-repair-quote-note-block .material-symbols-outlined {
  font-size: 20px;
  color: var(--uw-primary);
  flex-shrink: 0;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  margin-top: 1px;
}

.v4-repair-quote-note-block p {
  font-size: 13px;
  font-weight: 500;
  color: var(--uw-on-variant);
  line-height: 1.5;
}

/* === MATERIAL SYMBOLS === */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .v4-main { padding: 40px 36px; }
  .v4-12grid { grid-template-columns: 7fr 4fr; gap: 32px; }
  .v4-asym-grid { grid-template-columns: 1fr 340px; }
}

@media (max-width: 1023px) {
  .v4-sidebar { display: none; }
  .v4-main { padding: 32px 28px; }
  .v4-12grid { grid-template-columns: 1fr; }
  .v4-asym-grid { grid-template-columns: 1fr; }
  .v4-vehicle-bento { grid-template-columns: 1fr; }
  /* Sidebar CTA hidden — nav CTA is the only button on mobile/tablet */
  .v4-sidebar-next-btn { display: none; }
}

@media (max-width: 767px) {
  .v4-main { padding: 24px 18px; }
  .v4-type-grid-3,
  .v4-type-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .v4-service-grid { grid-template-columns: 1fr; max-width: 100%; }
  .v4-cat-grid { grid-template-columns: repeat(2, 1fr); }
  /* Trust cards hidden on mobile — they push the lookup button below the fold */
  .v4-reg-trust-grid { display: none; }
  .v4-insp-card-inner { flex-direction: column; }
  .v4-insp-card-right { align-items: flex-start; min-width: 0; }
  /* Tabs: horizontally scrollable on mobile — prevents 2-row wrap */
  .v4-tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; border-radius: 16px; -webkit-overflow-scrolling: touch; }
  .v4-tab { white-space: nowrap; flex-shrink: 0; }
  /* Vehicle banner: scale down for long model names */
  .v4-vehicle-banner { font-size: 17px; }
  /* Service cards: allow shrinking on narrow viewports */
  .v4-service-card { min-width: 0; }
  /* Diag cards: keep radio pinned top-right, don't let it wrap to new row */
  .v4-diag-card { flex-wrap: nowrap; padding-right: 48px; }
  .v4-diag-card-radio { position: absolute; top: 20px; right: 16px; align-self: auto; }
  .v4-includes-grid { grid-template-columns: 1fr; }
  .v4-field-row { grid-template-columns: 1fr; }
  .v4-vehicle-stats-row { grid-template-columns: repeat(2, 1fr); }
  .v4-nav { gap: 10px; margin-top: 24px; }
  .v4-btn { padding: 12px 20px; font-size: 14px; }
  .v4-brake-positions { padding-left: 18px; }
  .v4-tabs { width: 100%; }
}

@media (max-width: 479px) {
  .v4-main { padding: 18px 14px; }
  .v4-type-grid-2,
  .v4-type-grid-3,
  .v4-type-grid-4 { grid-template-columns: 1fr; }
  .v4-progress-step { display: none; }
  .v4-reg-plate { height: 72px; }
  .v4-reg-input { font-size: 36px; letter-spacing: 3px; }
}

/* ============================================================
   FOCUS VISIBLE — keyboard accessibility
   ============================================================ */

/* Reset browser default outlines — we supply our own */
*:focus { outline: none; }

/* Keyboard-only focus rings */
.v4-btn:focus-visible,
.v4-submit-btn:focus-visible,
.v4-time-btn:focus-visible,
.v4-tab:focus-visible {
  outline: 3px solid var(--uw-primary);
  outline-offset: 3px;
}

.v4-type-card:focus-visible,
.v4-service-card:focus-visible,
.v4-cat-card:focus-visible,
.v4-diag-card:focus-visible,
.v4-insp-card:focus-visible,
.v4-svc-item:focus-visible {
  outline: 3px solid var(--uw-primary);
  outline-offset: 2px;
}

.v4-input:focus-visible {
  outline: none;
  border-color: var(--uw-primary);
  box-shadow: 0 0 0 3px rgba(var(--uw-primary-rgb), 0.2);
}

.v4-reg-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--uw-primary-rgb), 0.3) inset;
}

/* Consent checkbox */
#uwConsent:focus-visible {
  outline: 3px solid var(--uw-primary);
  outline-offset: 2px;
}

/* Inline links */
a:focus-visible {
  outline: 2px solid var(--uw-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  /* Remove all transitions and animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Stop shimmer / spinner */
  .v4-skeleton::after,
  .v4-spinner {
    animation: none !important;
  }

  /* Remove transform hovers */
  .v4-type-card:hover,
  .v4-service-card:hover,
  .v4-cat-card:hover,
  .v4-diag-card:hover,
  .v4-insp-card:hover,
  .v4-svc-item:hover {
    transform: none !important;
  }

  /* Progress bar — instant fill */
  .v4-progress-fill {
    transition: none !important;
  }

  /* CTA scale on insp-select-btn */
  .v4-insp-card.selected .v4-insp-select-btn {
    transform: none !important;
  }
}
