/* =====================================================================
   Munkaigény felmérő — kitöltői felület

   Vizuális irány: mély éjkék és meleg arany. A kék a pénzügyi
   szakma komolyságát viszi, az arany a személyes figyelmet — és
   mindkettő ott van a portréfotón is, így a kép nem idegen elem,
   hanem a felület része.

   A nyitó- és záróképernyő sötét, a kérdések világosak: kitöltés
   közben a hosszú olvasás miatt a világos alap kíméletesebb.
   ===================================================================== */

:root {
  /* Sötét felületek */
  --night:      #0e1b2c;
  --night-lit:  #16283f;
  --night-soft: #1e3450;

  /* Világos felületek */
  --paper:      #f7f5f1;
  --surface:    #ffffff;

  /* Szöveg */
  --ink:        #131c26;
  --ink-soft:   #5b6875;
  --ink-faint:  #93a0ac;
  --on-night:   #e8eef5;
  --on-night-soft: rgba(232,238,245,.68);

  /* Akcentus */
  --gold:       #c39b52;
  --gold-lit:   #d4ae67;
  --gold-pale:  #f5eee0;

  --line:       #e3e0d9;
  --line-night: rgba(255,255,255,.14);

  --danger:     #8f3232;
  --danger-bg:  #fbeded;
}

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

html { -webkit-text-size-adjust: 100%; height: 100%; }

/**
 * Lezárt lap.
 *
 * A nyitó- és záróképernyő pontosan egy képernyő magas, ezért ott
 * nincs mit görgetni — és a görgetősáv puszta jelenléte is azt
 * sugallná, hogy van még valami lentebb. Ezeket az oldalakat ezért
 * fixen a képernyő méretére zárjuk.
 */
body.locked {
  height: 100svh;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "IBM Plex Serif", ui-serif, Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =====================================================================
   NYITÓKÉPERNYŐ — kétosztatú
   ===================================================================== */

.split {
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.split__text {
  background: var(--night);
  color: var(--on-night);
  display: flex;
  align-items: center;
  padding: 4rem 3.5rem;
}

.split__inner { max-width: 30rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.lede {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  color: #fff;
  margin-bottom: 1.25rem;
}

.sub {
  color: var(--on-night-soft);
  font-size: 1.0625rem;
  margin: 0 0 2rem;
}

/* Idézet — bal oldali arany vonallal, dőlt szedéssel */
.quote {
  margin: 0 0 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}

.quote blockquote {
  margin: 0;
  font-family: "IBM Plex Serif", ui-serif, Georgia, serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--on-night-soft);
  line-height: 1.5;
}

.quote blockquote::before { content: '„'; }
.quote blockquote::after  { content: '”'; }

.quote figcaption {
  margin-top: .5rem;
  font-size: 0.8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}

.fineprint {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(232,238,245,.5);
}

.fineprint a { color: rgba(232,238,245,.75); text-underline-offset: 3px; }
.fineprint a:hover { color: var(--gold-lit); }

/**
 * A portré hasábja.
 *
 * A háttér ugyanaz a sötét szín, mint a szöveges oldalé — így ha a
 * kép aránya nem pontosan egyezik a hasáb arányával, a maradék sáv
 * beleolvad a háttérbe, nem fehér csíkként jelenik meg.
 */
.split__image {
  position: relative;
  background: var(--night);
  overflow: hidden;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/**
 * Finom átmenet a kép bal szélén, hogy a két oldal ne éles vágással
 * találkozzon, hanem egymásba folyjon.
 */
.split__image::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6rem;
  background: linear-gradient(to right, var(--night), transparent);
  z-index: 1;
  pointer-events: none;
}

/* v15: a portré körüli teljes szabad terület azonos sötét háttérszínű. */
.split,
.split__image {
  background: var(--night);
}

.split__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.split__image img {
  object-fit: contain;
  background: var(--night);
}

/* =====================================================================
   LÁBLÉC: VISSZA ÉS TOVÁBB
   ===================================================================== */

.nav { display: flex; gap: .625rem; align-items: stretch; }

.nav .btn--wide { flex: 1; }

/* A Vissza halkabb, mint a Tovább — nem az a fő irány */
.btn--back {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
  padding-left: 1.125rem;
  padding-right: 1.125rem;
  white-space: nowrap;
}

.btn--back:hover {
  background: var(--surface);
  border-color: var(--ink-faint);
  color: var(--ink);
}

/* Automatikus továbblépésnél a gomb csak tartalék — elrejtjük */
.btn--fallback.is-hidden { display: none; }

/* Ha a Tovább elrejtve, a Vissza egyedül marad: ne nyúljon szét */
.nav:has(.is-hidden) .btn--back { flex: 0 0 auto; }

/* =====================================================================
   VÁLASZTÁS VISSZAJELZÉSE

   Automatikus továbblépésnél a kitöltő egy pillanatra lássa, mit
   választott — enélkül csak annyit érzékel, hogy villant az oldal.
   ===================================================================== */

.choice.is-confirming {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: inset 3px 0 0 var(--gold);
}

.choice--grid.is-confirming { box-shadow: inset 0 0 0 2px var(--gold); }

.done-back { margin-top: 2rem; }

/* =====================================================================
   GOMBOK
   ===================================================================== */

.btn {
  display: inline-block;
  padding: .9375rem 2rem;
  border: 1px solid var(--night);
  border-radius: 3px;
  background: var(--night);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s;
}

.btn:hover { background: var(--night-lit); border-color: var(--night-lit); }
.btn:active { transform: translateY(1px); }

/* Az arany gomb a fő cselekvés — csak egy van belőle képernyőnként */
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
  font-weight: 600;
}

.btn--gold:hover { background: var(--gold-lit); border-color: var(--gold-lit); color: var(--night); }

.btn--wide { width: 100%; text-align: center; }

/* =====================================================================
   HALADÁSJELZŐ
   ===================================================================== */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(19,28,38,.08);
  z-index: 10;
}

