/* ============================================================
   Energy-Check — components.css
   Alle UI-componenten voor de wizard + landing
   ============================================================ */

/* --- 1. Header -------------------------------------------- */
.ec-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: var(--ec-space-4) 0;
}

.ec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--ec-max-width);
  margin-inline: auto;
  padding-inline: var(--ec-gutter);
}

.ec-header__right {
  display: flex;
  align-items: center;
  gap: var(--ec-space-6);
}

.ec-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.ec-header__logo:hover { opacity: 0.7 }
.ec-header__logo-img {
  height: 40px;
  width: auto;
}

.ec-header__nav {
  display: flex;
  gap: var(--ec-space-6);
  list-style: none;
}

.ec-header__nav a {
  color: var(--ec-primary, #143840);
  text-decoration: none;
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-medium);
  transition: opacity var(--ec-duration) var(--ec-ease);
}

.ec-header__nav a:hover,
.ec-header__nav a[aria-current="page"] {
  color: var(--ec-accent);
}

.ec-header__back {
  font-size: 14px;
  padding: 8px 16px;
}

.ec-header__back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}


/* --- 2. Progress bar -------------------------------------- */
.ec-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ec-space-3);
  padding: var(--ec-space-6) 0 var(--ec-space-4);
  counter-reset: step;
}

.ec-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #DDF3D5;
  transition: all var(--ec-duration) var(--ec-ease);
  counter-increment: step;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ec-teal);
  text-decoration: none;
}

/* Afgeronde stappen zijn klikbaar (terug-navigatie). */
.ec-progress__dot--link {
  cursor: pointer;
}
.ec-progress__dot--link:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(23, 133, 65, 0.25);
}

.ec-progress__dot::before {
  content: counter(step);
}

.ec-progress__dot--active {
  background: var(--ec-gradient-blue);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(15, 181, 186, 0.25);
}

/* Afgeronde stappen: merk-groen (geen oude turquoise meer). */
.ec-progress__dot--done {
  background: var(--ec-green-deep);
  color: #fff;
}

.ec-progress__line {
  width: 32px;
  height: 2px;
  background: #DDF3D5;
  border-radius: 1px;
}

.ec-progress__line--done {
  background: var(--ec-green-deep);
}

.ec-progress__label {
  font-size: var(--ec-text-xs);
  color: var(--ec-gray-600);
  text-align: center;
  margin-top: var(--ec-space-1);
}


/* --- 3. Stap-headers -------------------------------------- */
.ec-step-header {
  margin-bottom: 24px;
}

.ec-step-header__badge {
  display: inline-block;
  font-size: var(--ec-text-xs);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-blue-end);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ec-step-header__title {
  font-size: var(--ec-text-2xl);
  font-weight: var(--ec-weight-bold);
  line-height: var(--ec-leading-tight);
  letter-spacing: -0.02em;
  color: var(--ec-teal);
  margin-bottom: 4px;
}

.ec-step-header__subtitle {
  font-size: var(--ec-text-base);
  color: var(--ec-gray-600);
  line-height: var(--ec-leading-relaxed);
}

@media (min-width: 768px) {
  .ec-step-header__title {
    font-size: var(--ec-text-3xl);
  }
}


/* --- 4. Formulier-elementen ------------------------------- */
.ec-form-group {
  margin-bottom: 24px;
}

.ec-label {
  display: block;
  font-size: var(--ec-text-sm);
  letter-spacing: 0;
  font-weight: var(--ec-weight-medium);
  color: var(--ec-teal);
  margin-bottom: var(--ec-space-2);
}

.ec-label__optional {
  font-weight: var(--ec-weight-normal);
  color: var(--ec-gray-400);
}

.ec-input,
.ec-select {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: var(--ec-text-base);
  color: var(--ec-teal);
  background: #f7f8fa;
  border: 1.5px solid var(--ec-gray-200);
  border-radius: var(--ec-radius-md);
  transition: border-color var(--ec-duration) var(--ec-ease),
              box-shadow var(--ec-duration) var(--ec-ease),
              background 0.15s ease;
}

.ec-input:hover,
.ec-select:hover {
  border-color: var(--ec-gray-400);
}

.ec-input:focus,
.ec-select:focus {
  outline: none;
  border-color: transparent;
  border-bottom: 2px solid var(--ec-accent);
  background: #fff;
}

.ec-input--error {
  border-color: var(--ec-danger);
}

.ec-input--error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

input[name="postcode"],
.ec-input--postcode {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ec-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ec-space-4);
}

.ec-error-msg {
  font-size: var(--ec-text-sm);
  color: var(--ec-danger);
  margin-top: var(--ec-space-1);
}

.ec-help-text {
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-600);
  margin-top: var(--ec-space-1);
}


/* --- 5. Tooltips ------------------------------------------ */
.ec-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--ec-space-1);
}

