/* ============================================================
   CAR CURE – spare-parts.css
   Scoped under .sp-* prefix so it cannot bleed into other pages.
   Responds to [data-theme="light"] set by base.js theme toggle.
   Primary accent: Car Cure green  (#3a7d44 dark / #4fa85a light)
   ============================================================ */

/* ─── Page-level theme tokens ───────────────────────────────── */
/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --sp-accent:        #4fa85a;   /* green — main accent */
  --sp-accent-dim:    rgba(79, 168, 90, 0.18);
  --sp-accent-glow:   rgba(79, 168, 90, 0.30);
  --sp-accent-border: rgba(79, 168, 90, 0.30);

  --sp-bg:            #0d0d0d;
  --sp-bg-2:          #141414;
  --sp-bg-3:          #1c1c1c;
  --sp-bg-4:          #232323;
  --sp-surface:       #181818;
  --sp-surface-2:     #202020;

  --sp-text:          #e6e6ea;
  --sp-text-muted:    #8a8a9a;
  --sp-text-faint:    #555566;
  --sp-text-on-acc:   #0d1a10;  /* text placed ON the green accent */

  --sp-border:        rgba(255, 255, 255, 0.08);
  --sp-border-acc:    rgba(79, 168, 90, 0.28);

  --sp-input-bg:      #111111;
  --sp-input-border:  rgba(255, 255, 255, 0.10);
  --sp-input-text:    #dcdce4;
  --sp-input-ph:      #44444e;

  --sp-card-bg:       #181818;
  --sp-card-border:   rgba(255, 255, 255, 0.07);

  --sp-shadow-md:     0 4px 20px rgba(0,0,0,0.45);
  --sp-shadow-lg:     0 12px 40px rgba(0,0,0,0.55);
  --sp-shadow-xl:     0 24px 64px rgba(0,0,0,0.65);

  /* Fonts — matches base.html */
  --sp-font-display:  'Technor', Georgia, sans-serif;
  --sp-font-body:     'Supreme', system-ui, sans-serif;

  --sp-ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --sp-bounce:        cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme */
[data-theme="light"] {
  --sp-accent:        #2e6b38;
  --sp-accent-dim:    rgba(46, 107, 56, 0.10);
  --sp-accent-glow:   rgba(46, 107, 56, 0.22);
  --sp-accent-border: rgba(46, 107, 56, 0.28);

  --sp-bg:            #f5f6f5;
  --sp-bg-2:          #eef0ee;
  --sp-bg-3:          #e6e8e6;
  --sp-bg-4:          #dfe1df;
  --sp-surface:       #ffffff;
  --sp-surface-2:     #f0f2f0;

  --sp-text:          #1a1f1b;
  --sp-text-muted:    #4a5a4d;
  --sp-text-faint:    #8a9a8d;
  --sp-text-on-acc:   #ffffff;

  --sp-border:        rgba(0, 0, 0, 0.09);
  --sp-border-acc:    rgba(46, 107, 56, 0.28);

  --sp-input-bg:      #ffffff;
  --sp-input-border:  rgba(0, 0, 0, 0.12);
  --sp-input-text:    #1a1f1b;
  --sp-input-ph:      #a0aaa2;

  --sp-card-bg:       #ffffff;
  --sp-card-border:   rgba(0, 0, 0, 0.08);

  --sp-shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --sp-shadow-lg:     0 12px 36px rgba(0,0,0,0.12);
  --sp-shadow-xl:     0 24px 60px rgba(0,0,0,0.16);
}

/* ─── Scroll-reveal (shared with base) ──────────────────────── */
.reveal-ready {
  opacity: 0;
  transform: translateY(32px) scale(0.975);
  transition: opacity 0.65s var(--sp-ease),
              transform 0.65s var(--sp-ease);
  transition-delay: var(--sp-delay, 0s);
}
.reveal-ready.revealed {
  opacity: 1;
  transform: none;
}

/* ─── Animated title words ──────────────────────────────────── */
.sp-title-animated { overflow: hidden; word-spacing: 0.15em; }
.sp-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}
.sp-title-animated.title-play .sp-title-word {
  animation: spWordReveal 0.52s var(--sp-bounce) forwards;
}
.sp-title-word:nth-child(1) { animation-delay: 0.04s; }
.sp-title-word:nth-child(2) { animation-delay: 0.10s; }
.sp-title-word:nth-child(3) { animation-delay: 0.16s; }
.sp-title-word:nth-child(4) { animation-delay: 0.22s; }
.sp-title-word:nth-child(5) { animation-delay: 0.28s; }
.sp-title-word:nth-child(6) { animation-delay: 0.34s; }
.sp-title-word:nth-child(7) { animation-delay: 0.40s; }
.sp-title-word:nth-child(8) { animation-delay: 0.46s; }
@keyframes spWordReveal {
  from { opacity: 0; transform: translateY(60%) rotate(1.5deg); }
  to   { opacity: 1; transform: none; }
}
.sp-accent      { color: var(--sp-accent); }
.sp-accent-dark { color: var(--sp-accent); }

/* ─── HERO ───────────────────────────────────────────────────── */
.sp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sp-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 540px) {
  .sp-hero {
    padding: 2rem 1rem;
  }
}

/* Scene */
.sp-hero__scene {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: 0;
  animation: spSceneFade 1.2s ease-out 0.3s forwards;
}
@keyframes spSceneFade { to { opacity: 1; } }

.sp-hero__bg-layer {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(79,168,90,0.06) 0%, transparent 70%);
}
[data-theme="light"] .sp-hero__bg-layer {
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(46,107,56,0.06) 0%, transparent 70%);
}

/* Parallax shapes */
.sp-hero__parallax-bg { position: absolute; inset: 0; }
.sp-parallax-shape {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--sp-accent-dim) 0%, transparent 70%);
  filter: blur(42px);
}
.sp-parallax-shape--1 { width: 560px; height: 560px; top: -12%; right: -8%;  animation: spFloat1 20s ease-in-out infinite; }
.sp-parallax-shape--2 { width: 380px; height: 380px; bottom: -8%; left: -4%; animation: spFloat2 26s ease-in-out infinite; }
.sp-parallax-shape--3 { width: 320px; height: 320px; top: 50%;   left: 50%;  transform: translate(-50%,-50%); animation: spFloat3 18s ease-in-out infinite; }
@keyframes spFloat1 {
  0%,100% { transform: translate(0,0)   scale(1);    }
  33%      { transform: translate(-28px, 36px)  scale(1.08); }
  66%      { transform: translate(36px, -18px)  scale(0.94); }
}
@keyframes spFloat2 {
  0%,100% { transform: translate(0,0)  scale(1);    }
  50%      { transform: translate(22px,-30px) scale(1.12); }
}
@keyframes spFloat3 {
  0%,100% { transform: translate(-50%,-50%) scale(1) rotate(0deg);   }
  50%      { transform: translate(-50%,-50%) scale(1.06) rotate(180deg); }
}

