/* Energiebeheer.app — Besparingscheck (microsite /check/). Mobile-first. */
:root {
  --green: #7D9F26;
  --green-600: #6B8A1F;
  --ink: #0C1A22;
  --ink-2: #10242E;
  --bg: #F3F7F5;
  --bg-soft: #EEF3F0;
  --line: #E2EAE5;
  --line-2: #D6E0DA;
  --text: #1C2B33;
  --muted: #5B6B72;
  --muted-2: #7B8A90;
  --on-dark: #C9D7D2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(12, 26, 34, .08);
  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg);
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---------------------------------------------------------- */
.check-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1rem, 4vw, 2rem);
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.3rem; }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.brand .brand-img { height: 38px; width: auto; max-width: 200px; flex: none; display: block; object-fit: contain; }
.brand .brand-text b { color: var(--ink); }
.brand-text b { font-weight: 700; color: var(--muted-2); }
.brand-text > span { color: var(--muted-2); font-weight: 700; }
.brand-text .tld { color: var(--green-600); }
.check-exit {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); text-decoration: none; font-size: 1.5rem; line-height: 1;
  border: 1px solid var(--line-2); background: #fff;
}
.check-exit:hover { color: var(--ink); background: var(--bg-soft); }

/* ---- Progress -------------------------------------------------------- */
.progress-wrap { padding: 0 clamp(1rem, 4vw, 2rem); background: #fff; }
.progress-bar { height: 5px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.progress-bar span {
  display: block; height: 100%; width: 6%;
  background: linear-gradient(90deg, var(--green), #1AA6B7);
  border-radius: 99px; transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Stage ----------------------------------------------------------- */
.check-main { flex: 1; display: flex; justify-content: center; padding: clamp(1.2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem; }
.check-stage { width: 100%; max-width: 620px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.2rem);
  transition: opacity .25s ease;
}
.card--intro, .card--thanks { text-align: center; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: .6rem;
}
h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.12; margin: 0 0 .8rem; color: var(--ink); }
.q { font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.22; margin: 0 0 .5rem; color: var(--ink); font-weight: 700; }
.lead { font-size: 1.04rem; line-height: 1.55; color: var(--muted); margin: 0 0 1.4rem; }
.help { font-size: .94rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.1rem; }
.trust { font-size: .82rem; color: var(--muted-2); margin: 1rem 0 0; }

/* ---- Intro: "Wat mag u verwachten?" --------------------------------- */
.expect { text-align: left; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.expect-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 .8rem; }
.expect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.expect-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; color: var(--text); }
.expect-list li svg { flex: none; width: 19px; height: 19px; color: var(--green-600); margin-top: .1rem; }
.prefill-note {
  font-size: .9rem; line-height: 1.45; color: var(--green-600);
  background: #F4F8EC; border: 1px solid #DDE8C4; border-radius: 12px;
  padding: .75rem 1rem; margin: 0 0 1.1rem; text-align: left;
}
.tip { font-size: .9rem; color: var(--muted); background: var(--bg-soft); border-radius: 12px; padding: .9rem 1rem; margin: 1.2rem 0; }

/* ---- Voortgangs-nudge + eenmalige uitleg ---------------------------- */
.nudge {
  text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--green-600); margin: 0 0 .7rem;
}
.once-info {
  font-size: .9rem; line-height: 1.45; color: var(--green-600);
  background: #F4F8EC; border: 1px solid #DDE8C4; border-radius: 12px;
  padding: .75rem 1rem; margin: 0 0 1.2rem; text-align: left;
}

/* ---- Option cards ---------------------------------------------------- */
.options { display: grid; gap: .6rem; margin: 1.2rem 0 1.4rem; }
.opt {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .95rem 1.05rem; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--text); font: inherit; font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: border-color .15s, background .15s, transform .05s;
}
.opt:hover { border-color: var(--green); background: #FBFDF8; }
.opt:active { transform: scale(.99); }
.opt.is-selected { border-color: var(--green); background: #F4F8EC; box-shadow: inset 0 0 0 1px var(--green); }
.opt span { flex: 1; }
/* checkbox-marker voor multi */
.opt--check::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 6px;
  border: 1.5px solid var(--line-2); background: #fff; transition: .15s;
  background-position: center; background-repeat: no-repeat; background-size: 14px;
}
.opt--check.is-selected::before {
  border-color: var(--green); background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---- Teaser ---------------------------------------------------------- */
.card--teaser .q { margin-bottom: 1rem; }
.teaser-list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .55rem; }
.teaser-list li {
  position: relative; padding: .8rem 1rem .8rem 2.6rem; border-radius: 12px;
  background: var(--bg-soft); font-size: .98rem; line-height: 1.45; color: var(--text);
}
.teaser-list li::before {
  content: ""; position: absolute; left: 1rem; top: 1rem; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D9F26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Forms ----------------------------------------------------------- */
.contact-form { margin-top: 1.2rem; }
.field { margin-bottom: .9rem; }
.field-row { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line-2); border-radius: 11px;
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.field input:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(125, 159, 38, .15); }
.textarea { min-height: 130px; resize: vertical; }
.textarea--sm { min-height: 84px; }
.other-field { margin: .2rem 0 0; }
.other-label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin: 0 0 .4rem; }