.progress__bar {
  height: 100%;
  background: var(--gold);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* =====================================================================
   KÉRDÉSKÉPERNYŐ
   ===================================================================== */

.stage {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem;
}

.stage--dark {
  background: var(--night);
  color: var(--on-night);
}

.stage--dark h1 { color: #fff; }
.stage--dark p { color: var(--on-night-soft); }

.card { width: 100%; max-width: 34rem; }

.step {
  font-size: 0.75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.q {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  margin-bottom: .625rem;
}

.q-help {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
  white-space: pre-line;
}

.q + form, .q-help + form { margin-top: 2.25rem; }

/* =====================================================================
   VÁLASZLEHETŐSÉGEK
   ===================================================================== */

.choices { display: grid; gap: .5rem; margin-bottom: 2.25rem; }

.choice {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

.choice:hover { border-color: var(--gold); background: var(--gold-pale); }

/*
 * Az átvezető képernyők témacsempéi csak előnézetek: nem válaszok.
 * Ezért nincs előttük rádiógomb, és egérrel sem viselkednek
 * kattintható elemként. A Kezdjük el/Folytassuk csempe aktív marad.
 */
.choice--display-only,
.choice--display-only:hover {
  cursor: default;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.choice input {
  accent-color: var(--gold);
  width: 1.0625rem;
  height: 1.0625rem;
  flex-shrink: 0;
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: inset 3px 0 0 var(--gold);
}

.choice:has(input:checked) .choice__label { font-weight: 500; }

.choice__label { flex: 1; }

/* =====================================================================
   MEZŐK
   ===================================================================== */

.field { margin-bottom: 1.125rem; }

.field label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .4375rem;
}

.input {
  width: 100%;
  padding: .875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}

.input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(195,155,82,.16);
}

textarea.input { min-height: 7rem; resize: vertical; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }

/* Csapdamező botok ellen — valódi látogató sosem látja */
.trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* =====================================================================
   ÜZENETEK, HOZZÁJÁRULÁS
   ===================================================================== */

.alert {
  padding: .875rem 1.125rem;
  border-radius: 3px;
  background: var(--danger-bg);
  border: 1px solid #e9cfcf;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.consent {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.375rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-soft);
  white-space: pre-line;
  margin-bottom: 1.5rem;
  max-height: 22rem;
  overflow-y: auto;
}

.consent-check {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  margin-bottom: 2.25rem;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.consent-check input {
  accent-color: var(--gold);
  width: 1.0625rem;
  height: 1.0625rem;
  margin-top: .1875rem;
  flex-shrink: 0;
}

.consent-check a { color: var(--ink); text-underline-offset: 2px; }
.consent-check a:hover { color: var(--gold); }

/* =====================================================================
   ZÁRÓKÉPERNYŐ
   ===================================================================== */

.hero { text-align: center; }

.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }

.hero p { font-size: 1.0625rem; max-width: 28rem; margin: 0 auto; }

.done-mark {
  width: 3.25rem; height: 3.25rem;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.375rem;
}

/* =====================================================================
   ADATKEZELÉSI TÁJÉKOZTATÓ
   ===================================================================== */

.stage--doc { align-items: flex-start; padding-top: 3.5rem; }

.doc { max-width: 40rem; font-size: 1rem; line-height: 1.7; }

.doc h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 1rem; }

.doc h2 {
  font-size: 1.125rem;
  margin: 2.5rem 0 .75rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--line);
}

.doc h2:first-of-type { border-top: none; padding-top: 0; }

.doc__lead { font-size: 1.0625rem; color: var(--ink-soft); margin-bottom: .75rem; }

.doc__meta {
  font-size: 0.75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
}

.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: .375rem; }

