/* Offertewizard — gescoped op .ewb-wizard. Huisstijl EnergieWest: navy #26336e, geel #e8d300, Poppins/Open Sans. */
.ewb.ewb-wizard { --wiz-line: #dde3ee; --wiz-soft: #f3f5f9; --wiz-tint: #fdf8c9; background: var(--ewb-light-blue); }
.ewb-wizard [hidden] { display: none !important; }
.ewb-wizard .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.ewb-wizard .ewb-wizard__inner { display: grid; gap: 28px; }

/* Kop */
.ewb-wizard .ewb-wizard__head { max-width: 760px; margin: 0 auto; text-align: center; }
.ewb-wizard .ewb-wizard__intro { margin: 12px 0 0; font-size: 18px; }

/* Voortgang */
.ewb-wizard .ewb-wizard__progress-wrap { display: flex; align-items: center; gap: 16px; }
.ewb-wizard .ewb-wizard__progress { flex: 1; height: 4px; background: #d6deeb; overflow: hidden; }
.ewb-wizard .ewb-wizard__bar { display: block; width: 0; height: 100%; background: var(--ewb-primary); transition: width .35s ease; }
.ewb-wizard .ewb-wizard__count { margin: 0; color: var(--ewb-primary); font-size: 14px; font-weight: 600; white-space: nowrap; }

.ewb-wizard .ewb-wizard__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ewb-wizard .ewb-wizard__icon { display: block; flex: 0 0 auto; color: var(--ewb-primary); }
.ewb-wizard .ewb-wizard__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* Overzicht: raster van oplossingen */
.ewb-wizard .ewb-wizard__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.ewb-wizard .ewb-wizard__sol { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 26px; border: 1px solid var(--wiz-line); border-radius: var(--ewb-radius-card); background: var(--ewb-white); transition: border-color .2s ease, box-shadow .2s ease; }
.ewb-wizard .is-w3 { grid-column: span 3; } .ewb-wizard .is-w4 { grid-column: span 4; } .ewb-wizard .is-w6 { grid-column: span 6; } .ewb-wizard .is-w8 { grid-column: span 8; } .ewb-wizard .is-w12 { grid-column: span 12; }
.ewb-wizard .ewb-wizard__sol:hover { border-color: #b7c2d8; }
.ewb-wizard .ewb-wizard__sol.is-selected { border-color: var(--ewb-primary); box-shadow: inset 0 0 0 1px var(--ewb-primary); }

.ewb-wizard .ewb-wizard__sol-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0; }
.ewb-wizard .ewb-wizard__sol-title { margin: 0; padding-right: 34px; color: var(--ewb-primary); font-family: var(--ewb-font-heading); font-size: 20px; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.ewb-wizard .is-simple .ewb-wizard__sol-head { flex: 1; justify-content: flex-start; min-height: 170px; cursor: pointer; }
.ewb-wizard .is-simple .ewb-wizard__sol-head::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ewb-wizard .ewb-wizard__sol-input:focus-visible + .ewb-wizard__sol-head::before { outline: 3px solid var(--ewb-primary); outline-offset: 3px; }

/* Vinkje rechtsboven */
.ewb-wizard .ewb-wizard__check { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border: 1.5px solid #b7c2d8; border-radius: 50%; background: var(--ewb-white); }
.ewb-wizard .is-selected .ewb-wizard__check { border-color: var(--ewb-primary); background: var(--ewb-accent); }
.ewb-wizard .is-selected .ewb-wizard__check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--ewb-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Keuzegroepen */
.ewb-wizard .ewb-wizard__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.ewb-wizard .ewb-wizard__group + .ewb-wizard__group { padding-top: 16px; border-top: 1px solid var(--wiz-line); }
.ewb-wizard .ewb-wizard__group-label { display: block; float: left; width: 100%; margin: 0 0 10px; padding: 0; color: var(--ewb-primary); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ewb-wizard .ewb-wizard__pick { position: relative; display: flex; }
.ewb-wizard .ewb-wizard__pick-label { display: flex; flex: 1; align-items: center; gap: 12px; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.ewb-wizard .ewb-wizard__pick-text { min-width: 0; color: var(--ewb-primary); font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.ewb-wizard .ewb-wizard__pick-text small { display: block; margin-top: 2px; color: var(--ewb-text); font-size: 12px; font-weight: 400; }
.ewb-wizard .ewb-wizard__input:focus-visible + .ewb-wizard__pick-label { outline: 3px solid var(--ewb-primary); outline-offset: 2px; }

/* Lijst met bolletjes */
.ewb-wizard .ewb-wizard__group-opts { clear: both; }
.ewb-wizard .is-list .ewb-wizard__group-opts { display: grid; gap: 8px; }
.ewb-wizard .is-list .ewb-wizard__pick-label { padding: 10px 14px; border: 1px solid transparent; border-radius: 6px; background: var(--wiz-soft); }
.ewb-wizard .is-list .ewb-wizard__pick-label:hover { border-color: #b7c2d8; }
.ewb-wizard .ewb-wizard__radio { position: relative; width: 18px; height: 18px; flex: 0 0 18px; border: 1.5px solid #8d99b5; border-radius: 50%; background: var(--ewb-white); }
.ewb-wizard .ewb-wizard__input:checked + .ewb-wizard__pick-label { border-color: var(--ewb-primary); background: var(--wiz-tint); }
.ewb-wizard .ewb-wizard__input:checked + .ewb-wizard__pick-label .ewb-wizard__radio { border-color: var(--ewb-primary); background: var(--ewb-primary); box-shadow: inset 0 0 0 4px var(--ewb-accent); }

/* Tegels met icoon */
.ewb-wizard .is-tiles .ewb-wizard__group-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.ewb-wizard .is-tiles .ewb-wizard__pick-label { flex-direction: column; justify-content: center; gap: 8px; min-height: 112px; padding: 14px 10px; border: 1px solid var(--wiz-line); border-radius: 6px; background: var(--ewb-white); text-align: center; }
.ewb-wizard .is-tiles .ewb-wizard__pick-label:hover { border-color: #b7c2d8; background: var(--wiz-soft); }
.ewb-wizard .is-tiles .ewb-wizard__pick-text { font-size: 14px; }

/* Doorverwijzing in de kaart */
.ewb-wizard .ewb-wizard__sol-note { padding: 12px 14px; border-left: 4px solid var(--ewb-accent); background: var(--wiz-soft); font-size: 14px; line-height: 1.5; }
.ewb-wizard .ewb-wizard__sol-note p { margin: 0 0 6px; }
.ewb-wizard .ewb-wizard__sol-link { color: var(--ewb-primary); font-weight: 600; text-decoration: underline; }

/* Extra vragen en contact: wit paneel */
.ewb-wizard .ewb-wizard__question-step, .ewb-wizard .ewb-wizard__contact { padding: 44px; border: 1px solid var(--wiz-line); border-radius: var(--ewb-radius-card); background: var(--ewb-white); }
.ewb-wizard .ewb-wizard__question { display: block; float: none; width: 100%; margin: 0 0 8px; padding: 0; font-size: 28px; }
.ewb-wizard .ewb-wizard__question:focus { outline: none; }
.ewb-wizard .ewb-wizard__hint { margin: 0; font-size: 14px; }
.ewb-wizard .ewb-wizard__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 24px; }
.ewb-wizard .ewb-wizard__option { position: relative; display: flex; }
.ewb-wizard .ewb-wizard__choice { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 130px; padding: 18px 12px; border: 1px solid var(--wiz-line); border-radius: 6px; background: var(--ewb-white); color: var(--ewb-primary); text-align: center; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.ewb-wizard .ewb-wizard__choice:hover { border-color: #b7c2d8; background: var(--wiz-soft); }
.ewb-wizard .ewb-wizard__label { max-width: 100%; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.ewb-wizard .ewb-wizard__input:checked + .ewb-wizard__choice { border-color: var(--ewb-primary); background: var(--wiz-tint); box-shadow: inset 0 0 0 1px var(--ewb-primary); }
.ewb-wizard .ewb-wizard__input:focus-visible + .ewb-wizard__choice { outline: 3px solid var(--ewb-primary); outline-offset: 3px; }

/* Samenvatting */
.ewb-wizard .ewb-wizard__summary { margin: 8px 0 24px; }
.ewb-wizard .ewb-wizard__summary-title { margin: 0 0 8px; color: var(--ewb-primary); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ewb-wizard .ewb-wizard__summary ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ewb-wizard .ewb-wizard__summary li { padding: 6px 12px; border-left: 3px solid var(--ewb-accent); background: var(--wiz-soft); color: var(--ewb-primary); font-size: 14px; }

/* Navigatie */
.ewb-wizard .ewb-wizard__nav { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; }
.ewb-wizard .ewb-wizard__next { min-height: 48px; padding: 12px 32px; cursor: pointer; }
.ewb-wizard .ewb-wizard__back { position: absolute; left: 0; padding: 10px 0; border: 0; background: none; color: var(--ewb-primary); font: 600 16px/1.4 var(--ewb-font-body); text-decoration: underline; cursor: pointer; }
.ewb-wizard .ewb-wizard__error { margin: 0; color: #b3261e; font-weight: 600; text-align: center; }
.ewb-wizard .ewb-wizard__empty { margin: 0; padding: 16px; border: 1px dashed #c5cbe0; }

/* Forminator binnen de wizard */
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form { margin: 0; padding: 0; background: none; border: 0; font-family: var(--ewb-font-body); }
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form[data-design] .forminator-label { color: var(--ewb-primary); font-family: var(--ewb-font-body); font-size: 14px; font-weight: 600; }
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form[data-design] .forminator-input,
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form[data-design] .forminator-textarea { min-height: 48px; padding: 12px 14px; border: 1px solid #c5cbe0; border-radius: 4px; background: var(--ewb-white); color: var(--ewb-primary); font-family: var(--ewb-font-body); font-size: 16px; }
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form[data-design] .forminator-input:focus,
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form[data-design] .forminator-textarea:focus { border-color: var(--ewb-primary); box-shadow: 0 0 0 2px rgb(38 51 110 / 20%); outline: none; }
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form[data-design] .forminator-button-submit { min-height: 48px; padding: 12px 32px; border: 0; border-radius: 0; background: var(--ewb-accent); color: var(--ewb-primary); font-family: var(--ewb-font-body); font-size: 16px; font-weight: 600; box-shadow: none; transition: background-color .2s ease, color .2s ease; }
.ewb-wizard .ewb-wizard__form .forminator-ui.forminator-custom-form[data-design] .forminator-button-submit:is(:hover, :focus-visible) { background: var(--ewb-primary); color: var(--ewb-white); }
.ewb-wizard .ewb-wizard__icon--img { width: 48px; height: 48px; object-fit: contain; }


/* Stap 1: alleen thema's als tegels */
.ewb-wizard .ewb-wizard__grid.is-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ewb-wizard .is-themes .ewb-wizard__sol { grid-column: auto; }
.ewb-wizard .is-themes .is-simple .ewb-wizard__sol-head { min-height: 150px; }

/* Stap per thema: de keuzes van dat thema */
.ewb-wizard .ewb-wizard__detail-title { display: flex !important; float: left; align-items: center; gap: 14px; width: 100%; }
.ewb-wizard .ewb-wizard__detail .ewb-wizard__hint { clear: both; }
.ewb-wizard .ewb-wizard__detail-groups { display: grid; gap: 24px; margin-top: 24px; }
.ewb-wizard .ewb-wizard__detail .ewb-wizard__group + .ewb-wizard__group { padding-top: 24px; }
.ewb-wizard .ewb-wizard__detail .is-list .ewb-wizard__group-opts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ewb-wizard .ewb-wizard__detail .is-tiles .ewb-wizard__group-opts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

@media (max-width: 1024px) {
  .ewb-wizard .ewb-wizard__grid { grid-auto-flow: row dense; }
  .ewb-wizard .is-w3, .ewb-wizard .is-w4 { grid-column: span 6; }
  .ewb-wizard .is-w6, .ewb-wizard .is-w8 { grid-column: span 12; }
  .ewb-wizard .ewb-wizard__question-step, .ewb-wizard .ewb-wizard__contact { padding: 32px 24px; }
  .ewb-wizard .ewb-wizard__question { font-size: 24px; }
  .ewb-wizard .ewb-wizard__grid.is-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .ewb-wizard .ewb-wizard__inner { gap: 20px; }
  .ewb-wizard .ewb-wizard__grid { gap: 12px; }
  .ewb-wizard .ewb-wizard__sol { grid-column: span 12; padding: 20px; gap: 14px; }
  .ewb-wizard .ewb-wizard__grid.is-themes { grid-template-columns: minmax(0, 1fr); }
  .ewb-wizard .is-themes .is-simple .ewb-wizard__sol-head { min-height: 0; }
  .ewb-wizard .ewb-wizard__detail .is-list .ewb-wizard__group-opts { grid-template-columns: minmax(0, 1fr); }
  .ewb-wizard .is-simple .ewb-wizard__sol-head { flex-direction: row; align-items: center; min-height: 0; }
  .ewb-wizard .is-simple .ewb-wizard__icon { width: 40px; height: 40px; }
  .ewb-wizard .ewb-wizard__sol-title { font-size: 18px; }
  .ewb-wizard .ewb-wizard__sol-head .ewb-wizard__icon { width: 40px; height: 40px; }
  .ewb-wizard .is-tiles .ewb-wizard__group-opts, .ewb-wizard .ewb-wizard__options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ewb-wizard .ewb-wizard__question-step, .ewb-wizard .ewb-wizard__contact { padding: 24px 16px; }
  .ewb-wizard .ewb-wizard__question { font-size: 22px; }
  .ewb-wizard .ewb-wizard__nav { flex-direction: column-reverse; gap: 8px; }
  .ewb-wizard .ewb-wizard__next { width: 100%; }
  .ewb-wizard .ewb-wizard__back { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .ewb-wizard .ewb-wizard__bar, .ewb-wizard .ewb-wizard__sol, .ewb-wizard .ewb-wizard__pick-label, .ewb-wizard .ewb-wizard__choice { transition: none; }
}

/* Vraagtitels (legend) binnen het witte kader, niet op de rand */
.ewb-wizard legend.ewb-wizard__question { float: left; width: 100%; }
.ewb-wizard .ewb-wizard__question-step .ewb-wizard__hint, .ewb-wizard .ewb-wizard__question-step .ewb-wizard__options, .ewb-wizard .ewb-wizard__detail-groups { clear: both; }