/* Ghost bg text */
.sp-hero__bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex; gap: 1rem;
  pointer-events: none; white-space: nowrap; z-index: 0;
}
.sp-hero__bg-word {
  font-family: var(--sp-font-display);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 800; color: var(--sp-accent);
  line-height: 1; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(50px);
  animation: spBgWordReveal 1s ease-out forwards;
}
.sp-hero__bg-word:nth-child(1) { animation-delay: 0.1s; }
.sp-hero__bg-word:nth-child(2) { animation-delay: 0.2s; }
@keyframes spBgWordReveal { to { opacity: 0.05; transform: none; } }
[data-theme="light"] .sp-hero__bg-word { opacity: 0; }
@keyframes spBgWordRevealLight { to { opacity: 0.04; transform: none; } }

/* Grid overlay */
.sp-hero__grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(79,168,90,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(79,168,90,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
[data-theme="light"] .sp-hero__grid-overlay {
  background-image: linear-gradient(rgba(46,107,56,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(46,107,56,0.05) 1px, transparent 1px);
}

/* Particles */
.sp-hero__particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sp-particle {
  position: absolute; border-radius: 50%;
  background: var(--sp-accent);
  filter: blur(2px);
  animation: spParticle 15s ease-in-out infinite;
}
.sp-particle--1 { width: 7px;  height: 7px;  top: 20%; left: 14%;   animation-delay: 0s;  opacity: 0.4; }
.sp-particle--2 { width: 5px;  height: 5px;  top: 62%; right: 18%;  animation-delay: 3s;  opacity: 0.35; }
.sp-particle--3 { width: 9px;  height: 9px;  bottom: 24%; left: 28%; animation-delay: 6s; opacity: 0.45; }
.sp-particle--4 { width: 6px;  height: 6px;  top: 38%; right: 32%;  animation-delay: 9s;  opacity: 0.3; }
.sp-particle--5 { width: 4px;  height: 4px;  top: 74%; left: 54%;   animation-delay: 4s;  opacity: 0.35; }
@keyframes spParticle {
  0%,100% { transform: translate(0,0)      scale(1);   opacity: 0.4; }
  25%      { transform: translate(18px,-26px) scale(1.2); opacity: 0.6; }
  50%      { transform: translate(-12px,-44px) scale(0.9); opacity: 0.5; }
  75%      { transform: translate(26px,-16px) scale(1.1); opacity: 0.7; }
}

/* Side stripes */
.sp-hero__stripes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sp-hero__stripe {
  position: absolute; width: 88px; height: 100%; top: 0;
  background: var(--sp-accent-dim);
}
.sp-hero__stripe--left  { left: 0;  animation: spStripeL 1.2s ease-out 0.5s both; }
.sp-hero__stripe--right { right: 0; animation: spStripeR 1.2s ease-out 0.5s both; }
@keyframes spStripeL { from { transform: translateX(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spStripeR { from { transform: translateX(100%);  opacity: 0; } to { transform: none; opacity: 1; } }

/* Content wrapper */
.sp-hero__wrapper {
  position: relative; z-index: 4;
  width: 100%; display: flex; align-items: center; justify-content: center;
}
.sp-hero__content { text-align: center; max-width: 960px; width: 100%; }

/* Badge */
.sp-hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sp-accent-dim);
  border: 1px solid var(--sp-accent-border);
  padding: 7px 20px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--sp-accent);
  margin-bottom: 28px;
  opacity: 0; animation: spFadeUp 0.7s ease-out 0.4s forwards;
}
.sp-hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sp-accent);
  animation: spPulse 2s infinite;
}
@keyframes spPulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(0.8); opacity: 0.6; }
}

/* Hero title */
.sp-hero__title {
  font-family: var(--sp-font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 500;
  color: var(--sp-text);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  position: relative; overflow: hidden;
}
/* Shimmer on title */
.sp-hero__title::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--sp-accent-dim), transparent);
  animation: spShimmer 5s 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spShimmer { 0% { left: -55%; } 100% { left: 160%; } }

/* Description */
.sp-hero__desc-wrap {
  opacity: 0; animation: spFadeUp 0.7s ease-out 0.65s forwards;
  margin-bottom: 2.5rem;
}
.sp-hero__desc {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--sp-text);
  max-width: 600px; margin: 0 auto; line-height: 1.85;
}

/* Actions */
.sp-hero__actions {
  display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: spFadeUp 0.7s ease-out 0.85s forwards;
}

.sp-hero__actions .sp-btn--outline {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border-color: var(--sp-accent);
  color: var(--sp-accent);
}

/* Feature pillars bar */
.sp-hero__pillars {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--sp-surface);
  border: 1px solid var(--sp-accent-border);
  border-radius: 14px;
  padding: 18px 28px;
  max-width: 820px; margin: 2rem auto 0;
  box-shadow: var(--sp-shadow-md);
  opacity: 0; animation: spFadeUp 0.7s ease-out 1.05s forwards;
}
.sp-pillar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 22px;
  transition: transform 0.25s var(--sp-ease);
}
.sp-pillar:hover { transform: translateY(-2px); }
.sp-pillar__icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--sp-accent-dim);
  border: 1px solid var(--sp-accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sp-accent);
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.3s var(--sp-bounce);
}
.sp-pillar:hover .sp-pillar__icon {
  background: var(--sp-accent-glow);
  transform: rotate(6deg) scale(1.1);
}
.sp-pillar__body { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.sp-pillar__title {
  font-size: 0.94rem; font-weight: 600;
  color: var(--sp-text); line-height: 1;
}
.sp-pillar__sub {
  font-size: 0.78rem;
  color: var(--sp-text-muted);
}
.sp-pillar__divider {
  width: 1px; height: 40px;
  background: var(--sp-accent-border);
  flex-shrink: 0;
}

/* Shared fade-up */
@keyframes spFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Shared Buttons ─────────────────────────────────────────── */
.sp-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--sp-font-body);
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--sp-ease),
              box-shadow 0.25s var(--sp-ease),
              background 0.25s var(--sp-ease),
              color 0.25s var(--sp-ease),
              filter 0.25s var(--sp-ease);
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.08);
}

.sp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
/* Hover sweep layer */
.sp-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.10);
  transform: translateX(-101%);
  transition: transform 0.35s ease;
}
.sp-btn:hover::before { transform: none; }

.sp-btn--primary {
  background: var(--sp-accent);
  color: var(--sp-text-on-acc);
  box-shadow: 0 4px 18px var(--sp-accent-glow);
}
.sp-btn--primary:hover {
  background: color-mix(in srgb, var(--sp-accent) 85%, white 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--sp-accent-glow);
}
.sp-btn--outline {
  background: transparent;
  color: var(--sp-text);
  border-color: var(--sp-accent-border);
}
.sp-btn--outline:hover {
  background: var(--sp-accent-dim);
  border-color: var(--sp-accent);
  color: var(--sp-accent);
  transform: translateY(-3px);
}
.sp-btn--outline:hover .sp-vehicle-icon {
  fill: var(--sp-accent);
  color: var(--sp-accent);
}
.sp-vehicle-icon {
  fill: var(--sp-text);
  stroke: none;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
  transition: fill 0.25s var(--sp-ease), color 0.25s var(--sp-ease);
}
.sp-btn--lg { padding: 1.1rem 2.8rem; font-size: 1.08rem; }
/* Hide directional arrow SVGs inside navigation buttons, but NOT the vehicle icon */
.sp-btn > svg:not(.sp-vehicle-icon),
.sp-submit-btn > .sp-submit-btn__icon {
  display: none;
}