.doc a { color: var(--ink); text-underline-offset: 2px; }
.doc a:hover { color: var(--gold); }

.doc__note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.doc__ref { color: var(--ink-faint); font-size: 0.9375rem; }

.doc__box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.doc__back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* =====================================================================
   KÉRDŐÍV VÁLASZTÓ

   Akkor jelenik meg, ha több publikált kérdőív van, és valaki az
   előtag gyökerét nyitja meg. Egyetlen kérdőív esetén a rendszer
   automatikusan odavisz, tehát ez a képernyő ki is maradhat.
   ===================================================================== */

.picker { max-width: 32rem; width: 100%; }

.picker .lede { margin-bottom: 2rem; }

.picker__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: .625rem;
}

.picker__item {
  display: block;
  padding: 1.125rem 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-night);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color .12s, background .12s;
}

.picker__item:hover {
  border-color: var(--gold);
  background: rgba(255,255,255,.07);
}

.picker__title {
  display: block;
  font-family: "IBM Plex Serif", ui-serif, Georgia, serif;
  font-size: 1.125rem;
  color: #fff;
}

.picker__desc {
  display: block;
  margin-top: .25rem;
  font-size: 0.9375rem;
  color: var(--on-night-soft);
}

/* =====================================================================
   EGY KÉPERNYŐRE ILLESZTÉS

   A kérdés mindig elfér egy lapon: a Tovább gomb rögzített helyen
   marad alul, és ha a leírás hosszú, csak a fölötte lévő rész
   görgethető. Így a kitöltő sosem "veszíti el" a gombot, és nem
   kell kutakodnia, hogyan léphet tovább.
   ===================================================================== */

.stage--q {
  /* A svh a mobil böngészők változó címsávjával is helyesen számol */
  min-height: 100svh;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.card--fit {
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 5rem);
}

.card__scroll {
  overflow-y: auto;
  /* Enélkül a flex elem nem zsugorodna a tartalma alá */
  min-height: 0;
  /* Hely a görgetősávnak, hogy ne takarja a szöveget */
  padding-right: .25rem;
  /* Az utolsó mező alsó szegélye ne csússzon a rögzített gombsor alá. */
  padding-bottom: .875rem;
  scroll-padding-bottom: .875rem;
  /* A görgetés a saját dobozában maradjon, ne vigye magával az oldalt */
  overscroll-behavior: contain;
}

.card__foot {
  flex-shrink: 0;
  padding-top: 1.5rem;
}

