/* ═══════════════════════════════════════════════════════════════════════════
   Elvian · formulář poptávky v sekci Kontakt na elvian.cz/mzdy/
   Návrh v1 · 7. 10. 2026 · linkovat ZA mzdy.css (používá jeho proměnné)
   Vzhled navazuje na dnešní stránku Mzdy (zaoblené tvary, zlaté linky).
   ═══════════════════════════════════════════════════════════════════════════ */

.kf-grid {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: 26px;
  align-items: start;
  text-align: left;
}

/* ── Panel s formulářem ─────────────────────────────────────────────────── */
.kf-panel {
  background: var(--white-warm);
  border: 1px solid var(--line-gold);
  border-radius: 26px;
  padding: 40px 42px 36px;
  box-shadow: var(--shadow-soft);
}
.kf-panel-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 24px;
}
.kf-panel-lead { font-size: 14.5px; color: var(--muted); margin: 0 0 26px; }

.kf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.kf-field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.kf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.kf-opt { font-weight: 400; color: var(--muted); margin-left: 4px; }

.kf-field input,
.kf-field select,
.kf-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(31, 42, 68, .2);
  border-radius: 12px;
  padding: 13px 15px;
  line-height: 1.4;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.kf-field textarea { resize: vertical; min-height: 104px; }
.kf-field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8894A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.kf-field input::placeholder,
.kf-field textarea::placeholder { color: #A9A290; }
.kf-field input:focus,
.kf-field select:focus,
.kf-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 167, 94, .2);
}