/* ─── Shared section layout ──────────────────────────────────── */
.sp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .sp-container {
    padding: 0 1rem;
    max-width: 100%;
  }
}

.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--sp-accent);
  margin-bottom: 14px;
}
.sp-eyebrow--light { color: var(--sp-accent); }
.sp-eyebrow__line  { display: block; width: 28px; height: 2px; background: currentColor; }

.sp-section-head { margin-bottom: 44px; }

.sp-section-title {
  font-family: var(--sp-font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  /* Use primary text for max legibility; accent applied per-word via .sp-accent */
  color: var(--sp-text);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 12px;
}
/* In dark theme, form-section headings need extra contrast */
.sp-form-section .sp-section-title { color: var(--sp-text); }
[data-theme="dark"] .sp-form-section .sp-section-title { color: #e8e8ea; }
/* In trust section the title should be white / light */
.sp-trust .sp-section-title { color: var(--sp-text); }
[data-theme="light"] .sp-trust .sp-section-title { color: var(--sp-text); }

.sp-section-sub {
  font-size: 1rem; color: var(--sp-text-muted);
  max-width: 560px; line-height: 1.75;
}
.sp-section-sub--light { color: var(--sp-text-muted); }

/* ─── Form Section ───────────────────────────────────────────── */
.sp-form-section {
  padding: 96px 0 80px;
  background: var(--sp-bg-2);
}

/* ─── Progress Bar (5-point, 4 visible) ─────────────────────── */
/*
  Structure:
    Point 0 (invisible) ─── [seg1] ─── Point 1 "Vehicle Info"
    Point 1            ─── [seg2] ─── Point 2 "Registration"
    Point 2            ─── [seg3] ─── Point 3 "Part Details"
    Point 3            ─── [seg4] ─── Point 4 "Submit"

  Each segment fills 0→100% independently, driven by JS.
  Segments and points share a common track row using CSS Grid.
*/
.sp-pb {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  padding: 26px 30px 28px;
  margin-bottom: 36px;
  box-shadow: var(--sp-shadow-md);
}
.sp-pb__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.sp-pb__label {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--sp-text-muted);
}
.sp-pb__pct {
  font-family: var(--sp-font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--sp-accent);
  transition: color 0.3s ease;
  min-width: 52px; text-align: right;
}

/* Track wrapper: positions the track bar and the point row together */
.sp-pb__track-wrap {
  position: relative;
  padding-bottom: 28px; /* space for labels below dots */
}

/* The grey background track */
.sp-pb__track {
  position: relative;
  height: 6px;
  background: var(--sp-border);
  border-radius: 3px;
  /* 4 segments sit inside; we use flex so each takes equal width */
  display: flex;
  overflow: hidden;
  border-radius: 3px;
}

/* Each segment is 25% of the track; it fills via clip-path/scaleX */
.sp-pb__seg {
  flex: 1;
  height: 100%;
  position: relative;
  /* Separator between segments — subtle gap for clarity */
  border-right: 2px solid var(--sp-surface);
}
.sp-pb__seg:last-child { border-right: none; }

/* The fill within each segment
   JS writes --fill (0→1) on each .sp-pb__seg element;
   ::before reads it to set its scaleX. */
.sp-pb__seg {
  --fill: 0;
}
.sp-pb__seg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--sp-accent) 75%, black),
    var(--sp-accent));
  transform: scaleX(var(--fill));
  transform-origin: left;
  transition: transform 0.45s var(--sp-ease);
}
/* Full segment: accent color for dot connecting to next point */
.sp-pb__seg--full::before {
  transform: scaleX(1);
}

/* Shimmer overlay on partially-filled segments */
.sp-pb__seg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: spSegShim 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sp-pb__seg.filling::after { opacity: 1; }
@keyframes spSegShim {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Point nodes row — overlaid on track */
.sp-pb__points {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  /* 5 points: point 0 at 0%, points 1–4 at 25/50/75/100% */
  justify-content: space-between;
  transform: translateY(-50%);
  margin-top: 3px; /* half track height */
}

/* Base point */
.sp-pb__point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Point 0: invisible but occupies its space */
.sp-pb__point--hidden {
  visibility: hidden;
  pointer-events: none;
  width: 10px; /* matches dot size */
}

/* The circular dot */
.sp-pb__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sp-border);
  border: 2px solid var(--sp-bg-2);
  outline: 2px solid var(--sp-border);
  outline-offset: 0;
  transition: background 0.3s ease,
              outline-color 0.3s ease,
              transform 0.3s var(--sp-bounce),
              box-shadow 0.3s ease;
}

/* Label below the dot */
.sp-pb__lbl {
  position: absolute;
  top: 18px; /* below dot */
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--sp-text-muted);
  white-space: nowrap;
  text-align: center;
  transition: color 0.3s ease, font-weight 0.2s ease;
}

/* Active point: filling in progress */
.sp-pb__point.is-active .sp-pb__dot {
  background: var(--sp-accent);
  outline-color: var(--sp-accent);
  box-shadow: 0 0 0 4px var(--sp-accent-dim);
  transform: scale(1.2);
}
.sp-pb__point.is-active .sp-pb__lbl {
  color: var(--sp-accent);
  font-weight: 700;
}

/* Done point: segment complete */
.sp-pb__point.is-done .sp-pb__dot {
  background: var(--sp-accent);
  outline-color: var(--sp-accent);
  transform: scale(1.1);
}
.sp-pb__point.is-done .sp-pb__lbl {
  color: var(--sp-text);
  font-weight: 600;
}

/* Typography override for label in the typography block */

/* Form cards */
.sp-card {
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-card-border);
  border-radius: 18px;
  padding: 34px 30px;
  margin-bottom: 22px;
  box-shadow: var(--sp-shadow-md);
  position: relative; overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease;
}
/* Top accent bar on focus */
.sp-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sp-accent) 60%, black), var(--sp-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--sp-ease);
}
.sp-card:focus-within::before { transform: scaleX(1); }
.sp-card:focus-within {
  border-color: var(--sp-accent-border);
  box-shadow: var(--sp-shadow-lg);
}
.sp-card__header {
  display: flex; align-items: flex-start; gap: 18px;
  margin-bottom: 26px;
}
.sp-card__num {
  font-family: var(--sp-font-display);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sp-text-on-acc);
  background: var(--sp-accent);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; flex-shrink: 0;
  transition: transform 0.3s var(--sp-bounce);
}
.sp-card:focus-within .sp-card__num { transform: rotate(-4deg) scale(1.05); }
.sp-card__title {
  font-family: var(--sp-font-display);
  font-size: 1.2rem; font-weight: 700;
  /* Title uses accent to tie each card heading to the palette */
  color: var(--sp-accent);
  margin-bottom: 3px;
}
.sp-card__sub { font-size: 0.92rem; color: var(--sp-text-muted); line-height: 1.5; }

