/* =============================================================
   HomeBattery.com Configurator v2.0
   Brand: Poppins · green #67BF61 · orange #ECAA15 · grey #454645
   All selectors are prefixed hb- and scoped to #hb-configurator-mount
   ============================================================= */

#hb-configurator-mount {
  --hb-green: #67BF61;
  --hb-green-dark: #37813A;
  --hb-green-light: #EDF8ED;
  --hb-orange: #ECAA15;
  --hb-grey: #454645;
  --hb-black: #000000;
  --hb-white: #FFFFFF;
  --hb-line: #E2E6E2;
  --hb-muted: #5C615C;
  --hb-surface: #FFFFFF;
  --hb-radius-sm: 6px;
  --hb-radius-md: 10px;
  --hb-radius-lg: 16px;
  --hb-shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --hb-shadow-md: 0 6px 24px rgba(0,0,0,.08);

  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hb-black);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
#hb-configurator-mount *,
#hb-configurator-mount *::before,
#hb-configurator-mount *::after { box-sizing: border-box; }

/* ---------- layout ---------- */
#hb-configurator-mount .hb-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg);
  box-shadow: var(--hb-shadow-md);
  padding: 28px;
}
#hb-configurator-mount .hb-head { margin-bottom: 22px; }
#hb-configurator-mount .hb-h2 {
  font-size: 1.65rem; font-weight: 700; line-height: 1.25;
  margin: 0 0 6px; color: var(--hb-black); letter-spacing: -.01em;
}
#hb-configurator-mount .hb-h3 {
  font-size: 1.2rem; font-weight: 600; margin: 0 0 12px; color: var(--hb-grey);
}
#hb-configurator-mount .hb-h4 {
  font-size: .95rem; font-weight: 600; margin: 18px 0 6px; color: var(--hb-grey);
}
#hb-configurator-mount .hb-sub { color: var(--hb-muted); margin: 0 0 4px; font-size: .95rem; }
#hb-configurator-mount .hb-fine { color: var(--hb-muted); font-size: .82rem; margin: 10px 0 0; }
#hb-configurator-mount p { margin: 0 0 12px; }
#hb-configurator-mount .hb-block {
  border: 1px solid var(--hb-line); border-radius: var(--hb-radius-md);
  padding: 16px; margin: 14px 0;
}

#hb-configurator-mount .hb-grid { display: grid; gap: 16px; margin: 16px 0; }
#hb-configurator-mount .hb-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
#hb-configurator-mount .hb-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
#hb-configurator-mount .hb-row { display: flex; gap: 20px; align-items: center; margin: 14px 0; }
#hb-configurator-mount .hb-row-wrap { flex-wrap: wrap; }

/* ---------- form ---------- */
#hb-configurator-mount .hb-field { display: flex; flex-direction: column; gap: 5px; }
#hb-configurator-mount .hb-label { font-size: .82rem; font-weight: 600; color: var(--hb-grey); }
#hb-configurator-mount .hb-help { font-size: .75rem; color: var(--hb-muted); line-height: 1.4; }
#hb-configurator-mount .hb-static {
  padding: 11px 14px; border: 1px dashed var(--hb-line);
  border-radius: var(--hb-radius-sm); color: var(--hb-muted); font-size: .95rem;
}
#hb-configurator-mount .hb-inwrap { position: relative; display: block; }
#hb-configurator-mount .hb-unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: .8rem; color: var(--hb-muted); pointer-events: none;
}
#hb-configurator-mount .hb-input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem;
  color: var(--hb-black); background: var(--hb-white);
  border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
#hb-configurator-mount .hb-inwrap .hb-input { padding-right: 68px; }
#hb-configurator-mount .hb-input:focus {
  outline: none; border-color: var(--hb-green);
  box-shadow: 0 0 0 3px rgba(103,191,97,.18);
}
#hb-configurator-mount select.hb-input { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23454645' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
#hb-configurator-mount .hb-check {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: .92rem; color: var(--hb-grey); user-select: none;
}
#hb-configurator-mount .hb-check input { width: 18px; height: 18px; accent-color: var(--hb-green); cursor: pointer; }
#hb-configurator-mount .hb-details { margin-top: 18px; }
#hb-configurator-mount .hb-details summary {
  cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--hb-grey);
  padding: 10px 0; list-style: none;
}
#hb-configurator-mount .hb-details summary::before { content: '+ '; color: var(--hb-green); font-weight: 700; }
#hb-configurator-mount .hb-details[open] summary::before { content: '– '; }