.ec-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--ec-radius-full);
  background: var(--ec-gray-100);
  color: var(--ec-gray-600);
  font-size: 11px;
  font-weight: var(--ec-weight-bold);
  cursor: help;
  flex-shrink: 0;
}

.ec-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  padding: var(--ec-space-3) var(--ec-space-4);
  font-size: var(--ec-text-sm);
  color: var(--ec-white);
  background: var(--ec-teal);
  border-radius: var(--ec-radius-md);
  box-shadow: var(--ec-shadow-lg);
  z-index: 50;
  line-height: var(--ec-leading-normal);
}

.ec-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ec-teal);
}

.ec-tooltip-wrap:hover .ec-tooltip,
.ec-tooltip-icon:focus + .ec-tooltip {
  display: block;
}


/* --- 6. Knoppen (3 varianten) ----------------------------- */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ec-space-2);
  padding: var(--ec-space-3) var(--ec-space-6);
  font-size: var(--ec-text-base);
  font-weight: var(--ec-weight-semibold);
  line-height: 1;
  border-radius: var(--ec-radius-md);
  text-decoration: none;
  transition: all var(--ec-duration) var(--ec-ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ec-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 100%;
  z-index: -1;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.ec-btn:hover::before {
  transform: translateX(0);
}

/* Sweep colors per variant */
.ec-btn--primary::before {
  background: linear-gradient(135deg, #e6a200 90%, transparent 90%);
}
.ec-btn--yellow::before {
  background: linear-gradient(135deg, #e6a200 90%, transparent 90%);
}
.ec-btn--secondary::before {
  background: linear-gradient(135deg, #0d2d33 90%, transparent 90%);
}

/* Base color layer (always visible, below sweep) */
.ec-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
}
.ec-btn--primary::after,
.ec-btn--yellow::after {
  background: var(--ec-yellow);
}
.ec-btn--secondary::after {
  background: var(--ec-teal);
}

/* Primair — okergeel CTA */
.ec-btn--primary {
  background: transparent;
  color: var(--ec-teal);
  border-bottom: 2px solid var(--ec-yellow-hover);
  border-radius: var(--ec-radius-pill, 24px);
}

.ec-btn--primary:hover {
  box-shadow: var(--ec-shadow-md);
  transform: translateY(-1px);
}

.ec-btn--primary:active {
  transform: translateY(1px);
  border-bottom-width: 0;
}

/* Secundair — teal outline */
.ec-btn--secondary {
  background: transparent;
  color: #ffffff;
  border: none;
}

.ec-btn--secondary:hover {
  color: var(--ec-white);
}

/* Ghost — subtiel, voor terugknop */
.ec-btn--ghost {
  background: none;
  color: #64748b;
  text-decoration: underline;
  text-decoration-color: var(--ec-gray-400);
  text-underline-offset: 3px;
  padding: 0;
  overflow: visible;
}

.ec-btn--ghost:hover {
  color: #1a2e35;
  background: none;
  text-decoration-color: #1a2e35;
}

/* Pill — afgeronde knop (huisstijl) */
.ec-btn--pill {
  border-radius: var(--ec-radius-pill, 24px);
}

/* Geel — okergeel CTA met primair tekst */
.ec-btn--yellow {
  background: transparent;
  color: var(--ec-primary);
}

/* Outline-light — witte outline-knop op donkere achtergrond (contactblok) */
.ec-btn--outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}
/* Zelfde sweep-hover als de linker (gele) knop, maar met #00353C als overlay. */
.ec-btn--outline-light::before {
  background: linear-gradient(135deg, #00353C 90%, transparent 90%);
}
.ec-btn--outline-light::after {
  display: none;
}
.ec-btn--outline-light:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* Full width variant */
.ec-btn--full {
  width: 100%;
}

/* Knop in loading-state */
.ec-btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Knop disabled (button[disabled] of aria-disabled) */
.ec-btn:disabled,
.ec-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Button group (vorige/volgende) */
.ec-btn-group {
  display: flex;
  gap: var(--ec-space-4);
  margin-top: 32px;
}

.ec-btn-group--between {
  justify-content: space-between;
}

/* Merk-pijl als icoon in buttons/links (WP Masters Icon-arrow-EC).
   Via mask zodat de pijl currentColor volgt: donker op geel, wit op teal.
   url() is relatief aan dit CSS-bestand -> werkt los van BASE_PATH. */
.ec-btn__arrow,
.ec-link-arrow {
  display: inline-block;
  width: 15px;
  height: 12px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url('../img/icons/Icon-button-arrow-right.svg') no-repeat center / contain;
          mask: url('../img/icons/Icon-button-arrow-right.svg') no-repeat center / contain;
}


/* --- 7. Lookup-card (adresresultaat) ---------------------- */
.ec-lookup-card {
  background: #f7f8fa;
  border-left: 3px solid var(--ec-accent);
  border-radius: 0;
  padding: var(--ec-space-5);
  margin-top: var(--ec-space-4);
  animation: ec-fadeIn 300ms var(--ec-ease);
}

.ec-lookup-card__title {
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-status-green-fg);
  margin-bottom: var(--ec-space-3);
  display: flex;
  align-items: center;
  gap: var(--ec-space-2);
}

.ec-lookup-card__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--ec-space-1) var(--ec-space-4);
  font-size: var(--ec-text-sm);
}