/* Form grid */
.sp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; box-sizing: border-box; }
.sp-form-grid--2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: 100%; box-sizing: border-box; }

@media (max-width: 600px) {
  .sp-form-grid--2x2 {
    grid-template-columns: 1fr;
  }
}
.sp-field { display: flex; flex-direction: column; gap: 7px; }
.sp-field--full { grid-column: 1 / -1; }

/* Labels */
.sp-field > label,
.sp-upload-label {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  /* Labels use a warmer, more visible tone from the palette */
  color: var(--sp-text);
  opacity: 0.82;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.sp-field:focus-within > label,
.sp-field:focus-within .sp-upload-label {
  color: var(--sp-accent);
  opacity: 1;
}
.sp-req { color: #d94f4f; margin-left: 2px; }
.sp-optional {
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--sp-text-muted);
  background: var(--sp-bg-3);
  padding: 2px 8px; border-radius: 20px;
  vertical-align: middle; margin-left: 6px;
}
.sp-hint-badge {
  font-size: 0.65rem; font-weight: 600;
  color: #c44;
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(200, 60, 60, 0.25);
  padding: 2px 8px; border-radius: 20px;
  vertical-align: middle; margin-left: 6px;
  letter-spacing: 0; text-transform: none;
}

/* Inputs & Textarea */
input[type="text"],
input[type="number"],
textarea,
select {
  font-family: var(--sp-font-body);
}

.sp-field input[type="text"],
.sp-field input[type="number"],
.sp-field textarea {
  background: var(--sp-input-bg);
  border: 1.5px solid var(--sp-input-border);
  color: var(--sp-input-text);
  font-family: var(--sp-font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  width: 100%; outline: none;
  transition: border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
  box-sizing: border-box;
}
.sp-field input:focus,
.sp-field textarea:focus {
  border-color: var(--sp-accent);
  background: var(--sp-input-bg);
  box-shadow: 0 0 0 3px var(--sp-accent-dim);
}
.sp-field input::placeholder,
.sp-field textarea::placeholder { color: var(--sp-input-ph); }
.sp-field textarea { resize: vertical; min-height: 118px; }

/* Select */
.sp-select-wrap { position: relative; }
.sp-select-wrap select {
  background: var(--sp-input-bg);
  border: 1.5px solid var(--sp-input-border);
  color: var(--sp-input-text);
  font-family: var(--sp-font-body);
  font-size: 1rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: 10px;
  width: 100%; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.sp-select-wrap select:focus {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px var(--sp-accent-dim);
}
.sp-select-arrow {
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--sp-text-muted); font-size: 0.95rem;
  pointer-events: none;
}
.sp-select-wrap select option { background: var(--sp-input-bg); color: var(--sp-input-text); }

/* Field hint */
.sp-field-hint { font-size: 0.78rem; color: var(--sp-text-muted); margin-top: -2px; opacity: 0.85; }

/* Upload zones */
.sp-upload-wrap { display: flex; flex-direction: column; gap: 8px; }
.sp-upload-zone {
  position: relative; cursor: pointer;
  border: 2px dashed var(--sp-border);
  background: var(--sp-input-bg);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.25s ease,
              background 0.25s ease,
              transform 0.2s ease;
}
.sp-upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.sp-upload-zone:hover,
.sp-upload-zone.has-file {
  border-color: var(--sp-accent);
  background: var(--sp-accent-dim);
  transform: scale(1.005);
}
.sp-upload-zone__inner {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 34px 22px; text-align: center; pointer-events: none;
}
.sp-upload-zone--sm .sp-upload-zone__inner { padding: 22px; }
.sp-upload-zone__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--sp-accent-dim);
  border: 1px solid var(--sp-accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sp-accent);
  transition: transform 0.3s var(--sp-bounce), background 0.2s ease;
}
.sp-upload-zone__icon--sm { width: 40px; height: 40px; border-radius: 9px; }
.sp-upload-zone:hover .sp-upload-zone__icon {
  transform: scale(1.12) rotate(-5deg);
  background: var(--sp-accent-glow);
}
.sp-upload-zone__title { font-size: 0.98rem; font-weight: 600; color: var(--sp-text); }
.sp-upload-zone__sub   { font-size: 0.82rem; color: var(--sp-text-muted); }
.sp-upload-zone__name  { font-size: 0.76rem; color: var(--sp-accent); font-weight: 600; display: none; }
.sp-upload-zone.has-file .sp-upload-zone__name { display: block; }

/* Quality grid */
/* ─── Upload label row & hint ─────────────────────────────────── */
.sp-upload-label-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 6px;
}
.sp-upload-hint-text {
  font-size: 0.78rem; color: var(--sp-text-muted);
  margin-bottom: 14px; line-height: 1.5;
}
.sp-photo-counter {
  font-size: 0.74rem; font-weight: 600;
  color: var(--sp-accent); letter-spacing: 0.5px;
}

/* ─── Photo error ─────────────────────────────────────────────── */
.sp-photo-error {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: #d94f4f;
  margin-top: 10px;
  animation: spFadeUp 0.25s ease forwards;
}

/* ─── Vehicle 4-slot uploader ─────────────────────────────────── */
.sp-vehicle-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sp-vslot { position: relative; }
.sp-vslot__input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; z-index: 3;
  width: 100%; height: 100%;
}
.sp-vslot.has-file .sp-vslot__input { pointer-events: none; }

.sp-vslot__dropzone {
  border: 1.5px dashed var(--sp-border);
  border-radius: 12px;
  background: var(--sp-input-bg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.2s var(--sp-ease);
  cursor: pointer;
}
.sp-vslot__dropzone:hover,
.sp-vslot.drag-over .sp-vslot__dropzone {
  border-color: var(--sp-accent);
  background: var(--sp-accent-dim);
  transform: translateY(-2px);
}
.sp-vslot.has-file .sp-vslot__dropzone {
  border-color: var(--sp-accent);
  border-style: solid;
}
/* Preview */
.sp-vslot__preview-wrap {
  position: absolute; inset: 0; z-index: 2;
}
.sp-vslot__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 10px;
  animation: spFadeUp 0.3s ease both;
}
.sp-vslot__remove {
  position: absolute; top: 7px; right: 7px; z-index: 4;
  width: 26px; height: 26px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s var(--sp-bounce);
}
.sp-vslot__remove:hover { background: #d94f4f; transform: scale(1.15); }
/* Empty state */
.sp-vslot__empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; padding: 10px;
  pointer-events: none;
}
.sp-vslot__icon-wrap {
  color: var(--sp-text-muted);
  transition: color 0.2s ease, transform 0.3s var(--sp-bounce);
}
.sp-vslot__dropzone:hover .sp-vslot__icon-wrap {
  color: var(--sp-accent);
  transform: scale(1.1) translateY(-2px);
}
.sp-vslot__label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--sp-text); letter-spacing: 0.3px;
}
.sp-vslot__sub { font-size: 0.74rem; color: var(--sp-text-muted); }
.sp-vslot__done-badge {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  background: var(--sp-accent); color: var(--sp-text-on-acc);
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
  z-index: 3; white-space: nowrap;
  animation: spFadeUp 0.25s ease both;
}