/* ---------- buttons ---------- */
#hb-configurator-mount .hb-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px;
  padding-top: 20px; border-top: 1px solid var(--hb-line);
}
#hb-configurator-mount .hb-btn {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: 12px 24px; border-radius: var(--hb-radius-sm); border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
#hb-configurator-mount .hb-btn:focus-visible { outline: 3px solid rgba(103,191,97,.45); outline-offset: 2px; }
#hb-configurator-mount .hb-btn-primary { background: var(--hb-green); color: var(--hb-white); }
#hb-configurator-mount .hb-btn-primary:hover { background: var(--hb-green-dark); }
#hb-configurator-mount .hb-btn-secondary { background: var(--hb-orange); color: var(--hb-white); }
#hb-configurator-mount .hb-btn-secondary:hover { filter: brightness(.93); }
#hb-configurator-mount .hb-btn-ghost {
  background: transparent; color: var(--hb-green); border-color: var(--hb-green);
}
#hb-configurator-mount .hb-btn-ghost:hover { background: var(--hb-green-light); }

/* ---------- steps ---------- */
#hb-configurator-mount .hb-steps {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px;
  border-bottom: 1px solid var(--hb-line); padding-bottom: 16px;
}
#hb-configurator-mount .hb-step {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--hb-muted);
  padding: 8px 14px; border-radius: 100px; transition: color .15s, background-color .15s;
}
#hb-configurator-mount .hb-step:hover { color: var(--hb-black); }
#hb-configurator-mount .hb-step span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--hb-line); color: var(--hb-grey); font-size: .78rem;
}
#hb-configurator-mount .hb-step.is-on { color: var(--hb-black); background: var(--hb-green-light); }
#hb-configurator-mount .hb-step.is-on span { background: var(--hb-green); color: var(--hb-white); }
#hb-configurator-mount .hb-step.is-done span { background: var(--hb-grey); color: var(--hb-white); }

/* ---------- KPIs ---------- */
#hb-configurator-mount .hb-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin: 4px 0 20px;
}
#hb-configurator-mount .hb-kpi {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px; background: var(--hb-green-light);
  border-radius: var(--hb-radius-md); border: 1px solid rgba(103,191,97,.28);
}
#hb-configurator-mount .hb-kpi-l {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--hb-grey);
}
#hb-configurator-mount .hb-kpi-v {
  font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--hb-black);
}
#hb-configurator-mount .hb-kpi-s { font-size: .78rem; color: var(--hb-muted); line-height: 1.35; }

#hb-configurator-mount .hb-results { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hb-line); }

/* ---------- notes ---------- */
#hb-configurator-mount .hb-note {
  border-left: 4px solid var(--hb-orange); background: #FEF9EC;
  padding: 14px 18px; border-radius: 0 var(--hb-radius-sm) var(--hb-radius-sm) 0; margin: 16px 0;
}
#hb-configurator-mount .hb-note p { margin: 0 0 8px; font-size: .9rem; }
#hb-configurator-mount .hb-note p:last-child { margin: 0; }
#hb-configurator-mount .hb-note-inline {
  background: #FEF9EC; border: 1px solid rgba(236,170,21,.4);
  padding: 10px 14px; border-radius: var(--hb-radius-sm); font-size: .88rem;
}

/* ---------- tables ----------
   GeneratePress and most themes style table headers with their own background
   and colour. Everything here is stated explicitly so the report looks the same
   whatever theme it is dropped into. */
#hb-configurator-mount table.hb-table {
  width: 100%; border-collapse: collapse; border-spacing: 0;
  margin: 18px 0 6px; font-size: .875rem; background: transparent; border: 0;
}
#hb-configurator-mount table.hb-table thead,
#hb-configurator-mount table.hb-table tbody,
#hb-configurator-mount table.hb-table tr { background: transparent; border: 0; }
#hb-configurator-mount table.hb-table th {
  background: transparent !important;
  color: var(--hb-muted) !important;
  text-align: left; font-weight: 600; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 0 12px 9px; border: 0;
  border-bottom: 1px solid var(--hb-grey);
}
#hb-configurator-mount table.hb-table td {
  background: transparent; color: var(--hb-ink, #1A1C1A);
  padding: 11px 12px; border: 0; border-bottom: 1px solid var(--hb-line);
  vertical-align: top; font-variant-numeric: tabular-nums;
}
#hb-configurator-mount table.hb-table th:first-child,
#hb-configurator-mount table.hb-table td:first-child { padding-left: 0; }
#hb-configurator-mount table.hb-table th:last-child,
#hb-configurator-mount table.hb-table td:last-child { padding-right: 0; text-align: right; }
#hb-configurator-mount table.hb-table th:not(:first-child),
#hb-configurator-mount table.hb-table td:not(:first-child) { text-align: right; }
#hb-configurator-mount table.hb-table tbody tr:last-child td { border-bottom: 0; }
#hb-configurator-mount table.hb-table tr.is-on td {
  background: var(--hb-green-light); font-weight: 600;
}
#hb-configurator-mount table.hb-table tr.is-on td:first-child { border-left: 3px solid var(--hb-green); padding-left: 9px; }
#hb-configurator-mount .hb-good { color: var(--hb-green-dark); font-weight: 600; }
#hb-configurator-mount .hb-bad { color: #C0392B; font-weight: 600; }
#hb-configurator-mount .hb-list { margin: 8px 0 14px; padding-left: 18px; }
#hb-configurator-mount .hb-list li { margin-bottom: 8px; font-size: .885rem; color: #333633; }

