﻿/* ============================================================
   Leverport V1 – Public Flow / Landing Page Stylesheet
   Mobile-First · Responsive · Production-Ready
   ============================================================ */

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

:root {
  --primary:      #255deb;
  --primary-dark: #1d4ed8;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-md:    0 4px 24px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  /* Touch target minimum per iOS HIG & Material */
  --touch-min:    44px;
}

html {
  font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Clip at the viewport too — overflow-x:hidden on <body> alone doesn't reliably
     stop horizontal panning on mobile (the scroll can live on the root element). */
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--bg, #f8fafc);
  color: var(--text, #1f2937);
  min-height: 100vh;
  line-height: 1.6;
  width: 100%;
  /* No horizontal scroll and no left/right rubber-band on touch devices. */
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* ── Landing Hero ─────────────────────────────────────────────── */
.lp-hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.lp-logo { max-height: 56px; margin-bottom: 2rem; object-fit: contain; max-width: 200px; display: block; }
/* When logo is wrapped in a background pill, the pill carries the margin */
.lp-logo-bg-wrap { display: inline-flex; align-items: center; margin-bottom: 2rem; }
.lp-logo-bg-wrap .lp-logo { margin-bottom: 0; }
.lp-logo-placeholder {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--primary, #255deb); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; margin: 0 auto 2rem;
}
.lp-title {
  font-size: clamp(1.625rem, 5vw, 2.75rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text, #1f2937);
  max-width: 680px; margin-bottom: 1rem;
  word-break: break-word;
}
.lp-subtitle {
  font-size: clamp(.9375rem, 2.5vw, 1.125rem);
  color: var(--text-muted, #6b7280);
  max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.lp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 2.25rem;
  min-height: var(--touch-min);
  border-radius: var(--radius);
  font-size: 1.0625rem; font-weight: 700;
  background: var(--btn, #255deb); color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--btn, #255deb) 35%, transparent);
  transition: transform .15s, box-shadow .15s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.lp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--btn, #255deb) 45%, transparent);
  filter: brightness(1.05);
}
.lp-cta:active { transform: translateY(0); }

/* ── Flow container ───────────────────────────────────────────── */
.flow-wrapper {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;
  padding: 1rem .75rem 3rem;
}
.flow-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px;
  overflow: hidden;
}

/* ── Flow header ──────────────────────────────────────────────── */
.flow-header {
  padding: 1.375rem 1.5rem 1rem;
  background: linear-gradient(135deg, var(--primary, #255deb) 0%, #1d4ed8 100%);
  color: #fff;
}
.flow-brand {
  display: flex; align-items: center; gap: .625rem;
  margin-bottom: .875rem;
}
.flow-brand img { max-height: 32px; object-fit: contain; }
.flow-brand .brand-name { font-size: .9375rem; font-weight: 700; color: rgba(255,255,255,.9); }
.flow-title { font-size: 1.3125rem; font-weight: 700; color: #fff; margin-bottom: .25rem; line-height: 1.3; word-break: break-word; }
.flow-description { font-size: .875rem; color: rgba(255,255,255,.8); line-height: 1.5; }

/* ── Progress bar ─────────────────────────────────────────────── */
.progress-wrapper {
  padding: 1rem 1.5rem .625rem;
  background: #f8fafc; border-bottom: 1px solid #e5e7eb;
}
.progress-label {
  display: flex; justify-content: space-between;
  font-size: .8125rem; color: #6b7280; margin-bottom: .5rem; font-weight: 500;
}
.progress-bar-track {
  height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--primary, #255deb);
  border-radius: 999px; transition: width .35s ease;
}

/* ── Step body ────────────────────────────────────────────────── */
.step-content { padding: 1.5rem 1.5rem 1rem; }
.step-title { font-size: 1.0625rem; font-weight: 700; color: #1f2937; margin-bottom: .25rem; line-height: 1.35; }
.step-description { font-size: .875rem; color: #6b7280; margin-bottom: 1.25rem; line-height: 1.55; }

/* ── Fields ───────────────────────────────────────────────────── */
.field-group { margin-bottom: 1.125rem; }
.field-label {
  display: block; font-size: .875rem; font-weight: 600;
  color: #374151; margin-bottom: .4rem;
}
.field-label .req { color: #ef4444; margin-left: 2px; }
.field-hint { font-size: .8125rem; color: #9ca3af; margin-top: .3rem; line-height: 1.45; }
.field-input {
  width: 100%;
  padding: .6875rem .875rem;
  min-height: var(--touch-min);
  border: 1.5px solid #d1d5db; border-radius: var(--radius);
  font-family: var(--font);
  /* Always 16px to prevent iOS Safari auto-zoom on focus */
  font-size: 16px;
  color: #1f2937;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: var(--primary, #255deb);
  box-shadow: 0 0 0 3px rgba(37,93,235,.15);
}
.field-input::placeholder { color: #9ca3af; }
textarea.field-input { min-height: 100px; resize: vertical; line-height: 1.5; }
.field-error { font-size: .8125rem; color: #ef4444; margin-top: .3rem; display: none; line-height: 1.4; }
.field-error.visible { display: block; }
.field-input.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

/* Select */
select.field-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.5rem;
}

/* ── Radio / Checkbox options ─────────────────────────────────── */
.options-list { display: flex; flex-direction: column; gap: .5rem; }
.option-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .875rem 1rem;
  min-height: var(--touch-min);
  border-radius: var(--radius);
  border: 1.5px solid #d1d5db; background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.option-item:hover { border-color: var(--primary, #255deb); background: #eef4fe; }
.option-item.selected { border-color: var(--primary, #255deb); background: #e8f0fe; }
.option-item input {
  accent-color: var(--primary, #255deb);
  width: 18px; height: 18px; flex-shrink: 0; cursor: pointer;
}
.option-label { font-size: .9375rem; color: #1f2937; flex: 1; line-height: 1.4; }

/* ── Price badges ─────────────────────────────────────────────── */
.opt-price-badge {
  font-size: .8125rem; font-weight: 600; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 6px; padding: .2rem .5rem;
  white-space: nowrap; flex-shrink: 0;
}
.opt-price-badge--neg { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.opt-price--plain {
  font-size: .875rem; color: #9ca3af; font-weight: 400;
  white-space: nowrap; flex-shrink: 0; margin-left: auto;
}

/* ── Total price bar ──────────────────────────────────────────── */
.price-total-bar {
  padding: .875rem 1.5rem 1.25rem;
  background: #fff; border-top: 1px solid #e5e7eb;
}
.ptb-lines { display: flex; flex-direction: column; gap: .3rem; width: 100%; }
.ptb-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .875rem; color: #6b7280; width: 100%; gap: .5rem;
}
.ptb-row span:last-child { font-weight: 500; color: #374151; text-align: right; }
.ptb-vat { font-size: .8125rem; }
.ptb-total {
  display: flex; justify-content: flex-end; align-items: baseline;
  gap: .5rem;
  font-size: 1rem; font-weight: 700; color: #111827;
  border-top: 1px solid #e5e7eb;
  margin-top: .5rem; padding-top: .5rem;
  flex-wrap: wrap;
}
.ptb-total:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* ── Navigation ───────────────────────────────────────────────── */
.flow-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #f9fafb; border-top: 1px solid #e5e7eb; gap: .75rem;
}
.flow-nav .btn-next, .flow-nav .btn-back, .flow-nav .btn-submit {
  padding: .75rem 1.375rem;
  min-height: var(--touch-min);
  border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  border: none; transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-next, .btn-submit {
  background: var(--btn, #255deb); color: #fff;
  margin-left: auto;
}
.btn-next:hover, .btn-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-back {
  background: #fff; color: #6b7280;
  border: 1.5px solid #d1d5db !important;
}
.btn-back:hover { background: #f3f4f6; }
.btn-back:disabled, .btn-next:disabled, .btn-submit:disabled {
  opacity: .45; cursor: not-allowed; transform: none; filter: none;
}

/* ── Result screen ────────────────────────────────────────────── */
.result-screen { padding: 2rem 1.5rem; text-align: center; }
.result-icon { font-size: 3.25rem; margin-bottom: 1rem; }
.result-title { font-size: 1.4375rem; font-weight: 700; color: #1f2937; margin-bottom: .5rem; line-height: 1.3; }
.result-sub { font-size: .9375rem; color: #6b7280; margin-bottom: 1.5rem; line-height: 1.6; }
.price-display {
  background: linear-gradient(135deg, var(--primary, #255deb), #1d4ed8);
  color: #fff; border-radius: var(--radius-lg); padding: 1.375rem 2rem;
  display: inline-block; margin: 1rem 0 1.5rem;
  max-width: 100%;
}
.price-label { font-size: .875rem; opacity: .85; margin-bottom: .25rem; }
.price-value { font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 800; line-height: 1; }
.price-note { font-size: .8125rem; opacity: .7; margin-top: .25rem; }

/* ── Spinner ──────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border: 2.5px solid #e5e7eb;
  border-top-color: var(--primary, #255deb); border-radius: 50%;
  animation: spin .65s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error page ───────────────────────────────────────────────── */
.error-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; text-align: center; padding: 2rem; gap: 1rem;
}
.error-page h1 { font-size: 1.875rem; font-weight: 700; color: #1f2937; }
.error-page p { color: #6b7280; max-width: 400px; }

/* ── File upload widget ───────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #d1d5db; border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s;
  background: #fafafa; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary, #255deb); background: #e8f0fe;
}
.upload-zone-icon { font-size: 1.75rem; line-height: 1; margin-bottom: .5rem; }
.upload-zone-text { font-size: .9rem; color: #374151; font-weight: 500; }
.upload-browse-link { color: var(--primary, #255deb); text-decoration: underline; }
.upload-zone-meta { font-size: .775rem; color: #9ca3af; margin-top: .375rem; }
.upload-hidden-input { display: none; }

.upload-files-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .625rem; }
.upload-file-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: var(--radius);
  font-size: .875rem; min-height: var(--touch-min);
}
.upload-file-item.has-error { border-color: #fca5a5; background: #fff5f5; }
.upload-file-icon { font-size: 1.125rem; flex-shrink: 0; }
.upload-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.upload-file-name { font-weight: 500; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-file-size { font-size: .75rem; color: #9ca3af; }
.upload-status { font-size: .75rem; white-space: nowrap; flex-shrink: 0; }
.upload-status.uploading { color: #6b7280; display: flex; align-items: center; gap: .375rem; }
.upload-status.done  { color: #16a34a; }
.upload-status.error { color: #dc2626; }
.upload-remove-btn {
  background: none; border: none; color: #9ca3af; cursor: pointer;
  padding: .25rem; border-radius: 4px; flex-shrink: 0; line-height: 1;
  transition: color .1s; min-width: 28px; min-height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.upload-remove-btn:hover { color: #ef4444; }
.upload-spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid #d1d5db; border-top-color: var(--primary, #255deb);
  border-radius: 50%; animation: spin .65s linear infinite;
}

/* ── Option image cards ───────────────────────────────────────── */
.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .625rem; margin-top: .25rem;
}
.option-card {
  border: 1.5px solid #d1d5db; border-radius: var(--radius);
  overflow: hidden; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.option-card:hover { border-color: var(--primary, #255deb); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.option-card.selected {
  border-color: var(--primary, #255deb); background: #e8f0fe;
  box-shadow: 0 0 0 3px rgba(37,93,235,.15);
}
.option-card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f3f4f6; }
.option-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option-card-img-placeholder { width: 100%; height: 100%; background: #f3f4f6; }
.option-card-body { padding: .5rem .625rem .625rem; display: flex; flex-direction: column; gap: .2rem; }
.option-card-label { font-size: .8125rem; font-weight: 600; color: #1f2937; line-height: 1.35; }
.option-card-body .opt-price-badge,
.option-card-body .opt-price--plain { font-size: .7rem; align-self: flex-start; }
/* Mehrfachauswahl-Bildkarten: Häkchen-Indikator signalisiert, dass mehrere Karten wählbar sind. */
.option-card--multi { position: relative; }
.option-card-check {
  position: absolute; top: .5rem; right: .5rem; width: 22px; height: 22px;
  border-radius: 6px; border: 1.5px solid #d1d5db; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  color: transparent; transition: border-color .15s, background .15s, color .15s; z-index: 1;
}
.option-card--multi.selected .option-card-check {
  border-color: var(--primary, #255deb); background: var(--primary, #255deb); color: #fff;
}

/* ── Calendar widget ──────────────────────────────────────────── */
.cal-widget {
  border: 1.5px solid #e5e7eb; border-radius: var(--radius);
  overflow: hidden; background: #fff; margin-top: .375rem;
}
.cal-loading, .cal-error {
  padding: 1.5rem; text-align: center; color: #9ca3af; font-size: .875rem;
}

/* Calendar nav bar */
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .75rem; background: #f9fafb; border-bottom: 1px solid #e5e7eb;
  gap: .375rem;
}
.cal-nav-title {
  font-weight: 700; font-size: .875rem; color: #111827;
  text-align: center; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-nav-btn {
  padding: .375rem .625rem;
  min-height: 36px; min-width: 36px;
  border: 1.5px solid #e5e7eb; border-radius: 7px;
  background: #fff; color: #374151; font-size: .8125rem; cursor: pointer;
  font-family: var(--font); transition: background .12s, border-color .12s;
  white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.cal-nav-btn:hover:not(:disabled) {
  background: #eff6ff; border-color: var(--primary,#255deb); color: var(--primary,#255deb);
}
.cal-nav-btn:disabled { opacity: .35; cursor: default; }

/* Month grid */
.cal-dow-row {
  display: grid; grid-template-columns: repeat(7,1fr);
  padding: .375rem .5rem 0;
}
.cal-dow { text-align:center; font-size:.7rem; font-weight:600; color:#9ca3af; padding:.2rem 0; }
.cal-day-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; padding: .375rem .5rem .625rem;
}
.cal-day-pad { aspect-ratio:1; }
.cal-day-btn {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; font-size: .875rem; border: none; cursor: pointer;
  transition: background .12s, color .12s; font-family: var(--font);
  -webkit-tap-highlight-color: transparent; min-height: 0;
}
.cal-day-btn.available {
  background: #eff6ff; color: #1d4ed8; font-weight: 600;
}
.cal-day-btn.available:hover { background: #dbeafe; }
.cal-day-btn.available.selected { background: var(--primary,#255deb); color: #fff; }
.cal-day-btn.unavailable, .cal-day-btn.past { background: transparent; color: #d1d5db; cursor: default; }
.cal-day-btn.today { outline: 2px solid var(--primary,#255deb); outline-offset: -2px; }
.cal-day-btn.today.selected { outline: none; }

/* Week view */
.cal-week-row {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; padding: .5rem;
}
.cal-week-day-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; padding: .5rem .1rem; border-radius: 8px;
  border: none; cursor: pointer; font-family: var(--font);
  transition: background .12s, color .12s;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.cal-week-day-btn.available { background: #eff6ff; }
.cal-week-day-btn.available:hover { background: #dbeafe; }
.cal-week-day-btn.available.selected { background: var(--primary,#255deb); color: #fff; }
.cal-week-day-btn.unavailable, .cal-week-day-btn.past { background: transparent; cursor: default; }
.cal-week-day-btn.today { outline: 2px solid var(--primary,#255deb); outline-offset: -2px; }
.cal-week-day-btn.today.selected { outline: none; }
.cal-week-dow { font-size: .65rem; font-weight: 600; color: #9ca3af; }
.cal-week-day-btn.available .cal-week-dow { color: #3b82f6; }
.cal-week-day-btn.available.selected .cal-week-dow { color: rgba(255,255,255,.8); }
.cal-week-date { font-size: .9rem; font-weight: 700; color: #1f2937; }
.cal-week-day-btn.unavailable .cal-week-date,
.cal-week-day-btn.past .cal-week-date { color: #d1d5db; }
.cal-week-day-btn.available.selected .cal-week-date { color: #fff; }

/* Day view */
.cal-day-slots { padding: .875rem 1rem; }
.cal-slots-area { border-top: 1px solid #f3f4f6; padding: .75rem 1rem; }
.cal-slots-header { font-weight: 600; font-size: .875rem; color: #374151; margin-bottom: .625rem; }
.cal-slots-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.cal-no-slots { font-size: .875rem; color: #9ca3af; margin: 0; }
.cal-slot-btn {
  padding: .5rem .875rem;
  min-height: var(--touch-min);
  border: 1.5px solid #e5e7eb; border-radius: 8px;
  background: #fff; color: #374151; font-size: .875rem; font-weight: 500;
  cursor: pointer; font-family: var(--font);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  transition: border-color .12s, background .12s;
  -webkit-tap-highlight-color: transparent;
}
.cal-slot-btn:hover { border-color: var(--primary,#255deb); background: #eef4fe; }
.cal-slot-btn.selected {
  border-color: var(--primary,#255deb); background: var(--primary,#255deb); color: #fff;
}
.cal-slot-rem { font-size: .7rem; opacity: .75; }
.cal-qty-row {
  display: flex; align-items: center; gap: .625rem;
  margin-top: .875rem; font-size: .875rem; color: #374151;
  flex-wrap: wrap;
}
.cal-qty-input {
  width: 72px; padding: .5rem;
  min-height: var(--touch-min);
  border: 1.5px solid #d1d5db; border-radius: var(--radius);
  font-size: 16px; text-align: center; font-family: var(--font);
}
.cal-summary { margin-top: .625rem; }
.cal-summary-inner {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .75rem .875rem;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius); font-size: .875rem; font-weight: 500; color: #166534;
  line-height: 1.45; flex-wrap: wrap;
}

/* ── Responsive: Mobile ────────────────────────────────────────── */

/* Phones: the flow card goes edge-to-edge (flush) — no side gaps, no rounding,
   so nothing can sit slightly off-screen. Inner sections keep their own padding. */
@media (max-width: 640px) {
  .flow-wrapper { padding: 0 0 2rem; max-width: 100%; }
  .flow-card { border-radius: 0; box-shadow: none; max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
  /* Header */
  .flow-header { padding: 1.125rem 1rem .875rem; }
  .flow-title { font-size: 1.1875rem; }
  .flow-description { font-size: .8125rem; }

  /* Progress */
  .progress-wrapper { padding: .75rem 1rem .5rem; }

  /* Step content */
  .step-content { padding: 1.25rem 1rem .875rem; }
  .step-title { font-size: 1rem; }

  /* Navigation */
  .flow-nav { padding: .875rem 1rem; gap: .5rem; }
  .flow-nav .btn-next, .flow-nav .btn-back, .flow-nav .btn-submit {
    padding: .75rem 1.125rem; font-size: .875rem;
  }

  /* Price total */
  .price-total-bar { padding: .875rem 1rem 1.125rem; }
  .ptb-row { font-size: .8125rem; }
  .ptb-total { font-size: .9375rem; }

  /* Image cards: 2 columns on mobile */
  .option-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
  .option-card-label { font-size: .75rem; }

  /* Calendar nav: shorter buttons */
  .cal-nav { padding: .375rem .5rem; }
  .cal-nav-title { font-size: .8125rem; }
  .cal-nav-btn { padding: .3rem .5rem; font-size: .75rem; min-height: 34px; }

  /* Week: compact */
  .cal-week-row { gap: 1px; padding: .375rem; }
  .cal-week-day-btn { padding: .375rem .05rem; min-height: 48px; }
  .cal-week-dow { font-size: .6rem; }
  .cal-week-date { font-size: .8125rem; }

  /* Slots: 3 per row on small phones */
  .cal-slots-grid { gap: .375rem; }
  .cal-slot-btn { padding: .4375rem .625rem; font-size: .8125rem; min-height: 42px; }

  /* Result */
  .result-screen { padding: 1.625rem 1rem; }
  .result-title { font-size: 1.25rem; }
  .price-display { padding: 1.125rem 1.25rem; }

  /* Options: larger touch targets */
  .option-item { padding: .875rem .875rem; min-height: 48px; }
  .option-item input { width: 20px; height: 20px; }
}

/* Very small phones (iPhone SE 375px and smaller) */
@media (max-width: 375px) {
  .flow-nav .btn-next, .flow-nav .btn-back, .flow-nav .btn-submit {
    padding: .6875rem .875rem; font-size: .8125rem;
  }
  .cal-week-dow { display: none; }
  .cal-week-date { font-size: .875rem; }
}

/* Tablet: 641px - 1024px */
@media (min-width: 641px) and (max-width: 1024px) {
  .flow-wrapper { padding: 2rem 1.5rem 4rem; }
  .flow-card { max-width: 580px; }
  .option-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Large desktop */
@media (min-width: 1200px) {
  .flow-wrapper { padding: 3rem 2rem 5rem; }
}

/* ── Result screen offer table ────────────────────────────────── */
.result-offer-table {
  border: 1.5px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  font-size: .875rem; text-align: left; width: 100%;
}
.result-offer-header {
  display: flex; justify-content: space-between;
  padding: .5rem .875rem;
  background: #f9fafb; font-size: .72rem; font-weight: 700;
  color: #6b7280; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid #e5e7eb;
}
.result-offer-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .875rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.result-offer-row span:first-child { font-weight: 500; flex: 1; }
.result-offer-row span:last-child  { font-weight: 600; text-align: right; }
.result-offer-sub { font-size: .8125rem; color: #6b7280; }
.result-offer-sub span:first-child { font-weight: 400; }
.result-offer-total {
  display: flex; justify-content: space-between;
  padding: .625rem .875rem;
  background: #f9fafb; font-weight: 700; font-size: .9375rem;
  color: #0f172a; border-top: 2px solid #e5e7eb;
}