/* Nexus Scan vraagflow, bedoeld voor iframe zonder header of footer */

body.scan-body {
  background: var(--kleur-wit);
  min-height: 100vh;
}

.scan-main {
  width: 100%;
  padding: clamp(24px, 6vw, 56px) 20px;
}

.vraag-container {
  width: min(840px, 100%);
  margin: 0 auto;
}

.vraag-scherm,
.email-scherm {
  display: none;
}

.vraag-scherm.actief,
.email-scherm.actief {
  display: block;
  animation: fadeIn 0.35s ease forwards;
}

.vraag-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.progressie-track {
  flex: 1;
  height: 4px;
  background: var(--kleur-rand);
  border-radius: 999px;
  overflow: hidden;
}

.progressie-balk {
  width: 0;
  height: 100%;
  background: var(--kleur-cta);
  transition: width 0.25s ease;
}

.scan-teller {
  flex: 0 0 auto;
  color: var(--kleur-subtekst);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vraag-gebied-tag {
  display: block;
  margin-bottom: 12px;
  color: var(--kleur-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vraag-tekst {
  max-width: 760px;
  margin: 0 0 28px;
  font-family: var(--font-hoofd);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--kleur-tekst);
}

.opties-lijst {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.optie-knop {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  background: var(--kleur-wit);
  padding: 13px 16px;
  color: var(--kleur-tekst);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: all var(--overgang);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.045);
}

.optie-knop:hover {
  border-color: var(--kleur-accent);
  background: #fbf8f7;
}

.optie-knop.gekozen {
  border-color: var(--kleur-accent);
  background: #fbf8f7;
  box-shadow: 0 0 0 4px rgba(140, 94, 90, 0.11);
}

.optie-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--kleur-rand);
  border-radius: 50%;
  color: var(--kleur-subtekst);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all var(--overgang);
}

.optie-knop:hover .optie-letter,
.optie-knop.gekozen .optie-letter {
  border-color: var(--kleur-accent);
  background: var(--kleur-accent);
  color: var(--kleur-wit);
}

.optie-checkbox-wrapper {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  background: var(--kleur-wit);
  padding: 13px 16px;
  color: var(--kleur-tekst);
  line-height: 1.55;
  cursor: pointer;
  transition: all var(--overgang);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.045);
}

.optie-checkbox-wrapper:hover,
.optie-checkbox-wrapper.gekozen {
  border-color: var(--kleur-accent);
  background: #fbf8f7;
}

.optie-checkbox-wrapper.gekozen {
  box-shadow: 0 0 0 4px rgba(140, 94, 90, 0.11);
}

.optie-checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--kleur-accent);
  cursor: pointer;
}

.optie-checkbox-wrapper span {
  color: var(--kleur-tekst);
}

.multi-hint {
  margin: -14px 0 22px;
  color: var(--kleur-subtekst);
  font-size: 0.9rem;
}

.open-veld {
  width: 100%;
  min-height: 140px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  background: var(--kleur-wit);
  color: var(--kleur-tekst);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: all var(--overgang);
}

.open-veld:focus {
  outline: none;
  border-color: var(--kleur-accent);
  box-shadow: 0 0 0 4px rgba(140, 94, 90, 0.14);
}

.vraag-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.btn-terug {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--kleur-cta);
  border-radius: var(--radius);
  background: var(--kleur-wit);
  color: var(--kleur-cta);
  padding: 0 24px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--overgang);
}

.btn-terug:hover {
  border-color: var(--kleur-cta-hover);
  background: var(--kleur-cta-hover);
  color: var(--kleur-wit);
}

.btn-terug:disabled {
  opacity: 0.3;
  cursor: default;
  background: var(--kleur-wit);
  color: var(--kleur-subtekst);
  border-color: var(--kleur-rand);
}

.btn-verder {
  flex: 1;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.veld-groep {
  gap: 8px;
}

.veld-groep label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--kleur-subtekst);
}

.veld-groep input[type="text"],
.veld-groep input[type="email"] {
  min-height: 54px;
  border: 1px solid var(--kleur-rand);
  padding: 0 16px;
}

.toestemming-tekst {
  max-width: 720px;
  margin: -2px 0 4px;
  color: var(--kleur-subtekst);
  font-size: 0.82rem;
  line-height: 1.65;
}

.laden {
  padding: 40px 20px;
  text-align: center;
  color: var(--kleur-subtekst);
}

.laden-dots::after {
  content: "";
  animation: dots 1.2s infinite;
}

@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

@media (max-width: 780px) {
  .scan-main {
    padding: 28px 18px;
  }

  .vraag-progress {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .progressie-track {
    width: 100%;
  }

  .vraag-nav {
    flex-direction: column;
  }

  .btn,
  .btn-terug,
  .btn-verder {
    width: 100%;
  }
}