.ec-lookup-card__grid > *:nth-child(n+3) {
  padding-top: 4px;
  border-top: 1px solid #edf0f3;
}

.ec-lookup-card__label {
  color: var(--ec-gray-600);
}

.ec-lookup-card__value {
  font-weight: var(--ec-weight-medium);
  color: var(--ec-teal);
  font-variant-numeric: tabular-nums;
}

.ec-lookup-card__edit {
  display: inline-block;
  margin-top: var(--ec-space-3);
  font-size: var(--ec-text-sm);
  color: var(--ec-blue-end);
  cursor: pointer;
}

/* --- Skip-link (escape-link) ------------------------------ */
.ec-skip-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ec-space-2);
  font-size: var(--ec-text-sm);
  color: var(--ec-blue-end);
  text-decoration: none;
  border-bottom: 1px dashed rgba(82, 163, 182, 0.4);
  cursor: pointer;
}
.ec-skip-link:hover {
  border-bottom-color: var(--ec-blue-end);
}


/* --- 8. Context-card (adres samenvatting in stap 2+) ------ */
.ec-context-card {
  background: var(--ec-gray-50);
  border: 1px solid #edf0f3;
  border-radius: var(--ec-radius-md);
  padding: var(--ec-space-3) var(--ec-space-4);
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-600);
  margin-bottom: var(--ec-space-6);
  display: flex;
  align-items: center;
  gap: var(--ec-space-3);
}

.ec-context-card__icon {
  flex-shrink: 0;
  color: var(--ec-blue-end);
}


/* --- 9. Option-cards (toekomstplannen multi-select) -------- */
.ec-option-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-3);
}

@media (min-width: 768px) {
  .ec-option-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ec-option-card {
  position: relative;
  background: var(--ec-white);
  border: 1.5px solid #e2e8ed;
  border-radius: var(--ec-radius-lg);
  padding: var(--ec-space-4) var(--ec-space-5);
  cursor: pointer;
  transition: all var(--ec-duration) var(--ec-ease);
  display: flex;
  align-items: flex-start;
  gap: var(--ec-space-3);
}

.ec-option-card:hover {
  border-color: var(--ec-blue-end);
  box-shadow: var(--ec-shadow-sm);
}

.ec-option-card--selected,
.ec-option-card:has(input:checked) {
  border-color: var(--ec-blue-end);
  background: rgba(82, 163, 182, 0.04);
  box-shadow: 0 0 0 1px var(--ec-blue-end);
}

.ec-option-card__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ec-gray-200);
  border-radius: var(--ec-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ec-duration) var(--ec-ease);
  margin-top: 1px;
  color: var(--ec-white);
  font-size: 14px;
  font-weight: var(--ec-weight-bold);
  line-height: 1;
}

.ec-option-card:has(input[type="radio"]) .ec-option-card__check {
  border-radius: var(--ec-radius-full);
}

.ec-option-card--selected .ec-option-card__check,
.ec-option-card:has(input:checked) .ec-option-card__check {
  background: var(--ec-blue-end);
  border-color: var(--ec-blue-end);
}

.ec-option-card:has(input[type="checkbox"]:checked) .ec-option-card__check::after {
  content: '\2713';
}

.ec-option-card:has(input[type="radio"]:checked) .ec-option-card__check::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--ec-radius-full);
  background: var(--ec-white);
}

.ec-option-card__body {
  flex: 1;
}

.ec-option-card__title {
  font-weight: var(--ec-weight-semibold);
  font-size: var(--ec-text-base);
  margin-bottom: var(--ec-space-1);
}

.ec-option-card__meta {
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-600);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ec-space-2);
  align-items: center;
}

/* Hidden native input voor a11y (keyboard + screen reader blijven werken) */
.ec-option-card input[type="checkbox"],
.ec-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ec-option-card:focus-within {
  outline: 2px solid var(--ec-blue-end);
  outline-offset: 2px;
}


/* --- 10. Impact-tags -------------------------------------- */
.ec-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--ec-space-1);
  font-size: var(--ec-text-xs);
  font-weight: var(--ec-weight-semibold);
  padding: 2px var(--ec-space-2);
  border-radius: var(--ec-radius-full);
  line-height: 1.4;
}

.ec-tag--high {
  background: var(--ec-status-red-bg);
  color: var(--ec-status-red-fg);
}