/* ---------- charts ---------- */
#hb-configurator-mount .hb-fig { margin: 22px 0 26px; padding: 0; }
#hb-configurator-mount .hb-fig-cap {
  display: block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--hb-grey);
}
#hb-configurator-mount .hb-fig-note {
  display: block; margin-top: 3px;
  font-size: .78rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--hb-muted);
}
#hb-configurator-mount .hb-chart { width: 100%; height: auto; display: block; overflow: visible; }
#hb-configurator-mount .hb-chart .hb-t {
  font-family: 'Poppins', sans-serif; font-size: 11px; fill: var(--hb-muted);
}
#hb-configurator-mount .hb-chart .hb-t-ax { font-size: 10.5px; fill: var(--hb-muted); }
#hb-configurator-mount .hb-chart .hb-t-axlabel { font-size: 11px; fill: var(--hb-grey); font-weight: 500; }
#hb-configurator-mount .hb-chart .hb-t-inv { fill: #fff; font-size: 11px; font-weight: 600; }
#hb-configurator-mount .hb-chart .hb-grid { stroke: var(--hb-line); stroke-width: 1; }
#hb-configurator-mount .hb-chart .hb-zero { stroke: #C6CDC6; stroke-width: 1; }
#hb-configurator-mount .hb-chart .hb-mark {
  stroke: var(--hb-orange); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .85;
}
#hb-configurator-mount .hb-legend {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px;
  font-size: .78rem; color: var(--hb-muted);
}
#hb-configurator-mount .hb-leg { display: inline-flex; align-items: center; gap: 7px; }
#hb-configurator-mount .hb-leg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
#hb-configurator-mount .hb-leg .hb-leg-dot { border-radius: 50%; width: 9px; height: 9px; }
#hb-configurator-mount .hb-leg .hb-leg-dash {
  width: 16px; height: 0; border-radius: 0;
  border-top: 2px dashed var(--hb-orange); background: none;
}

/* ---------- report ---------- */
#hb-configurator-mount .hb-report {
  background: var(--hb-surface); border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg); box-shadow: var(--hb-shadow-md); padding: 32px;
}
#hb-configurator-mount .hb-rep-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  flex-wrap: wrap; padding-bottom: 20px; border-bottom: 3px solid var(--hb-green); margin-bottom: 8px;
}
#hb-configurator-mount .hb-rep-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#hb-configurator-mount .hb-sec { padding: 24px 0; border-bottom: 1px solid var(--hb-line); }
#hb-configurator-mount .hb-sec:last-of-type { border-bottom: none; }
#hb-configurator-mount .hb-rep-cta {
  background: var(--hb-green-light); border-radius: var(--hb-radius-md);
  padding: 24px; margin-top: 20px;
}
#hb-configurator-mount .hb-rep-foot {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hb-line);
  font-size: .76rem; color: var(--hb-muted); text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  #hb-configurator-mount .hb-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #hb-configurator-mount { font-size: 15px; }
  #hb-configurator-mount .hb-card,
  #hb-configurator-mount .hb-report { padding: 18px; border-radius: var(--hb-radius-md); }
  #hb-configurator-mount .hb-grid-2,
  #hb-configurator-mount .hb-grid-3 { grid-template-columns: 1fr; }
  #hb-configurator-mount .hb-h2 { font-size: 1.35rem; }
  #hb-configurator-mount .hb-kpi-v { font-size: 1.35rem; }
  #hb-configurator-mount .hb-actions .hb-btn { flex: 1 1 100%; }
  #hb-configurator-mount .hb-table { font-size: .8rem; }
  #hb-configurator-mount .hb-table th,
  #hb-configurator-mount .hb-table td { padding: 8px 6px; }
  #hb-configurator-mount .hb-steps { gap: 2px; }
  #hb-configurator-mount .hb-step { padding: 6px 9px; font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  #hb-configurator-mount * { transition: none !important; }
}

/* =============================================================
   PRINT — this is what "Download as PDF" produces
   ============================================================= */
