/* inquiry-wizard styles. Palette here are DEFAULTS (:root); config.js + inquiry.js
 * override them at runtime. A few derived tints are hard-coded rgba() — adjust
 * here if you recolour drastically. */
:root {
  --cream: #f6f0e6;
  --cream-dark: #ebe2d2;
  --burgundy: #5d1a26;
  --burgundy-deep: #461220;
  --burgundy-light: #7a2a37;
  --taupe: #7a6e60;
  --taupe-dark: #4a4138;
  --taupe-light: #b0a89c;
  --green: #3d4a3a;
  --turquoise: #7ba5a8;
  --text: #2a2520;
  --text-muted: #6b6055;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-body, "Inter"), system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--burgundy); color: var(--cream); }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 2px; }

/* ─── Shell ───────────────────────────────────────────── */
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 320px 1fr; }
@media (max-width: 880px) { .shell { grid-template-columns: 1fr; } }

/* ─── Sidebar ─────────────────────────────────────────── */
.side {
  background: var(--burgundy); color: var(--cream);
  padding: 40px 36px; display: flex; flex-direction: column; gap: 48px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
}
@media (max-width: 880px) { .side { position: static; height: auto; padding: 24px; gap: 24px; } }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; cursor: pointer; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); color: var(--burgundy-deep);
  display: grid; place-items: center;
  font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 600; font-size: 16px;
}
.brand-name { font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 500; font-size: 18px; letter-spacing: 0.01em; }
.brand-sub {
  font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe-light);
  display: block; margin-top: 2px;
}

.progress { display: flex; flex-direction: column; gap: 2px; }
.progress-eyebrow {
  font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe-light); margin: 0 0 18px;
}
.step {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  color: rgba(246, 240, 230, 0.5); cursor: pointer; border: none; background: transparent;
  text-align: left; font: inherit; transition: color 0.3s;
  border-bottom: 1px solid rgba(246, 240, 230, 0.08);
}
.step:last-child { border-bottom: none; }
.step:hover:not([disabled]) { color: rgba(246, 240, 230, 0.85); }
.step[disabled] { cursor: not-allowed; }
.step.is-active { color: var(--cream); }
.step.is-done { color: rgba(246, 240, 230, 0.7); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 12px; font-weight: 500;
  flex-shrink: 0; transition: background 0.3s, color 0.3s;
}
.step.is-active .step-num { background: var(--cream); color: var(--burgundy-deep); border-color: var(--cream); }
.step.is-done .step-num { background: rgba(246, 240, 230, 0.15); border-color: transparent; }
.step-label { font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 500; font-size: 15px; }
.step-label small {
  display: block; font-family: var(--font-body, "Inter"), sans-serif; font-weight: 400;
  font-size: 12px; color: rgba(246, 240, 230, 0.45); margin-top: 2px;
}
.step.is-active .step-label small { color: rgba(246, 240, 230, 0.7); }

.side-foot {
  margin-top: auto; font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 240, 230, 0.4);
}
@media (max-width: 880px) { .side-foot { display: none; } }

/* ─── Stage ───────────────────────────────────────────── */
.stage { padding: 56px clamp(24px, 5vw, 88px) 120px; display: flex; flex-direction: column; max-width: 880px; }
@media (max-width: 880px) { .stage { padding: 32px 24px 120px; } }

.step-eyebrow {
  font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); margin: 0 0 14px;
}
.step-eyebrow b { color: var(--burgundy); font-weight: 500; }
.step-title {
  font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 400;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 0 12px; color: var(--burgundy-deep); text-wrap: balance;
}
.step-title em { font-style: italic; font-weight: 400; color: var(--burgundy); }
.step-sub { margin: 0 0 36px; font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 60ch; text-wrap: pretty; }