/* ---- Brandpicker (zoekbaar merk + subvragen) ----------------------- */
.brandpicker { margin: 1.2rem 0 1.4rem; }
.bp-search { position: relative; }
.bp-input { width: 100%; padding: .85rem .9rem; border: 1.5px solid var(--line-2); border-radius: 11px; font: inherit; font-size: 1rem; background: #fff; }
.bp-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(125, 159, 38, .15); }
.bp-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line-2); border-radius: 11px; box-shadow: 0 14px 30px rgba(12, 26, 34, .14); max-height: 264px; overflow: auto; padding: .3rem; }
.bp-result { display: block; width: 100%; text-align: left; padding: .62rem .7rem; border: none; background: none; font: inherit; font-size: .98rem; border-radius: 8px; cursor: pointer; color: var(--text); }
.bp-result:hover { background: var(--bg-soft); }
.bp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.bp-chips:not(:empty) { margin-top: .85rem; }
.bp-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .4rem .38rem .8rem; background: #F4F8EC; border: 1.5px solid var(--green); border-radius: 99px; font-size: .92rem; font-weight: 600; color: var(--green-600); }
.bp-chip-x { border: none; background: rgba(12, 26, 34, .08); color: inherit; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.bp-chip-x:hover { background: rgba(12, 26, 34, .16); }
.bp-divider { border: none; border-top: 1px solid var(--line); margin: 1.3rem 0; }
.bp-details { display: grid; gap: 1rem; }
.bp-detail { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.bp-detail-name { font-weight: 700; color: var(--ink); margin-bottom: .75rem; font-size: 1.05rem; }
.bp-sub-label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin: 0 0 .35rem; }
.bp-app { width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line-2); border-radius: 10px; font: inherit; font-size: .98rem; background: #fff; }
.bp-app:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(125, 159, 38, .15); }
.bp-app:disabled { background: #EAEFEA; color: var(--muted-2); }
.bp-unknown { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); margin: .55rem 0 0; cursor: pointer; }
.bp-unknown input { width: 17px; height: 17px; flex: none; accent-color: var(--green); }
.bp-admin { margin-top: .95rem; }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg-btn { padding: .5rem 1.2rem; border: none; background: #fff; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1.5px solid var(--line-2); }
.seg-btn.is-on { background: var(--green); color: #fff; }
.bp-size { display: flex; flex-wrap: wrap; gap: .4rem; }
.bp-size-btn { padding: .45rem .8rem; border: 1.5px solid var(--line-2); border-radius: 9px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.bp-size-btn:hover { border-color: var(--green); }
.bp-size-btn.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.bp-stepper { display: inline-flex; align-items: center; gap: 8px; margin-top: .3rem; }
.bp-step { width: 40px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font: inherit; font-size: 1.35rem; font-weight: 700; line-height: 1; color: var(--ink); cursor: pointer; }
.bp-step:hover { border-color: var(--green); color: var(--green); }
.bp-step-num { width: 88px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; text-align: center; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.bp-step-num:focus { outline: none; border-color: var(--green); }
.bp-step-unit { font-weight: 700; color: var(--muted); }
.usage-fields { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 1.4rem; }
.usage-field { display: flex; flex-direction: column; }
.usage-or { display: flex; align-items: center; gap: .8rem; margin: .55rem 0; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.usage-or::before, .usage-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: .4rem 0 .2rem; line-height: 1.45; cursor: pointer; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B4452F; background: #FCEDE9; border: 1px solid #F3C9BD; padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; margin-top: .9rem; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .8rem 1.3rem; border-radius: 11px; font: inherit; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: .15s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-600); }
.btn--primary:disabled { background: #BFCBA6; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--muted); border-color: transparent; padding-left: .4rem; }
.btn--ghost:hover { color: var(--ink); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--green); color: var(--green-600); }
.btn--lg { padding: 1rem 1.5rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

.check-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.check-nav .btn--primary { margin-left: auto; }

/* ---- Thanks ---------------------------------------------------------- */
.check-ok {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--green), #1AA6B7);
}
.check-ok svg { width: 32px; height: 32px; }
.card--thanks .btn--block { margin-top: 1.4rem; }

/* Bedankt: foto links, tekst rechts (zoals decisionmaker) */
.card--thanks { text-align: left; }
.thanks-grid { display: flex; gap: 1.6rem; align-items: center; }
.thanks-photo { flex: none; width: 190px; }
.thanks-photo img { width: 100%; border-radius: 14px; display: block; box-shadow: var(--shadow); }
.thanks-text { flex: 1; min-width: 0; }
.thanks-ok { width: 44px; height: 44px; margin: 0 0 .8rem; }
.thanks-ok svg { width: 22px; height: 22px; }
.thanks-text .q { margin: 0 0 .6rem; }
.thanks-text .lead { margin: 0 0 .55rem; }
.thanks-sign { margin: .6rem 0 1.1rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
.thanks-sign span { display: block; font-weight: 500; font-size: .86rem; color: var(--muted); }
@media (max-width: 560px) {
  .thanks-grid { flex-direction: column; text-align: center; gap: 1.1rem; }
  .thanks-photo { width: 150px; margin: 0 auto; }
  .thanks-ok { margin-left: auto; margin-right: auto; }
}
/* Bedankpagina krijgt op desktop een bredere kaart (intro/vragen blijven 620px) */
@media (min-width: 760px) {
  .check-stage:has(.card--thanks) { max-width: 880px; }
  .check-stage:has(.card--thanks) .thanks-photo { width: 240px; }
  .check-stage:has(.card--thanks) .thanks-grid { gap: 2.2rem; }
}

@media (max-width: 380px) {
  .check-nav { flex-wrap: wrap; }
  .check-nav .btn { flex: 1; }
}

/* ---- White-label: discrete "mogelijk gemaakt door" + solo-bedankt ---- */
.wl-powered { text-align: center; padding: .9rem 1rem 1.4rem; font-size: .76rem; color: var(--muted-2); }
.wl-powered b { font-weight: 700; color: var(--muted); }
.wl-powered a { color: var(--green-600); text-decoration: none; }
.wl-powered a:hover { text-decoration: underline; }
.wl-powered a b { color: inherit; }
.thanks-grid--solo { display: block; max-width: 520px; margin: 0 auto; }
.thanks-grid--solo .thanks-text { text-align: center; }