/* Geel — beperkt beschikbaar */
.ec-tag--warning {
  background: var(--ec-status-yellow-bg);
  color: var(--ec-status-yellow-fg);
}

/* Grijs — status onbekend */
.ec-tag--unknown {
  background: var(--ec-gray-100);
  color: var(--ec-gray-600);
}

.ec-tag--medium {
  background: var(--ec-status-orange-bg);
  color: var(--ec-status-orange-fg);
}

.ec-tag--low {
  background: var(--ec-status-green-bg);
  color: var(--ec-status-green-fg);
}

.ec-tag--variable {
  background: var(--ec-gray-100);
  color: var(--ec-gray-600);
}

/* Tag met lange tekst (congestie per richting): mag afbreken */
.ec-tag--wrap {
  white-space: normal;
  border-radius: var(--ec-radius-sm);
  text-align: left;
}

/* Congestie per richting (afname / teruglevering) */
.ec-congestie-block {
  margin-bottom: var(--ec-space-6);
}

.ec-congestie-block__title {
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-teal);
  margin-bottom: var(--ec-space-2);
}

.ec-congestie-grid {
  align-items: start;
}

/* Specificatie: de vier lagen (regionaal/TenneT x afname/teruglevering)
   onder de hoofdstatus, iets kleiner en ingesprongen. */
.ec-congestie-spec {
  margin-top: var(--ec-space-3);
  padding-top: var(--ec-space-2);
  border-top: 1px solid #edf0f3;
}

.ec-congestie-spec__title {
  font-size: var(--ec-text-xs);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--ec-space-1);
}

.ec-congestie-spec__grid {
  align-items: start;
  font-size: var(--ec-text-xs);
}

.ec-congestie-spec__grid > *:nth-child(n+3) {
  border-top: 0;
  padding-top: 2px;
}


/* --- 11. Status-banners (4 kleuren) ----------------------- */
.ec-status-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--ec-space-4);
  padding: var(--ec-space-5);
  border-radius: var(--ec-radius-lg);
  margin-bottom: var(--ec-space-6);
}

.ec-status-banner--green {
  background: var(--ec-status-green-bg);
  border-left: 4px solid var(--ec-status-green-fg);
}

.ec-status-banner--yellow {
  background: var(--ec-status-yellow-bg);
  border-left: 4px solid var(--ec-status-yellow-fg);
}

.ec-status-banner--orange {
  background: var(--ec-status-orange-bg);
  border-left: 4px solid var(--ec-status-orange-fg);
}

.ec-status-banner--red {
  background: var(--ec-status-red-bg);
  border-left: 4px solid var(--ec-status-red-fg);
}

.ec-status-banner__icon {
  flex-shrink: 0;
  font-size: var(--ec-text-xl);
}

.ec-status-banner__title {
  font-weight: var(--ec-weight-bold);
  margin-bottom: var(--ec-space-1);
}

.ec-status-banner__text {
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-800);
  line-height: var(--ec-leading-relaxed);
}


/* --- 12. Metric-cards ------------------------------------- */
.ec-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--ec-space-4);
  margin-bottom: var(--ec-space-6);
}

.ec-metric {
  background: var(--ec-white);
  border: 1px solid var(--ec-gray-100);
  border-radius: var(--ec-radius-lg);
  padding: var(--ec-space-4);
  text-align: center;
}

.ec-metric__value {
  font-size: var(--ec-text-2xl);
  font-weight: var(--ec-weight-bold);
  color: var(--ec-teal);
  line-height: 1;
  margin-bottom: var(--ec-space-1);
  font-variant-numeric: tabular-nums;
}

.ec-metric__label {
  font-size: var(--ec-text-xs);
  color: var(--ec-gray-600);
  letter-spacing: 0;
}


/* --- 13. GTV-risico-meter --------------------------------- */
.ec-risk-meter {
  margin-bottom: var(--ec-space-6);
}

.ec-risk-meter__label {
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-semibold);
  margin-bottom: var(--ec-space-3);
}

.ec-risk-meter__bar {
  position: relative;
  height: 16px;
  border-radius: var(--ec-radius-full);
  background: linear-gradient(90deg,
    var(--ec-status-green-fg) 0%,
    var(--ec-yellow) 50%,
    var(--ec-danger) 100%
  );
  overflow: visible;
}

.ec-risk-meter__marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 24px;
  background: var(--ec-teal);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: var(--ec-shadow-md);
}

.ec-risk-meter__thresholds {
  display: flex;
  justify-content: space-between;
  margin-top: var(--ec-space-2);
  font-size: var(--ec-text-xs);
  color: var(--ec-gray-600);
}


/* --- 14. Solution-cards ----------------------------------- */
.ec-solution-cards {
  display: grid;
  gap: var(--ec-space-4);
  margin-bottom: var(--ec-space-6);
}

