/* ═══════════════════════════════════════════════════════════════════════
   wizard.css — styling-bridge voor de GACS-wizard (geërfd van de EnergiePlicht-port).
   Optie A: de markup uit tool.js gebruikt energieplicht.com's eigen
   CSS-variabelen (--g-dark, --accent, ...) en component-classes (card, inp,
   bp/bo/ba, ...). We mappen die variabelen op de EC-huisstijl (#003941/#ffbc42,
   tokens.css) en definiëren de classes in EC-look. Alles gescoped onder
   .gacs-wizard zodat het niet botst met components.css.
   ═══════════════════════════════════════════════════════════════════════ */

.gacs-wizard {
  /* energieplicht-variabelen -> EC-huisstijl (WP Masters, #003941/#ffbc42) */
  --g-dark:  #003941;
  --dark:    #003941;
  --accent:  #ffbc42;
  --g-pale:  rgba(0, 57, 65, 0.07);
  --g-light: #d3e0e1;
  --g50:     #f8fafa;
  --g100:    #eef2f3;
  --g200:    #d9dfe1;
  --g400:    #8a9498;
  --g600:    #4a5458;

  font-family: var(--ec-font-body, 'Roboto', system-ui, sans-serif);
  color: var(--g-dark);
  font-size: 16px;
  line-height: 1.5;
}
.gacs-wizard *,
.gacs-wizard *::before,
.gacs-wizard *::after { box-sizing: border-box; }

.gacs-wizard .fd { font-family: var(--ec-font-title, 'Rubik', system-ui, sans-serif); }

/* ── Progress ─────────────────────────────────────────────────────────── */
.gacs-progress { margin-bottom: 24px; }
.gacs-progress__labels { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.gacs-progress__track { height: 6px; background: var(--g100); border-radius: 999px; overflow: hidden; }
.gacs-progress__fill { height: 100%; background: var(--g-dark); border-radius: 999px; transition: width .3s ease; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.gacs-wizard .card {
  background: var(--ec-white, #fff);
  border: 1px solid var(--g200);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(1, 57, 67, .06);
}
.gacs-wizard .card-sel {
  border-color: var(--g-dark);
  box-shadow: 0 0 0 2px rgba(0, 57, 65, .15);
}

/* ── Inputs ───────────────────────────────────────────────────────────── */
.gacs-wizard .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--g600); margin-bottom: 4px; }
.gacs-wizard .inp,
.gacs-wizard .inp-n {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: var(--ec-white, #fff);
  border: 1px solid var(--g200);
  border-radius: 6px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.gacs-wizard .inp-n { padding-right: 64px; }
.gacs-wizard .inp:focus,
.gacs-wizard .inp-n:focus { border-color: var(--g-dark); box-shadow: 0 0 0 3px rgba(0, 57, 65, .12); }
/* Select (handmatige energielabel-correctie in de gebouwstap): zelfde doos als
   de tekstvelden, met een eigen chevron in de huisstijl-teal (#003941). */
.gacs-wizard select.inp {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23003941'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolyline%20points%3D'6%209%2012%2015%2018%209'%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 13px 13px;
}
.gacs-wizard .unit {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--g400); pointer-events: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.gacs-wizard .bp,
.gacs-wizard .bo,
.gacs-wizard .ba {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: background .15s, border-color .15s, opacity .15s;
}
.gacs-wizard .bp { background: var(--g-dark); color: #fff; }
.gacs-wizard .bp:hover { background: var(--ec-primary-hover, #00262b); }
.gacs-wizard .bo { background: transparent; color: var(--g-dark); border-color: var(--g200); }
.gacs-wizard .bo:hover { border-color: var(--g-dark); }
.gacs-wizard .ba { background: var(--accent); color: var(--g-dark); }
.gacs-wizard .ba:hover { background: var(--ec-accent-hover, #e8a52e); }
.gacs-wizard button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Grids ────────────────────────────────────────────────────────────── */
.gacs-wizard .g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gacs-wizard .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) {
  .gacs-wizard .g2, .gacs-wizard .g3 { grid-template-columns: 1fr; }
}

/* ── TJ-meter ─────────────────────────────────────────────────────────── */
.gacs-wizard .meter {
  position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #0d8552 0%, #dbb030 50%, var(--accent) 100%);
}
.gacs-wizard .marker {
  position: absolute; top: 50%; width: 16px; height: 16px;
  background: #fff; border: 3px solid var(--g-dark); border-radius: 50%;
  transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* ── Urgency-bar ──────────────────────────────────────────────────────── */
.gacs-wizard .urgency-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--g-dark); color: #fff;
  padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 16px;
}
.gacs-wizard .urgency-bar strong { color: var(--accent); }

/* ── Benefit-list ─────────────────────────────────────────────────────── */
.gacs-wizard .benefit-list { display: flex; flex-direction: column; gap: 8px; }
.gacs-wizard .benefit-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--g600); }
.gacs-wizard .benefit-icon { flex: 0 0 auto; display: inline-flex; }

/* ── Timeline-tags ────────────────────────────────────────────────────── */
.gacs-wizard .tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  background: var(--g100); color: var(--g600);
}
.gacs-wizard .tag-deadline { background: rgba(255, 188, 66, .18); color: #8a6400; }
.gacs-wizard .tag-subsidie { background: var(--g-pale); color: var(--g-dark); }
.gacs-wizard .tag-wet      { background: var(--g100); color: var(--g600); }
.gacs-wizard .tag-plicht   { background: rgba(0, 57, 65, .10); color: var(--g-dark); }

/* ── Stap-animatie ────────────────────────────────────────────────────── */
.gacs-wizard .su { animation: ep-su .25s ease; }
@keyframes ep-su { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gacs-wizard .su { animation: none; } }

/* ── Interne modus ────────────────────────────────────────────────────── */
.gacs-intern-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: rgba(255, 188, 66, .2); color: #8a6400;
}

/* ── Print: navigatie/CTA's/chrome weg, resultaat A4-net (window.print) ── */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  .ec-header, .ec-footer,
  .ec-info-blok,
  .ec-intro p,
  .gacs-wizard .np,
  .gacs-progress,
  .gacs-intern-badge { display: none !important; }
  body { background: #fff !important; }
  .ec-page { padding: 0 !important; }
  .ec-card { box-shadow: none !important; border: 0 !important; padding: 0 !important; max-width: none !important; }
  .gacs-wizard { font-size: 13px; }
  .gacs-wizard .card { box-shadow: none; break-inside: avoid; }
  .gacs-wizard .su { animation: none; }
}
