/* Responsive simple flow — phone + desktop */

html.simple-mode-root {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.simple-mode-root,
body.simple-mode {
  font-size: clamp(16px, 2.5vw, 18px);
}

body.simple-mode {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --border: #cbd5e1;
  --accent: #d61f2c;
  --panel: #f8fafc;
  --header-bg: #ffffff;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.06);
  --page-pad: max(16px, env(safe-area-inset-left));
  --page-pad-r: max(16px, env(safe-area-inset-right));
  --page-pad-b: max(24px, env(safe-area-inset-bottom));
  background: var(--bg);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100dvh;
}

body.simple-mode .legacy-app,
body.simple-mode .lazy-section,
body.simple-mode .popular-requests,
body.simple-mode #popular-requests,
body.simple-mode .supplier-feature,
body.simple-mode .seo-content {
  display: none !important;
}

body.simple-mode .easy-help,
body.simple-mode .easy-progress,
body.simple-mode .intl-banner,
body.simple-mode .hero,
body.simple-mode .featured-stock,
body.simple-mode .reviews-section,
body.simple-mode .seo-section,
body.simple-mode .site-nav-links,
body.simple-mode #vin-decode-result,
body.simple-mode .inventory,
body.simple-mode .nav-cta,
body.simple-mode .sw-help-wa,
body.simple-mode .floating-whatsapp {
  display: none !important;
}

body.simple-mode .nav-actions .whatsapp-pill[href^="tel:"] {
  display: none !important;
}

/* Header — compact on phone, roomy on desktop */
body.simple-mode .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  min-height: auto;
  padding-top: env(safe-area-inset-top);
}

body.simple-mode .nav {
  min-height: 64px;
  padding: 10px var(--page-pad);
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  height: auto !important;
}

body.simple-mode .logo {
  background: transparent;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
}

body.simple-mode .logo-img {
  height: clamp(52px, 12vw, 72px);
  max-width: min(280px, 55vw);
  width: auto;
}

body.simple-mode .nav-actions {
  flex-shrink: 0;
  margin-left: auto !important;
  width: auto !important;
}

body.simple-mode .whatsapp-pill {
  background: #128c7e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: clamp(0.9375rem, 2.8vw, 1.125rem);
  padding: 12px 18px;
  min-height: 48px;
  align-items: center;
  box-shadow: none;
  white-space: nowrap;
}

body.simple-mode .whatsapp-pill:hover {
  background: #0f7668;
  text-decoration: none;
}

/* Page shell */
body.simple-mode .page {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px var(--page-pad) var(--page-pad-b);
  padding-right: var(--page-pad-r);
}

body.simple-mode .section {
  margin-top: 0;
}

/* Two-column layout on desktop */
.sw-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.sw-layout-intro {
  min-width: 0;
}

.sw-layout-main {
  min-width: 0;
}

.sw-benefits {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.sw-benefits li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.45;
}

.sw-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #128c7e;
  font-weight: 800;
}

.sw-trust--desktop {
  display: none;
}

.sw-trust--mobile {
  display: flex;
}

body.simple-mode .primary-btn {
  width: 100%;
  padding: clamp(16px, 4vw, 20px) clamp(18px, 4vw, 24px);
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: clamp(1.0625rem, 3.5vw, 1.25rem);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease;
  min-height: 56px;
  touch-action: manipulation;
}

body.simple-mode .primary-btn:hover {
  background: #b91c28;
}

body.simple-mode .cookie-banner {
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(960px, calc(100% - 24px));
}

body.simple-mode .cookie-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 1rem;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

body.simple-mode .cookie-actions {
  width: 100%;
  justify-content: stretch;
  gap: 10px;
}

body.simple-mode .cookie-actions .primary-btn,
body.simple-mode .cookie-actions .link-btn {
  flex: 1;
  min-height: 48px;
}

body.simple-mode .site-footer {
  font-size: 0.9375rem;
}

/* Hero */
.sw-hero {
  text-align: center;
  margin-bottom: 20px;
}

