/* Burgerschap recommender - self-contained styles.
 * Adapted and trimmed from Geschmackstest-v2/styles.css. No external CSS/CDN,
 * no custom web fonts (system sans-serif stack). Only rules that affect this
 * page are kept. Icons and images are referenced relative to this folder.
 */

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  color: #1a1a1a;
}

a {
  color: #0a7d6e;
}

em,
i {
  font-style: normal;
}

/* Layout containers */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* Shared content inset: every section (hero, intro, quiz, lead form, result)
 * lines up to the same left/right edge via this single horizontal padding,
 * instead of ad-hoc per-section margins. */
.content {
  position: relative;
  padding: 1.5rem;
}

/* --- Hero header --- */
#burgerschaplogo {
  width: 100%;
  margin: 0 auto 2.5rem;
}

#burgerschaplogo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Intro screen --- */
.intro {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  margin: 0 0 2rem;
}

.intro h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.3;
}

.intro-lead {
  margin: 0 0 2rem;
  max-width: 46rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* --- Shared primary button --- */
.primary-button {
  background: #0a7d6e;
  color: #fff;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: bold;
  border-radius: 50rem;
  padding: 0.85rem 2rem;
  transition: background 0.25s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #0c9683;
  outline: none;
}

.primary-button:focus-visible {
  outline: 3px solid #5fd0bd;
  outline-offset: 2px;
}

/* --- Quiz --- */
.binary-quiz {
  display: none;
}

.binary-quiz.current {
  display: block;
  margin-top: 0;
}

.binary-quiz.complete {
  display: none;
}

.question-title {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
  /* Reserve space with a min-height (not a fixed height + overflow hidden) so
   * the choice blocks below stay anchored for one- and two-line titles, while
   * a longer title can still grow instead of being clipped. */
  min-height: 3.6em;
  margin-bottom: 1.5rem;
}

.question-title h3 {
  display: inline-block;
  text-align: left;
  margin: 0;
  width: 75%;
  line-height: 1.4;
  font-size: 1.15rem;
}

.sb-progress {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  right: 0;
  width: 20%;
  height: 6px;
  border: 0;
  background-color: rgb(224, 244, 240);
  border-radius: 3px;
}

.sb-progress::-webkit-progress-bar {
  background-color: rgb(224, 244, 240);
  border-radius: 3px;
}

.sb-progress::-webkit-progress-value {
  background-color: #0a7d6e;
  border-radius: 3px;
}

.sb-progress::-moz-progress-bar {
  background-color: #0a7d6e;
  border-radius: 3px;
}

.quiz {
  padding: 0;
  margin: 0;
  list-style: none;
}

.quiz > li {
  position: relative;
  display: none;
}

.quiz > li.current {
  display: block;
}

.question {
  text-align: center;
}

.question::after {
  clear: both;
  content: "";
  display: table;
}

.binary-choice {
  display: flex;
  flex-flow: row nowrap;
  gap: 1.5rem;
  position: relative;
  max-width: 100%;
  margin: 0 0 2.5rem;
  padding: 0;
}

.binary-choice > li {
  position: relative;
  z-index: 2;
  display: inline-block;
  vertical-align: top;
  flex: 1 1 0;
  height: auto;
  border-radius: 5px;
  list-style: none;
  background: #0a7d6e;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* The interactive choice is a <button> wrapping the image */
.choice-button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 5px;
}

.choice-button img {
  display: block;
  width: 100%;
  /* Reserve a consistent 4:3 tile ratio so both choice blocks are always equal
   * height and take their full height BEFORE the image loads (no
   * collapse-then-grow). object-fit keeps images from stretching if their own
   * intrinsic ratio differs from the tile. */
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.binary-choice > li:hover,
.choice-button:focus-visible {
  background: #cdeee7;
  outline: none;
}

.choice-button:focus-visible {
  outline: 3px solid #0a7d6e;
  outline-offset: 3px;
}

/* Visible focus ring for the headings that receive programmatic focus at each
 * step transition (question titles, the lead heading, and the result heading),
 * reusing the same ring as the choice buttons above. */
.question h3:focus-visible,
#leadHeading:focus-visible,
#result-heading:focus-visible {
  outline: 3px solid #0a7d6e;
  outline-offset: 3px;
}

.binary-choice > li.active {
  background: #cdeee7;
}

/* Thumbs-up overlay shown on hover / activation */
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.4s ease;
  background-color: #0a7d6e;
  pointer-events: none;
  border-radius: 5px;
}

