/* ============================================================
   DrivOlution — round2.css
   Ronde 2 van de CRO-verbetering: deadline-urgentie (cyclus tot
   10 september 2026), 35-uur planner en de subsidie-rekenmodule.
   Bouwt voort op styles.css + redesign.css + enhance.css.
   Werkkopie, niet publiceren.
   ============================================================ */

:root {
  --amber: #f0a020;
  --amber-ink: #7a4a00;
  --amber-bg: #fff8ec;
  --night: #12123a;
}

/* ---------- 1. Deadline-alertbalk onder de header ---------- */
.alertbar {
  display: flex; align-items: center; gap: 14px;
  max-width: var(--container); margin: 0 auto; padding: 11px var(--gutter);
  background: var(--night); color: #fff; text-decoration: none;
  font-size: var(--fs-sm); line-height: 1.35;
}
.alertbar__dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(240,160,32,.22);
}
.alertbar__txt { flex: 1; color: rgba(255,255,255,.82); }
.alertbar__txt b { color: #fff; font-weight: 700; }
.alertbar__cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--amber);
}
.alertbar__cta svg { width: 17px; height: 12px; }
.alertbar:hover .alertbar__cta { color: #ffc267; }
@media (max-width: 860px) {
  .alertbar { align-items: flex-start; padding: 10px 18px; font-size: var(--fs-xs); }
  .alertbar__cta { display: none; }
}

/* ---------- 2. Deadline-kaart ---------- */
.dl-card {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.dl-card__main { padding: 40px 44px; }
.dl-flag {
  display: inline-block; margin-bottom: 14px; padding: 6px 13px;
  border-radius: var(--pill); background: var(--amber-bg); color: var(--amber-ink);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.dl-card__main h2 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; }
.dl-card__main p { margin: 0; max-width: 62ch; color: var(--text); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.dl-actions .textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--purple-dark); }
.dl-actions .textlink svg { width: 18px; height: 13px; }

.dl-side { padding: 34px 34px 30px; background: var(--amber-bg); border-left: 1px solid #f3e6cf; }
.dl-count { display: flex; align-items: baseline; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #f0e0c4; }
.dl-count__num { font-size: 62px; font-weight: 700; line-height: 1; color: var(--amber-ink); }
.dl-count__lbl { font-size: var(--fs-sm); font-weight: 600; color: var(--amber-ink); max-width: 19ch; line-height: 1.35; }
.dl-count__lbl b { display: block; font-size: var(--fs-sm); color: var(--ink); white-space: nowrap; }
.dl-find { padding-top: 20px; }
.dl-find b { display: block; margin-bottom: 6px; font-size: var(--fs-sm); color: var(--ink); }
.dl-find p { margin: 0 0 14px; font-size: var(--fs-sm); line-height: 1.5; color: #4a4438; }
.dl-help { font-weight: 700; font-size: var(--fs-sm); color: var(--blue); }
@media (max-width: 980px) {
  .dl-card { grid-template-columns: 1fr; }
  .dl-card__main { padding: 32px 26px 26px; }
  .dl-card__main h2 { font-size: 26px; }
  .dl-side { border-left: 0; border-top: 1px solid #f3e6cf; padding: 26px; }
  .dl-count__num { font-size: 48px; }
}

/* ---------- 3. Weekendlabel in de datumlijst ---------- */
.nd-tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--pill);
  background: rgba(136,68,255,.1); color: var(--purple-dark);
  font-size: var(--fs-xs); font-weight: 700; vertical-align: 2px;
}

/* ---------- 4. 35-uur planner ---------- */
.planner { background: #f6f5ff; }
.planner__head { max-width: 70ch; margin-bottom: 32px; }
.planner__head h2 { font-size: 38px; line-height: 1.12; margin: 0 0 10px; }
.planner__head p { margin: 0; color: var(--text); }
.planner__grid { display: grid; grid-template-columns: minmax(0,1fr) 372px; gap: 28px; align-items: start; }
.planner__modules { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }

.pmod {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pmod:hover { border-color: #cfcdf6; transform: translateY(-1px); }
.pmod input { position: absolute; opacity: 0; width: 0; height: 0; }
.pmod__box {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  border: 2px solid #d3d2e4; background: #fff; position: relative;
}
.pmod__box::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6 9 17l-5-5' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.pmod input:checked + .pmod__box { background: var(--blue); border-color: var(--blue); }
.pmod input:checked + .pmod__box::after { opacity: 1; }
.pmod input:focus-visible + .pmod__box { outline: 3px solid rgba(56,56,223,.35); outline-offset: 2px; }
.pmod__body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pmod__body b { display: block; font-size: var(--fs-body); color: var(--ink); }
.pmod__body small { color: var(--muted); font-size: var(--fs-xs); }
.pmod__tag {
  flex: none; padding: 4px 10px; border-radius: var(--pill);
  font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
.pmod__tag.t1 { background: rgba(56,56,223,.09); color: var(--blue-dark); }
.pmod__tag.t2 { background: rgba(136,68,255,.1); color: var(--purple-dark); }
.pmod__tag.t3 { background: rgba(51,204,153,.14); color: var(--green-dark); }
.pmod input:checked ~ .pmod__body b { color: var(--blue-dark); }
.pmod:has(input:checked) { border-color: var(--blue); box-shadow: 0 10px 26px -18px rgba(56,56,223,.55); }

.planner__panel {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 26px 26px 22px;
}
.pp-bar { height: 9px; border-radius: var(--pill); background: #ecebf8; overflow: hidden; }
.pp-bar__fill { height: 100%; width: 0; border-radius: var(--pill); background: var(--blue); transition: width .25s ease; }
.pp-hours { margin: 12px 0 18px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.pp-hours span { font-size: 26px; font-weight: 700; color: var(--blue); }
.pp-checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.pp-checks li { display: flex; align-items: center; gap: 11px; font-size: var(--fs-sm); color: var(--muted); }
.pp-ic {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #dcdbe8; background: #fff;
}
.pp-checks li.is-ok { color: var(--ink); font-weight: 600; }
.pp-checks li.is-ok .pp-ic {
  border-color: var(--green); background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6 9 17l-5-5' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.pp-cost {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--grey);
  font-size: var(--fs-sm); color: var(--muted);
}
.pp-cost b { font-size: 20px; color: var(--ink); }
.pp-cost small { display: block; width: 100%; font-size: var(--fs-xs); }
.pp-cost small span { font-weight: 700; color: var(--green-dark); }
.pp-status { margin: 14px 0 16px; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.pp-status.is-todo { color: var(--amber-ink); font-weight: 600; }
.pp-status.is-ok { color: var(--green-dark); font-weight: 700; }
.planner__panel .btn { width: 100%; justify-content: center; }
.pp-fine { margin: 14px 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
@media (max-width: 1100px) {
  .planner__grid { grid-template-columns: minmax(0,1fr); }
  .planner__panel { position: static; }
}
@media (max-width: 700px) {
  .planner__head h2 { font-size: 28px; }
  .planner__modules { grid-template-columns: minmax(0,1fr); }
  .pmod { padding: 14px 15px; gap: 12px; }
  .pmod__tag { display: none; }
}

/* ---------- 5. Subsidie-rekenmodule ---------- */
.subsidy .calc { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 44px; align-items: start; }
.calc__intro h2 { font-size: 38px; line-height: 1.12; margin: 0 0 14px; }
.calc__intro p { margin: 0 0 22px; max-width: 60ch; }
.calc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.calc__list li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; }
.calc__list svg { flex: none; width: 21px; height: 21px; margin-top: 1px; color: var(--green); }

.calc__box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 28px 28px 24px; color: var(--text);
}
.calc__box h3 { font-size: 20px; margin: 0 0 20px; color: var(--ink); }
.calc__field { margin-bottom: 20px; }
.calc__field > label { display: block; margin-bottom: 9px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--grey); color: var(--ink);
  font-size: 20px; font-weight: 700; line-height: 1; font-family: inherit;
}
.stepper button:hover { background: #e7e6f7; }
.stepper output { font-size: 26px; font-weight: 700; color: var(--ink); min-width: 2ch; text-align: center; }
input[type="range"]#calcDays { width: 100%; accent-color: var(--blue); }
.segmented { display: grid; gap: 7px; }
.segmented button {
  text-align: left; padding: 12px 15px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
}
.segmented button:hover { border-color: #cfcdf6; }
.segmented button.is-active { border-color: var(--blue); background: rgba(56,56,223,.06); color: var(--blue-dark); }
.calc__out { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 12px; }
.calc__line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: var(--fs-sm); }
.calc__line b { font-weight: 700; color: var(--ink); }
.calc__line.is-sub { color: var(--green-dark); }
.calc__line.is-sub b { color: var(--green-dark); }
.calc__line.is-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.calc__line.is-total b { font-size: 26px; color: var(--blue); }
.calc__note { margin: 0 0 18px; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.calc__box .btn { width: 100%; justify-content: center; }
.subsidy__note { margin-top: 26px; font-size: var(--fs-xs); line-height: 1.5; }
@media (max-width: 1040px) {
  .subsidy .calc { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .calc__intro h2 { font-size: 28px; }
}

/* ---------- 6. Vier stappen ---------- */
.steps--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps--4 { grid-template-columns: 1fr; } }

/* ---------- 7. Kleine toevoegingen ronde 2 ---------- */
.inhouse__deadline {
  margin: 14px 0 0; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--amber-bg); border: 1px solid #f3e6cf;
  font-size: var(--fs-sm); line-height: 1.5; color: #4a4438;
}
.inhouse__deadline b { color: var(--ink); }
.lead-link { font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 8. Overrides op oudere subsidie-regels ---------- */
.subsidy .calc__intro h2 { text-align: left; }
.subsidy .subsidy__note {
  text-align: left; font-weight: 500; color: #3d6b58;
  border-top: 1px solid rgba(26,102,77,.16); padding-top: 18px; max-width: 92ch;
}
@media (max-width: 1040px) { .subsidy .calc__intro h2 { text-align: left; } }