.panel { animation: panelIn 0.45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

/* ─── Form atoms ──────────────────────────────────────── */
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe-dark); font-weight: 500;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; background: #fff; color: var(--text);
  border: 1px solid rgba(74, 65, 56, 0.16); border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(93, 26, 38, 0.12);
}
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.field-error { display: block; font-size: 12px; color: #b4232f; margin-top: 4px; }
.field-error[hidden] { display: none; }

/* Option cards (radio-like) */
.opts { display: grid; gap: 12px; }
.opts.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opts.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .opts.cols-2, .opts.cols-3 { grid-template-columns: 1fr; } }
.opt {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  background: #fff; border: 1px solid rgba(74, 65, 56, 0.16); border-radius: 4px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.opt:hover { border-color: rgba(93, 26, 38, 0.4); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-title {
  font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 500; font-size: 16px;
  color: var(--text); display: flex; align-items: center; gap: 10px;
}
.opt-title::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--taupe);
  flex-shrink: 0; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.opt-check .opt-title::before { border-radius: 3px; }
.opt-desc { font-size: 13px; color: var(--text-muted); line-height: 1.45; padding-left: 26px; }
.opt input:checked + .opt-title { color: var(--burgundy-deep); }
.opt input:checked + .opt-title::before { background: var(--burgundy); border-color: var(--burgundy); box-shadow: inset 0 0 0 3px #fff; }
.opt-check input:checked + .opt-title::before { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 999px var(--burgundy); }
.opt:has(input:checked) { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); }