.ec-solution-card {
  background: linear-gradient(135deg, var(--ec-mint) 0%, #D6F2DC 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: var(--ec-radius-lg);
  padding: var(--ec-space-5);
  transition: box-shadow var(--ec-duration) var(--ec-ease);
}

.ec-solution-card:hover {
  box-shadow: var(--ec-shadow-md);
}

.ec-solution-card__icon {
  font-size: var(--ec-text-2xl);
  margin-bottom: var(--ec-space-3);
}

.ec-solution-card__title {
  font-size: var(--ec-text-lg);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-green-deep);
  margin-bottom: var(--ec-space-2);
}

.ec-solution-card__desc {
  font-size: var(--ec-text-sm);
  color: #2c4a3e;
  line-height: var(--ec-leading-relaxed);
}


/* --- 15. Flex-E box --------------------------------------- */
.ec-flex-e-box {
  background: var(--ec-gradient-blue);
  border-radius: var(--ec-radius-xl);
  padding: var(--ec-space-6);
  color: var(--ec-teal);
  margin-bottom: var(--ec-space-6);
}

.ec-flex-e-box__title {
  font-size: var(--ec-text-lg);
  font-weight: var(--ec-weight-bold);
  margin-bottom: var(--ec-space-2);
}

.ec-flex-e-box__text {
  font-size: var(--ec-text-sm);
  line-height: var(--ec-leading-relaxed);
  margin-bottom: var(--ec-space-4);
  opacity: 0.9;
}


/* --- 16. CTA-toggle (afspraak/offerte) -------------------- */
.ec-cta-toggle {
  display: flex;
  background: var(--ec-gray-100);
  border-radius: var(--ec-radius-md);
  padding: 3px;
  margin-bottom: var(--ec-space-6);
}

.ec-cta-toggle__option {
  flex: 1;
  padding: var(--ec-space-3);
  text-align: center;
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-medium);
  border-radius: calc(var(--ec-radius-md) - 2px);
  color: var(--ec-gray-600);
  cursor: pointer;
  transition: all var(--ec-duration) var(--ec-ease);
}

.ec-cta-toggle__option--active {
  background: var(--ec-white);
  color: var(--ec-teal);
  font-weight: var(--ec-weight-semibold);
  box-shadow: var(--ec-shadow-sm);
}


/* --- 17. Samenvatting-card (sidebar stap 5) --------------- */
.ec-summary-card {
  background: var(--ec-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: var(--ec-radius-lg);
  padding: var(--ec-space-5);
  position: sticky;
  top: var(--ec-space-4);
}

.ec-summary-card__title {
  font-size: var(--ec-text-base);
  font-weight: var(--ec-weight-bold);
  color: var(--ec-teal);
  letter-spacing: 0;
  padding-bottom: var(--ec-space-3);
  border-bottom: 1px solid #edf0f3;
  margin-bottom: var(--ec-space-4);
}

.ec-summary-card__row {
  display: flex;
  justify-content: space-between;
  gap: var(--ec-space-2);
  font-size: var(--ec-text-sm);
  padding: var(--ec-space-2) 0;
  border-bottom: 1px solid #edf0f3;
}

.ec-summary-card__row:last-child {
  border-bottom: none;
}

.ec-summary-card__key {
  color: var(--ec-gray-600);
}

.ec-summary-card__val {
  font-weight: var(--ec-weight-medium);
  color: var(--ec-teal);
}


/* --- 18. Trust-indicatoren + disclaimer ------------------- */
.ec-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ec-space-4);
  margin-bottom: var(--ec-space-4);
}

.ec-trust__item {
  display: flex;
  align-items: center;
  gap: var(--ec-space-2);
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-600);
}

.ec-trust__check {
  width: 16px;
  height: auto;
  flex-shrink: 0;
}

.ec-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  line-height: var(--ec-leading-relaxed);
  padding-top: 16px;
  border-top: 1px solid #edf0f3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ec-disclaimer::before {
  content: "🔒";
  font-size: 14px;
}


/* --- 19. Responsive layout helpers ------------------------ */
.ec-wizard-layout {
  max-width: 560px;
  margin-inline: auto;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 32px 24px;
  border-radius: 3px;
}

.ec-wizard-layout .ec-btn--primary {
  max-width: 260px;
  margin: 32px auto 24px;
  display: block;
}

.ec-result-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-8);
}

@media (min-width: 768px) {
  .ec-result-layout {
    grid-template-columns: 1fr 300px;
  }
}


