/* BackCare - gratis ruganalyse
   Huisstijl: teal #3db7b0, donkerteal #156b66.
   Doelgroep 40-75+: grote letters, hoog contrast, ruime klikvlakken (min 52px). */

:root {
  --teal: #3db7b0;
  --teal-dark: #156b66;
  --teal-deep: #0e4a46;
  --teal-soft: #e8f5f4;
  --ink: #23312f;
  --muted: #5a6a70;
  --line: #dde5e8;
  --bg: #f4f7f7;
  --white: #fff;
  --error: #b3261e;
  --radius: 10px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }

/* Moet boven alle andere regels staan: eigen display-waarden (zoals
   .btn { display: inline-block }) winnen anders van het hidden-attribuut,
   waardoor verborgen elementen toch zichtbaar blijven. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { color: var(--teal-dark); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -0.5px; }
h2 { font-size: clamp(24px, 4.4vw, 32px); margin-bottom: 20px; }
h3 { font-size: 20px; margin-bottom: 4px; }
p { margin: 0 0 16px; }
a { color: var(--teal-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 680px; }

/* Topbar */
.topbar { border-bottom: 3px solid var(--teal); background: var(--white); }
.topbar-inner {
  display: flex; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: block; width: auto; height: 40px; }
@media (max-width: 420px) { .logo { height: 32px; } }

/* Hero */
.hero { background: var(--teal-soft); padding: 46px 0 52px; }
.eyebrow {
  color: var(--teal-dark); font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.lead { font-size: 20px; color: #40514f; max-width: 34em; margin-top: 16px; }
.hero-note { font-size: 16px; color: var(--muted); margin: 14px 0 0; }

/* Knoppen */
.btn {
  display: inline-block; border: 0; border-radius: var(--radius);
  background: var(--teal-dark); color: var(--white);
  font-size: 19px; font-weight: 700; font-family: inherit;
  padding: 16px 30px; min-height: 56px; cursor: pointer;
  text-decoration: none; text-align: center;
}
.btn:hover { background: var(--teal-deep); }
.btn:disabled { background: #b9c6c8; cursor: not-allowed; }
.btn-hero { margin-top: 26px; }
.btn-ghost { background: transparent; color: var(--teal-dark); border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-send { background: var(--teal); }
.btn-send:hover { background: var(--teal-dark); }

/* Secties */
.section { padding: 48px 0; }
.section-alt { background: var(--bg); }

/* Checklist */
.checklist { list-style: none; margin: 0 0 26px; padding: 0; }
.checklist li {
  position: relative; padding: 0 0 16px 44px; font-size: 19px;
}
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-size: 15px; font-weight: 700; line-height: 28px; text-align: center;
}
.quote {
  border-left: 4px solid var(--teal);
  padding: 4px 0 4px 18px; color: var(--muted); font-size: 17px;
  margin: 22px 0 4px; max-width: 34em;
}

/* Hoe het werkt */
.steps-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps-how li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-dark); color: var(--white);
  font-weight: 700; font-size: 19px; line-height: 40px; text-align: center;
}
.steps-how p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps-how { grid-template-columns: repeat(3, 1fr); } }

/* Formulier */
.form-title { text-align: center; }
.form-sub { text-align: center; color: var(--muted); margin-bottom: 26px; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 22px 22px;
  box-shadow: 0 2px 14px rgba(21, 107, 102, .07);
}

.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 20%; background: var(--teal); transition: width .25s ease; }
.progress-label { font-size: 15px; color: var(--muted); margin: 8px 0 20px; }

.step { display: none; border: 0; margin: 0; padding: 0; }
.step.is-active { display: block; }
legend { color: var(--teal-dark); font-size: 23px; font-weight: 700; line-height: 1.25; padding: 0; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 16px; margin-bottom: 18px; }

/* Keuzeknoppen */
.choices { display: grid; gap: 10px; margin-top: 14px; }
.choice {
  width: 100%; text-align: left; font-family: inherit; font-size: 18px;
  padding: 15px 18px; min-height: 56px; cursor: pointer;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius);
}
.choice:hover { border-color: var(--teal); background: var(--teal-soft); }
.choice.is-picked { border-color: var(--teal-dark); background: var(--teal-soft); font-weight: 700; }
.choices-time { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.choices-time .choice { text-align: center; }

/* Kalender */
.cal {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  max-width: 430px; margin: 0 auto; /* voorkomt reusachtige dagvakjes op desktop */
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { font-weight: 700; font-size: 19px; color: var(--teal-dark); }
.cal-nav {
  width: 46px; height: 46px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--line); background: var(--white);
  font-size: 24px; line-height: 1; color: var(--teal-dark);
}
.cal-nav:hover:not(:disabled) { border-color: var(--teal); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow span { text-align: center; font-size: 14px; color: var(--muted); padding-bottom: 6px; }
.cal-day {
  /* geen min-height: de vakjes moeten kunnen krimpen op smalle schermen,
     anders loopt het raster buiten de kaart */
  aspect-ratio: 1 / 1; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; background: var(--bg);
  font-family: inherit; font-size: 17px; color: var(--ink);
}
.cal-day:hover:not(:disabled) { border-color: var(--teal); background: var(--teal-soft); }
.cal-day:disabled { background: transparent; color: #bcc7c9; cursor: not-allowed; }
.cal-day.is-picked { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); font-weight: 700; }
.cal-day.is-empty { background: transparent; cursor: default; }
.cal-legend { font-size: 15px; color: var(--muted); margin: 12px 0 0; }

.times { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.times-title { font-size: 18px; margin-bottom: 4px; }

/* Velden */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; font-family: inherit; font-size: 18px;
  padding: 14px 16px; min-height: 54px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field input:focus { outline: 3px solid rgba(61, 183, 176, .45); outline-offset: 1px; border-color: var(--teal); }
.field input.is-bad { border-color: var(--error); }
.field-short { max-width: 220px; }
.zip-city { display: block; margin-top: 6px; color: var(--teal-dark); font-weight: 700; font-size: 16px; }
.grid2 { display: grid; gap: 0; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 0 16px; } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--muted); margin-top: 6px; }
.consent input { width: 26px; height: 26px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--teal-dark); }

.error { color: var(--error); font-weight: 700; font-size: 17px; margin: 16px 0 0; }

.nav { display: flex; gap: 12px; margin-top: 26px; }
.nav .btn { flex: 1; }

/* Focus zichtbaar houden voor toetsenbordgebruik */
.choice:focus-visible, .cal-day:focus-visible, .btn:focus-visible, .cal-nav:focus-visible {
  outline: 3px solid var(--teal-dark); outline-offset: 2px;
}

/* Bedankt */
.thanks { text-align: center; padding: 16px 0 8px; }
.thanks-mark {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-size: 32px; line-height: 62px;
}
.thanks-note { color: var(--muted); }

/* Telefoon */
.phone-alt { text-align: center; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.phone-alt p { margin: 0 0 6px; }
.phone-num { display: inline-block; font-size: 30px; font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.phone-note { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Smalle schermen: meer ruimte voor de kalender */
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .card { padding: 20px 14px 16px; }
  .cal { padding: 10px; }
  .cal-dow, .cal-grid { gap: 4px; }
  .cal-day { font-size: 16px; }
  .nav { flex-direction: column-reverse; }
}

/* Footer */
.footer { background: var(--teal-dark); color: #cbe7e5; padding: 30px 0; margin-top: 40px; font-size: 16px; }
.footer p { margin: 0 0 4px; }
.brand-sm { color: var(--white); font-weight: 700; letter-spacing: 2px; }