/**
 * Halvány jelzés, hogy van még lejjebb tartalom.
 *
 * A gomb fölötti átmenet elmossa a szöveg alját — ez az apró
 * jel elég ahhoz, hogy az ember tudja: érdemes görgetni.
 */
.card__foot::before {
  content: '';
  display: block;
  height: 1.5rem;
  margin: -2.75rem 0 1.25rem;
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
}

/* A belső térközöket összehúzzuk, hogy több férjen egy képernyőre */
.card--fit .q { margin-bottom: .5rem; }
.card--fit .q-help { margin-bottom: 1.5rem; }
.card--fit .choices { margin-bottom: .5rem; }
.card--fit .consent-check { margin-bottom: .5rem; }
.card--fit .nps__ends { margin-bottom: .5rem; }
.card--fit .field:last-of-type { margin-bottom: 0; }

/* Hosszú magyarázatnál kisebb sortáv — több fér ki olvashatóan */
.card--fit .q-help { line-height: 1.55; }

/* =====================================================================
   ÉRINTŐKÉPERNYŐS ESZKÖZÖK

   Alapelv: amit ujjal kell eltalálni, az legyen legalább 44 képpont
   magas — ez az a méret, amit a legtöbb ember elsőre eltalál.
   ===================================================================== */

@media (hover: none) and (pointer: coarse) {

  /* Érintésnél nincs egérmutató, ezért a hover-állapotok félrevezetők:
     a böngésző "beragasztja" őket koppintás után. Kikapcsoljuk. */
  .choice:hover { border-color: var(--line); background: var(--surface); }
  .btn:hover { background: var(--night); border-color: var(--night); }
  .btn--gold:hover { background: var(--gold); border-color: var(--gold); }

  /* Nagyobb koppintási felület */
  .choice { padding: 1.125rem 1.25rem; }
  .choice input { width: 1.25rem; height: 1.25rem; }

  .btn { padding: 1.0625rem 2rem; }

  .consent-check { padding: .5rem 0; }
  .consent-check input { width: 1.25rem; height: 1.25rem; }

  /* Az aláhúzott linkek legyenek könnyebben eltalálhatók */
  .fineprint a, .doc a { padding: .125rem 0; }
}

/* =====================================================================
   LAPTOP ÉS ASZTALI KIJELZŐ – KÉP MELLETTI VÁLASZOK

   A kérdés képe bal oldalon marad, az Érdekel / Nem érdekel (és más
   képes választások) pedig jobbra, egymás alatt jelennek meg. Telefonon
   ez a szabály nem fut le, ott megmarad a hosszanti elrendezés.
   ===================================================================== */

@media (min-width: 64.0625rem) {
  /* Laptopon a kérdőív használja a rendelkezésre álló szélességet,
     a csempék pedig vízszintes sorokba rendeződjenek. */
  .stage--q {
    align-items: stretch;
    justify-content: flex-start;
    padding: 3.5rem clamp(2rem, 4vw, 5rem)
      calc(1.5rem + env(safe-area-inset-bottom));
  }

  .stage--q .card--fit {
    width: 100%;
    max-width: none;
  }

  .stage--q .choices--list,
  .stage--q .choices--cards {
    grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
    gap: .75rem;
  }

  .stage--q .choice--list,
  .stage--q .choice--cards {
    min-height: 7rem;
  }

  .stage--q .card__foot .nav {
    max-width: 34rem;
  }

  .stage--q .question-layout--image-choices {
    display: grid;
    grid-template-columns: minmax(20rem, 31.25rem) minmax(24rem, 1fr);
    grid-template-areas:
      "step step"
      "image choices"
      "title title"
      "help help";
    column-gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
  }

  .question-layout--image-choices > .step { grid-area: step; }

  .question-layout--image-choices > .q-image {
    grid-area: image;
    width: 100%;
    max-width: none !important;
    height: 20.75rem;
    margin: 0;
    object-fit: contain;
    object-position: left center;
    background: var(--surface);
  }

  .question-layout--image-choices > .q {
    grid-area: title;
    margin-top: 1.25rem;
  }

  .question-layout--image-choices > .q-help {
    grid-area: help;
    margin-bottom: 1rem;
  }

  .question-layout--image-choices > .choices {
    grid-area: choices;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 1fr);
    align-self: stretch;
    margin: 0;
    gap: 1rem;
  }

  .question-layout--image-choices > .choices > .choice {
    min-height: 0;
    padding: 1.25rem 2rem;
  }

  .question-layout--image-choices > .choices .choice__label {
    font-size: clamp(1.2rem, 1.55vw, 1.75rem);
  }

  .question-layout--image-choices > .alert { grid-column: 1 / -1; }
}

