.keuzehulp-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 40px 60px;
  background-color: #14171d;
  background-image:
    radial-gradient(ellipse 700px 500px at 10% 15%, rgba(180, 45, 40, 0.45), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 70%, rgba(70, 90, 130, 0.35), transparent 65%);
  font-family: "Inter", sans-serif;
  color: #fff;
}

/* Step transition on the inner .keuzehulp-stage only — the card and its
   background stay still. (Vorige/Volgende, and auto-advance to a result) — a
   small swipe + fade, not applied to the in-place re-render that happens
   on every option click (that one just updates the .is-selected state on
   the same step, no page change, so it stays instant). overflow:hidden
   above clips the horizontal motion within the card's own rounded corners
   instead of it spilling out or causing a scrollbar. */
@keyframes keuzehulp-exit-forward {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

@keyframes keuzehulp-exit-backward {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(24px); }
}

@keyframes keuzehulp-enter-forward {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes keuzehulp-enter-backward {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.keuzehulp-stage.is-exiting-forward {
  animation: keuzehulp-exit-forward 0.16s ease-in forwards;
}

.keuzehulp-stage.is-exiting-backward {
  animation: keuzehulp-exit-backward 0.16s ease-in forwards;
}

.keuzehulp-stage.is-entering-forward {
  animation: keuzehulp-enter-forward 0.22s ease-out;
}

.keuzehulp-stage.is-entering-backward {
  animation: keuzehulp-enter-backward 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .keuzehulp-stage.is-exiting-forward,
  .keuzehulp-stage.is-exiting-backward,
  .keuzehulp-stage.is-entering-forward,
  .keuzehulp-stage.is-entering-backward {
    animation: none;
  }
}

.keuzehulp-eyebrow {
  display: block;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d93e0;
  margin-bottom: 8px;
}

.keuzehulp-card .keuzehulp-heading {
  text-align: center;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  margin: 0 0 32px;
}

/* Figma (keuzehulp, 2026-10-07): everything sits in one 756px column —
   step boxes spread edge to edge with a line between, answer boxes in
   Primary/Blue (#7593E6) on a light blue tint, large nav buttons. */
:root {
  --kh-blue: #7593e6;
}

/* step indicator */
.keuzehulp-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  max-width: 780px;
  margin: 0 auto 64px;
}

.keuzehulp-step-dot {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(117, 147, 230, 0.3);
  background: rgba(117, 147, 230, 0.06);
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
  font-weight: 400;
}

.keuzehulp-step-dot.is-active {
  background: rgba(117, 147, 230, 0.25);
  border-color: var(--kh-blue);
  color: #dfe6fb;
}

.keuzehulp-step-line {
  flex: 1;
  height: 1px;
  background: rgba(117, 147, 230, 0.6);
}

/* question */
.keuzehulp-card .keuzehulp-question {
  text-align: center;
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  margin: 0 0 24px;
}

.keuzehulp-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 756px;
  margin: 0 auto 64px;
}

/* .keuzehulp-card qualifier on every button rule below isn't just for
   scoping -- it's load-bearing. The options and nav buttons render as real
   <button type="button"> elements, and a site-wide reset stylesheet
   targets [type=button]/[type=submit]/button directly. A bare .keuzehulp-*
   class has the same specificity (one class == one attribute selector) as
   that reset, so whichever stylesheet happens to load later wins the tie
   -- confirmed live, it was the reset (buttons rendering with its pink
   #cc3366 border/3px radius/8px-16px padding instead of any of these
   rules). Two classes beats it regardless of load order, no !important
   needed -- same fix already used for kennisbank's admin grid and the
   step-selector image ratio elsewhere in this repo. */
.keuzehulp-card .keuzehulp-option,
.keuzehulp-card .keuzehulp-option:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 70px;
  padding: 20px 28px;
  border-radius: 12px;
  border: 1px solid rgba(117, 147, 230, 0.6);
  background: rgba(117, 147, 230, 0.18);
  color: var(--kh-blue);
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* The site-wide button reset keeps button text on one line; answers must
   wrap on narrow phones instead of pushing the dot out of the box. */
.keuzehulp-card .keuzehulp-option {
  white-space: normal;
}

.keuzehulp-option > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.keuzehulp-card .keuzehulp-option:hover {
  border-color: var(--kh-blue);
  background: rgba(117, 147, 230, 0.26);
  color: var(--kh-blue);
}

.keuzehulp-card .keuzehulp-option.is-selected {
  border-color: var(--kh-blue);
  background: rgba(117, 147, 230, 0.3);
  color: var(--kh-blue);
}