.sw-kicker {
  margin: 0 0 10px;
  font-size: clamp(0.8125rem, 2.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.sw-title {
  margin: 0 0 10px;
  font-size: clamp(1.625rem, 6vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sw-sub {
  margin: 0;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.5;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* Progress */
.sw-progress {
  margin-bottom: 16px;
}

.sw-progress-text {
  display: block;
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}

.sw-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.sw-progress-bar-fill {
  height: 100%;
  width: 33.33%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.sw-dots {
  display: none;
}

/* Wizard card */
.simple-wizard {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 5vw, 40px) clamp(18px, 4vw, 36px);
  background: var(--surface);
  box-shadow: var(--shadow);
  width: 100%;
}

.sw-step[hidden] {
  display: none !important;
}

.sw-num {
  display: none;
}

.sw-step h2 {
  text-align: left;
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.sw-hint {
  text-align: left;
  font-size: clamp(1rem, 3vw, 1.125rem);
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.sw-step .vin-progress {
  margin-bottom: 14px;
}

.sw-step .vin-progress-track {
  height: 10px;
  border: none;
  border-radius: 999px;
  background: var(--border);
}

.sw-step .vin-progress-fill {
  background: var(--accent);
  border-radius: 999px;
}

.sw-step .vin-progress-label {
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}

.sw-step .vin-input-strong {
  font-size: clamp(1.125rem, 4vw, 1.375rem) !important;
  padding: clamp(16px, 4vw, 20px) clamp(16px, 3.5vw, 22px) !important;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 56px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.sw-step .vin-input-strong:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 31, 44, 0.15);
}

.sw-step .vin-input-strong::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-size: clamp(0.9375rem, 3vw, 1.125rem);
  color: #94a3b8;
}

.sw-step #vin-decode-btn {
  width: 100%;
  margin-top: 16px;
}

.sw-car-name {
  text-align: left;
  font-size: clamp(1.0625rem, 3.2vw, 1.25rem);
  font-weight: 700;
  color: #0f7668;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  border-radius: 8px;
  word-break: break-word;
}

.sw-big-btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sw-big-btn {
  padding: clamp(18px, 4vw, 24px) 16px;
  font-size: clamp(1.0625rem, 3.2vw, 1.125rem);
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: none;
  color: var(--ink);
  min-height: 56px;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sw-big-btn:hover {
  border-color: #94a3b8;
  background: var(--panel);
}

.sw-big-btn.is-picked {
  border-color: var(--accent);
  background: #fff5f5;
  color: var(--accent);
}

.sw-part-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.sw-part-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(72px, 18vw, 96px);
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  cursor: pointer;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sw-part-btn:hover {
  border-color: #94a3b8;
  background: var(--panel);
}

.sw-part-btn.is-picked {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sw-part-icon {
  display: none;
}

.sw-part-other {
  width: 100%;
  padding: clamp(16px, 4vw, 20px) clamp(16px, 3.5vw, 22px);
  font-size: clamp(1rem, 3vw, 1.125rem);
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: left;
  background: #fff;
  min-height: 56px;
  touch-action: manipulation;
}

.sw-part-other:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 31, 44, 0.15);
}

.sw-price-box {
  text-align: center;
  padding: clamp(16px, 4vw, 20px);
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  font-size: clamp(1.0625rem, 3.2vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(16px, 4vw, 20px) clamp(18px, 4vw, 24px);
  text-align: center;
  font-size: clamp(1.0625rem, 3.5vw, 1.25rem);
  font-weight: 700;
  background: #128c7e;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: none;
  min-height: 56px;
  line-height: 1.3;
  touch-action: manipulation;
  transition: background 0.15s ease;
}

.sw-whatsapp-btn:hover {
  background: #0f7668;
  text-decoration: none !important;
}

.sw-back-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
}

.sw-back-btn:hover {
  color: var(--ink);
  text-decoration: underline;
}

.sw-step .field-error {
  text-align: left;
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  font-weight: 600;
  color: var(--accent);
  margin-top: 10px;
}

.sw-alt-link {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  touch-action: manipulation;
}

.sw-alt-link:hover {
  color: #b91c28;
}

.sw-field {
  margin-bottom: 16px;
}

.sw-field-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.sw-select {
  width: 100%;
  padding: clamp(14px, 3.5vw, 18px) clamp(14px, 3vw, 16px);
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 52px;
  cursor: pointer;
  appearance: auto;
}

.sw-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--panel);
}

.sw-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 31, 44, 0.12);
}