/* =====================================================================
   TÁBLAGÉP — fekvő tájolás

   Marad a kétosztatú elrendezés, csak szűkebb belső margókkal.
   ===================================================================== */

@media (min-width: 48rem) and (max-width: 64rem) {
  .split__text { padding: 3rem 2.25rem; }
  .split__inner { max-width: 26rem; }
  .lede { font-size: 1.75rem; }
  .sub { font-size: 1rem; }
  .quote blockquote { font-size: 1rem; }
}

/* =====================================================================
   TÁBLAGÉP — álló tájolás, és kisebb kijelzők

   Egymás alá kerül a kép és a szöveg. A kép aránya megmarad, de
   nem viszi el a képernyő felét — a lényeg a szöveg és a gomb.
   ===================================================================== */

@media (max-width: 47.9375rem) {

  /**
   * Mobilon a kép és a szöveg egymás alá kerül, így együtt
   * magasabbak lehetnek egy képernyőnél. Ott tehát visszaengedjük
   * a görgetést — az a kisebbik rossz ahhoz képest, hogy a
   * Kezdés gomb leszorulna a képernyőről.
   */
  body.locked { height: auto; overflow: visible; }

  .split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100svh;
  }

  .split__image {
    order: -1;
    height: 38vh;
    max-height: 20rem;
    min-height: 13rem;
  }

  .split__image img { object-position: center 12%; }

  /* Az átmenet alulra kerül, hogy a kép beleolvadjon a szövegbe */
  .split__image::before {
    inset: auto 0 0 0;
    width: auto;
    height: 5rem;
    background: linear-gradient(to top, var(--night), transparent);
  }

  .split__text {
    padding: 2rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
  }

  .split__inner { max-width: none; }

  .lede { font-size: 1.625rem; }
  .sub { font-size: 1rem; margin-bottom: 1.5rem; }

  .quote { margin-bottom: 2rem; }
  .quote blockquote { font-size: 0.9375rem; }

  /* Teljes szélességű gomb — hüvelykujjal biztosan eltalálható */
  .split__text .btn { width: 100%; text-align: center; }
}

/* =====================================================================
   TELEFON
   ===================================================================== */

