/* ============================================================
   NUMBER ONE DELIVERY — Calculateur Tarifs 2021
   Mobile-first multi-step form
   ============================================================ */

:root {
  --navy: #0F417B;
  --navy-dark: #0c3566;
  --navy-mid: #1a5496;
  --green: #3EB550;
  --green-dark: #35a046;
  --green-darker: #2d8c3c;
  --white: #ffffff;
  --bg: #eef2ff;
  --text: #1a1a2e;
  --text-sec: #4a5568;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-mid: #cbd5e1;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ================================================================
   HEADER
   ================================================================ */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 31px;
  background: #ffffff;
  position: relative;
  z-index: 200;
  height: 124px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  height: auto;
  text-decoration: none;
}

.logo img {
  width: 68.68px;
  height: 60.49px;
  object-fit: contain;
}

.logo-subtitle {
  font-size: 9px;
  font-style: italic;
  font-weight: 500;
  color: #0F417B;
  margin-top: 2px;
  white-space: nowrap;
}

.menu-btn {
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.desktop-nav { display: none; }
.lang-code    { display: none; }

/* ================================================================
   APP LAYOUT — mobile: stacked. desktop: side-by-side
   ================================================================ */

.app {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 22px 24px 52px;
  flex-shrink: 0;
}

/* Progress dots */
.step-progress {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.progress-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.25s;
}

.progress-dot.done {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}

.progress-dot.active {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

.progress-dot.future {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.25);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.18);
  transition: background 0.25s;
}

.progress-line.done {
  background: var(--green);
}

/* Hero body */
.hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hero-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.hero-accent {
  color: var(--green);
  display: block;
}

.hero-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
  max-width: 220px;
}

.hero-emoji {
  font-size: 72px;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
  user-select: none;
}

.hero-images {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.hero-guy {
  height: 150px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
}

.hero-box {
  height: 70px;
  object-fit: contain;
  display: block;
  margin-left: -18px;
  align-self: flex-end;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

/* ================================================================
   CONTENT CARD
   ================================================================ */

.content-card {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  margin-top: -28px;
  flex: 1;
  padding: 28px 20px 40px;
  position: relative;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.1);
}

/* ================================================================
   MODE CARDS — Step 1
   ================================================================ */

.mode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  height: 72px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: var(--white);
  user-select: none;
}

.mode-card input[type="radio"] { display: none; }

.mode-card:has(input:checked) {
  border-color: var(--navy);
  background: #eef2ff;
  box-shadow: 0 2px 10px rgba(13,34,85,0.1);
}

.mode-card:hover:not(:has(input:checked)) {
  border-color: var(--navy-mid);
  background: #f8faff;
}

.mode-emoji {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mode-emoji[src="images/icon_brux.png"],
.mode-emoji[src="images/icon_prov_min.png"],
.mode-emoji[src="images/icon_rand.png"],
.mode-emoji[src="images/icon_car.png"] {
  width: 64px;
  height: 64px;
}

.mode-info { flex: 1; }

.mode-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.mode-info small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.radio-circle {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-mid);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}

.mode-card:has(input:checked) .radio-circle {
  border-color: var(--navy);
}

.mode-card:has(input:checked) .radio-circle::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--navy);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ================================================================
   CONDITIONAL BLOCKS
   ================================================================ */

.cond-block {
  display: none;
  margin: 10px 0 4px;
  padding: 16px;
  background: #f0f4ff;
  border: 1px solid #c7d4f0;
  border-radius: var(--radius-sm);
}

.cond-block.visible { display: block; }

/* ================================================================
   FIELD INPUTS
   ================================================================ */

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.optional {
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0;
}

.field-input,
.field-select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  outline: none;
  margin-top: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
  -webkit-appearance: none;
}

.field-input:focus,
.field-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,34,85,0.08);
}

/* ================================================================
   FIELD CARDS
   ================================================================ */

.field-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
}

.field-card-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-top: 14px;
  flex-shrink: 0;
}

.field-card .field-label { flex: 1; }

/* ================================================================
   DIMENSIONS CARD
   ================================================================ */

.dims-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

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

.dim-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dim-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 2px;
}

.dim-item .field-label {
  text-align: center;
  font-size: 9px;
  width: 100%;
}

.input-unit-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  width: 100%;
}

.input-unit-row .field-input {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  padding: 8px 6px;
  font-size: 12px;
  text-align: center;
}

.unit-sel {
  width: 44px;
  padding: 8px 2px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 11px;
  background: #f8f9fa;
  color: var(--text-sec);
  cursor: pointer;
  outline: none;
  text-align: center;
}

/* ================================================================
   TOGGLE CARDS
   ================================================================ */

.toggle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 10px;
  background: var(--white);
  transition: border-color 0.15s;
  user-select: none;
}

.toggle-card:hover { border-color: var(--border-mid); }