/* --- 19b. Small-screen overrides (≤480px) --- */
@media (max-width: 480px) {
  /* CTA-toggle: tweede tab "Offerte onderzoek" mag wrappen i.p.v. afgeknipt */
  .ec-cta-toggle__option {
    font-size: var(--ec-text-xs);
    padding: var(--ec-space-2) var(--ec-space-3);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  /* Button-group: knoppen stapelen, primaire CTA visueel bovenaan */
  .ec-btn-group {
    flex-direction: column;
    gap: var(--ec-space-2);
  }

  .ec-btn-group .ec-btn {
    width: 100%;
  }

  .ec-btn-group .ec-btn--primary {
    order: -1;
  }

  /* Trust-indicatoren: onder elkaar zodat tekst niet wordt afgeknipt */
  .ec-trust {
    flex-direction: column;
    gap: var(--ec-space-2);
  }

  .ec-trust__item {
    width: 100%;
  }
}


/* --- Landing page tiles ----------------------------------- */
.ec-tile {
  background: linear-gradient(135deg, var(--ec-card-gradient-start), var(--ec-card-gradient-end));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: var(--ec-radius-xl);
  padding: var(--ec-space-8);
  text-align: center;
  transition: all var(--ec-duration) var(--ec-ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ec-space-4);
}

.ec-tile:hover {
  box-shadow: var(--ec-shadow-lg);
  transform: translateY(-2px);
}

.ec-tile--active {
  border-color: var(--ec-blue-end);
  cursor: pointer;
}

.ec-tile--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ec-tile__icon {
  font-size: 2.5rem;
}

.ec-tile__title {
  font-size: var(--ec-text-lg);
  font-weight: var(--ec-weight-bold);
  color: var(--ec-teal);
}

.ec-tile__desc {
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-600);
  line-height: var(--ec-leading-relaxed);
}

.ec-tile__badge {
  display: inline-block;
  font-size: var(--ec-text-xs);
  font-weight: var(--ec-weight-semibold);
  padding: var(--ec-space-1) var(--ec-space-3);
  border-radius: var(--ec-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ec-tile__badge--active {
  background: var(--ec-status-green-bg);
  color: var(--ec-status-green-fg);
}

.ec-tile__badge--soon {
  background: var(--ec-gray-100);
  color: var(--ec-gray-400);
}


/* --- Footer ----------------------------------------------- */
.ec-footer {
  background: var(--ec-teal);
  padding: var(--ec-space-8) 0;
  margin-top: var(--ec-space-16);
}

.ec-footer__inner {
  max-width: var(--ec-max-width);
  margin-inline: auto;
  padding-inline: var(--ec-gutter);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--ec-text-sm);
}

.ec-footer__inner a {
  color: var(--ec-white);
}

.ec-footer__logo-img {
  display: block;
  margin: 0 auto;
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}


/* --- Solution-card tag ------------------------------------ */
.ec-solution-card__tag {
  display: inline-block;
  font-size: var(--ec-text-xs);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-blue-end);
  background: rgba(82, 163, 182, 0.08);
  padding: var(--ec-space-1) var(--ec-space-3);
  border-radius: var(--ec-radius-full);
  margin-top: var(--ec-space-3);
}

/* --- Risk-meter percentage label -------------------------- */
.ec-risk-meter__percent {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: var(--ec-text-xs);
  font-weight: var(--ec-weight-bold);
  color: var(--ec-teal);
  white-space: nowrap;
}

/* --- Summary-card sections -------------------------------- */
.ec-summary-card__section {
  margin-bottom: var(--ec-space-4);
}

.ec-summary-card__section:last-child {
  margin-bottom: 0;
}

.ec-summary-card__section-label {
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-green-deep);
  letter-spacing: 0;
  margin-bottom: var(--ec-space-2);
  padding-bottom: var(--ec-space-1);
  border-bottom: 1px solid var(--ec-gray-100);
}

/* --- Result-mini (compact advies in sidebar) -------------- */
.ec-result-mini {
  background: var(--ec-gray-50);
  border-radius: var(--ec-radius-md);
  padding: var(--ec-space-3) var(--ec-space-4);
  margin-bottom: var(--ec-space-4);
}

.ec-result-mini__title {
  font-size: var(--ec-text-xs);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-teal);
  margin-bottom: var(--ec-space-2);
}

.ec-result-mini__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ec-space-1);
}

/* --- Summary-strip (mobile-only) -------------------------- */
.ec-summary-strip {
  display: none;
  background: var(--ec-white);
  border: 1px solid var(--ec-gray-100);
  border-radius: var(--ec-radius-md);
  padding: var(--ec-space-3) var(--ec-space-4);
  margin-bottom: var(--ec-space-6);
  font-size: var(--ec-text-sm);
}

.ec-summary-strip__row {
  display: flex;
  justify-content: space-between;
  padding: var(--ec-space-1) 0;
}

.ec-summary-strip__key {
  color: var(--ec-gray-600);
}

.ec-summary-strip__val {
  font-weight: var(--ec-weight-medium);
  color: var(--ec-teal);
}

@media (max-width: 767px) {
  .ec-summary-strip {
    display: block;
  }
}


/* --- Landing hero & steps --------------------------------- */
.ec-landing-hero {
  padding: var(--ec-space-16) var(--ec-gutter);
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
}

