/* ============================================================
   Eco development — Dotazník · Typeform-style edition
   One question per screen · full-width · deep-forest immersive
   Reuses field components from eco-components.jsx, re-themed dark
   ============================================================ */

html, body {
  background: #0C300B;
  color: #F4F1E8;
}

/* deep-forest glow field instead of the light paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 760px at 82% -12%, rgba(123, 195, 77, 0.16), transparent 60%),
    radial-gradient(900px 620px at -4% 112%, rgba(93, 160, 71, 0.12), transparent 60%);
}

/* ============================================================
   SHELL
   ============================================================ */
.tf-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* decorative per-question backdrop — heavily blurred colour fields */
.tf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tf-backdrop__inner {
  position: absolute;
  inset: 0;
  filter: blur(120px) saturate(1.15);
}
.tf-bg-svg {
  position: absolute;
  inset: -16%;
  width: 132%;
  height: 132%;
}
@media (prefers-reduced-motion: no-preference) {
  .tf-backdrop__inner { animation: tfBgIn 1000ms var(--ease); }
  .tf-bg-svg { animation: tfDrift 32s ease-in-out infinite alternate; }
}
@keyframes tfBgIn { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes tfDrift { from { transform: translate3d(0, 0, 0) scale(1.02); } to { transform: translate3d(0, -26px, 0) scale(1.08); } }

.tf-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.10);
  z-index: 6;
}
.tf-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--leaf-bright));
  border-radius: 0 999px 999px 0;
  transition: width 520ms var(--ease);
}

.tf-head {
  position: fixed;
  top: 24px;
  left: 48px;
  right: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
}
.tf-logo { height: 22px; width: auto; display: block; background: var(--forest-deep); padding: 9px 13px; border-radius: 11px; box-sizing: content-box; }
.tf-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================================
   STAGE — one question, vertically centered
   ============================================================ */
.tf-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 104px 48px 88px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
.tf-card {
  width: 100%;
  max-width: 700px;
  margin: auto 0;
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .tf-card { animation: tfIn 540ms var(--ease); }
}
@keyframes tfIn {
  from { transform: translateY(22px); }
  to   { transform: translateY(0); }
}

.tf-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-bright);
  margin-bottom: 16px;
}
.tf-num svg { width: 15px; height: 15px; }

.tf-q {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  color: #ECE3CC;
  margin: 0 0 14px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(8, 30, 8, 0.4);
}
.tf-q--nowrap {
  font-size: clamp(24px, 3.3vw, 40px);
  white-space: nowrap;
  text-wrap: nowrap;
}
.tf-q em { font-style: italic; color: var(--leaf-bright); }

.tf-help {
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.70);
  margin: 0 0 32px;
  max-width: 56ch;
}
.tf-body { margin-top: 4px; }

.tf-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.tf-enter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tf-enter kbd {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 2px 7px;
}

.tf-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.tf-back:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.tf-back svg { width: 16px; height: 16px; }