/* ─── Quality cards — SVG icon variant ───────────────────────── */
.sp-quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.sp-quality-card { position: relative; cursor: pointer; display: flex; flex-direction: column; }
.sp-quality-card input[type="radio"] { display: none; }
.sp-quality-card__inner {
  padding: 20px 16px 18px;
  background: var(--sp-bg-3);
  border: 1.5px solid var(--sp-border);
  border-radius: 12px; position: relative;
  /* Flex column so all cards stretch to the same height */
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 160px;
  transition: border-color 0.2s ease,
              background 0.2s ease,
              transform 0.22s var(--sp-ease),
              box-shadow 0.22s ease;
}
.sp-quality-card:hover .sp-quality-card__inner {
  border-color: var(--sp-accent-border);
  background: var(--sp-accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--sp-accent-dim);
}
.sp-quality-card input:checked + .sp-quality-card__inner {
  border-color: var(--sp-accent);
  background: var(--sp-accent-dim);
  box-shadow: 0 0 0 3px var(--sp-accent-dim);
}
/* SVG icon box */
.sp-quality-card__svg-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  color: var(--sp-text-muted);
  margin-bottom: 12px;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.3s var(--sp-bounce);
}
.sp-quality-card:hover .sp-quality-card__svg-icon,
.sp-quality-card input:checked + .sp-quality-card__inner .sp-quality-card__svg-icon {
  background: var(--sp-accent-dim);
  color: var(--sp-accent);
  border-color: var(--sp-accent-border);
  transform: scale(1.06);
}
.sp-quality-card__title {
  font-weight: 700; font-size: 0.98rem;
  color: var(--sp-text); margin-bottom: 5px;
  letter-spacing: 0; text-transform: none;
}
.sp-quality-card__desc {
  font-size: 0.84rem; color: var(--sp-text-muted);
  line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: 400;
}
.sp-quality-card__check {
  position: absolute; top: 11px; right: 11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sp-accent);
  color: var(--sp-text-on-acc);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.2s ease, transform 0.28s var(--sp-bounce);
}
.sp-quality-card input:checked + .sp-quality-card__inner .sp-quality-card__check {
  opacity: 1; transform: scale(1);
}

/* ─── Part reference multi-upload ─────────────────────────────── */
.sp-part-upload-zone {
  position: relative; cursor: pointer;
  border: 1.5px dashed var(--sp-border);
  background: var(--sp-input-bg);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
  margin-bottom: 14px;
}
.sp-part-upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; z-index: 2;
  width: 100%; height: 100%;
}
.sp-part-upload-zone:hover,
.sp-part-upload-zone.drag-over {
  border-color: var(--sp-accent);
  background: var(--sp-accent-dim);
}
.sp-part-upload-zone__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 22px; text-align: center;
  pointer-events: none;
}
/* Part image preview grid */
.sp-part-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.sp-part-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--sp-accent-border);
  animation: spFadeUp 0.28s var(--sp-bounce) both;
}
.sp-part-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.25s ease;
}
.sp-part-thumb:hover img { transform: scale(1.04); }
.sp-part-thumb__remove {
  position: absolute; top: 5px; right: 5px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s var(--sp-bounce);
  z-index: 2;
}
.sp-part-thumb__remove:hover { background: #d94f4f; transform: scale(1.18); }

/* Submit area */
.sp-submit-area {
  display: flex; align-items: center; gap: 22px;
  margin-top: 8px; flex-wrap: wrap;
}
.sp-submit-btn {
  flex: 1; min-width: 250px;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  background: var(--sp-accent);
  color: var(--sp-text-on-acc);
  font-family: var(--sp-font-display);
  font-size: 1.08rem; font-weight: 700;
  padding: 17px 38px;
  border: none; border-radius: 12px; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px var(--sp-accent-glow);
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
}
.sp-submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.sp-submit-btn:hover::before { transform: none; }
.sp-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--sp-accent-glow);
  background: color-mix(in srgb, var(--sp-accent) 88%, white 12%);
}
.sp-submit-btn__text, .sp-submit-btn__icon { position: relative; z-index: 1; }
.sp-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.sp-submit-note { font-size: 0.84rem; color: var(--sp-text-muted); line-height: 1.6; max-width: 290px; margin-top: 4px; }

/* Success panel */
.sp-success {
  display: none; flex-direction: column; align-items: center;
  gap: 18px; text-align: center;
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-accent-border);
  border-radius: 18px; padding: 60px 38px;
  box-shadow: var(--sp-shadow-xl);
}
.sp-success.show { display: flex; animation: spSuccessReveal 0.7s var(--sp-bounce) both; }
@keyframes spSuccessReveal {
  from { opacity: 0; transform: scale(0.86) translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.sp-success__icon-wrap {
  position: relative; width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sp-accent);
}
.sp-success__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--sp-accent);
  animation: spRingExpand 0.9s ease-out forwards;
}
@keyframes spRingExpand {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.sp-success__title {
  font-family: var(--sp-font-display);
  font-size: 2.1rem; font-weight: 700;
  color: var(--sp-text);
}
.sp-success__ref {
  background: var(--sp-bg-3);
  border: 1px solid var(--sp-accent-border);
  padding: 11px 26px; border-radius: 8px;
  font-family: var(--sp-font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--sp-accent);
  letter-spacing: 3px;
}
.sp-success__text { font-size: 0.99rem; color: var(--sp-text-muted); max-width: 400px; line-height: 1.75; }
.sp-success__actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px;
}

/* ─── How It Works ───────────────────────────────────────────── */
.sp-hiw {
  padding: 96px 0;
  background: var(--sp-bg);
}
.sp-hiw .sp-section-title  { color: var(--sp-text); }
.sp-hiw .sp-section-sub    { color: var(--sp-text-muted); }

.sp-steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 52px;
}
.sp-step {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 18px; padding: 34px 26px;
  text-align: center; position: relative; overflow: hidden;
  transition: transform 0.4s var(--sp-bounce),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  transition-delay: var(--sp-delay, 0s);
}
/* Hover: slide-up lift */
.sp-step:hover {
  transform: translateY(-10px);
  box-shadow: var(--sp-shadow-lg);
  border-color: var(--sp-accent-border);
}
/* Decorative large step number */
.sp-step__num {
  position: absolute; top: 10px; right: 14px;
  font-family: var(--sp-font-display);
  font-size: 3.8rem; font-weight: 900; line-height: 1;
  color: var(--sp-accent-dim);
  transition: color 0.3s ease;
}
.sp-step:hover .sp-step__num { color: var(--sp-accent-glow); }
.sp-step__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sp-accent-dim);
  border: 1px solid var(--sp-accent-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--sp-accent);
  transition: transform 0.6s var(--sp-bounce), box-shadow 0.3s ease;
}
/* Each step gets a unique spin-in on hover */
.sp-step:nth-child(1):hover .sp-step__icon { transform: scale(1.14) rotate(360deg); box-shadow: 0 6px 20px var(--sp-accent-glow); }
.sp-step:nth-child(2):hover .sp-step__icon { transform: scale(1.14) rotate(-360deg); box-shadow: 0 6px 20px var(--sp-accent-glow); }
.sp-step:nth-child(3):hover .sp-step__icon { transform: scale(1.18) rotateY(360deg); box-shadow: 0 6px 20px var(--sp-accent-glow); }
.sp-step:nth-child(4):hover .sp-step__icon { transform: scale(1.14) rotate(360deg) scaleX(-1); box-shadow: 0 6px 20px var(--sp-accent-glow); }
.sp-step h3 {
  font-family: var(--sp-font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--sp-text); margin-bottom: 10px;
}
.sp-step p { font-size: 0.92rem; color: var(--sp-text-muted); line-height: 1.75; }