.overlay .icon {
  color: #fff;
  height: 5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.binary-choice > li:hover .overlay {
  opacity: 0.9;
}

.icon.anim {
  animation-name: thumbsup;
  animation-duration: 0.25s;
}

@keyframes thumbsup {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(55deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

/* --- Lead-capture (soft gate) --- */
.lead-capture {
  display: none;
  margin: 0 0 2rem;
  max-width: 40rem;
}

.lead-capture.current {
  display: block;
}

.lead-capture.complete {
  display: none;
}

.lead-capture h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  line-height: 1.3;
}

.lead-lead {
  margin: 0 0 2rem;
  line-height: 1.6;
}

.lead-form {
  display: flex;
  flex-flow: column nowrap;
  gap: 1.5rem;
}

/* Voornaam + Achternaam sit side by side on wider screens and stack on mobile
 * (see the max-width media query below). Each still uses the .form-field
 * label/input pattern. */
.form-row {
  display: flex;
  flex-flow: row nowrap;
  gap: 1.5rem;
}

.form-row .form-field {
  flex: 1 1 0;
}

.form-field {
  display: flex;
  flex-flow: column nowrap;
  gap: 0.5rem;
}

.form-field label {
  font-weight: bold;
}

.form-field input {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b3b3b3;
  border-radius: 6px;
}

.form-field input:focus-visible {
  outline: 3px solid #5fd0bd;
  outline-offset: 1px;
  border-color: #0a7d6e;
}

.lead-actions {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* The skip control is a subtle text link, not a prominent button. */
.skip-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  color: #55635f;
  text-decoration: underline;
}

.skip-link:hover,
.skip-link:focus-visible {
  color: #0a7d6e;
}

/* --- Result --- */
.result {
  display: none;
  position: relative;
}

.result.current {
  display: block;
}

/* The result heading now sits inside the .result-live aria-live wrapper, so this
 * uses a descendant combinator (not a direct child) to keep styling it. */
.result h2 {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.productVisual {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  text-align: left;
}

.productVisual .col {
  flex: 1 1 320px;
  max-width: 480px;
}

/* The cover is a real 450x250 (9:5) image: max-width it and keep its ratio via
 * height:auto so it is never stretched or forced to fill the column. */
.productVisual img.visual {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 8px;
}

/* Recommended + other method percentage lines. Each line is a real <button>
 * (see .match-line--button) so the user can click a method to display its
 * detail. This NEVER changes the computed winner or the percentages. */
.match-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0;
}

/* The winner line is the hero of the result: markedly larger and bolder than
 * the alternative line, so it reads as the primary answer even when an
 * alternative is being displayed. */
.match-line--primary {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0a7d6e;
  margin: 0 0 0.5rem;
}

.match-line--primary strong {
  font-size: 1.9rem;
  font-weight: 800;
}

.match-pct {
  color: #0a7d6e;
  font-weight: bold;
  white-space: nowrap;
}

/* The winner's "% match" rides along at the larger size but slightly lighter so
 * the method name stays dominant. */
.match-line--primary .match-pct {
  font-size: 1.15rem;
}

.other-methods {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

.other-methods li {
  margin: 0.5rem 0;
}

.match-line--secondary {
  color: #55635f;
  font-size: 1rem;
}

.match-pct--secondary {
  color: #55635f;
}

/* Clickable method labels: real <button>s styled to look like the label lines,
 * full-width, left-aligned, keyboard-operable with a visible focus ring.
 * Note: use the longhand font properties (not the `font` shorthand) so this
 * rule does not reset the font-size set by .match-line--primary, which shares
 * the same specificity and is declared earlier. */
.match-line--button {
  width: 100%;
  font-family: inherit;
  font-style: inherit;
  text-align: left;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.match-line--button:hover {
  background: rgb(224, 244, 240);
}

.match-line--button:focus-visible {
  outline: 3px solid #5fd0bd;
  outline-offset: 2px;
}

/* The currently-displayed method's line gets a clear selected state. The winner
 * keeps its stronger typography (above) even when an alternative is selected,
 * so the actual result is never lost. */
.match-line--active {
  background: rgb(224, 244, 240);
  border-color: #0a7d6e;
}

.c7-list-checks {
  list-style: none;
  padding-left: 0;
  margin: 0 0 2rem;
}

.c7-list-checks-item {
  padding-left: 1.75rem;
  padding-bottom: 1rem;
  line-height: 1.5;
  position: relative;
}

.c7-list-checks-item::before {
  content: "\2714";
  color: #0a7d6e;
  width: 2rem;
  display: block;
  font-size: 1.1rem;
  top: 0;
  left: 0;
  position: absolute;
}

.result_btns {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.dropbtn {
  background: #0a7d6e;
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font: inherit;
  margin-bottom: 1.5rem;
  text-align: center;
  text-decoration: none;
  border-radius: 50rem;
  padding: 15px 20px;
}

.dropbtn:hover,
.dropbtn:focus-visible {
  background: #0c9683;
  color: #fff;
}

.reset-button {
  border: 2px solid #0a7d6e;
  border-radius: 50rem;
  background: transparent;
  cursor: pointer;
  padding: 0.65rem;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.reset-button:hover,
.reset-button:focus-visible {
  background-color: rgb(224, 244, 240);
}

.reset-button img {
  height: 24px;
  width: 24px;
}

/* --- Responsive --- */
@media screen and (max-width: 770px) {
  .content {
    padding: 1rem;
  }

  .question-title {
    min-height: 3.4em;
  }

  /* Full-width title on mobile: reads more naturally than a boxed-in width, and
   * sets the intended width once (no competing .question h3 override). */
  .question-title h3 {
    width: 100%;
  }

  .binary-choice {
    flex-flow: column nowrap;
    gap: 1rem;
  }

  .binary-choice > li {
    width: 100%;
  }

  .productVisual {
    gap: 1.5rem;
  }

  /* Stack Voornaam + Achternaam on narrow screens. */
  .form-row {
    flex-flow: column nowrap;
    gap: 1.5rem;
  }

  .result_btns {
    flex-flow: column nowrap;
    align-items: stretch;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .binary-choice > li,
  .overlay,
  .icon.anim,
  .primary-button {
    transition: none !important;
    animation: none !important;
  }
}