#sw-manual-panel .primary-btn {
  margin-top: 8px;
}

.sw-trust {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
  font-size: clamp(0.875rem, 2.6vw, 1.0625rem);
  font-weight: 600;
  color: var(--muted);
}

.sw-trust span {
  display: inline-flex;
  align-items: center;
  text-align: center;
}

/* ── Phone (default + small) ── */
@media (max-width: 479px) {
  body.simple-mode .page {
    padding-top: 16px;
  }

  .simple-wizard {
    border-radius: 10px;
    border-left: none;
    border-right: none;
    margin-left: calc(-1 * var(--page-pad));
    margin-right: calc(-1 * var(--page-pad-r));
    width: calc(100% + var(--page-pad) + var(--page-pad-r));
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .sw-progress {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* ── Large phone / small tablet ── */
@media (min-width: 480px) and (max-width: 767px) {
  .sw-big-btns {
    grid-template-columns: repeat(3, 1fr);
  }

  .sw-part-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Tablet ── */
@media (min-width: 768px) {
  body.simple-mode .page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  body.simple-mode .nav {
    min-height: 72px;
    padding: 12px 24px;
  }

  .sw-hero {
    margin-bottom: 24px;
  }

  .sw-big-btns {
    grid-template-columns: repeat(3, 1fr);
  }

  .sw-part-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  body.simple-mode .cookie-card {
    flex-direction: row;
    align-items: center;
  }

  body.simple-mode .cookie-actions {
    width: auto;
    justify-content: flex-end;
  }
}

/* ── Desktop ── */
@media (min-width: 960px) {
  .sw-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
  }

  .sw-layout-intro {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top) + 24px);
  }

  .sw-hero {
    text-align: left;
    margin-bottom: 28px;
  }

  .sw-sub {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .sw-benefits {
    display: grid;
    margin-bottom: 28px;
  }

  .sw-trust--desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: left;
  }

  .sw-trust--mobile {
    display: none;
  }

  .sw-progress-text {
    text-align: left;
  }

  .simple-wizard {
    max-width: none;
  }

  .sw-part-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Side image slider (intro column + SEO strip) */
.search-slider {
  position: relative;
  overflow: hidden;
}

.search-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
}

.search-slide.is-active {
  opacity: 1;
}

.sw-side-slider {
  display: none;
  margin-top: 24px;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sw-side-slider picture,
.sw-seo-strip-slider picture {
  position: absolute;
  inset: 0;
}

.sw-seo-strip-slider {
  position: relative;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sw-seo-strip-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Visible SEO strip (indexable, below wizard) ── */
.sw-seo-strip {
  max-width: none;
  margin: 28px auto 0;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border, #cbd5e1);
  text-align: center;
}

.sw-seo-strip-title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 700;
  color: var(--muted, #64748b);
}

.sw-seo-strip-text {
  margin: 0 0 14px;
  font-size: clamp(0.875rem, 2.2vw, 0.9375rem);
  color: var(--muted, #64748b);
  line-height: 1.55;
}

.sw-seo-strip-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.sw-seo-strip-nav a {
  font-size: 0.875rem;
  color: var(--accent, #d61f2c);
  font-weight: 600;
}

.sw-seo-strip-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted, #64748b);
}

.sw-seo-strip-meta a {
  color: var(--muted, #64748b);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .sw-seo-strip-layout {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
    gap: 28px;
    align-items: center;
  }

  .sw-seo-strip {
    text-align: left;
  }

  .sw-seo-strip-nav {
    justify-content: flex-start;
  }
}

@media (min-width: 960px) {
  .sw-side-slider {
    display: block;
  }
}

@media (min-width: 1024px) {
  .sw-seo-strip {
    margin-top: 32px;
  }
}

/* ── Wide desktop ── */
@media (min-width: 1200px) {
  .sw-part-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sw-big-btn {
    min-height: 72px;
  }
}