/* ─── Trust Section ──────────────────────────────────────────── */
.sp-trust {
  padding: 96px 0;
  background: var(--sp-bg-2);
  position: relative; overflow: hidden;
}
/* Ambient orb */
.sp-trust::before {
  content: '';
  position: absolute; top: -20%; left: -8%;
  width: 440px; height: 440px;
  background: radial-gradient(circle, var(--sp-accent-dim) 0%, transparent 70%);
  border-radius: 50%;
  animation: spTrustOrb 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spTrustOrb {
  0%,100% { transform: translate(0,0)    scale(1);   }
  50%      { transform: translate(28px,-28px) scale(1.1); }
}

.sp-trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 52px;
}
.sp-trust-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 18px; padding: 32px 24px;
  position: relative; overflow: hidden;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.35s var(--sp-ease);
  transition-delay: var(--sp-delay, 0s);
}
/* Bottom accent line sweep */
.sp-trust-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--sp-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.sp-trust-card:hover {
  background: var(--sp-surface-2);
  border-color: var(--sp-accent-border);
  transform: translateY(-6px);
}
.sp-trust-card:hover::after { transform: scaleX(1); }
.sp-trust-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sp-accent-dim);
  border: 1px solid var(--sp-accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sp-accent);
  margin-bottom: 18px;
  transition: transform 0.35s var(--sp-bounce), background 0.25s ease;
}
.sp-trust-card:hover .sp-trust-card__icon {
  transform: rotate(8deg) scale(1.12);
  background: var(--sp-accent-glow);
}
.sp-trust-card h4 {
  font-family: var(--sp-font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--sp-text); margin-bottom: 9px;
}
.sp-trust-card p { font-size: 0.89rem; color: var(--sp-text-muted); line-height: 1.75; }

/* CTA strip */
.sp-cta-strip {
  margin-top: 60px;
  background: var(--sp-accent-dim);
  border: 1px solid var(--sp-accent-border);
  border-radius: 18px; padding: 38px 46px;
  transition: box-shadow 0.3s ease;
}
.sp-cta-strip:hover { box-shadow: 0 8px 32px var(--sp-accent-dim); }
.sp-cta-strip__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.sp-cta-strip__title {
  font-family: var(--sp-font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--sp-text); margin-bottom: 5px;
}
.sp-cta-strip__sub  { font-size: 0.94rem; color: var(--sp-text-muted); }
.sp-cta-strip__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Loading overlay ────────────────────────────────────────── */
.sp-loading-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(13,13,13,0.97);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px; backdrop-filter: blur(8px);
}
[data-theme="light"] .sp-loading-overlay { background: rgba(240,242,240,0.97); }
.sp-loading-overlay.show { display: flex; animation: spOverlayFade 0.3s ease forwards; }
@keyframes spOverlayFade { from { opacity: 0; } to { opacity: 1; } }
.sp-loading__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sp-loading__spinner { position: relative; width: 60px; height: 60px; }
.sp-spinner-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--sp-accent-dim);
  border-top-color: var(--sp-accent);
  animation: spSpin 0.8s linear infinite;
}
.sp-spinner-ring--2 {
  inset: 10px;
  border-top-color: transparent;
  border-right-color: var(--sp-accent-border);
  animation-direction: reverse;
  animation-duration: 1.2s;
}
@keyframes spSpin { to { transform: rotate(360deg); } }
.sp-loading__title {
  font-family: var(--sp-font-display);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--sp-text-muted);
}
.sp-loading__dots { display: flex; gap: 6px; }
.sp-loading__dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sp-accent); opacity: 0;
  animation: spDotBounce 1.4s ease-in-out infinite;
}
.sp-loading__dots span:nth-child(1) { animation-delay: 0s; }
.sp-loading__dots span:nth-child(2) { animation-delay: 0.2s; }
.sp-loading__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes spDotBounce {
  0%,80%,100% { opacity: 0.2; transform: translateY(0); }
  40%          { opacity: 1;   transform: translateY(-7px); }
}


/* ─── Hero car image ─────────────────────────────────────────── */
/* Lives inside .sp-hero__scene so z-index is relative to that
   stacking context:
     bg-layer      z:0
     bg-text       z:0  (no z-index set)
     car-wrap      z:3  ← above bg-text, below grid-overlay (z:1 from wrapper)
     grid-overlay  z:1
   The text wrapper (.sp-hero__wrapper) has z-index:4 in the hero,
   so text is always on top of the image. */
.sp-hero__car-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sp-hero__car-img {
  /* Prominent centered image — desktop background layer */
  width: clamp(900px, 130vw, 1800px);
  height: auto;
  max-height: 110vh;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.70)) brightness(1.22) contrast(1.05);
  user-select: none;
  animation: spCarReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  transform-origin: center center;
}
[data-theme="light"] .sp-hero__car-img {
  opacity: 0.13;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.2));
  animation-name: spCarRevealLight;
}
@keyframes spCarReveal {
  /*
    Clean drift-up entrance:
    — Starts below centre, small, fully transparent
    — Drifts upward and grows to full size with a gentle ease
    — No flip, no bounce — smooth and confident
    — Subtle scale overshoot removed for a polished automotive feel
  */
  0%   {
    opacity: 0;
    transform: translateY(48px) scale(0.88);
    filter: blur(8px);
  }
  40%  {
    opacity: 0.28;
    filter: blur(2px);
  }
  100% {
    opacity: 0.48;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}
@keyframes spCarRevealLight {
  0%   { opacity: 0;    transform: translateY(40px) scale(0.9); filter: blur(6px); }
  40%  { opacity: 0.08; filter: blur(1px); }
  100% { opacity: 0.13; transform: translateY(0) scale(1);      filter: blur(0); }
}


/* ─── Sequential section lock — field-disable approach ───────── */
/* Cards are NOT visually overlaid; instead all interactive
   elements inside them are disabled at the DOM level.
   A subtle opacity + muted border signals unavailability. */

/* Locked card: slight visual dimming only */
.sp-card--locked {
  opacity: 0.48;
  filter: grayscale(0.25);
  transition: opacity 0.4s ease, filter 0.4s ease;
}
/* All form controls inside a locked card are non-interactive */
.sp-card--locked input,
.sp-card--locked select,
.sp-card--locked textarea,
.sp-card--locked button,
.sp-card--locked label,
.sp-card--locked .sp-vslot__dropzone,
.sp-card--locked .sp-part-upload-zone,
.sp-card--locked .sp-quality-card {
  pointer-events: none !important;
  cursor: not-allowed !important;
}
/* Unlock: fade back to full */
.sp-card--unlocking {
  transition: opacity 0.45s ease, filter 0.45s ease;
}


/* ─── Typography improvements ───────────────────────────────── */
/* Ensure consistent font across all form text */
.sp-form-section,
.sp-form-section input,
.sp-form-section select,
.sp-form-section textarea,
.sp-form-section button,
.sp-form-section label {
  font-family: var(--sp-font-body);
}
/* Section headings get proper display font */
.sp-section-title,
.sp-card__title,
.sp-step h3,
.sp-trust-card h4,
.sp-cta-strip__title,
.sp-success__title,
.sp-hero__title {
  font-family: var(--sp-font-display);
  letter-spacing: -0.01em;
}
/* Step card h3 bigger and more comfortable */
.sp-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.sp-step p {
  font-size: 0.9rem;
  line-height: 1.75;
}
/* Trust card headings */
.sp-trust-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.sp-trust-card p {
  font-size: 0.88rem;
  line-height: 1.75;
}
/* Card sub text */
.sp-card__sub {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sp-text-muted);
}
/* Upload zone text */
.sp-upload-zone__title { font-size: 1rem; }
.sp-upload-zone__sub   { font-size: 0.86rem; }
.sp-vslot__label       { font-size: 0.86rem; font-weight: 600; }
.sp-vslot__sub         { font-size: 0.78rem; }
/* Quality card text sizes */
.sp-quality-card__title { font-size: 0.95rem; }
.sp-quality-card__desc  { font-size: 0.82rem; }