.keuzehulp-option-dot {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(117, 147, 230, 0.45);
  background: #25272d;
}

/* Selected: plain blue dot with a soft glow. */
.keuzehulp-option.is-selected .keuzehulp-option-dot {
  border-color: var(--kh-blue);
  background: var(--kh-blue);
  box-shadow: 0 0 8px rgba(117, 147, 230, 0.6);
}

/* nav buttons */
.keuzehulp-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 702px;
  margin: 0 auto;
}

.keuzehulp-card .keuzehulp-btn,
.keuzehulp-card .keuzehulp-btn:focus {
  flex: 1;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 10px;
  border: 1px solid rgba(117, 147, 230, 0.6);
  background: rgba(117, 147, 230, 0.2);
  color: var(--kh-blue);
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.keuzehulp-card .keuzehulp-btn:hover {
  border-color: var(--kh-blue);
  background: rgba(117, 147, 230, 0.3);
  color: var(--kh-blue);
}

.keuzehulp-card .keuzehulp-btn:disabled {
  border-color: rgba(117, 147, 230, 0.25);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(117, 147, 230, 0.35);
  cursor: default;
  pointer-events: none;
}

/* result panel */
.keuzehulp-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
}

.keuzehulp-card .keuzehulp-result-title {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  margin: 0 0 16px;
}

.keuzehulp-result-body {
  font-size: 20px;
  line-height: 30px;
  color: #fff;
  margin: 0;
}

.keuzehulp-result-extra {
  font-size: 16px;
  line-height: 1.6;
  color: #a3a9c2;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Figma end page: photo with a 1px blue frame and rounded corners, about 13:9.
   Two classes so the site-wide img reset (border-radius 0) cannot win. */
.keuzehulp-card .keuzehulp-result-image {
  width: 100%;
  aspect-ratio: 13 / 9;
  object-fit: cover;
  border: 1px solid var(--kh-blue);
  border-radius: 10px;
  display: block;
  background: #000;
}

.keuzehulp-result-cta-wrap {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}

.keuzehulp-card .keuzehulp-result-cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(117, 147, 230, 0.7);
  background: rgba(117, 147, 230, 0.25);
  color: var(--blue, #719bf2);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  transition: background 0.2s ease;
}

/* Vorige / Opnieuw beginnen under the result. */
.keuzehulp-nav--result {
  margin-top: 32px;
}

@media (max-width: 640px) {
  .keuzehulp-card {
    padding: 28px 20px;
  }

  .keuzehulp-card .keuzehulp-heading,
  .keuzehulp-card .keuzehulp-result-title {
    font-size: 28px;
    line-height: 36px;
  }

  .keuzehulp-result-body {
    font-size: 18px;
    line-height: 28px;
  }

  .keuzehulp-card .keuzehulp-question {
    font-size: 26px;
    line-height: 34px;
  }

  .keuzehulp-steps {
    margin-bottom: 40px;
  }

  .keuzehulp-step-dot {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .keuzehulp-options {
    gap: 12px;
    margin-bottom: 40px;
  }

  .keuzehulp-card .keuzehulp-option,
  .keuzehulp-card .keuzehulp-option:focus,
  .keuzehulp-card .keuzehulp-option:hover,
  .keuzehulp-card .keuzehulp-option.is-selected {
    min-height: 0;
    padding: 14px 16px;
    font-size: 17px;
    line-height: 24px;
  }

  .keuzehulp-nav {
    gap: 12px;
  }

  .keuzehulp-card .keuzehulp-btn,
  .keuzehulp-card .keuzehulp-btn:focus,
  .keuzehulp-card .keuzehulp-btn:hover,
  .keuzehulp-card .keuzehulp-btn:disabled {
    font-size: 17px;
    padding: 8px 12px;
  }

  .keuzehulp-result {
    grid-template-columns: 1fr;
  }

  .keuzehulp-result-image {
    order: -1;
  }
}

/* Result CTA ("Ontdek flandriAir"): 25px above it, and a hover that stays
   readable on the dark card — the site-wide a:hover colour turned the text
   dark. Two classes + :focus so that rule can't win. */
.keuzehulp-card .keuzehulp-result-cta-wrap {
  margin-top: 25px;
}

.keuzehulp-card .keuzehulp-result-cta:hover,
.keuzehulp-card .keuzehulp-result-cta:focus {
  border-color: var(--kh-blue);
  background: rgba(117, 147, 230, 0.4);
  color: #fff;
}
