/* Tariefcalculator, gescopet onder #calc zodat de site-chrome (nav, hero, footer)
 * er niet door geraakt wordt. Kleuren en typografie volgen de rest van de site:
 * bg #030303, creme #F0EBE5 met opacity-trappen, knopblauw #263A99, accent #8FA0E8,
 * koppen Inter 900 ls -0.03em, body Inter 400 lh 1.65. */

#calc {
  --blue: #263a99;
  --blue-soft: #8fa0e8;
  --cream: #f0ebe5;
  --t-70: rgba(240, 235, 229, 0.7);
  --t-50: rgba(240, 235, 229, 0.5);
  --t-35: rgba(240, 235, 229, 0.35);
  --line: rgba(240, 235, 229, 0.12);
  --line-soft: rgba(240, 235, 229, 0.07);
  --card: rgba(240, 235, 229, 0.04);
  --card-hover: rgba(240, 235, 229, 0.07);
  --bad: #ef5a4a;

  /* Links uitgelijnd met de hero, niet gecentreerd: anders springt de kolom
   * op brede schermen weg van de rest van de pagina. */
  max-width: 640px;
  margin: 0;
  color: var(--t-50);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

#calc *, #calc *::before, #calc *::after { box-sizing: border-box; }
#calc h2, #calc p, #calc ul, #calc li, #calc form { margin: 0; padding: 0; }

/* voortgang */
#calc .bar { height: 3px; background: rgba(240, 235, 229, 0.08); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
#calc .bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width 0.35s ease; }
#calc .tel { font-size: 12px; font-weight: 600; color: var(--t-35); margin-bottom: 10px; }

#calc .vraag {
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 4.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0;
  text-wrap: balance;
}
#calc .hint { font-size: 15px; color: var(--t-50); margin-top: 10px; }

/* keuzes */
#calc .opties { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
#calc .optie {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
#calc .optie:hover { border-color: var(--line); background: var(--card-hover); }
#calc .optie:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
#calc .optie.aan { border-color: var(--blue-soft); background: rgba(38, 58, 153, 0.22); }
#calc .optie .l { color: var(--cream); font-weight: 600; font-size: 16px; line-height: 1.35; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#calc .optie .s { font-size: 14px; color: var(--t-50); margin-top: 4px; line-height: 1.45; display: block; }
#calc .optie .b { font-size: 11px; font-weight: 600; color: var(--cream); background: var(--blue); border-radius: 999px; padding: 3px 10px; }

/* navigatie */
#calc .nav { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
#calc .terug { background: none; border: none; font: inherit; font-size: 14px; color: var(--t-50); cursor: pointer; padding: 6px 0; }
#calc .terug:hover { color: var(--cream); }

/* uitkomst */
/* Staat er alleen als de link met ?klant= is gedeeld: dan is dit geen
   berekening meer maar een prijsopgave met een naam erboven. */
#calc .klantkop {
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--blue-soft);
  margin-bottom: 12px;
}
#calc .prijsblok {
  background: rgba(38, 58, 153, 0.18);
  border: 1px solid rgba(143, 160, 232, 0.3);
  border-radius: 18px;
  padding: 26px 24px;
  margin-bottom: 20px;
}
#calc .prijsblok .lbl { font-size: 12px; font-weight: 600; color: var(--blue-soft); margin-bottom: 10px; }
#calc .prijs { font-family: Inter, sans-serif; font-weight: 900; font-size: clamp(30px, 6.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; color: var(--cream); }
#calc .prijs .per { font-size: 14px; font-weight: 400; color: var(--t-50); letter-spacing: 0; display: block; margin-top: 10px; line-height: 1.5; }

#calc .regels { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 6px 20px; margin-bottom: 20px; }
#calc .regel { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
#calc .regel:last-child { border-bottom: none; }
#calc .regel .k { font-size: 15px; color: var(--cream); line-height: 1.4; }
#calc .regel .k small { display: block; font-size: 13.5px; color: var(--t-50); margin-top: 3px; }
#calc .regel .v { font-size: 15px; color: var(--cream); font-weight: 600; white-space: nowrap; }

#calc .notities { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
#calc .notities li { font-size: 13.5px; color: var(--t-50); padding-left: 16px; position: relative; line-height: 1.5; }
#calc .notities li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-soft); }

/* formulier */
#calc form { display: flex; flex-direction: column; gap: 12px; }
#calc .veld label { display: block; font-size: 13px; color: var(--t-50); margin-bottom: 6px; }
#calc input, #calc textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--cream);
  background: rgba(240, 235, 229, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
#calc input:focus, #calc textarea:focus { outline: none; border-color: var(--blue-soft); }
#calc textarea { resize: vertical; min-height: 84px; }
#calc .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

#calc .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
#calc .btn:hover { background: #2e46b8; }
#calc .btn:disabled { opacity: 0.55; cursor: default; }
#calc .fout { font-size: 14px; color: var(--bad); }
#calc .micro { font-size: 13.5px; color: var(--t-50); margin-top: 4px; line-height: 1.5; }
#calc .micro a { color: var(--cream); }

#calc .kop2 { font-family: Inter, sans-serif; font-weight: 900; font-size: 20px; line-height: 1.2; letter-spacing: -0.03em; color: var(--cream); margin-bottom: 12px; }

/* agenda na verzenden */
#calc .agenda { border-top: 1px solid var(--line-soft); margin-top: 32px; padding-top: 30px; }
#calc .calbox { border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; background: rgba(240, 235, 229, 0.02); min-height: 560px; }
#calc [hidden] { display: none !important; }

@media (max-width: 700px) {
  #calc .calbox { min-height: 0; border: none; }
}
@media (max-width: 560px) {
  #calc .duo { grid-template-columns: 1fr; }
}
