/* ==========================================================================
   Offerte — Offerte aanvragen (1056:14978), uit de metadata.

     Frame 87    x=189  y=627   643 breed   label, kop, intro, vier punten
     Group 93    x=189  y=1029  552 x 263   magenta quoteblok, radius 10
     Ellipse 5   x=663  y=1088  154         portret, hangt 76 over de rand
     Frame 113   x=884  y=661   656 breed   de velden, 308 + 37 + 308
     Group 108   x=884  y=1326              vinkje links, Verzenden rechts

   De velden zelf (.zs-veld, .zs-formulier__rij, .zs-formulier__akkoord)
   komen uit contact.css.
   ========================================================================== */

/* De paginakop eindigt op 569, Frame 87 begint op 627: 58, net als Contact. */
.zs-offerte { padding-top: clamp(2rem, 3.356vw, 58px); }

/* 643 links, 52 ertussen (832..884), 656 rechts. */
.zs-offerte__rooster {
  display: grid;
  grid-template-columns: minmax(0, 643fr) minmax(0, 656fr);
  gap: clamp(var(--ruimte-m), 3.009vw, 52px);
  align-items: start;
}

/* --- links ---------------------------------------------------------------- */

/* Frame 87: gap 10 tussen het introblok en elk punt. */
.zs-offerte__links { display: grid; gap: 10px; }

/* Frame 86: kop en intro 9 uit elkaar. */
.zs-offerte__intro { display: grid; gap: 9px; }
.zs-offerte__intro .zs-label { line-height: 29px; }
.zs-offerte__intro .zs-kop { max-width: 524px; }

/* Athiti Medium 19/28, wit. */
.zs-offerte__tekst,
.zs-offerte__punten li {
  font-size: var(--tekst-p);
  line-height: var(--regelhoogte-p);
  font-weight: 500;
  color: var(--kleur-wit);
}

.zs-offerte__punten {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rectangle 54: een vierkant van 16 op zijn punt, magenta, 3 onder de
   bovenkant van de regel; de tekst begint 36 vanaf links. */
.zs-offerte__punten li {
  position: relative;
  padding-left: 36px;
}
.zs-offerte__punten li::before {
  content: "";
  position: absolute;
  left: 3.3px;
  top: 6.3px;
  width: 16px;
  height: 16px;
  rotate: 45deg;
  background: var(--kleur-accent);
}

/* Group 93: 552 van de 643 breed, 58 onder de laatste punt (971 -> 1029). */
.zs-offerte__quote {
  position: relative;
  width: 85.848%;                                   /* 552 / 643 */
  min-height: clamp(13rem, 15.22vw, 263px);
  margin-top: clamp(1.5rem, 2.778vw, 48px);        /* 58 min de gap van 10 */
  padding: clamp(1.25rem, 1.968vw, 34px) clamp(1.25rem, 2.199vw, 38px) clamp(1.25rem, 2.199vw, 38px);
  border-radius: 10px;
  background: var(--kleur-accent);
  color: var(--kleur-zwart);
}

/* Het portret staat op 474 vanaf de linkerrand van het blok, 40 voor het
   einde van de tekstkolom (38 + 476); de tekst mag daar niet onder lopen.
   In Figma is de tekst eronder 427 breed. */
.zs-offerte__quote--portret .zs-offerte__quotetekst,
.zs-offerte__quote--portret .zs-offerte__quotesub {
  max-width: calc(100% - clamp(2.5rem, 2.662vw, 46px));
}

/* Bhatera 65 op 50, zwart. */
.zs-offerte__quotetekst {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.7616vw, 65px);
  line-height: 0.7692;                              /* 50 / 65 */
  color: var(--kleur-zwart);
}

/* Athiti Medium 19/28, 9 onder de quote (1163 -> 1172). */
.zs-offerte__quotesub {
  margin-top: 9px;
  font-size: var(--tekst-p);
  line-height: var(--regelhoogte-p);
  font-weight: 500;
  color: var(--kleur-zwart);
}

/* Ellipse 5: 154 rond, 59 onder de bovenrand, 76 over de rechterrand. Op de
   foto in Figma zit een witte rand om het portret. */
