/* assets/intake.css
   Doplňkové styly pro /start (intake formulář, stavitelé). Načítá se VEDLE styles.css
   (ten dává --fm-* tokeny a základní třídy fm-*: fm-container, fm-topbar, fm-footer,
   fm-wordmark, fm-btn, fm-input, fm-hp…). Tady jen nové komponenty specifické pro
   formulář (dlaždice, progress bar, kroky), žádná nová barva mimo --fm-* proměnné
   (pravidlo: barvy jen z Brand_Visual_Language / tady z Firmament styles.css).

   Rádius 2 px (zadání Richarda 5.10.2026, stejně jako index.html "ostré hrany"):
   vlastní proměnná --in-radius, NE --fm-radius-* (ty zůstávají 8/12/14 px pro
   zbytek webu beze změny, styles.css se needituje).
   Mobil nejdřív: základ je jednosloupcový, širší rozestupy přidává min-width dotaz. */

:root {
  --in-radius: 2px;
  --in-gap: 14px;
}

/* Bez tohle pravidla by `[hidden]` prohrál nad `.in-* { display: flex }` níž
   (stejná specificita, autorské CSS vyhrává nad UA stylesheetem) a všechny kroky
   formuláře by se zobrazily najednou. Ověřeno screenshotem 5.10.2026, oprava tady. */
[hidden] { display: none !important; }

/* ---- kostra stránky ----
   Patička sedí vždy dole (krátká stránka ji jinak nechá v půlce obrazovky) a sloupec
   formuláře stojí uprostřed kontejneru, ne u levého okraje (Richard, UAT 9.11.2026). */
.in-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.in-page main { flex: 1 0 auto; }
.in-wrap { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); min-height: 60vh; }
.in-fade { width: 100%; max-width: var(--fm-measure); margin: 0 auto; transition: opacity 0.22s var(--fm-ease, ease); }
.in-fade-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .in-fade { transition: none; } }

/* Topbar v grafitu (jako na index.html), přepisuje jen barvy, ne rozměry z fm-topbar. */
.in-topbar { background: var(--fm-graphite); border-bottom-color: var(--fm-graphite-700); }
.in-topbar .fm-wordmark { color: var(--fm-ink-invert); }
.in-topbar .fm-wordmark strong { color: var(--fm-blue-400); }

/* ---- progress ---- */
.in-progress-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.in-progress-track { height: 4px; background: var(--fm-line); border-radius: var(--in-radius); overflow: hidden; }
.in-progress-bar { height: 100%; width: 10%; background: var(--fm-blue-500); border-radius: var(--in-radius); transition: width 0.25s var(--fm-ease, ease); }
@media (prefers-reduced-motion: reduce) { .in-progress-bar { transition: none; } }
.in-counter { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--fm-muted); font-feature-settings: var(--fm-feat-num); }

/* ---- úvod ---- */
.in-intro { display: flex; flex-direction: column; gap: 16px; max-width: var(--fm-measure); }
.in-intro__who { font-size: 15px; line-height: 1.5; color: var(--fm-muted); }

/* ---- otázky ---- */
.intake-step { display: flex; flex-direction: column; gap: 16px; max-width: var(--fm-measure); }
.in-question { font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--fm-ink); }
.in-hint { font-size: 14px; line-height: 1.45; color: var(--fm-muted); }

/* ---- dlaždice (klikací možnosti): celý řádek klikací, min 54 px výšky ---- */
.in-options { display: flex; flex-direction: column; gap: 10px; }
.in-tile {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 54px; padding: 14px 18px;
  background: var(--fm-surface); border: 1px solid var(--fm-field-line);
  border-radius: var(--in-radius);
  font: inherit; font-size: 16px; font-weight: 500; color: var(--fm-ink);
  text-align: left; line-height: 1.3; cursor: pointer;
  transition: border-color 0.15s var(--fm-ease, ease), background-color 0.15s var(--fm-ease, ease);
}
.in-tile:hover { border-color: var(--fm-blue-300); background: var(--fm-blue-050); }
.in-tile__num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: var(--in-radius);
  background: var(--fm-paper); border: 1px solid var(--fm-line-strong);
  font-size: 12px; font-weight: 700; color: var(--fm-muted);
}
.in-tile[aria-pressed="true"] { border-color: var(--fm-blue-500); background: var(--fm-field-bg); box-shadow: inset 0 0 0 1px var(--fm-blue-500); }
.in-tile[aria-pressed="true"] .in-tile__num { border-color: var(--fm-blue-500); color: var(--fm-blue-500); background: var(--fm-blue-100); }
.in-tile:focus-visible { outline: 2px solid var(--fm-blue-500); outline-offset: 2px; }