@media print {
  body * { visibility: hidden !important; }
  #hb-configurator-mount, #hb-configurator-mount * { visibility: visible !important; }
  #hb-configurator-mount {
    position: absolute; left: 0; top: 0; width: 100%;
    font-size: 10.5pt; color: #000;
  }
  #hb-configurator-mount .hb-noprint { display: none !important; }
  #hb-configurator-mount .hb-report {
    border: none; box-shadow: none; padding: 0; border-radius: 0;
  }
  #hb-configurator-mount .hb-sec { break-inside: avoid; page-break-inside: avoid; padding: 14px 0; }
  #hb-configurator-mount .hb-chart { break-inside: avoid; page-break-inside: avoid; max-height: 62mm; }
  #hb-configurator-mount .hb-table { break-inside: avoid; page-break-inside: avoid; font-size: 9pt; }
  #hb-configurator-mount .hb-kpi { border: 1px solid #67BF61; background: #EDF8ED !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #hb-configurator-mount .hb-kpi-v { font-size: 15pt; }
  #hb-configurator-mount .hb-h2 { font-size: 17pt; }
  #hb-configurator-mount .hb-h3 { font-size: 12pt; }
  #hb-configurator-mount rect, #hb-configurator-mount polyline, #hb-configurator-mount circle {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  #hb-configurator-mount .hb-rep-foot { position: fixed; bottom: 0; width: 100%; }
  @page { margin: 14mm 12mm; size: A4; }
}

/* =============================================================
   Brand mark — screen-hidden, shown on the printed report
   ============================================================= */
#hb-configurator-mount .hb-brand { display: none; }
#hb-configurator-mount .hb-brand-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.05rem; letter-spacing: .01em; color: var(--hb-black);
}
#hb-configurator-mount .hb-brand-logo b { font-weight: 700; }
#hb-configurator-mount .hb-brand-logo span { font-weight: 400; color: var(--hb-green); }
#hb-configurator-mount .hb-logo-img { max-height: 34px; width: auto; display: block; }
#hb-configurator-mount .hb-logo-icon { max-height: 30px; border-radius: 6px; }
#hb-configurator-mount .hb-brand-tag { font-size: .78rem; color: var(--hb-muted); }

/* actions flush against a results block need no extra rule above */
#hb-configurator-mount .hb-actions-flush { border-top: none; padding-top: 4px; margin-top: 14px; }

/* =============================================================
   Download dialogue
   ============================================================= */
.hb-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hb-modal[hidden] { display: none; }
.hb-modal-veil { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hb-modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: hb-pop .2s ease-out;
}
@keyframes hb-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hb-modal-box { animation: none; } }
.hb-modal-box .hb-h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 8px; color: #454645; }
.hb-modal-box .hb-sub { color: #5C615C; font-size: .9rem; line-height: 1.55; margin: 0 0 18px; }
.hb-modal-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: #5C615C; padding: 4px 8px; border-radius: 6px;
}
.hb-modal-x:hover { background: #EDF8ED; color: #000; }
.hb-modal-x:focus-visible { outline: 3px solid rgba(103,191,97,.45); outline-offset: 2px; }

/* Gravity Forms sits inside the dialogue — keep it on brand without
   overriding the plugin's own layout. */
.hb-modal-box .gform_wrapper { margin: 0; }
.hb-modal-box .gform_wrapper .gform_title { display: none; }
.hb-modal-box .gform_wrapper input[type=text],
.hb-modal-box .gform_wrapper input[type=email] {
  width: 100%; padding: 11px 14px; font-size: .95rem;
  border: 1px solid #E2E6E2; border-radius: 6px;
}
.hb-modal-box .gform_wrapper input[type=text]:focus,
.hb-modal-box .gform_wrapper input[type=email]:focus {
  outline: none; border-color: #67BF61; box-shadow: 0 0 0 3px rgba(103,191,97,.18);
}
.hb-modal-box .gform_wrapper .gform_button {
  background: #67BF61; color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-size: .92rem; font-weight: 600;
  padding: 12px 24px; border-radius: 6px; width: 100%;
}
.hb-modal-box .gform_wrapper .gform_button:hover { background: #37813A; }
.hb-modal-box .gform_confirmation_message {
  color: #37813A; font-weight: 600; text-align: center; padding: 20px 0;
}

#hb-gf-host[hidden] { display: none !important; }

@media print {
  .hb-modal { display: none !important; }
  #hb-gf-host { display: none !important; }
  #hb-configurator-mount .hb-brand {
    display: flex !important; align-items: center; justify-content: space-between;
    gap: 16px; padding-bottom: 10px; margin-bottom: 14px;
    border-bottom: 2px solid #67BF61;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  #hb-configurator-mount .hb-logo-img { max-height: 15mm; }
}

/* =============================================================
   Theme-proof baseline + refinements
   Themes commonly restyle headings, tables and buttons inside post content.
   These keep the report consistent wherever it is embedded.
   ============================================================= */
#hb-configurator-mount { --hb-ink: #1A1C1A; }
#hb-configurator-mount h2,
#hb-configurator-mount h3,
#hb-configurator-mount h4 {
  font-family: inherit; margin-top: 0; text-transform: none; letter-spacing: -.01em;
}
#hb-configurator-mount .hb-h2 { font-size: 1.5rem; font-weight: 600; }
#hb-configurator-mount .hb-h3 {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--hb-muted); margin-bottom: 16px;
}
#hb-configurator-mount .hb-h4 { font-size: .95rem; font-weight: 600; color: var(--hb-grey); }
#hb-configurator-mount p { color: #333633; }
#hb-configurator-mount .hb-sec p { font-size: .93rem; line-height: 1.65; }
#hb-configurator-mount .hb-sec strong { font-weight: 600; color: var(--hb-ink); }
#hb-configurator-mount a { color: var(--hb-green-dark); }
#hb-configurator-mount button { font-family: inherit; text-transform: none; letter-spacing: 0; }
#hb-configurator-mount .hb-btn[disabled] { opacity: .6; cursor: default; }