.ec-landing-hero__title {
  font-size: var(--ec-text-2xl);
  font-weight: var(--ec-weight-bold);
  color: var(--ec-teal);
  margin-bottom: var(--ec-space-2);
}

.ec-landing-hero__desc {
  font-size: var(--ec-text-base);
  color: var(--ec-gray-600);
  line-height: var(--ec-leading-relaxed);
  margin-bottom: var(--ec-space-8);
}

.ec-landing-hero__hint {
  font-size: var(--ec-text-xs);
  color: var(--ec-gray-400);
  margin-top: var(--ec-space-4);
}

@media (max-width: 480px) {
  .ec-landing-hero {
    padding-block: var(--ec-space-12);
  }
}

.ec-steps { padding: 2rem 0; }
.ec-steps__label { text-align: center; font-size: 13px; letter-spacing: 2px; color: var(--ec-teal-muted); font-weight: 500; margin: 0 0 1.5rem; }
.ec-steps__grid {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.ec-steps__card {
  background: linear-gradient(135deg, var(--ec-card-gradient-start), var(--ec-card-gradient-end));
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
  width: 240px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.ec-steps__number { position: absolute; right: 12px; top: auto; bottom: 12px; font-size: 80px; font-weight: 500; color: rgba(var(--ec-teal-rgb), 0.07); line-height: 1; }
.ec-steps__title { font-size: 16px; font-weight: 600; color: var(--ec-teal); margin: 0 0 8px; position: relative; }
.ec-steps__text { font-size: 13px; color: var(--ec-teal-soft); margin: 0; line-height: 1.6; position: relative; }
@media (max-width: 600px) {
  .ec-steps__grid { flex-wrap: wrap; }
  .ec-steps__card { width: 100%; min-height: auto; }
  .ec-steps { padding-inline: 8%; }
}


/* --- Keyframes -------------------------------------------- */
@keyframes ec-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ec-slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ec-animate-in {
  animation: ec-fadeIn 400ms var(--ec-ease) both;
}

/* Disclaimer banner */
.ec-disclaimer--banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--ec-gray-50, #f8f9fa);
    border: 1px solid var(--ec-gray-200, #e9ecef);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--ec-gray-600, #6c757d);
    margin-bottom: 1.5rem;
}
.ec-disclaimer--banner span {
    flex-shrink: 0;
}


/* --- Skip-link (stap 2) ----------------------------------- */
.ec-skip-link-wrapper {
  text-align: center;
  margin-top: var(--ec-space-5);
}

.ec-skip-link {
  display: inline-block;
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ec-duration) var(--ec-ease);
}

.ec-skip-link:hover,
.ec-skip-link:focus {
  color: var(--ec-blue-end);
}


/* --- Info-banner (stap 4 — beperkt advies bij skip) ------- */
.ec-info-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--ec-space-4);
  padding: var(--ec-space-5);
  border-radius: var(--ec-radius-lg);
  margin-bottom: var(--ec-space-6);
}

.ec-info-banner--skipped {
  background: var(--ec-status-yellow-bg);
  border-left: 4px solid var(--ec-status-yellow-fg);
}

.ec-info-banner__icon {
  flex-shrink: 0;
  font-size: var(--ec-text-xl);
}

.ec-info-banner__body {
  flex: 1;
  font-size: var(--ec-text-sm);
  color: var(--ec-gray-800);
  line-height: var(--ec-leading-relaxed);
}

.ec-info-banner__body strong {
  display: block;
  margin-bottom: var(--ec-space-1);
  font-weight: var(--ec-weight-bold);
  font-size: var(--ec-text-base);
}

.ec-info-banner__body p {
  margin: var(--ec-space-2) 0 0;
}

.ec-info-banner__link {
  font-weight: var(--ec-weight-bold);
  color: var(--ec-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ec-duration) var(--ec-ease);
}

.ec-info-banner__link:hover,
.ec-info-banner__link:focus {
  color: var(--ec-blue-end);
}


/* --- v3: Action-bar (PDF + ander adres) --- */
.ec-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ec-space-3) var(--ec-space-4);
  background: var(--ec-info-bg);
  border: 1px solid rgba(43, 188, 179, 0.2);
  border-radius: var(--ec-radius-md);
  margin-bottom: var(--ec-space-4);
  gap: var(--ec-space-3);
  flex-wrap: wrap;
}
.ec-action-bar__item {
  display: flex;
  align-items: center;
  gap: var(--ec-space-2);
  font-size: var(--ec-text-sm);
  color: var(--ec-teal);
  cursor: pointer;
  text-decoration: none;
  font-weight: var(--ec-weight-medium);
}
.ec-action-bar__item:hover {
  color: var(--ec-accent);
}
.ec-action-bar__badge {
  font-size: 11px;
  background: #e0f2fe;
  color: #0c447c;
  padding: 1px 8px;
  border-radius: var(--ec-radius-full);
}