/* chyba u pole: červený rámeček + krátká věta pod polem */
.kf-msg { display: none; font-size: 12.5px; color: #9B2C2C; margin-top: 6px; }
.kf-field.is-invalid input,
.kf-field.is-invalid select,
.kf-field.is-invalid textarea { border-color: #9B2C2C; box-shadow: 0 0 0 3px rgba(155, 44, 44, .12); }
.kf-field.is-invalid .kf-msg { display: block; }

/* past na roboty — člověk pole nevidí */
.kf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.kf-consent { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 4px 0 22px; }
.kf-consent a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.kf-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kf-actions .btn { border: 1px solid rgba(198, 167, 94, .5); }
.kf-actions .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.kf-after { font-size: 13.5px; color: var(--muted); }

.kf-error {
  margin: 18px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  color: #7A1F1F;
  background: rgba(155, 44, 44, .06);
  border: 1px solid rgba(155, 44, 44, .25);
  border-radius: 12px;
}
.kf-error a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ── Poděkování po odeslání ─────────────────────────────────────────────── */
.kf-success { text-align: center; padding: 26px 8px 10px; outline: none; }
.kf-check {
  display: inline-grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(198, 167, 94, .14);
  border: 1px solid var(--line-gold);
  margin-bottom: 18px;
}
.kf-check svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kf-success h3 { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: var(--ink); margin: 0 0 8px; }
.kf-success p { font-size: 15px; color: var(--muted); margin: 0; }

/* jen na náhledu: co by formulář odeslal (na ostrém webu se nezobrazí) */
.kf-nahled { margin-top: 24px; text-align: left; }
.kf-nahled-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.kf-nahled pre {
  margin: 0; padding: 14px 16px; max-height: 280px; overflow: auto;
  font-size: 12px; line-height: 1.5; color: var(--paper);
  background: var(--navy); border-radius: 12px; white-space: pre-wrap; word-break: break-word;
}

/* ── Jana vedle formuláře ───────────────────────────────────────────────── */
.kf-person {
  background: var(--white-warm);
  border: 1px solid var(--line-gold);
  border-radius: 26px;
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.kf-person .contact-avatar { margin: 0 auto 18px; }
.kf-person .contact-channels { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.kf-person-note { font-size: 14px; color: var(--muted); margin: 18px 0 12px; }

/* ── Mobil ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .kf-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 560px) {
  .kf-panel { padding: 28px 22px 26px; border-radius: 22px; }
  .kf-row { grid-template-columns: 1fr; }
  .kf-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .kf-actions .btn { justify-content: center; }
  .kf-person { padding: 28px 22px 24px; }
}

/* ── ÚVOD S FORMULÁŘEM (návrh 24. 11. 2026, zadání Michaely) ──────────────
   Desktop: vlevo dnešní nadpis, popis, věta o ceně a čísla, vpravo stávající
   poptávkový formulář v kartě. Tablet a mobil: nadpis → krátký popis →
   formulář → zbytek. Zlato jen jako krátká linka nad kartou. */
.hero-inner--formular { max-width: none; }
.hero-inner--formular .br-desk { display: none; }
.hero-formular { position: relative; z-index: 2; animation: hf-in .8s var(--ease-out) .12s both; }
@keyframes hf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-formular { animation: none; } }
.hero:has(.hero-inner--formular) .hero-scroll { display: none; }
/* Úvod ořezává dekorace (slunce, skvrna). S „hidden“ je z něj posouvatelný box a skok na
   #poptavka posunul obsah úvodu pod hlavičku; „clip“ ořízne stejně, ale posouvat nejde. */
.hero:has(.hero-inner--formular) { overflow: clip; }
.contact:has(#poptavka-kontakt) { overflow: clip; }  /* totéž pro skok na formulář v Kontaktu */

/* karta */
.hf-panel {
  position: relative;
  padding: 28px 30px 22px;
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
}
.hf-panel::before {
  content: ''; position: absolute; top: -1px; left: 30px;
  width: 44px; height: 2px; background: var(--gold);
}
.hf-titulek {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 400; line-height: 1.2; letter-spacing: -.005em;
  color: var(--ink); margin: 0 0 6px; text-wrap: balance;
}
.hf-podtitulek { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 18px; text-wrap: balance; }
.hf-panel .kf-row { gap: 0 14px; }
.hf-panel .kf-field { margin-bottom: 12px; }
.hf-panel .kf-field label { font-size: 12.5px; margin-bottom: 5px; }
.hf-panel .kf-field input,
.hf-panel .kf-field select,
.hf-panel .kf-field textarea { padding: 10px 13px; border-radius: 10px; }
.hf-panel .kf-field textarea { min-height: 0; height: 70px; }
html[lang="uk"] .hf-panel .kf-field textarea { height: 90px; }  /* delší příklad v poli, ať není useknutý */
.hf-panel .kf-consent { font-size: 11.5px; line-height: 1.55; margin: 2px 0 14px; }
.hf-panel .kf-actions { display: block; }
.hf-panel .kf-actions .btn { width: 100%; justify-content: center; min-height: 52px; }
.hf-pozn { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }
.hf-panel .kf-success { padding: 44px 8px 34px; }

/* desktop: dva sloupce */
@media (min-width: 1080px) {
  .hero-inner--formular {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 470px);
    gap: 0 clamp(48px, 5vw, 84px);
    align-items: center;
  }
  .hero:has(.hero-inner--formular) { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 56px; }
  .hero-inner--formular .hero-title { font-size: clamp(44px, 4.5vw, 66px); margin-bottom: 26px; }
  html[lang="uk"] .hero-inner--formular .hero-title { font-size: clamp(34px, 3.5vw, 52px); }
  .hero-inner--formular .hero-lead { max-width: 600px; }
  .hero-inner--formular .hero-stats { margin-top: 44px; }
  .hero-inner--formular .stat { padding: 20px 14px 0 0; }
  .hero-inner--formular .stat + .stat { padding-left: 16px; }
  .hero-inner--formular .stat-num { font-size: clamp(22px, 2.1vw, 30px); }
  .hero-inner--formular .stat-label { font-size: 10px; letter-spacing: .12em; }
}

/* tablet a mobil: formulář hned pod hlavním sdělením */
@media (max-width: 1079px) {
  .hero-inner--formular { display: flex; flex-direction: column; max-width: 680px; }
  .hero-inner--formular .hero-text { display: contents; }
  .hero-inner--formular .hero-eyebrow { order: 1; }
  .hero-inner--formular .hero-title { order: 2; }
  .hero-inner--formular .hero-lead { order: 3; }
  .hero-inner--formular .hero-formular { order: 4; margin-top: 28px; }
  .hero-inner--formular .hero-cena { order: 5; margin-top: 26px; }
  .hero-inner--formular .hero-stats { order: 6; margin-top: 30px; }
}

@media (max-width: 620px) {
  .hero-inner--formular .hero-lead-dal { display: none; }
  .hero-inner--formular .hero-formular { margin-top: 22px; }
  .hf-panel { padding: 26px 20px 22px; border-radius: 20px; }
  .hf-panel::before { left: 20px; }
  .hf-titulek { font-size: 24px; }
  .hf-podtitulek { margin-bottom: 18px; }
  .hf-panel .kf-row { grid-template-columns: 1fr; }
  /* 16 px: menší písmo v poli iPhone při psaní přiblíží celou stránku */
  .hf-panel .kf-field input,
  .hf-panel .kf-field select,
  .hf-panel .kf-field textarea { font-size: 16px; padding: 13px 14px; }
  .hf-panel .kf-field textarea, html[lang="uk"] .hf-panel .kf-field textarea { height: 112px; }
  .hf-panel .kf-actions .btn { min-height: 56px; }
}