/* Progress bar label/pct */
.sp-pb__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.sp-pb__lbl {
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}
/* Submit note */
.sp-submit-note {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--sp-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Hint texts */
.sp-field-hint,
.sp-upload-hint-text {
  font-size: 0.8rem;
  line-height: 1.55;
}
/* Button text */
.sp-btn { font-size: 0.97rem; font-weight: 600; }
.sp-btn--lg { font-size: 1.05rem; }
/* Section subtitles */
.sp-section-sub {
  font-size: 1.02rem;
  line-height: 1.75;
}
/* Pillar */
.sp-pillar__title { font-size: 0.9rem; }
.sp-pillar__sub   { font-size: 0.75rem; }
/* CTA strip sub */
.sp-cta-strip__sub { font-size: 0.92rem; }
/* Success text */
.sp-success__text { font-size: 0.97rem; }
/* Hero description */
.sp-hero__desc { font-size: clamp(1rem, 1.8vw, 1.15rem); }
/* Eyebrow */
.sp-eyebrow { font-size: 0.76rem; letter-spacing: 3.5px; }


/* ─── Other brand reveal field ───────────────────────────────── */
#otherBrandField {
  animation: spFadeUp 0.3s ease both;
}
#otherBrandField input {
  background: var(--sp-input-bg);
  border: 1.5px solid var(--sp-accent-border);
}
#otherBrandField input:focus {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px var(--sp-accent-dim);
}




/* ─── Mobile hero image (hidden on desktop) ─────────────────── */
.sp-hero__img-mob { display: none; }
.sp-hero__img-mob__src { display: block; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sp-steps-grid  { grid-template-columns: 1fr 1fr; }
  .sp-trust-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .sp-hero,
  .sp-container,
  .sp-section,
  .sp-form-section,
  .sp-cta-strip,
  .sp-success,
  .sp-steps-section,
  .sp-quality-section,
  .sp-trust-section {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .sp-hero {
    overflow: hidden;
    padding: clamp(1.5rem, 4vh, 2rem) 1.5rem clamp(1rem, 3vh, 2rem);
    align-items: flex-start;
    min-height: auto;
    height: auto;
  }
  .sp-hero__badge {
    margin-bottom: 1.5rem;
  }
  .sp-hero__title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
  }
  .sp-hero__desc-wrap {
    margin-bottom: 1.5rem;
  }
  .sp-hero__pillars {
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
    box-sizing: border-box;
  }
  .sp-pillar        { padding: 0; }
  .sp-pillar__divider { width: 50px; height: 1px; }
  .sp-form-grid   { grid-template-columns: 1fr; }
  .sp-quality-grid { grid-template-columns: 1fr; }
  .sp-steps-grid  { grid-template-columns: 1fr; }
  .sp-trust-grid  { grid-template-columns: 1fr 1fr; }
  .sp-vehicle-slots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sp-vslot__dropzone { padding: 8px; }
  .sp-vslot__empty { gap: 2px; }
.sp-vslot__label { font-size: 0.76rem; }
.sp-vslot__sub { font-size: 0.68rem; }
  .sp-part-previews { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .sp-submit-area { flex-direction: column; align-items: stretch; }
  .sp-submit-btn  { min-width: unset; }
  .sp-cta-strip   { padding: 28px 24px; }
  .sp-cta-strip__inner { flex-direction: column; }
  .sp-cta-strip__actions { flex-direction: column; width: 100%; }
  .sp-btn--lg     { width: 100%; justify-content: center; }
  .sp-hero__stripe { width: 50px; }
  .sp-hero__bg-word { font-size: clamp(3.5rem, 12vw, 7rem); }

  /* ── Mobile: hide the scene car, show the wrapper-relative one ── */
  .sp-hero__car-wrap { display: none; }
  /* Text wrapper becomes the positioning parent for the mobile image */
  .sp-hero__wrapper {
    position: relative;
    align-items: flex-start;
    padding-top: 0;
    overflow: hidden;
  }
.sp-hero__content {
    position: relative; z-index: 2;
    display: flex;
    flex-direction: column;
  }
  .sp-hero__pillars { order: 1; }
  .sp-hero__actions { order: 2; margin-top: 1.5rem; }
  /* Mobile image: absolute inside .sp-hero__wrapper
     top: 0 aligns to the top of the wrapper (same Y as the heading starts).
     The heading has z-index:2 via .sp-hero__content so it sits on top.
     The image acts as a visual base directly beneath the heading text. */
  .sp-hero__img-mob {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    z-index: 1;
    pointer-events: none;
  }
  .sp-hero__img-mob__src {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    opacity: 0.85;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.55)) brightness(1.25);
    animation: spCarReveal 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
    display: block;
  }

  .sp-container {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }

  .sp-hero__wrapper,
  .sp-hero__content,
  .sp-hero__actions,
  .sp-hero__pillars {
    max-width: 100%;
    box-sizing: border-box;
  }

  .sp-btn,
  .sp-btn--lg {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .sp-hero > * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .sp-suggestion,
  .sp-suggestion__content,
  .sp-suggestion__actions {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
  }

  .sp-form-section {
    overflow: visible;
  }

  .sp-section-head {
    margin-bottom: 24px;
  }

  .sp-suggestion {
    margin-bottom: 1.5rem;
  }

  .sp-hiw,
  .sp-trust {
    padding: 48px 0;
  }

  .sp-steps-grid {
    margin-top: 32px;
  }
}