@media (max-width: 30rem) {

  body { font-size: 1rem; }

  .stage {
    padding: 3rem 1.125rem calc(3rem + env(safe-area-inset-bottom));
    align-items: flex-start;
    padding-top: 4rem;
  }

  /* Kérdésképernyőn szűkebb keret, hogy több férjen egy lapra */
  .stage--q {
    padding: 2.5rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .card--fit { max-height: calc(100svh - 3.5rem); }
  .card--fit .q-help { font-size: 0.875rem; margin-bottom: 1.125rem; }
  .card--fit .step { margin-bottom: .5rem; }
  .card__foot { padding-top: .875rem; }
  .card__foot::before { margin: -2.375rem 0 .875rem; }

  .stage--dark { align-items: center; }

  .q { font-size: 1.375rem; }
  .q-help { font-size: 0.875rem; margin-bottom: 1.75rem; }

  .step { margin-bottom: .75rem; }

  .choices { margin-bottom: 1.75rem; }

  .pair { grid-template-columns: 1fr; gap: 0; }

  /* A Tovább gomb legyen teljes szélességű és jól látható */
  .card .btn { width: 100%; text-align: center; }

  .split__image { height: 32vh; min-height: 11rem; }

  .lede { font-size: 1.5rem; }

  .consent { padding: 1.125rem; max-height: 16rem; font-size: 0.875rem; }
  .consent-check { font-size: 0.875rem; }

  .doc { font-size: 0.9375rem; }
  .doc h2 { font-size: 1.0625rem; margin-top: 2rem; }
  .doc__box { padding: 1rem; font-size: 0.875rem; }
  .stage--doc { padding-top: 2rem; }
}

/* =====================================================================
   NAGYON KESKENY KIJELZŐK (régebbi telefonok)
   ===================================================================== */

@media (max-width: 22.5rem) {
  .split__text { padding: 1.75rem 1.125rem 2.5rem; }
  .lede { font-size: 1.375rem; }
  .q { font-size: 1.25rem; }
  .choice { padding: 1rem; gap: .75rem; }
}

/* =====================================================================
   ALACSONY, FEKVŐ KIJELZŐ (telefon oldalra fordítva)

   Ilyenkor a függőleges hely a szűkös, ezért összehúzzuk a
   térközöket, és a kép kisebb szerepet kap.
   ===================================================================== */

@media (max-height: 30rem) and (orientation: landscape) {
  .split { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .split__image { order: 0; height: auto; max-height: none; }
  .split__image::before {
    inset: 0 auto 0 0;
    width: 4rem; height: auto;
    background: linear-gradient(to right, var(--night), transparent);
  }
  .split__text { padding: 1.5rem; }
  .lede { font-size: 1.375rem; margin-bottom: .75rem; }
  .sub { margin-bottom: 1rem; }
  .quote { margin-bottom: 1.25rem; }
  .stage { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* =====================================================================
   MOZGÁSÉRZÉKENYSÉG
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =====================================================================
   KÉRDÉS FEJLÉCKÉPE
   ===================================================================== */

.q-image {
  width: 100%;
  max-width: 26rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* =====================================================================
   KÁRTYÁS VÁLASZOK

   A teljes kártya kattintható — nem csak a kis jelölőnégyzet.
   Ez mobilon lényeges: ujjal a nagy felületet könnyű eltalálni.
   ===================================================================== */

.choice--cards {
  align-items: center;
  gap: 1rem;
  padding: .75rem;
}

/**
 * A teljes kép látszódjon, ne legyen levágva.
 *
 * A "contain" beilleszti a képet a rendelkezésre álló helyre az
 * arányok megtartásával — így egy álló és egy fekvő kép is
 * hiánytalanul látszik, csak más felületet tölt ki. A halvány
 * háttér adja a közös keretet, hogy a sor mégis rendezett maradjon.
 */
.choice__img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--paper);
  padding: .25rem;
}

.choice--cards .choice__label { font-size: 1.0625rem; }

/* =====================================================================
   RÁCSOS VÁLASZOK

   Nagy képes csempék, a kép a főszereplő. A jelölőnégyzet elrejtve —
   a kiválasztást a kártya kerete és háttere mutatja.
   ===================================================================== */

.choices--grid {
  --tile: 11rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--tile), 1fr));
  gap: .75rem;
}

.choice--grid {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.choice--grid input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice--grid .choice__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: .625rem;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.choice--grid .choice__label {
  padding: .75rem .625rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.choices--grid .choice:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* =====================================================================
   NPS SKÁLA
   ===================================================================== */

.nps {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: .25rem;
  margin-bottom: .5rem;
}

.nps__box { position: relative; cursor: pointer; }

.nps__box input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nps__box span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  transition: border-color .12s, background .12s;
}

.nps__box:hover span { border-color: var(--gold); background: var(--gold-pale); }

.nps__box:has(input:checked) span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
  font-weight: 600;
}

.nps__box:has(input:focus-visible) span { outline: 2px solid var(--gold); outline-offset: 2px; }

.nps__ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

@media (max-width: 30rem) {
  .nps { grid-template-columns: repeat(6, 1fr); gap: .3125rem; }
  .choice__img { width: 4rem; height: 4rem; }
  .choices--grid { --tile: 8rem; }
  .q-image { max-width: 100%; }
}