/* KPI tiles: quieter, less "dashboard" */
#hb-configurator-mount .hb-kpis { gap: 1px; background: var(--hb-line); border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-md); overflow: hidden; margin: 0 0 24px; }
#hb-configurator-mount .hb-kpi {
  background: #fff; border: 0; border-radius: 0; padding: 18px 20px; gap: 4px;
}
#hb-configurator-mount .hb-kpi-l {
  font-size: .68rem; letter-spacing: .09em; color: var(--hb-muted); font-weight: 600;
}
#hb-configurator-mount .hb-kpi-v {
  font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; color: var(--hb-ink);
  font-variant-numeric: tabular-nums;
}
#hb-configurator-mount .hb-kpi-s { font-size: .76rem; color: var(--hb-muted); }

/* Sections: rely on space rather than lines */
#hb-configurator-mount .hb-sec { padding: 30px 0; border-bottom: 1px solid var(--hb-line); }
#hb-configurator-mount .hb-report { padding: 38px; }
#hb-configurator-mount .hb-rep-head { border-bottom-width: 2px; padding-bottom: 22px; margin-bottom: 4px; }

/* Notes */
#hb-configurator-mount .hb-note {
  background: #FCFBF5; border-left: 3px solid var(--hb-orange);
  border-radius: 0; padding: 16px 20px;
}
#hb-configurator-mount .hb-note p { font-size: .875rem; color: #4A4A44; }

/* Value-stack bar has no axis, so pull its legend closer */
#hb-configurator-mount .hb-fig .hb-chart + .hb-legend { margin-top: 10px; }

@media (max-width: 600px) {
  #hb-configurator-mount .hb-report { padding: 20px; }
  #hb-configurator-mount table.hb-table { font-size: .8rem; }
  #hb-configurator-mount table.hb-table th,
  #hb-configurator-mount table.hb-table td { padding-left: 6px; padding-right: 6px; }
  #hb-configurator-mount .hb-fig-cap { font-size: .74rem; }
}

@media print {
  #hb-configurator-mount .hb-kpis { border-color: #C6CDC6; }
  #hb-configurator-mount .hb-fig { break-inside: avoid; page-break-inside: avoid; }
}

/* =============================================================
   Ronde 2 (4-11-2026): rustiger, duidelijker, beter bruikbaar
   Alleen presentatie. Rekenmotor en logica zijn niet aangeraakt.
   ============================================================= */
#hb-configurator-mount { --hb-ink: #1A1C1A; }

/* ---------- loading / empty / error ---------- */
#hb-configurator-mount .hb-loading, #hb-configurator-mount .hb-empty, #hb-configurator-mount .hb-error {
  padding: 28px; border: 1px dashed var(--hb-line); border-radius: var(--hb-radius-md);
  color: var(--hb-muted); text-align: center; margin: 12px 0;
}
#hb-configurator-mount .hb-error { border-style: solid; border-color: rgba(192,57,43,.35); background: #FDF3F1; color: #8E2B20; }

/* ---------- card + intro ---------- */
#hb-configurator-mount .hb-card { padding: 34px; }
#hb-configurator-mount .hb-card > .hb-head .hb-h2 { font-size: 1.7rem; }
#hb-configurator-mount .hb-sub { font-size: .95rem; line-height: 1.6; max-width: 62ch; }

