/*
  The lead form (assets/js/lead-formulier.js): one question at a time in a white card, with the guide
  pointing at it. It takes the site's own colours from styles.css (--color-gold and friends), so the
  same file fits every mortgage site.
*/
.lf {
  --lf-merk: var(--color-gold, #fcc13f);
  --lf-merk-donker: var(--color-gold-dark, #e1a41a);
  --lf-merk-tekst: var(--color-navy, #17213a);
  --lf-navy: var(--color-navy, #17213a);
  --lf-inkt: var(--color-ink, #121212);
  --lf-grijs: var(--color-muted, #5f6472);
  --lf-papier: var(--color-paper, #f7f5ee);
  --lf-lijn: #dcd8cd;
  --lf-goed: #1c7a3d;
  --lf-let-op: #9a5a00;
  padding: 20px 16px 16px;
  border-radius: var(--radius-medium, 22px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lf-merk) 18%, #fff) 0%, var(--lf-papier) 100%);
  color: var(--lf-inkt);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.lf__top {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.lf__jaine {
  flex: none;
  width: 104px;
  height: auto;
  margin-bottom: -6px;
  filter: drop-shadow(0 10px 14px rgba(23, 33, 58, 0.18));
}

.lf__woord {
  min-width: 0;
  padding-bottom: 12px;
}

.lf__script {
  margin: 0 0 2px;
  color: var(--lf-merk-donker);
  font-family: var(--font-script, cursive);
  font-size: 1.9rem;
  line-height: 1.05;
}

.lf .lf__kop {
  margin: 0 0 6px;
  color: var(--lf-navy);
  font-size: 1.35rem;
  line-height: 1.2;
  text-wrap: balance;
}

.lf__kop em {
  color: var(--lf-merk-donker);
  font-style: normal;
}

.lf .lf__lead {
  margin: 0;
  color: var(--lf-grijs);
  font-size: 0.95rem;
}

.lf__kaart {
  position: relative;
  /* lead-formulier.js brings the card into view when a new question is not readable; this keeps
     it clear of the site's fixed header. */
  scroll-margin-top: 92px;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 33, 58, 0.10);
}

.lf__kaart :focus-visible {
  outline: 3px solid var(--lf-merk-donker);
  outline-offset: 2px;
}

.lf__kaart [data-lf-kop]:focus {
  outline: none;
}

.lf__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--lf-papier);
  color: var(--lf-navy);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lf__voortgang {
  height: 4px;
  margin: 2px 0 14px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--lf-lijn);
}

.lf__voortgang i {
  display: block;
  height: 100%;
  background: var(--lf-merk-donker);
  transition: width 0.2s;
}

.lf .lf__vraag {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lf__help {
  margin: 0 0 12px;
  color: var(--lf-grijs);
  font-size: 0.875rem;
}

.lf__opties {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.lf button {
  font: inherit;
  cursor: pointer;
}

.lf__optie {
  min-height: 46px;
  padding: 11px 13px;
  border: 1.5px solid var(--lf-lijn);
  border-radius: 9px;
  background: #fff;
  color: var(--lf-inkt);
  text-align: left;
}

.lf__optie:hover {
  border-color: var(--lf-navy);
}

.lf__optie[aria-pressed="true"] {
  border-color: var(--lf-navy);
  background: #eef1f8;
  font-weight: 700;
}

/* The first question, "Contact" or "Hypotheekscan" (owner, 23 Nov 2026: "bigger and bolder so the 2 choices are easy
   to spot"): two big answers, side by side where both fit, else one above the other. The longest word, German
   "Finanzierungsscan", is 192px wide at this size, so an answer needs 232px.
   Since 25 Nov 2026 (owner) the first answer is "Contact / oriëntatie", on two lines: the script puts a line break
   after the slash, which pre-line keeps. Two lines fit the 84px; every row takes the tallest answer's height, so
   stacked on a phone the two answers stay the same size. */
.lf__opties[data-veld="start"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.lf__opties[data-veld="start"] .lf__optie {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 14px 16px;
  border: 2px solid var(--lf-navy);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(23, 33, 58, 0.08);
  color: var(--lf-navy);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lf__opties[data-veld="start"] .lf__optie:hover,
.lf__opties[data-veld="start"] .lf__optie:focus-visible {
  border-color: var(--lf-merk);
  box-shadow: 0 0 0 3px var(--lf-merk);
}

/* On a phone they stack, so a little less height each. */
@media (max-width: 520px) {
  .lf__opties[data-veld="start"] .lf__optie {
    min-height: 68px;
  }
}

.lf__let-op {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fbeed6;
  font-size: 0.9rem;
}

.lf__rij {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 14px;
}

.lf__knop {
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--lf-merk);
  color: var(--lf-merk-tekst);
  font-weight: 700;
}

.lf__knop:hover {
  background: var(--lf-merk-donker);
}

.lf__knop:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lf__link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--lf-navy);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lf__velden {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.lf__veld {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lf__veld label {
  font-size: 0.875rem;
  font-weight: 700;
}

.lf__veld input,
.lf__veld textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--lf-lijn);
  border-radius: 9px;
  background: #fff;
  color: var(--lf-inkt);
  font: inherit;
}

.lf__veld textarea {
  resize: vertical;
}

.lf--getoetst .lf__veld input:invalid,
.lf--getoetst .lf__vink input:invalid {
  border-color: #b3261e;
  outline: 2px solid #b3261e;
  outline-offset: 1px;
}

/* The field people never see; only a script fills it. */
.lf__weg {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lf__klein {
  margin: 10px 0 0;
  color: var(--lf-grijs);
  font-size: 0.8rem;
}

.lf__klein a {
  color: var(--lf-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lf__vink {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.lf__vink input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.lf__fout {
  margin: 10px 0 0;
  color: #b3261e;
  font-size: 0.875rem;
}

.lf__fout:empty {
  display: none;
}

.lf__uitkomst {
  margin-bottom: 14px;
  padding: 2px 0 2px 14px;
  border-left: 5px solid var(--lf-goed);
}

.lf__uitkomst--zacht {
  border-color: #1f3d8a;
}

.lf__uitkomst--nee {
  border-color: var(--lf-let-op);
}

.lf .lf__uitkomst h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.lf__uitkomst p {
  margin: 0;
}

.lf__nu {
  margin: 0 0 6px;
  font-weight: 700;
}

.lf__stappen {
  margin: 0;
  padding-left: 20px;
}

.lf__stappen li {
  margin: 4px 0;
}

.lf__antwoorden {
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--lf-lijn);
  list-style: none;
}

.lf__antwoorden li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--lf-lijn);
  font-size: 0.875rem;
}

.lf__antwoorden span:first-child {
  flex: none;
  color: var(--lf-grijs);
}

.lf__antwoorden span:last-child {
  text-align: right;
}

@media (min-width: 560px) {
  .lf {
    padding: 22px;
  }

  .lf__jaine {
    width: 150px;
  }

  .lf__woord {
    padding-bottom: 18px;
  }

  .lf .lf__kop {
    font-size: 1.6rem;
  }

  .lf__kaart {
    padding: 22px;
  }

  .lf__velden {
    grid-template-columns: 1fr 1fr;
  }

  .lf__veld--breed {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lf__voortgang i {
    transition: none;
  }
}

/* ------------------------------------------------------------------
   Band layout, opt-in. Without it the form looks as it always did.

   <section class="lf-band" aria-labelledby="...">
     <div class="container">
       <div class="lf" data-lead-formulier data-lf-stijl="band" ...>
         <span class="lf__anker" id="..." aria-hidden="true"></span>
         <div class="lf__top"> guide, script line, <h2 class="lf__kop">, lead </div>
         <div class="lf__kaart" data-lf-kaart></div>
       </div>
     </div>
   </section>

   A full-width cream band. The guide, the script line, a large heading
   and a lead paragraph sit above one wide white card that holds the
   questions, the contact step and the outcome, centred in the card.
   .lf__anker is where in-page buttons land: on the band's heading on a
   desktop, on the card on a phone.
   ------------------------------------------------------------------ */
.lf-band {
  padding: 44px 0 52px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-gold, #fcc13f) 16%, #fff), var(--color-paper, #f7f5ee));
}

.lf[data-lf-stijl="band"] {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  background: none;
}

.lf[data-lf-stijl="band"] .lf__top {
  order: 1;
  gap: 16px 20px;
}

.lf__anker {
  display: block;
  order: 2;
  height: 0;
  scroll-margin-top: 92px;
}

.lf[data-lf-stijl="band"] .lf__kaart {
  order: 3;
  padding: 18px 16px;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(23, 33, 58, 0.1);
}

.lf[data-lf-stijl="band"] .lf__jaine {
  width: 128px;
}

.lf[data-lf-stijl="band"] .lf__woord {
  flex: 1 1 0;
  padding-bottom: 20px;
}

.lf[data-lf-stijl="band"] .lf__script {
  margin-bottom: 4px;
  font-size: 2.1rem;
}

.lf[data-lf-stijl="band"] .lf__kop {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 5.4vw, 2.6rem);
  line-height: 1.12;
}

.lf[data-lf-stijl="band"] .lf__lead {
  max-width: 62ch;
  font-size: 1rem;
}

.lf[data-lf-stijl="band"] .lf__lead a {
  color: var(--lf-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 560px) {
  .lf[data-lf-stijl="band"] {
    padding: 0;
  }

  .lf[data-lf-stijl="band"] .lf__jaine {
    width: 170px;
  }

  /* The questions keep a readable width in the middle of the wide card. */
  .lf[data-lf-stijl="band"] .lf__kaart {
    padding: 28px max(28px, calc((100% - 600px) / 2));
    border-radius: var(--radius-large, 32px);
  }

  .lf[data-lf-stijl="band"] .lf__lead {
    font-size: 1.08rem;
  }

  /* Two answers side by side, as in the narrower default card. */
  .lf[data-lf-stijl="band"] .lf__opties {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .lf-band {
    padding: 64px 0 76px;
  }

  .lf[data-lf-stijl="band"] .lf__top {
    gap: 28px 56px;
  }

  .lf[data-lf-stijl="band"] .lf__jaine {
    width: 250px;
  }

  .lf[data-lf-stijl="band"] .lf__woord {
    padding-bottom: 36px;
  }

  .lf[data-lf-stijl="band"] .lf__script {
    font-size: 2.6rem;
  }

  /* On a desktop the buttons land on the band's heading, with the card right below it. */
  .lf__anker {
    order: 0;
    scroll-margin-top: 104px;
  }
}

/* ------------------------------------------------------------------
   Compact layout, opt-in, for a form next to a text column (the bottom
   of a page). Without it the form looks as it always did.

   <div class="lf" data-lead-formulier data-lf-stijl="compact" ...>
     <div class="lf__top">
       <img class="lf__jaine" src=".../jaine-avatar.webp" alt="">
       <div class="lf__woord"><p class="lf__label">...</p><h3 class="lf__kop">...</h3></div>
     </div>
     <div class="lf__kaart" data-lf-kaart></div>
   </div>

   The whole block is one white card. At its top a small portrait of the
   guide sits next to a pill label and the form's title; the questions
   follow right below, without a card of their own.
   ------------------------------------------------------------------ */
.lf[data-lf-stijl="compact"] {
  padding: 18px 16px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(23, 33, 58, 0.1);
}

.lf[data-lf-stijl="compact"] .lf__top {
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.lf[data-lf-stijl="compact"] .lf__jaine {
  width: 44px;
  height: 55px;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lf-merk) 60%, #fff);
  filter: none;
  object-fit: cover;
}

.lf[data-lf-stijl="compact"] .lf__woord {
  padding: 0;
}

.lf__label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lf-goed) 9%, #fff);
  color: var(--lf-goed);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lf[data-lf-stijl="compact"] .lf__kop {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

/* The pill label at the top says what the card's own tag said. */
.lf[data-lf-stijl="compact"] .lf__tag {
  display: none;
}

.lf[data-lf-stijl="compact"] .lf__kaart {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

@media (min-width: 560px) {
  .lf[data-lf-stijl="compact"] {
    padding: 20px 22px;
    border-radius: 26px;
  }

  .lf[data-lf-stijl="compact"] .lf__kop {
    font-size: 1.3rem;
  }

  .lf[data-lf-stijl="compact"] .lf__kaart {
    padding: 0;
  }
}

/* Owner, 22 Nov 2026: the heading ("Contact form and affordability check") comes first, in the page's own heading
   style, with the handwritten line under it. */
.lf .lf__kop + .lf__script {
  margin: 0 0 8px;
  /* A whole sentence in the handwritten font: a little air between letters and words keeps it readable. */
  letter-spacing: 0.03em;
  word-spacing: 0.08em;
}

@media (min-width: 900px) {
  .lf[data-lf-stijl="band"] .lf__kop + .lf__script {
    font-size: 2.9rem;
  }
}

/* A typed number (the age, 2026-11-28): a field for three digits, its unit, its own button. */
.lf__getal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.lf__getal input {
  width: 6.5rem;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--lf-lijn);
  border-radius: 9px;
  background: #fff;
  color: var(--lf-inkt);
  font: inherit;
  font-size: 1.05rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.lf__getal input::-webkit-outer-spin-button,
.lf__getal input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lf__getal input:focus {
  border-color: var(--lf-navy);
  outline: none;
}

.lf__eenheid {
  color: var(--lf-inkt);
  font-weight: 600;
}

.lf__verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