.toggle-icon { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.toggle-label-group {
  flex: 1;
}

.toggle-label-group .toggle-label {
  display: block;
  flex: none;
}

.toggle-label-group small {
  color: var(--text-muted);
  font-size: 12px;
  display: block;
  margin-top: 1px;
}

.toggle-input { display: none; }

.toggle-track {
  width: 48px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 14px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toggle-track::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-track {
  background: var(--green);
}

.toggle-input:checked + .toggle-track::after {
  transform: translateX(20px);
}

/* ================================================================
   TWO COLUMN LAYOUTS
   ================================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.two-col-cards .field-card {
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  margin-bottom: 0;
}

.two-col-cards .field-card-icon {
  margin-top: 0;
  width: 28px;
  height: 28px;
}

/* ================================================================
   VEHICLE GRID — Step 3
   ================================================================ */

.recommended-card {
  border: 2.5px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  position: relative;
  text-align: center;
  min-height: 80px;
}

.recommended-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.recommended-emoji {
  font-size: 52px;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.recommended-vehicle-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.recommended-compat {
  font-size: 11px;
  color: var(--green-dark);
  margin-top: 4px;
}

.recommended-none {
  color: #dc2626;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
}

.vehicles-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.vehicle-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: var(--white);
  text-align: center;
  position: relative;
}

.vehicle-card:hover {
  border-color: var(--navy-mid);
  background: #f8faff;
  box-shadow: 0 2px 8px rgba(13,34,85,0.08);
}

.vehicle-card.selected {
  border-color: var(--navy);
  background: #f0f4ff;
  box-shadow: 0 2px 10px rgba(13,34,85,0.12);
}

.vehicle-card.incompatible {
  opacity: 0.35;
  cursor: default;
}

.vehicle-card.incompatible:hover {
  border-color: var(--border);
  background: var(--white);
  box-shadow: none;
}

.vehicle-card-emoji {
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.vehicle-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
}

.vehicle-card-desc {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  font-family: var(--mono);
}

.vehicle-card.best-match::after {
  content: '★';
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--green);
  font-size: 12px;
}

/* ================================================================
   OVERRIDE SECTION
   ================================================================ */

.override-section { margin-bottom: 12px; }

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  color: var(--text-sec);
}

.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ================================================================
   DEBUG PANEL
   ================================================================ */

.debug-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.debug-header {
  background: #f8fafc;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
}

.debug-header:hover { background: var(--border); }

.debug-body {
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  max-height: 280px;
  overflow-y: auto;
}

.debug-vehicle {
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
}