.zs-offerte__portret {
  position: absolute;
  top: clamp(1.5rem, 3.414vw, 59px);
  right: calc(-1 * clamp(2.5rem, 4.398vw, 76px));
  width: clamp(6rem, 8.912vw, 154px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--kleur-wit);
}

/* --- rechts: formulier ---------------------------------------------------- */

/* Frame 113 begint 34 lager dan Frame 87 (661 tegen 627). */
.zs-offerte__formulier {
  margin-top: clamp(0px, 1.968vw, 34px);
  gap: 10px;
}

/* Na het berichtveld een groter gat: Frame 113 eindigt op 1074, de rij
   Naam/Bedrijf begint op 1098 (24); daarna weer 11. */
.zs-offerte .zs-veld:has(textarea) + .zs-formulier__rij { margin-top: 14px; }

/* 308 + 37 + 308 over de volle 653. */
.zs-offerte .zs-formulier__rij {
  gap: 37px;
  width: 100%;
}

/* Vertel kort je idee: 159 hoog. */
.zs-offerte .zs-veld__invoer--bericht { min-height: 159px; }

/* Een datumkiezer en keuzelijst in dezelfde stijl als de tekstvelden. */
.zs-offerte .zs-veld__invoer { color-scheme: dark; }

.zs-veld__invoer--keuze {
  appearance: none;
  padding-right: 52px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--kleur-wit) 50%),
    linear-gradient(135deg, var(--kleur-wit) 50%, transparent 50%);
  background-position: calc(100% - 28px) 50%, calc(100% - 22px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.zs-veld__invoer--keuze option { background: var(--kleur-zwart); color: var(--kleur-wit); }

/* Group 108: het vinkje (21, rand 1,5 wit, radius 2) met een tekst van 177
   breed links, Verzenden rechts. */
.zs-offerte__voet {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ruimte-m);
  margin-top: 11px;                /* 1305 -> 1326: 21 */
}
.zs-offerte__voet .zs-formulier__akkoord {
  grid-template-columns: 21px minmax(0, 177px);
  align-items: start;
  gap: 12px;
  font-size: var(--tekst-veldlabel);
  line-height: var(--regelhoogte-veldlabel);
  font-weight: 500;
}
/* Rectangle 70: leeg vakje met een witte rand, geen gevulde browserstijl.
   Aangevinkt wordt het magenta met een zwart vinkje. */
.zs-offerte__voet .zs-formulier__akkoord input {
  appearance: none;
  width: 21px;
  height: 21px;
  margin: 4px 0 0;
  border: 1.5px solid var(--kleur-wit);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.zs-offerte__voet .zs-formulier__akkoord input::before {
  content: "";
  width: 10px;
  height: 6px;
  border: solid var(--kleur-zwart);
  border-width: 0 0 2px 2px;
  rotate: -45deg;
  translate: 0 -1px;
  opacity: 0;
}
.zs-offerte__voet .zs-formulier__akkoord input:checked {
  background: var(--kleur-accent);
  border-color: var(--kleur-accent);
}
.zs-offerte__voet .zs-formulier__akkoord input:checked::before { opacity: 1; }
.zs-offerte__voet .zs-formulier__akkoord input:focus-visible {
  outline: 2px solid var(--kleur-accent);
  outline-offset: 2px;
}
.zs-offerte__voet .zs-knop { flex: none; }

/* --- smal ----------------------------------------------------------------- */

@media (width < 62rem) {
  .zs-offerte__rooster { grid-template-columns: 1fr; }
  .zs-offerte__formulier { margin-top: var(--ruimte-l); }
  .zs-offerte__intro .zs-kop { max-width: none; }
  /* Het portret mag niet buiten de kolom vallen. */
  .zs-offerte__quote { width: calc(100% - clamp(2.5rem, 4.398vw, 76px)); }
}

@media (width < 40rem) {
  .zs-offerte .zs-formulier__rij { grid-template-columns: 1fr; gap: 12px; }
  .zs-offerte__voet { flex-direction: column; }
}