/* ---------- inputs: bigger, calmer, units inside ---------- */
#hb-configurator-mount .hb-label { font-size: .85rem; color: var(--hb-ink); }
#hb-configurator-mount .hb-help { font-size: .78rem; }
#hb-configurator-mount .hb-input {
  min-height: 50px; padding: 12px 16px; font-size: 1rem; background: #FAFBFA;
  border: 1.5px solid #D5DAD5; border-radius: var(--hb-radius-md);
}
#hb-configurator-mount .hb-input:hover { border-color: #B9C1B9; background: #fff; }
#hb-configurator-mount .hb-input:focus { background: #fff; border-color: var(--hb-green-dark); box-shadow: 0 0 0 4px rgba(103,191,97,.22); }
#hb-configurator-mount .hb-input:invalid { border-color: #C0392B; }
#hb-configurator-mount input[type=number] { -moz-appearance: textfield; appearance: textfield; }
#hb-configurator-mount input[type=number]::-webkit-outer-spin-button,
#hb-configurator-mount input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#hb-configurator-mount .hb-unit {
  right: 1px; top: 1px; bottom: 1px; transform: none; display: flex; align-items: center;
  padding: 0 14px; background: #F1F4F1; color: var(--hb-grey); font-size: .8rem; font-weight: 500;
  border-radius: 0 calc(var(--hb-radius-md) - 1px) calc(var(--hb-radius-md) - 1px) 0; border-left: 1px solid #E2E6E2;
}
#hb-configurator-mount .hb-inwrap .hb-input { padding-right: 84px; }
#hb-configurator-mount select.hb-input { padding-right: 40px; cursor: pointer; }
#hb-configurator-mount .hb-grid { gap: 18px 20px; }
#hb-configurator-mount .hb-check { min-height: 44px; font-size: .95rem; color: var(--hb-ink); }
#hb-configurator-mount .hb-check input { width: 20px; height: 20px; flex: none; }
#hb-configurator-mount .hb-check input:focus-visible { outline: 3px solid rgba(103,191,97,.55); outline-offset: 2px; }
#hb-configurator-mount .hb-row { gap: 6px 26px; }
#hb-configurator-mount .hb-block { background: #FAFBFA; border-radius: var(--hb-radius-md); padding: 18px 20px; }
#hb-configurator-mount .hb-block .hb-grid { margin-bottom: 8px; }
#hb-configurator-mount .hb-details summary { min-height: 44px; display: flex; align-items: center; }

/* ---------- buttons: one family ---------- */
#hb-configurator-mount .hb-btn {
  min-height: 48px; padding: 12px 26px; font-size: .95rem; border-radius: var(--hb-radius-md); border: 2px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2;
}
#hb-configurator-mount .hb-btn-primary { background: var(--hb-green-dark); color: #fff; }
#hb-configurator-mount .hb-btn-primary:hover { background: #2F7432; }
#hb-configurator-mount .hb-btn-ghost { background: #fff; color: #2F7432; border-color: var(--hb-green); }
#hb-configurator-mount .hb-btn-secondary { background: #fff; color: var(--hb-ink); border-color: #D5DAD5; }
#hb-configurator-mount .hb-btn-secondary:hover { background: #F4F6F4; filter: none; border-color: #B9C1B9; }
#hb-configurator-mount .hb-btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ---------- stepper ---------- */
#hb-configurator-mount .hb-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px;
  margin: 0 0 14px; padding: 0; border: 0;
}
#hb-configurator-mount .hb-step {
  appearance: none; font: inherit; border: 1px solid transparent; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 10px; text-align: left; min-height: 52px;
  padding: 8px 12px; border-radius: var(--hb-radius-md); color: var(--hb-muted); font-size: .86rem; font-weight: 600;
}
#hb-configurator-mount .hb-step em { font-style: normal; line-height: 1.25; }
#hb-configurator-mount .hb-step:hover { background: #F4F6F4; color: var(--hb-ink); }
#hb-configurator-mount .hb-step span { width: 28px; height: 28px; flex: none; font-size: .82rem; }
#hb-configurator-mount .hb-step.is-on { background: var(--hb-green-light); border-color: rgba(103,191,97,.45); color: var(--hb-ink); }
#hb-configurator-mount .hb-step.is-done { color: var(--hb-ink); }
#hb-configurator-mount .hb-step.is-done span { background: var(--hb-green-dark); }
#hb-configurator-mount .hb-step:focus-visible { outline: 3px solid rgba(103,191,97,.55); outline-offset: 2px; }
#hb-configurator-mount .hb-progress { height: 6px; border-radius: 99px; background: var(--hb-line); overflow: hidden; }
#hb-configurator-mount .hb-progress i { display: block; height: 100%; background: var(--hb-green); border-radius: 99px; transition: width .3s ease; }
#hb-configurator-mount .hb-stepcount { margin: 10px 0 18px; font-size: .78rem; color: var(--hb-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
#hb-configurator-mount .hb-wizard .hb-h3 { font-size: 1.35rem; text-transform: none; letter-spacing: -.01em; color: var(--hb-ink); font-weight: 700; margin: 0 0 6px; }
#hb-configurator-mount .hb-actions-wizard { justify-content: space-between; }
#hb-configurator-mount .hb-actions-wizard .hb-btn-primary { margin-left: auto; min-width: 180px; }