/* --- v3: Info-callout (15-30% reductie) --- */
.ec-info-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--ec-space-3);
  padding: var(--ec-space-3) var(--ec-space-4);
  background: var(--ec-info-bg);
  border: 1px solid rgba(43, 188, 179, 0.2);
  border-radius: var(--ec-radius-md);
  margin-bottom: var(--ec-space-4);
}
.ec-info-callout__title {
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-semibold);
  color: var(--ec-teal);
  margin-bottom: 2px;
}
.ec-info-callout__text {
  font-size: var(--ec-text-sm);
  color: var(--ec-teal-soft);
  line-height: var(--ec-leading-relaxed);
}

/* --- v3: Regulation-link --- */
.ec-regulation-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ec-space-3) var(--ec-space-4);
  background: var(--ec-white);
  border: 1px solid var(--ec-gray-200);
  border-radius: var(--ec-radius-md);
  margin-bottom: var(--ec-space-4);
  gap: var(--ec-space-3);
}
.ec-regulation-link__content {
  display: flex;
  align-items: center;
  gap: var(--ec-space-3);
}
.ec-regulation-link__title {
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-medium);
  color: var(--ec-teal);
}
.ec-regulation-link__subtitle {
  font-size: var(--ec-text-xs);
  color: var(--ec-gray-600);
}
.ec-regulation-link__action {
  font-size: var(--ec-text-xs);
  color: #003941;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ec-regulation-link__action:hover {
  text-decoration: underline;
}

/* --- v3: Advisor-photos — vierkante foto's met gradient-achtergrond (WP Masters) --- */
.ec-advisor-photos {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--ec-space-4);
  margin-bottom: var(--ec-space-6);
}
.ec-advisor-photos__item {
  text-align: left;
  /* Vaste breedte = fotobreedte → gelijke padding/uitlijning tussen items,
     en lange namen ("Ruurd van der Meer") vallen netjes onder de foto i.p.v.
     het item breder te maken. Robuust, geen hardcoded <br>. */
  width: 92px;
}
.ec-advisor-photos__avatar {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  background: var(--ec-gradient-green);
  margin: 0 0 var(--ec-space-2);
  overflow: hidden;
}
.ec-advisor-photos__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-advisor-photos__name {
  font-size: var(--ec-text-sm);
  font-weight: var(--ec-weight-semibold);
  color: #fff;
  line-height: 1.25;
}
.ec-advisor-photos__role {
  font-size: var(--ec-text-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* --- v3: CTA-section (wrapper) — donker-teal contactblok (WP Masters) --- */
.ec-cta-section {
  background: var(--ec-teal);
  border-radius: var(--ec-radius-lg);
  padding: var(--ec-space-8);
  text-align: left;
  color: #fff;
  margin-bottom: var(--ec-space-6);
}
.ec-cta-section__title {
  font-size: var(--ec-text-2xl);
  font-weight: var(--ec-weight-bold);
  color: #fff;
  line-height: var(--ec-leading-tight);
  margin-bottom: var(--ec-space-2);
}
.ec-cta-section__subtitle {
  font-size: var(--ec-text-base);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--ec-space-6);
}
.ec-cta-section__buttons {
  display: flex;
  justify-content: flex-start;
  gap: var(--ec-space-3);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .ec-cta-section__title {
    font-size: var(--ec-text-3xl);
  }
}

@media (max-width: 480px) {
  .ec-action-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .ec-regulation-link {
    flex-direction: column;
    align-items: flex-start;
  }
  .ec-regulation-link__action {
    margin-left: 30px;
  }
  .ec-advisor-photos {
    gap: var(--ec-space-3);
  }
  .ec-advisor-photos__item {
    width: 80px;
  }
  .ec-advisor-photos__avatar {
    width: 80px;
    height: 80px;
  }
  .ec-cta-section__buttons {
    flex-direction: column;
  }
  .ec-cta-section__buttons .ec-btn {
    width: 100%;
    justify-content: center;
  }
}

.ec-services {
  background: #f2ffeb;
  border-top: 3px solid #2bbcb3;
  padding: 28px;
  margin-top: 24px;
}

.ec-services__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #143840;
  margin: 0 0 12px;
}

.ec-services__intro {
  font-size: 0.9375rem;
  color: #2c3e3e;
  line-height: 1.7;
  margin: 0 0 20px;
}

.ec-services__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ec-services__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: #2c3e3e;
  line-height: 1.5;
}

.ec-services__item::before {
  content: "●";
  color: #2bbcb3;
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 3px;
}

.ec-services__highlight {
  color: #0f6e56;
  font-weight: 600;
}

.ec-services__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ec-services__cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffbc42;
  color: #143840;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
}

.ec-services__cta-email {
  color: #143840;
  text-decoration: none;
  font-size: 0.9375rem;
}