@media (max-width: 540px) {
  .sp-hero__title {
    font-size: 2.2rem;
  }
  .sp-trust-grid  { grid-template-columns: 1fr; }
  .sp-card        { padding: 22px 18px; }
  .sp-quality-grid { grid-template-columns: 1fr; }
  .sp-hero__stripe { width: 34px; }
  .sp-success     { padding: 38px 22px; }
}

@media (max-width: 540px) {
  .sp-form-section {
    padding: 32px 0 32px;
  }
  
  .sp-section-head {
    margin-bottom: 20px;
  }
  
  .sp-hiw,
  .sp-trust {
    padding: 32px 0;
  }
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready { opacity: 1 !important; transform: none !important; }
  .sp-title-word { opacity: 1 !important; transform: none !important; }
  .sp-hero__scene { opacity: 1 !important; }
}

/* ─── Focus ring ─────────────────────────────────────────────── */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sp-accent);
  outline-offset: 3px;
}

/* ─── My Vehicles Dropdown ───────────────────────────────────── */
.sp-my-vehicles-btn-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.sp-my-vehicles-btn-wrap .sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ─── My Vehicles Modal Styles ────────────────────────────────── */
.sp-my-vehicles-modal .modal-overlay {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.sp-my-vehicles-modal .modal-content {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--sp-shadow-xl);
  max-width: 480px;
  width: 90%;
}

.sp-my-vehicles-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sp-border);
}

.sp-my-vehicles-modal .modal-header h3 {
  font-family: var(--sp-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-text);
  margin: 0;
}

.sp-my-vehicles-modal .btn-close-modal {
  background: var(--sp-bg-3);
  border: 1px solid var(--sp-border);
  color: var(--sp-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-my-vehicles-modal .btn-close-modal:hover {
  background: var(--sp-accent-dim);
  border-color: var(--sp-accent-border);
  color: var(--sp-accent);
}

.sp-my-vehicles-modal .sp-vehicle-dropdown__list {
  max-height: 350px;
  overflow-y: auto;
  padding: 4px;
}

.sp-my-vehicles-modal .sp-vehicle-dropdown__item {
  background: var(--sp-bg-3);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-my-vehicles-modal .sp-vehicle-dropdown__item:hover {
  background: var(--sp-accent-dim);
  border-color: var(--sp-accent-border);
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-md);
}

.sp-my-vehicles-modal .sp-vehicle-dropdown__item-title {
  font-family: var(--sp-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sp-text);
}

.sp-my-vehicles-modal .sp-vehicle-dropdown__item-sub {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
  margin-top: 4px;
}

.sp-vehicle-dropdown {
  position: absolute;
  z-index: 100;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  box-shadow: var(--sp-shadow-lg);
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  animation: spFadeUp 0.25s ease forwards;
}

.sp-vehicle-dropdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sp-border);
  font-weight: 600;
  color: var(--sp-text);
}

.sp-vehicle-dropdown__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--sp-text-muted);
  cursor: pointer;
  line-height: 1;
}

.sp-vehicle-dropdown__list {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.sp-vehicle-dropdown__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--sp-bg-3);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  margin-bottom: 6px;
}

.sp-vehicle-dropdown__item:hover {
  background: var(--sp-accent-dim);
  border-color: var(--sp-accent-border);
}

.sp-vehicle-dropdown__item-title {
  font-weight: 600;
  color: var(--sp-text);
  font-size: 0.94rem;
}

.sp-vehicle-dropdown__item-sub {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
  margin-top: 2px;
}

.sp-vehicle-dropdown__item:last-child {
  margin-bottom: 0;
}

/* ─── Form Section Padding Fix ────────────────────────────────── */
.sp-form-section .sp-container {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

@media (max-width: 768px) {
  .sp-form-section .sp-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 769px) {
  .sp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}

@media (max-height: 700px) {
  .sp-hero {
    min-height: 100vh;
    padding: 4rem 1.5rem 3rem;
  }
  .sp-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
  }
  .sp-hero__pillars {
    padding: 12px 16px !important;
  }
  .sp-pillar {
    padding: 6px 12px !important;
  }
  .sp-pillar__icon {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ─── Disabled Form State ────────────────────────────────────── */
.sp-form-disabled {
  opacity: 0.6;
}

/* ─── Input Field Style Match ─────────────────────────────────── */
.sp-input-select-style {
  background: var(--sp-input-bg);
  border: 1.5px solid var(--sp-input-border);
  color: var(--sp-input-text);
  font-family: var(--sp-font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: 10px;
  width: 100%;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sp-input-select-style:focus {
  border-color: var(--sp-accent);
  background: var(--sp-input-bg);
  box-shadow: 0 0 0 3px var(--sp-accent-dim);
}

.sp-input-select-style::placeholder {
  color: var(--sp-input-ph);
}

/* ─── Part Details Grid Gap ─────────────────────────────────── */
.sp-form-grid--part-details {
  row-gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ─── Textarea Style ─────────────────────────────────────────── */
.sp-textarea-style {
  background: var(--sp-input-bg);
  border: 1.5px solid var(--sp-input-border);
  color: var(--sp-input-text);
  font-family: var(--sp-font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: 10px;
  width: 100%;
  outline: none;
  resize: vertical;
  min-height: 118px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-sizing: border-box;
}

.sp-textarea-style:focus {
  border-color: var(--sp-accent);
  background: var(--sp-input-bg);
  box-shadow: 0 0 0 3px var(--sp-accent-dim);
}

.sp-textarea-style::placeholder {
  color: var(--sp-input-ph);
}

/* ─── OEM Icon Grey Style ───────────────────────────────────── */
.sp-oem-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(0) invert(0.5);
}

/* ─── Form Disabled Overlay ───────────────────────────────────── */
#sparePartsForm {
  position: relative;
}

.sp-form-disabled-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sp-form-disabled-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #666;
  font-size: 16px;
}

.sp-form-disabled-msg i {
  font-size: 18px;
}
/* --- Suggestion Banner ----------------------------------------- */
.sp-suggestion {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--sp-surface);
  border: 1px solid var(--sp-accent-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--sp-shadow-lg);
  position: relative;
  overflow: hidden;
  animation: spFadeUp 0.6s var(--sp-ease) forwards;
}

.sp-suggestion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sp-accent);
}

.sp-suggestion__icon {
  width: 48px;
  height: 48px;
  background: var(--sp-accent-dim);
  border: 1px solid var(--sp-accent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-accent);
  flex-shrink: 0;
}

.sp-suggestion__content {
  flex: 1;
}

.sp-suggestion__title {
  font-family: var(--sp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sp-text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.sp-suggestion__text {
  font-size: 0.96rem;
  color: var(--sp-text-muted);
  margin: 0;
  line-height: 1.5;
}

.sp-suggestion__actions {
  flex-shrink: 0;
}

.sp-btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .sp-suggestion {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .sp-suggestion::before {
    width: 3px;
    height: 100%;
  }
  
  .sp-suggestion__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  
  .sp-suggestion__icon svg {
    width: 22px;
    height: 22px;
  }
  
  .sp-suggestion__content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .sp-suggestion__title {
    font-size: 1.12rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .sp-suggestion__text {
    font-size: 0.92rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .sp-suggestion__actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .sp-suggestion__actions .sp-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