/* primary CTA */
.tf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 32px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transition: transform 150ms var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tf-btn svg { width: 18px; height: 18px; }
.tf-btn--primary {
  background: var(--leaf-bright);
  color: #0C300B;
  box-shadow: 0 12px 30px -12px rgba(123, 195, 77, 0.65);
}
.tf-btn--primary:hover { background: #8FD45F; box-shadow: 0 14px 34px -12px rgba(123, 195, 77, 0.7); }
.tf-btn--primary:active { transform: translateY(1px); }

/* ============================================================
   DARK RE-THEME of shared field components (.tf-body scope)
   ============================================================ */
.tf-body .field { margin-bottom: 16px; }
.tf-body .field:last-child { margin-bottom: 0; }
.tf-body .field label.lbl { color: rgba(255, 255, 255, 0.86); font-size: 13px; }
.tf-body .opt, .tf-body .hint { color: rgba(255, 255, 255, 0.55); }
.tf-body .req { color: var(--leaf-bright); }

.tf-body .inp, .tf-body .ta {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #F6F3EA;
  font-size: 17px;
}
.tf-body .inp { height: 54px; }
.tf-body .inp::placeholder, .tf-body .ta::placeholder { color: rgba(255, 255, 255, 0.4); }
.tf-body .inp:focus, .tf-body .ta:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--leaf-bright);
  box-shadow: 0 0 0 4px rgba(123, 195, 77, 0.18);
}
.tf-body .inp.err, .tf-body .ta.err { border-color: var(--clay); background: rgba(190, 107, 60, 0.12); }
.tf-body .ta-count { background: rgba(12, 48, 11, 0.7); color: rgba(255, 255, 255, 0.5); }
.tf-body .err-msg { color: #E8A877; }

/* chips */
.tf-body .chips { gap: 11px; }
.tf-body .chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  padding: 12px 18px;
}
.tf-body .chip:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.36); color: #fff; }
.tf-body .chip__check { border-color: rgba(255, 255, 255, 0.32); }
.tf-body .chip.is-on {
  background: var(--leaf-bright);
  border-color: var(--leaf-bright);
  color: #0C300B;
  box-shadow: 0 6px 20px -6px rgba(123, 195, 77, 0.5);
}
.tf-body .chip.is-on .chip__check { background: #0C300B; border-color: #0C300B; }
.tf-body .chip.is-on .chip__check svg { stroke: var(--leaf-bright); }

/* option cards */
.tf-body .opts { gap: 11px; }
.tf-body .opt-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.20); padding: 16px 18px; }
.tf-body .opt-card:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.36); }
.tf-body .opt-card__text b { color: #F6F3EA; font-size: 15.5px; }
.tf-body .opt-card__text span { color: rgba(255, 255, 255, 0.62); font-size: 13.5px; }
.tf-body .opt-dot { border-color: rgba(255, 255, 255, 0.36); }
.tf-body .opt-card.is-on { background: rgba(123, 195, 77, 0.16); border-color: var(--leaf-bright); box-shadow: none; }
.tf-body .opt-card.is-on .opt-dot { background: var(--leaf-bright); border-color: var(--leaf-bright); }
.tf-body .opt-card.is-on .opt-dot i { background: #0C300B; }

/* segmented */
.tf-body .seg { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.20); padding: 5px; }
.tf-body .seg button { color: rgba(255, 255, 255, 0.72); padding: 11px 26px; font-size: 15px; }
.tf-body .seg button.is-on { background: var(--leaf-bright); color: #0C300B; box-shadow: none; }

/* sliders */
.tf-body .slider-field { margin-bottom: 0; }
.tf-body .slider-top { margin-bottom: 16px; }
.tf-body .slider-val { color: #ECE3CC; font-size: 32px; }
.tf-body .slider-val small { color: rgba(255, 255, 255, 0.55); }
.tf-body .slider { height: 44px; }
.tf-body .slider__track { background: rgba(255, 255, 255, 0.12); height: 12px; }
.tf-body .slider input[type="range"] { height: 12px; }
.tf-body .slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; background: #0C300B; border: 4px solid var(--leaf-bright); }
.tf-body .slider input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; background: #0C300B; border: 4px solid var(--leaf-bright); }
.tf-body .slider-scale { color: rgba(255, 255, 255, 0.55); font-size: 12px; margin-top: 8px; }

/* consent */
.tf-body .consent { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.20); padding: 18px 20px; }
.tf-body .consent.is-on { background: rgba(123, 195, 77, 0.16); border-color: var(--leaf-bright); }
.tf-body .consent.err { border-color: var(--clay); background: rgba(190, 107, 60, 0.12); }
.tf-body .consent__box { border-color: rgba(255, 255, 255, 0.36); }
.tf-body .consent.is-on .consent__box { background: var(--leaf-bright); border-color: var(--leaf-bright); }
.tf-body .consent.is-on .consent__box svg { stroke: #0C300B; }
.tf-body .consent__text { color: rgba(255, 255, 255, 0.80); font-size: 14.5px; }
.tf-body .consent__text b { color: #fff; }

/* ============================================================
   DONE
   ============================================================ */
.tf-done {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px;
  text-align: center;
}
.tf-done__inner { max-width: 600px; position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tf-done__inner { animation: tfIn 640ms var(--ease); }
}
.tf-done__seal {
  width: 96px; height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(123, 195, 77, 0.16);
  border: 1px solid rgba(123, 195, 77, 0.4);
  display: grid; place-items: center;
}
.tf-done__seal svg { width: 46px; height: 46px; stroke: var(--leaf-bright); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tf-done__inner h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 46px);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: #F6F3EA;
}
.tf-done__inner p { color: rgba(255, 255, 255, 0.72); font-size: 17px; line-height: 1.6; margin: 0 auto 30px; max-width: 46ch; }
.tf-done__mail {
  font-size: 14.5px !important; color: rgba(255, 255, 255, 0.62) !important;
  margin: -8px auto 26px !important; max-width: min(42ch, 100%) !important;
  display: block; text-align: center; line-height: 1.5; overflow-wrap: anywhere;
  padding: 10px 18px; border: 1px solid rgba(123, 195, 77, 0.3);
  border-radius: 16px; background: rgba(123, 195, 77, 0.08);
}
.tf-done__mail b { color: var(--leaf-bright); font-weight: 700; }
.tf-done__summary { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.tf-done__pill {
  font-size: 13px; font-weight: 700;
  color: #0C300B; background: var(--leaf-bright);
  padding: 7px 15px; border-radius: var(--r-pill); white-space: nowrap;
}
.tf-done__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tf-done__actions .tf-btn { margin: 0; }
.tf-done__link { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,0.66); text-decoration: none; }
.tf-done__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* add-your-own field under chips */
.tf-add {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 480px;
}
.tf-body .tf-add__inp { flex: 1; height: 48px; font-size: 16px; }
.tf-add__btn {
  flex: none;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #F4F1E8;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.tf-add__btn:hover { background: var(--leaf-bright); color: #0C300B; border-color: var(--leaf-bright); }

/* profile-photo upload */
.tf-photo__row { display: flex; align-items: center; gap: 18px; }
.tf-photo__av {
  width: 84px; height: 84px; flex: none;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  display: grid; place-items: center;
  cursor: pointer; overflow: hidden; padding: 0;
  transition: all var(--dur) var(--ease);
}
.tf-photo__av svg { width: 30px; height: 30px; }
.tf-photo__av:hover { border-color: var(--leaf-bright); color: var(--leaf-bright); background: rgba(123, 195, 77, 0.08); }
.tf-photo__av.has { border-style: solid; border-color: var(--leaf-bright); }
.tf-photo__av img { width: 100%; height: 100%; object-fit: cover; }
.tf-photo__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tf-photo__btn {
  height: 42px; padding: 0 18px; border-radius: var(--r-pill); white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06);
  color: #F4F1E8; font-family: var(--font-sans); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.tf-photo__btn:hover { background: var(--leaf-bright); color: #0C300B; border-color: var(--leaf-bright); }
.tf-photo__rm {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0 4px;
}
.tf-photo__rm:hover { color: #E8A877; }

/* detail field revealed after a choice */
.tf-reveal { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .tf-reveal { animation: tfReveal 380ms var(--ease); }
}
@keyframes tfReveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .tf-head { left: 20px; right: 20px; top: 16px; }
  .tf-logo { height: 22px; }
  .tf-stage { padding: 78px 20px 40px; }
  .tf-backdrop__inner { filter: blur(90px) saturate(1.15); }
  .tf-num { margin-bottom: 12px; }
  .tf-help { font-size: 15.5px; margin-bottom: 26px; }
  .field--row { grid-template-columns: 1fr; }
  .tf-q--nowrap { white-space: normal; text-wrap: balance; font-size: clamp(26px, 7vw, 34px); }
  .tf-add { max-width: none; }
  .tf-actions { width: 100%; gap: 12px; margin-top: 30px; }
  .tf-enter { display: none; }
  .tf-btn--primary { flex: 1 1 auto; justify-content: center; }
  .tf-back { flex: 0 0 auto; }
  .tf-body .slider-val { font-size: 28px; }
}

@media (max-width: 420px) {
  .tf-stage { padding: 72px 16px 34px; }
  .tf-btn { height: 52px; padding: 0 22px; font-size: 15px; }
  .tf-back { height: 52px; padding: 0 16px; }
  .tf-body .chip { font-size: 14px; padding: 11px 15px; }
  .tf-done { padding: 40px 20px; }
  .tf-done__inner p { font-size: 16px; }
}