.debug-vehicle:last-child { border-bottom: none; }
.debug-vehicle-name { font-weight: 600; font-size: 11px; margin-bottom: 2px; }
.check-pass { color: #16a34a; }
.check-fail { color: #dc2626; }
.check-na { color: var(--text-muted); }

/* ================================================================
   NAVIGATION BUTTONS
   ================================================================ */

.step-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-next {
  width: 100%;
  padding: 16px 24px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}

.btn-next span { font-size: 18px; }
.btn-next:hover { background: var(--green-darker); box-shadow: 0 6px 18px rgba(22,163,74,0.4); }
.btn-next:active { transform: scale(0.98); }

.btn-calculate {
  background: var(--navy);
  box-shadow: 0 4px 14px rgba(13,34,85,0.3);
  letter-spacing: 0.08em;
}

.btn-calculate:hover {
  background: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(13,34,85,0.4);
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-sec);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.btn-back:hover {
  color: var(--text);
  background: var(--bg);
}

/* ================================================================
   HELPER TEXT
   ================================================================ */

.helper {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  font-family: var(--mono);
}

.warning-text { color: #b45309 !important; }

/* ================================================================
   RESULT / SUMMARY PAGE
   ================================================================ */

.warning-banner {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #b45309;
  margin-bottom: 16px;
  font-weight: 500;
}

.result-vehicle-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.result-v-icon { font-size: 36px; flex-shrink: 0; }

.result-v-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.result-v-reason {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 3px;
  font-family: var(--mono);
}

/* Breakdown */
.breakdown-table { margin-bottom: 16px; }

.breakdown-section-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 14px 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dotted var(--border);
}

.breakdown-row:last-child { border-bottom: none; }

.breakdown-label {
  color: var(--text-sec);
  flex: 1;
  padding-right: 8px;
}

.breakdown-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.breakdown-value.zero { color: var(--text-muted); font-weight: 400; }
.breakdown-value.info { color: var(--text-muted); font-size: 11px; font-weight: 400; }

.breakdown-note {
  font-size: 11px;
  color: #b45309;
  font-family: var(--mono);
  padding: 3px 0;
}

/* Totals */
.totals-block {
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.total-row:last-child { border-bottom: none; }
.total-row.subtotal { background: #f8fafc; }
.total-row.vat-row { background: var(--white); color: var(--text-sec); font-size: 12px; }

.total-row.grand-total {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.total-label { font-weight: 600; }

.total-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}

.grand-total .total-value { font-size: 19px; }
.vat-row .total-value { font-size: 13px; font-weight: 600; }

.manual-quote-card {
  margin: 16px 0;
  padding: 14px;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #b45309;
}

.manual-quote-card strong { display: block; margin-bottom: 4px; font-size: 14px; }

.disclaimer-note {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 16px;
  line-height: 1.6;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.btn-action {
  flex: 1;
  padding: 11px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-action:hover {
  background: #f0f4ff;
  box-shadow: 0 2px 8px rgba(13,34,85,0.1);
}

/* ================================================================
   TABLET (640px+) — centered card
   ================================================================ */

@media (min-width: 640px) {
  .hero {
    padding: 30px 48px 60px;
  }

  .hero-title { font-size: 36px; }
  .hero-emoji { font-size: 88px; }

  .content-card {
    max-width: 560px;
    margin: -30px auto 0;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 32px 32px 44px;
  }
}

/* ================================================================
   DESKTOP (1024px+) — side-by-side split layout
   ================================================================ */

@media (min-width: 1024px) {
  body { overflow: hidden; }

  .header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 0 80px;
    justify-content: space-between;
  }

  .logo {
    position: static;
    transform: none;
  }

  .logo img { width: 90px; height: 75px; }

  .logo-subtitle { font-size: 11px; }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 50px;
  }

  .desktop-nav a {
    color: #0F417B;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
  }

  .desktop-nav a:not(.nav-cta):hover { color: #3EB550; }

  .desktop-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: #3EB550;
    transition: width 0.3s ease;
  }

  .desktop-nav a:not(.nav-cta):hover::after { width: 100%; }

  .nav-active:not(.nav-cta)::after { width: 100% !important; }

  .nav-cta {
    background: linear-gradient(135deg, #3EB550 0%, #35a045 100%);
    color: white !important;
    padding: 14px 32px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(62, 181, 80, 0.3);
    transition: all 0.3s ease;
  }

  .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(62, 181, 80, 0.4);
  }

  .lang-code { display: inline; }
  .lang-picker { z-index: 1001; }
  .lang-dropdown { right: 0; left: auto; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }

  .app {
    flex-direction: row;
    height: calc(100vh - 124px);
    margin-top: 124px;
    max-width: none;
  }

  .hero {
    width: 420px;
    flex-shrink: 0;
    padding: 40px 36px;
    border-radius: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .hero-body {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 8px;
    flex: 1;
  }

  .hero-emoji {
    font-size: 108px;
    margin-top: 12px;
  }

  .hero-title { font-size: 38px; }
  .hero-subtitle { max-width: 300px; font-size: 14px; }

  .content-card {
    flex: 1;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-left: 1px solid rgba(0,0,0,0.06);
    padding: 40px 56px 48px;
    max-width: none;
    height: 100%;
    overflow-y: auto;
  }
}

@media (min-width: 1280px) {
  .hero { width: 460px; }
  .content-card { padding: 44px 72px 52px; }
}

/* ================================================================
   PRINT
   ================================================================ */

@media print {
  .header,
  .hero,
  .step-nav,
  .result-actions,
  .debug-panel { display: none !important; }

  body { overflow: visible; }
  .app { display: block; height: auto; margin-top: 0; }

  .content-card {
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: 100%;
    height: auto;
  }

  #step-1, #step-2, #step-3,
  #step-4, #step-5 { display: none !important; }
  #step-summary { display: block !important; }
}

/* ── Mobile Menu Overlay (same as numberone_final) ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow-y: auto;
}

.mobile-menu.active .menu-content {
  transform: translateX(0);
}

.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 30px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.menu-item {
  padding: 20px 25px;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.menu-item.active {
  background: #0F417B;
  color: white;
}

.menu-item:not(.active):not(.menu-item-outlined):hover {
  background: #f8f9fa;
  color: #0F417B;
}

.menu-item-outlined {
  border: 2px solid #8B5CF6;
  color: #8B5CF6;
  margin: 10px 0;
}

.menu-item-outlined:hover {
  background: #8B5CF6;
  color: white;
}

.menu-call-btn {
  background: #3EB550;
  color: white;
  padding: 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.menu-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62, 181, 80, 0.3);
}

/* ── Language Picker ── */
.lang-picker {
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
}

.lang-btn:hover { background: rgba(15, 65, 123, 0.07); }

.lang-flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}

.lang-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lang-picker:has(.lang-dropdown.open) .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 9999;
  min-width: 90px;
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0F417B;
  white-space: nowrap;
  transition: background 0.15s;
}

.lang-option:hover { background: #f0f5ff; }
.lang-option.lang-active { background: #e6eef9; }