/* Menu category section */
.menu-cat { background: #fff; border: 1px solid rgba(74, 65, 56, 0.12); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.menu-cat-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px; background: var(--cream); border-bottom: 1px solid rgba(74, 65, 56, 0.08); }
.menu-cat-name { font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 500; font-size: 17px; color: var(--burgundy-deep); letter-spacing: -0.005em; }
.menu-cat-count { font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--taupe); }
.menu-cat-count b { color: var(--burgundy); font-weight: 500; }
.menu-list { list-style: none; margin: 0; padding: 8px 0; }
.menu-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 22px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(74, 65, 56, 0.05); }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: rgba(246, 240, 230, 0.5); }
.menu-item input { position: absolute; opacity: 0; pointer-events: none; }
.menu-check { width: 18px; height: 18px; border: 1.5px solid var(--taupe); border-radius: 3px; flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.menu-check svg { opacity: 0; transition: opacity 0.2s; width: 12px; height: 12px; }
.menu-item input:checked ~ .menu-check { background: var(--burgundy); border-color: var(--burgundy); }
.menu-item input:checked ~ .menu-check svg { opacity: 1; }
.menu-item-body { flex: 1; }
.menu-item-name { font-size: 15px; line-height: 1.4; color: var(--text); }
.menu-item-name .tag { display: inline-block; font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 6px; margin-left: 6px; border-radius: 2px; background: rgba(61, 74, 58, 0.1); color: var(--green); vertical-align: 1px; }
.menu-item-name .tag.vegan { background: rgba(61, 74, 58, 0.18); }

/* Diet chips */
.diet-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { position: relative; padding: 9px 16px; border-radius: 100px; background: #fff; border: 1px solid rgba(74, 65, 56, 0.16); font-family: var(--font-display, "Space Grotesk"), sans-serif; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: all 0.2s; }
.chip:hover { border-color: rgba(93, 26, 38, 0.4); }
.chip input { position: absolute; opacity: 0; }
.chip:has(input:checked) { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

/* Summary list */
.summary { background: #fff; border: 1px solid rgba(74, 65, 56, 0.12); border-radius: 4px; padding: 24px 28px; margin-bottom: 28px; }
.summary-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(74, 65, 56, 0.08); align-items: baseline; }
.summary-row:last-child { border-bottom: none; }
.summary-row dt { font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe); margin: 0; }
.summary-row dd { margin: 0; font-size: 15px; color: var(--text); line-height: 1.5; }
.summary-row dd.empty { color: var(--taupe-light); font-style: italic; }
@media (max-width: 600px) { .summary-row { grid-template-columns: 1fr; gap: 4px; } }

/* Nav bar (sticky bottom) */
.nav { position: sticky; bottom: 0; margin-top: 48px; padding: 20px 0 0; background: linear-gradient(180deg, transparent, var(--cream) 30%); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.btn { font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.01em; padding: 14px 28px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, background 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--burgundy-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(70,18,32,.4); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: rgba(74, 65, 56, 0.2); }
.btn-ghost:hover { color: var(--burgundy-deep); border-color: var(--burgundy); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.nav-pos { font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--taupe); }

/* Thank you */
.thanks { text-align: center; padding: 80px 24px; max-width: 600px; margin: 0 auto; animation: panelIn 0.6s cubic-bezier(.2,.7,.2,1) both; }
.thanks-mark { width: 80px; height: 80px; border-radius: 50%; background: var(--burgundy); color: var(--cream); display: grid; place-items: center; margin: 0 auto 28px; font-size: 36px; }
.thanks h2 { font-family: var(--font-display, "Space Grotesk"), sans-serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--burgundy-deep); }
.thanks p { font-size: 17px; line-height: 1.55; color: var(--text-muted); margin: 0 0 32px; }

/* Progress bar (top, mobile-friendly) */
.progress-bar { height: 4px; background: rgba(74, 65, 56, 0.1); border-radius: 2px; overflow: hidden; margin-bottom: 40px; display: none; }
@media (max-width: 880px) { .progress-bar { display: block; } }
.progress-bar-fill { height: 100%; background: var(--burgundy); transition: width 0.4s cubic-bezier(.2,.7,.2,1); }

/* Static brand block (wordmark from the brandbook, 2026-09-25) */
.brand-static { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-logo { display: block; }
.brand-logo svg { height: 56px; width: auto; display: block; color: var(--cream); }
@media (max-width: 900px) { .brand-logo svg { height: 40px; } }

/* ─── Language switch in the wizard header (2026-09-30) ─── */
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lang-switch {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 36px; padding: 0 12px;
  border: 1px solid rgba(246, 240, 230, 0.35); border-radius: 999px;
  font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-switch:hover { background: var(--cream); border-color: var(--cream); color: var(--burgundy-deep); }
@media (prefers-reduced-motion: reduce) { .lang-switch { transition: none; } }

/* ─── Desktop: steps + form centred as ONE block (Lucas 29.09.2026, variant A) ──
 * Sidebar (320px) and form (max 880px) sit next to each other in the middle of
 * the screen. The colours still run to the screen edges: the left filler is
 * painted in the sidebar colour, the right one is the page background. */
@media (min-width: 881px) {
  .shell { grid-template-columns: minmax(0, 1fr) 320px minmax(0, 880px) minmax(0, 1fr); }
  .shell::before { content: ""; grid-column: 1; grid-row: 1; background: var(--burgundy); }
  .side { grid-column: 2; grid-row: 1; }
  .stage { grid-column: 3; grid-row: 1; width: 100%; }
}

/* ─── Mobile: compact step bar (Lucas 29.09.2026) ────────────────────────────
 * The first form field has to be visible without scrolling. The step list
 * (510px) becomes one row of numbers on a progress line, the header one row. */
@media (max-width: 880px) {
  /* header row keeps its own height, the form takes the rest (tall tablets) */
  .shell { grid-template-rows: auto 1fr; }
  .side { padding: 14px 20px 16px; gap: 14px; }
  .side-head { align-items: center; }
  .brand-static { flex: 1; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .brand-logo svg { height: 30px; }
  .brand-sub { margin-top: 0; text-align: right; }
  .progress-eyebrow { display: none; }
  #steps {
    --fill: 0%;
    position: relative; display: flex; align-items: center; justify-content: space-between;
  }
  #steps::before, #steps::after {
    content: ""; position: absolute; left: 22px; top: 50%; height: 2px; transform: translateY(-50%);
    border-radius: 2px;
  }
  #steps::before { right: 22px; background: rgba(246, 240, 230, 0.18); }
  #steps::after { width: calc((100% - 44px) * var(--fill-n, 0)); background: var(--cream); transition: width 0.4s cubic-bezier(.2,.7,.2,1); }
  .step {
    position: relative; z-index: 1; padding: 0; border-bottom: none;
    width: 44px; height: 44px; justify-content: center; gap: 0;
  }
  .step-num { width: 30px; height: 30px; background: var(--burgundy); }
  .step.is-done .step-num { background: var(--burgundy-light); border-color: var(--cream); color: var(--cream); }
  .step-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .progress-bar { display: none; }
  .stage { padding: 22px 20px 120px; }
  .step-eyebrow { margin-bottom: 10px; }
  .step-title { margin-bottom: 8px; }
  .step-sub { margin-bottom: 22px; font-size: 15px; line-height: 1.5; }
  .nav-pos { display: none; }
}
@media (prefers-reduced-motion: reduce) { #steps::after { transition: none; } }

/* Hidden inputs of the option cards kept their natural width and stuck out of the
 * screen by 4px on phones (29.09.2026). They stay focusable, only the box shrinks. */
.opt input, .menu-item input, .chip input { width: 1px; height: 1px; margin: 0; padding: 0; }

/* ─── 15.10.2026 (Lucas): bestseller stamp, contact-form link, centred Turnstile ── */
.menu-item-name .stamp {
  display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 3px;
  font-family: var(--font-mono, "JetBrains Mono"), monospace; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--burgundy); border: 1.5px solid var(--burgundy);
  transform: rotate(-3deg); vertical-align: 2px; white-space: nowrap;
}
.alt-link { margin: -22px 0 32px; font-size: 15px; color: var(--text-muted); }
.alt-link a, .side-link a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.alt-link a:hover, .side-link a:hover { color: var(--burgundy-deep); }
.side-link { margin: 12px 0 0; letter-spacing: 0.08em; text-transform: none; font-size: 11px; }
.side-link a { color: rgba(246, 240, 230, 0.7); }
.side-link a:hover { color: var(--cream); }
.field-center { align-items: center; }

/* ─── Consent banner of the wizard page (own markup, same storage as the site) ── */
.sc-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; }
.sc-consent[hidden] { display: none; }
.sc-consent-box { width: 100%; max-width: 42rem; background: #fff; color: var(--text); border: 1px solid rgba(74, 65, 56, 0.16); border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(57, 35, 37, 0.5); padding: 20px 22px; }
.sc-consent-title { margin: 0 0 8px; font-family: var(--font-display, sans-serif); font-weight: 400; font-size: 20px; color: var(--burgundy); }
.sc-consent-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.sc-consent-text a { color: var(--burgundy); text-decoration: underline; }
.sc-consent-opt { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(74, 65, 56, 0.16); border-radius: 12px; font-size: 14px; cursor: pointer; }
.sc-consent-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--burgundy); flex-shrink: 0; }
.sc-consent-opt small { display: block; color: var(--text-muted); margin-top: 2px; font-size: 12px; line-height: 1.45; }
.sc-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.sc-consent-fab { position: fixed; left: 16px; bottom: 16px; z-index: 85; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(74, 65, 56, 0.2); background: #fff; color: var(--burgundy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(57, 35, 37, 0.5); }
.sc-consent-fab[hidden] { display: none; }
@media (max-width: 600px) { .sc-consent-actions .btn { flex: 1 1 auto; justify-content: center; } }
/* Phones/tablets: the step nav sticks to the bottom (about 72px), keep the
   banner and the reopen button above it instead of under the Back button. */
@media (max-width: 880px) {
  .sc-consent { bottom: 92px; left: 12px; right: 12px; }
  .sc-consent-fab { bottom: 92px; left: 12px; width: 36px; height: 36px; }
}