/* ---- detail (volný text u "jine"/"doporucil"/"jinak") ---- */
.in-detail { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.in-detail__label { font-size: 13px; font-weight: 600; color: var(--fm-ink); }

/* ---- pole (text, textarea, kontakt) ---- */
.in-input {
  width: 100%; min-height: var(--fm-control-h);
  padding: 0 16px; border-radius: var(--in-radius);
  background: var(--fm-field-bg); border: 1px solid var(--fm-field-line);
  font: inherit; font-size: 16px; color: var(--fm-ink);
  transition: border-color 0.15s var(--fm-ease, ease), box-shadow 0.15s var(--fm-ease, ease);
  -webkit-appearance: none; appearance: none;
}
.in-textarea { min-height: 128px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.in-input::placeholder { color: var(--fm-field-placeholder); opacity: 1; }
.in-input:hover { border-color: var(--fm-blue-300); }
.in-input:focus { outline: none; background: var(--fm-surface); border-color: var(--fm-blue-500); box-shadow: 0 0 0 3px var(--fm-blue-100); }
.in-input[aria-invalid="true"] { border-color: var(--fm-error); background: var(--fm-error-tint); }

/* ---- kontakt ---- */
.in-kontakt { display: flex; flex-direction: column; gap: 18px; max-width: var(--fm-measure); }
.in-field { display: flex; flex-direction: column; gap: 8px; }
.in-field__label { font-size: 13px; font-weight: 600; color: var(--fm-ink); }
.in-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--fm-ink); }
.in-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--fm-blue-500); }
.in-consent a { font-weight: 600; }

/* ---- akce (Zpět / Pokračovat / Odeslat) ---- */
.in-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.in-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--fm-control-h); padding: 0 26px;
  border-radius: var(--in-radius); border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s var(--fm-ease, ease), border-color 0.15s var(--fm-ease, ease);
}
.in-btn--primary { background: var(--fm-blue-500); color: var(--fm-on-blue); }
.in-btn--primary:hover { background: var(--fm-blue-600); }
.in-btn--primary:disabled { cursor: progress; opacity: 0.75; }
.in-btn--ghost { background: transparent; color: var(--fm-ink); border-color: var(--fm-line-strong); }
.in-btn--ghost:hover { border-color: var(--fm-blue-300); background: var(--fm-blue-050); }
.in-btn:focus-visible { outline: 2px solid var(--fm-blue-500); outline-offset: 2px; }

/* ---- chyba ---- */
.in-error { margin-top: 8px; padding: 12px 14px; border-radius: var(--in-radius); background: var(--fm-error-tint); border: 1px solid rgba(179, 38, 30, 0.25); font-size: 14px; color: var(--fm-error); }

/* ---- konec ---- */
.in-end { display: flex; flex-direction: column; gap: 16px; max-width: var(--fm-measure); }
.in-end-block { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--in-radius); background: var(--fm-surface); border: 1px solid var(--fm-line-soft); }
.in-end-block[hidden] { display: none; }
/* ---- zrcadlo: co Richard uvidí před hovorem (nad nadpisem konce) ---- */
.in-zrcadlo { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--fm-paper); border: 1px solid var(--fm-line-strong); border-left: 3px solid var(--fm-blue-500); border-radius: var(--in-radius); overflow-wrap: anywhere; }
.in-zrcadlo p { margin: 0; }
.in-zrcadlo__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--fm-muted); }
.in-zrcadlo__radek { font-size: 16px; line-height: 1.45; color: var(--fm-ink); white-space: pre-line; }
.in-zrcadlo__pata { font-size: 13px; line-height: 1.4; color: var(--fm-muted); }
.in-end__cal { margin-top: 8px; border-radius: var(--in-radius); overflow: hidden; border: 1px solid var(--fm-line-soft); min-height: 680px; }
.in-end__cal iframe { width: 100%; height: 680px; border: 0; display: block; }

/* ---- mobil: vše už je jednosloupcové, jen doladění spacingu na širších ---- */
@media (min-width: 640px) {
  .in-actions { justify-content: flex-start; }
}