/* ---------- result cards with big numbers ---------- */
#hb-configurator-mount .hb-results { margin-top: 26px; padding-top: 26px; }
#hb-configurator-mount .hb-kpis {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; background: none; border: 0; border-radius: 0; overflow: visible; margin: 0 0 22px;
}
#hb-configurator-mount .hb-kpi {
  background: #fff; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-md); padding: 20px 22px; gap: 6px;
  box-shadow: var(--hb-shadow-sm);
}
#hb-configurator-mount .hb-kpi-v { font-size: 2.15rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
#hb-configurator-mount .hb-kpi-l { font-size: .72rem; }
#hb-configurator-mount .hb-kpi-s { font-size: .8rem; line-height: 1.4; }
#hb-configurator-mount .hb-results .hb-kpi:nth-child(2) { background: var(--hb-green-light); border-color: rgba(103,191,97,.45); }
#hb-configurator-mount .hb-results .hb-kpi:nth-child(2) .hb-kpi-v { color: #2F7A2A; }
#hb-configurator-mount .hb-sec .hb-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { #hb-configurator-mount .hb-sec .hb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#hb-configurator-mount .hb-sec .hb-kpi-v { font-size: 1.8rem; }
#hb-configurator-mount .hb-sec .hb-kpi:nth-child(2) { background: var(--hb-green-light); border-color: rgba(103,191,97,.45); }
#hb-configurator-mount .hb-note { border-radius: 0 var(--hb-radius-md) var(--hb-radius-md) 0; }
#hb-configurator-mount .hb-results .hb-actions-flush { margin-top: 20px; align-items: stretch; }
#hb-configurator-mount .hb-results .hb-actions-flush .hb-btn-primary { flex: 1 1 220px; }

/* ---------- report ---------- */
#hb-configurator-mount .hb-report { padding: 40px; }
#hb-configurator-mount .hb-rep-head { align-items: center; }
#hb-configurator-mount .hb-rep-head .hb-h2 { font-size: 1.8rem; font-weight: 700; }
#hb-configurator-mount .hb-sec .hb-h3 { font-size: 1.05rem; text-transform: none; letter-spacing: -.01em; color: var(--hb-ink); font-weight: 700; padding-left: 12px; border-left: 4px solid var(--hb-green); line-height: 1.3; margin-bottom: 18px; }
#hb-configurator-mount table.hb-table { font-size: .9rem; }
#hb-configurator-mount table.hb-table td { padding: 13px 12px; }
#hb-configurator-mount table.hb-table tbody tr:nth-child(even):not(.is-on) td { background: #FAFBFA; }
#hb-configurator-mount .hb-fig { background: #FAFBFA; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-md); padding: 18px 20px 16px; }
#hb-configurator-mount .hb-fig-cap { color: var(--hb-ink); }
#hb-configurator-mount .hb-rep-cta {
  background: var(--hb-green-light); border: 1px solid rgba(103,191,97,.35); border-radius: var(--hb-radius-md);
  padding: 26px 28px; margin: 28px 0 0; position: static; width: auto; max-width: none; transform: none; left: auto; right: auto;
}
#hb-configurator-mount .hb-rep-cta .hb-h4 { margin: 0 0 6px; font-size: 1.1rem; color: var(--hb-ink); }
#hb-configurator-mount .hb-rep-cta .hb-btn { margin-top: 6px; }

/* ---------- download dialogue ---------- */
.hb-modal-veil { backdrop-filter: blur(2px); }
.hb-modal-box { max-width: 480px; max-height: 92vh; padding: 34px 32px 30px; margin: auto; }
.hb-modal-h { font-size: 1.35rem; font-weight: 700; margin: 0 28px 10px 0; color: #1A1C1A; line-height: 1.25; }
.hb-modal-p { color: #5C615C; font-size: .92rem; line-height: 1.6; margin: 0 0 20px; }
.hb-modal-x { width: 40px; height: 40px; display: grid; place-items: center; top: 12px; right: 12px; padding: 0; }
.hb-modal-box form { display: grid; gap: 16px; margin: 0; }
.hb-modal-box .gfield { margin: 0; }
.hb-modal-box .gfield_label { display: block; font-size: .85rem; font-weight: 600; color: #1A1C1A; margin-bottom: 6px; }
.hb-modal-box .gform_wrapper input[type=text],
.hb-modal-box .gform_wrapper input[type=email] { min-height: 50px; padding: 12px 16px; font-size: 1rem; border: 1.5px solid #D5DAD5; border-radius: 10px; box-sizing: border-box; background: #FAFBFA; }
.hb-modal-box .gform_wrapper input:focus { background: #fff; border-color: #37813A; box-shadow: 0 0 0 4px rgba(103,191,97,.22); outline: none; }
.hb-modal-box .gfield:has(input[type=checkbox]) { display: flex; gap: 10px; align-items: flex-start; }
.hb-modal-box input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #37813A; }
.hb-modal-box .gfield_consent_label { font-size: .82rem; line-height: 1.5; color: #5C615C; }
.hb-modal-box .gform_wrapper .gform_button { min-height: 50px; font-size: 1rem; border-radius: 10px; background: #37813A; }
.hb-modal-box .gform_wrapper .gform_button:hover { background: #2F7432; }
.hb-modal-box .gform_wrapper .gform_button:disabled { opacity: .6; cursor: progress; }
.hb-modal-box .gform_wrapper .gform_button:focus-visible, .hb-modal-box input:focus-visible { outline: 3px solid rgba(103,191,97,.55); outline-offset: 2px; }
.hb-modal-box .hb-lead-fout { background: #FEF9EC; border: 1px solid rgba(236,170,21,.45); border-radius: 10px; padding: 14px 16px; font-size: .88rem; }
.hb-modal-box .hb-lead-fout p { margin: 0 0 10px !important; line-height: 1.5; color: #4A4A44; }
.hb-modal-box .gform_confirmation_message { padding: 28px 0; font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  #hb-configurator-mount .hb-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  #hb-configurator-mount .hb-card { padding: 20px 16px; }
  #hb-configurator-mount .hb-card > .hb-head .hb-h2 { font-size: 1.4rem; }
  #hb-configurator-mount .hb-input { font-size: 16px; }
  #hb-configurator-mount .hb-steps { gap: 6px; }
  #hb-configurator-mount .hb-step { padding: 8px 10px; font-size: .8rem; min-height: 48px; gap: 8px; }
  #hb-configurator-mount .hb-step span { width: 24px; height: 24px; font-size: .75rem; }
  #hb-configurator-mount .hb-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  #hb-configurator-mount .hb-results .hb-kpis .hb-kpi:first-child { grid-column: 1 / -1; }
  #hb-configurator-mount .hb-kpi { padding: 14px 16px; }
  #hb-configurator-mount .hb-kpi-v { font-size: 1.7rem; }
  #hb-configurator-mount .hb-sec .hb-kpi-v { font-size: 1.45rem; }
  #hb-configurator-mount .hb-actions { gap: 10px; }
  #hb-configurator-mount .hb-actions-wizard { flex-direction: column-reverse; }
  #hb-configurator-mount .hb-actions-wizard .hb-btn { width: 100%; }
  #hb-configurator-mount .hb-report { padding: 18px 14px; }
  #hb-configurator-mount .hb-rep-head .hb-h2 { font-size: 1.4rem; }
  #hb-configurator-mount .hb-rep-actions { width: 100%; }
  #hb-configurator-mount .hb-rep-actions .hb-btn { flex: 1 1 100%; }
  #hb-configurator-mount .hb-fig { padding: 14px 10px 12px; }
  #hb-configurator-mount table.hb-table { font-size: .76rem; }
  #hb-configurator-mount table.hb-table th { font-size: .58rem; letter-spacing: .03em; padding-left: 3px; padding-right: 3px; }
  #hb-configurator-mount table.hb-table td { padding: 9px 3px; }
  #hb-configurator-mount table.hb-table tr.is-on td:first-child { padding-left: 6px; }
  #hb-configurator-mount .hb-rep-cta { padding: 20px 16px; }
  .hb-modal { padding: 12px; align-items: flex-end; }
  .hb-modal-box { padding: 28px 20px 22px; border-radius: 16px 16px 12px 12px; }
}
@media print { #hb-configurator-mount .hb-rep-cta { display: none !important; } }

/* Resultaat-knoppen: hoofdknop over de volle breedte, de twee andere gelijk eronder (geen 2+1 met een losse knop) */
@media (min-width: 601px) {
  #hb-configurator-mount .hb-results .hb-actions-flush { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #hb-configurator-mount .hb-results .hb-actions-flush .hb-btn-primary { grid-column: 1 / -1; flex: none; }
  #hb-configurator-mount .hb-results .hb-actions-flush .hb-btn { margin: 0; }
}

/* Drie keuzevakjes onder elkaar (anders 2+1 met een losse regel) */
#hb-configurator-mount .hb-row-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
