/* ============================================================================
   NCI vragenlijst – custom.css
   Gebaseerd op de bestaande landing (keuzeknoppen, progressbar, formulier),
   in de NCI huisstijl volgens DESIGN/01 Startscherm en 02 Tussenscherm.
   ========================================================================== */

:root {
  --nci-navy: #102c4c;
  --nci-blue: #2f6bf2;
  --nci-blue-dark: #1f57d6;
  --nci-blue-soft: #eaf1fe;
  --nci-bg: #f4f6fa;
  --nci-border: #e3e8ef;
  --nci-text: #4a5a70;
  --nci-muted: #6b7a8f;
  --nci-error: #d9434b;
  --nci-valid: #2e9e5b;
}

/* ================== BASIS ================== */
html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--nci-text);
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--nci-navy);
}

strong { font-weight: 600; color: var(--nci-navy); }

a { color: var(--nci-blue); }
a:hover, a:focus { color: var(--nci-blue-dark); }

.no-p {padding: 0;}
.p-5-form {padding-left: 5px; padding-right: 5px;}
.mt10 {margin-top: 10px;}
.mt20 {margin-top: 20px;}
.mt30 {margin-top: 30px;}

/* ================== HEADER / MAIN / FOOTER ================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--nci-border);
  padding: 22px 0;
}
.site-header .container-xl { padding-left: 64px; padding-right: 64px; }
.site-header .logo {
  height: 76px;
  width: auto;
  display: block;
}
/* Tekst in de kopbalk: midden van de pagina, zelfde stijl als de voettekst */
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.header-tekst {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  color: var(--nci-muted);
  white-space: nowrap;
}

.site-main {
  background: var(--nci-bg);
  padding: 56px 16px 72px;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--nci-border);
  padding: 28px 16px;
  text-align: center;
  font-size: 15px;
  color: var(--nci-muted);
}
.site-footer strong { color: var(--nci-text); }

/* ================== KAART ================== */
.card-nci {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 44, 76, .04), 0 8px 30px rgba(16, 44, 76, .05);
  max-width: 940px;
  margin: 0 auto;
  padding: 48px 56px;
}

.card-nci h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nci-muted);
  margin-bottom: 18px;
}

.lead-nci {
  font-size: 19px;
  line-height: 1.65;
  color: var(--nci-text);
  margin-bottom: 18px;
  max-width: 720px;
}
.lead-nci strong { font-weight: 400; color: inherit; }

.note {
  font-size: 16px;
  color: var(--nci-text);
  margin: 0 0 24px;
  line-height: 1.6;
}

.small-note {
  font-size: 14px;
  color: var(--nci-muted);
  margin-top: 18px;
}

/* ================== KNOP ================== */
.btn-nci {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  background: var(--nci-blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 17px 26px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(47, 107, 242, .55);
  transition: background-color .2s ease, transform .1s ease;
  max-width: 300px;
  width: 100%;
}
.btn-nci:hover { background: var(--nci-blue-dark); }
.btn-nci:active { transform: scale(.98); }
.btn-nci:focus-visible { outline: 3px solid rgba(47, 107, 242, .35); outline-offset: 2px; }
.btn-nci .arrow { font-weight: 400; font-size: 20px; }
/* "Ik ben klaar, toon de e-mail": geen maximale breedte van 300px */
#toon-uiting { max-width: none; width: auto; } /* desktop: zo breed als de tekst, zoals in het design */

/* ================== STARTSCHERM ================== */
#intro-screen .card-nci { padding: 56px 56px 40px; }

.intro-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--nci-border);
  border-bottom: 1px solid var(--nci-border);
  padding: 28px 0;
  margin: 28px 0 32px;
}
.intro-step { display: flex; gap: 16px; align-items: flex-start; }
.intro-step h2 { font-size: 18px; font-weight: 700; margin: 4px 0 6px; }
.intro-step p { font-size: 15px; line-height: 1.6; color: var(--nci-text); }

.step-nr {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nci-blue-soft);
  color: var(--nci-blue);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
/* Testmodus-melding (index.php?test=...) */
.test-melding {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff6db;
  border: 1px solid #f2d27a;
  color: #7a5600;
  font-size: 14px;
  text-align: center;
}

/* reCAPTCHA + melding op de startpagina */
.captcha-wrap { margin: 0 0 20px; min-height: 78px; }
.start-melding {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fdeced;
  border: 1px solid #f5c2c5;
  color: #9b2228;
  font-size: 15px;
}
.btn-nci:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-nci:disabled:hover { background: var(--nci-blue); }

.duration {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--nci-text);
}

/* ================== TUSSENSCHERM ================== */
.part-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  margin-bottom: 40px;
}
.part-done { display: inline-flex; align-items: center; gap: 8px; color: var(--nci-muted); }
.part-line { width: 70px; height: 1px; background: #c9d3e0; }
.part-active { font-weight: 700; color: var(--nci-navy); }

.icon-tile {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: var(--nci-blue-soft);
  color: var(--nci-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

/* Tussenscherm: kop naast het mail-icoon */
.title-with-icon {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.title-with-icon .icon-tile { flex: 0 0 auto; margin: 0; }
.title-with-icon h1 { margin: 0; font-size: 38px; }

.info-box {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #f0f5ff;
  border-radius: 14px;
  padding: 24px 32px;
  margin: 28px 0;
}
.info-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  color: var(--nci-blue);
  box-shadow: 0 1px 2px rgba(16, 44, 76, .06);
}
.info-box h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.info-box p { font-size: 15px; line-height: 1.6; }

/* ================== DE E-MAIL BIJ DE VRAGEN (DEEL 2) ================== */
/* Desktop (>= 992px): e-mail vast (sticky) links naast de vraag.
   Mobiel/tablet: e-mail en vraag wisselen via de knop .mail-toggle boven de vraag. */
.mail-panel { display: none; }

/* iPad-frame: img/white_tablet.svg (staand, 2276.4 x 3338.4).
   Het scherm in de SVG loopt van x 81.2-2197.8 en y 136-3203.3;
   .ipad-screen wordt daar met percentages precies overheen gelegd.
   De breedte volgt uit de schermhoogte, zodat de hele iPad altijd in beeld past. */
.ipad {
  --ipad-ruimte: 120px; /* verticale ruimte die niet voor de iPad is */
  position: relative;
  width: min(100%, calc((100vh - var(--ipad-ruimte)) * .6819));
  width: min(100%, calc((100svh - var(--ipad-ruimte)) * .6819));
  aspect-ratio: 2276.4 / 3338.4;
  margin: 0 auto;
  background: url(img/white_tablet.svg) center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 40px rgba(16, 44, 76, .14));
}
.ipad-screen {
  position: absolute;
  left: 3.567%;
  top: 4.074%;
  width: 92.98%;
  height: 91.88%;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9d3e0 transparent;
}
#uiting-img { display: block; width: 100%; height: auto; }
#uiting-fallback {
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--nci-muted);
  padding: 24px;
}

/* Zachte overgang bij wisselen */
.card-wizard.soft-in,
.mail-panel.soft-in { animation: softIn .45s ease both; }
@keyframes softIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Wisselknop boven de vraag (alleen mobiel/tablet, alleen in deel 2) */
.mail-toggle { display: none; }

@media (min-width: 992px) {
  #wizard_container.met-mail .wizard-layout {
    display: grid;
    grid-template-columns: minmax(300px, 540px) minmax(0, 760px);
    justify-content: center;
    align-items: stretch; /* vraagkaart even hoog als de iPad */
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
  }
  #wizard_container.met-mail { margin-top: -24px; } /* iPad hoger, zodat hij in één keer in beeld past */
  #wizard_container.met-mail .mail-panel {
    display: block;
    align-self: start; /* nodig voor sticky */
    position: sticky;
    top: 24px;
  }
  #wizard_container.met-mail .ipad {
    --ipad-ruimte: 190px; /* header + marges rond de iPad */
    /* 70px breder dan de schermhoogte toelaat */
    width: min(100%, calc((100vh - var(--ipad-ruimte)) * .6819 + 70px));
    width: min(100%, calc((100svh - var(--ipad-ruimte)) * .6819 + 70px));
  }
  #wizard_container.met-mail .card-wizard {
    max-width: none;
    margin: 0;
    padding: 44px 48px;
  }
  .alleen-mobiel { display: none; }
}

@media (max-width: 991px) {
  .alleen-desktop { display: none; }

  #wizard_container.met-mail.mail-open .mail-panel { display: block; }
  #wizard_container.met-mail.mail-open .card-wizard { display: none; }

  .ipad { --ipad-ruimte: 230px; max-width: 520px; }

  /* Knop gecentreerd boven de vraag (of boven de e-mail als die open staat) */
  #wizard_container.met-mail .mail-toggle {
    display: flex;
    margin: 0 auto 24px;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 8px;
    border: 0;
    border-radius: 999px;
    background: var(--nci-navy);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(16, 44, 76, .28), 0 2px 6px rgba(16, 44, 76, .12);
    transition: background-color .25s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mail-toggle:active { transform: scale(.97); }
  .mail-toggle:focus-visible { outline: 3px solid rgba(47, 107, 242, .45); outline-offset: 3px; }
  .mail-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--nci-blue);
    transition: background-color .25s ease;
  }
  .mail-toggle .ico-vraag { display: none; }
  #wizard_container.mail-open .mail-toggle { background: var(--nci-blue); }
  .mail-open .mail-toggle-icon { background: rgba(255, 255, 255, .2); }
  .mail-open .mail-toggle .ico-mail { display: none; }
  .mail-open .mail-toggle .ico-vraag { display: block; }

  /* Eerste keer terug bij de vraag: knop licht even op */
  .mail-toggle.pulse { animation: togglePulse 1.6s ease-out 2; }
  @keyframes togglePulse {
    0%   { box-shadow: 0 10px 28px rgba(16, 44, 76, .28), 0 0 0 0 rgba(47, 107, 242, .55); }
    70%  { box-shadow: 0 10px 28px rgba(16, 44, 76, .28), 0 0 0 16px rgba(47, 107, 242, 0); }
    100% { box-shadow: 0 10px 28px rgba(16, 44, 76, .28), 0 0 0 0 rgba(47, 107, 242, 0); }
  }
}

/* Tablet (768–991px): 24px ruimte boven de knop (.site-main heeft hier 56px padding-top) */
@media (min-width: 768px) and (max-width: 991px) {
  #wizard_container.met-mail { margin-top: -32px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-wizard.soft-in, .mail-panel.soft-in, .mail-toggle.pulse { animation: none; }
}

/* ================== WIZARD / VRAGEN ================== */
#wizard_container { position: relative; }

.card-wizard { max-width: 860px; padding: 48px 56px; }

#top-wizard {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: var(--nci-border);
  height: 6px;
}
#progressbar {
  height: 100%;
  width: 0%;
  background: var(--nci-blue);
  transition: width .5s ease-in-out;
  position: relative;
}
#progressbar-text {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nci-blue);
  background: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  box-shadow: 0 1px 4px rgba(16, 44, 76, .1);
}

.step { animation: stepIn .3s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.question_title { text-align: center; margin-bottom: 32px; }
.question_eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nci-muted);
  margin-bottom: 14px;
}
.question_title h3 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--nci-navy);
}
.question_title p { font-size: 16px; color: var(--nci-muted); margin-top: 10px; }

/* --- keuzeknoppen (bestaande stijl) --- */
.button_choice {
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.button_choice input[type="radio"] { display: none; }
.button_choice .btn_choice {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--nci-border);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
  background: #fff;
  margin: 0;
}
.button_choice .btn_choice span { font-size: 17px; font-weight: 500; color: var(--nci-navy); }
.button_choice .btn_choice:hover { border-color: var(--nci-blue); background: #f7faff; }
.button_choice input[type="radio"]:checked + .btn_choice { border-color: var(--nci-blue); background: var(--nci-blue); }
.button_choice input[type="radio"]:checked + .btn_choice span { color: #fff; }

/* --- schaal 0-10 / 1-10 --- */
.scale_choice {
  --gap: 8px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
/* Elke rij heeft --n kolommen; een kortere laatste rij (bijv. 6-10) staat gecentreerd */
.scale_row {
  display: flex;
  justify-content: center;
  gap: var(--gap);
}
.scale_wrap.is-split { max-width: 520px; margin: 0 auto; }
.scale_choice input[type="radio"] { display: none; }
.scale_choice .btn_scale {
  flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin: 0;
  border: 1px solid var(--nci-border);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: var(--nci-navy);
  cursor: pointer;
  transition: all .2s ease;
}
.scale_choice .btn_scale:hover { border-color: var(--nci-blue); background: #f7faff; }
.scale_choice input[type="radio"]:checked + .btn_scale { background: var(--nci-blue); border-color: var(--nci-blue); color: #fff; }
.scale_labels {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--nci-muted);
}
.scale_labels span:last-child { text-align: right; }

/* --- open vragen --- */
textarea.form-control {
  min-height: 160px;
  border: 1px solid var(--nci-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--nci-navy);
  font-family: inherit;
}
textarea.form-control:focus { border-color: var(--nci-blue); box-shadow: 0 0 0 .25rem rgba(47, 107, 242, .12); }
textarea.form-control.is-invalid { border-color: var(--nci-error); }
.other_box { margin-top: 16px; }
.other_box textarea.form-control { min-height: 100px; }
.step_error { color: var(--nci-error); font-size: 14px; margin-top: 8px; }

/* --- knoppen in wizard (bestaande btn_1) --- */
.btn_1 {
  border: none;
  color: #fff;
  background: var(--nci-blue);
  cursor: pointer;
  display: inline-block;
  padding: 15px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 6px 18px -6px rgba(47, 107, 242, .55);
  transition: background-color .2s ease;
}
.btn_1:hover { background: var(--nci-blue-dark); }

.step_nav { margin-top: 28px; text-align: center; }
.btn_back {
  background: none;
  border: 0;
  color: var(--nci-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 10px;
}
.btn_back:hover { color: var(--nci-navy); }

/* ================== FORMULIER (bestaande stijl) ================== */
.cta {
  border-radius: 8px;
  padding: 16px 30px;
  font-size: 18px;
  width: 100%;
  display: inline-block;
  margin-top: 20px;
  transition: all .2s ease-in-out;
  text-align: center;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  background-color: var(--nci-blue);
  border: 0;
  outline: 0;
  box-shadow: 0 6px 18px -6px rgba(47, 107, 242, .55);
}
.cta:hover { background-color: var(--nci-blue-dark); color: #fff; }
.cta:active { transform: scale(.98); }

.nudge {
  padding-top: 20px;
  font-size: 14px;
  color: var(--nci-muted);
}
.nudge a { text-decoration: underline; color: var(--nci-muted); }

.formcontainer {
  border-radius: 14px;
  border: 1px solid var(--nci-border);
  padding: 32px;
}
.formcontainer p {
  color: var(--nci-navy);
  font-size: 18px;
  font-weight: 700;
}
.formcontainer p.gegevens-title { margin-bottom: 4px; }
.formcontainer .form-field { padding-left: 4px; padding-right: 4px; position: relative; }

/* ================== FORMULIER CSS ================== */
::-webkit-input-placeholder, ::-moz-placeholder, :-ms-input-placeholder, :-moz-placeholder{ /* Chrome/Opera/Safari/Firefox 19+/IE 10/Firefox 18- */
  color:#8B8B8B;
  font-size: 14px;
}
.errormachtiging {
  float:left;
  padding-left:30px;
}
li.error {
  color:#EB8283;
  font-size:14px;
  list-style-type:none;
}
li.valid {
  height:0;
  color:#EB8283;
  font-size:11px;
  list-style-type:none;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px white inset !important; /* Verandert achtergrondkleur na autofill/prefill */
}

/* ================== START GESLACHTBUTTON ================== */
.form-geslacht{
  position: relative;
  padding-top: 15px;
  padding-left: 5px;
  padding-right: 5px;
}
.form-geslacht input[type=radio] {
  visibility: hidden; /* gebruik geen display block */
  width: 1px;
  height: 1px;
  cursor: pointer;
  padding: 0px;
  float:left;
  margin-left:0px!important;
  -moz-appearance: none; /* Remove default appearance styling for Firefox */
  -webkit-appearance:none;
  appearance:none;
  position: absolute;
}
.form-geslacht input[type=radio] + label {
  color:#999;
  background-image: url(img/bullet_unchecked.png);
  background-repeat:no-repeat;
  background-size: 30px;
  background-position: left -5px top 3px;
  padding-top: 8px;
    padding-left: 25px;
  width: 100%;
  max-width: 64px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  position: relative;
  -webkit-transform: none!important;
  transform: none!important;
    margin-bottom: 12px;
}
.form-geslacht input[type=radio]:hover + label {
  background-image: url(img/bullet.png);
}
.form-geslacht input[type=radio]:checked + label {
  background: url(img/bullet.png) no-repeat;
  background-size: 30px;
  background-position: left -5px top 3px;
}
/* ================== END GESLACHTBUTTON ================== */

/* ================== START CHECKBOX ================== */
.form-checkbox{
  margin-top: 20px;
}
.form-checkbox input[type=checkbox] {
    visibility: hidden;
    width: 1px;
    position: absolute;
}
.form-checkbox .check-box {
  width: 100%;
  padding-left: 30px;
  padding-bottom: 5px;
  margin-bottom: 0;
  background-color: transparent;
  position: relative;
  display: inline-block;
  background:url(img/checkbox.png) no-repeat left top;
  background-size:17px 17px;
  font-size:14px;
  line-height:17px;
}
.form-checkbox .check-box::before, .check-box::after {
  position: absolute;
  height: 0;
  width: 3px;
  border-radius: 1px;
  background-color: var(--nci-blue);
  display: inline-block;
  -moz-transform-origin: left top;
  -ms-transform-origin: left top;
  -o-transform-origin: left top;
  -webkit-transform-origin: left top;
  transform-origin: left top;   
  content: ' ';
  -webkit-transition: opacity ease .5;
  -moz-transition: opacity ease .5;
  transition: opacity ease .5;
}
.form-checkbox .check-box::before {
  top: 15px;
  left: 9px;
  box-shadow: 0 0 0 0px #ffffff;
  -moz-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}
.form-checkbox .check-box::after {
  top: 8px;
  left: 0px;
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.form-checkbox input[type=checkbox]:checked + .check-box, .check-box.checked {
  border-color: var(--nci-blue);
}
.form-checkbox input[type=checkbox]:checked + .check-box::after, .check-box.checked::after {
  height: 12px;
  -moz-animation: dothabottomcheck 0.2s ease 0s forwards;
  -o-animation: dothabottomcheck 0.2s ease 0s forwards;
  -webkit-animation: dothabottomcheck 0.2s ease 0s forwards;
  animation: dothabottomcheck 0.2s ease 0s forwards;
}
.form-checkbox input[type=checkbox]:checked + .check-box::before, .check-box.checked::before {
  height: 30px;
  -moz-animation: dothatopcheck 0.4s ease 0s forwards;
  -o-animation: dothatopcheck 0.4s ease 0s forwards;
  -webkit-animation: dothatopcheck 0.4s ease 0s forwards;
  animation: dothatopcheck 0.4s ease 0s forwards;
}
/*Keyframes Checkbox*/
@-moz-keyframes dothabottomcheck {
  0% {height: 0;}
  100% {height: 11px;}
}
@-webkit-keyframes dothabottomcheck {
  0% {height: 0;}
  100% {height: 11px;}
}
@keyframes dothabottomcheck {
  0% {height: 0;}
  100% {height: 11px;}
}
@keyframes dothatopcheck {
  0% {height: 0;}
  50% {height: 0;}
  100% {height: 24px;}
}
@-webkit-keyframes dothatopcheck {
  0% {height: 0;}
  50% {height: 0;}
  100% {height: 24px;}
}
@-moz-keyframes dothatopcheck {
  0% {height: 0;}
  50% {height: 0;}
  100% {height: 24px;}
}
/* ================== END CHECKBOX ================== */

/* ================== START FORM BASIS ================== */
.form-field input {
  font-size:16px;
  display:block;
  width:100%;
  border:1px solid #999999;
  border-radius:2px;
  height:45px;
  margin:10px 0 0 0;
  padding:10px;
  transition:0.4s ease all;
  -moz-transition:0.4s ease all;
  -webkit-transition:0.4s ease all;
  -webkit-appearance:none;
  padding-top: 25px;
  top: 10px;
}
.form-field input:focus, input.birthdate-valid{
  outline:none;
  border:1px solid #999999;
}
.form-field input:focus ~ label{
  -webkit-transform: translateY(4px) scale(.85);
  transform: translateY(4px) scale(.85);
}
.nostyle{transform: none!important;color:#000000!important;} /*Zorgt ervoor dat radio buttons niet scalen*/
.form-field input.valid, input.birthdate-valid.valid {
  border:1px solid #58c143;
}
.form-field input.error, input.birthdate-valid.error {
  border:1px solid #EB8283;
}
.form-field input.error ~ label {
  color: #EB8283;
}
.form-field label {
  transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s,-webkit-transform .2s;
    pointer-events: none;
    -webkit-transform-origin: top left;
    transform-origin: top left;
    font-weight: 400;
    text-align: left;
    position: absolute;
    top: 14px;
    left: 15px;
    z-index: 1;
    color: #b3b3b3;
    font-size: 14px;
    line-height: 22.4px;
    -webkit-transform: translateY(11.8px);
    transform: translateY(11.8px);
}
.adressconfirm {
  font-size: 14px;
  color: var(--nci-muted);
}
.adressconfirm.adresvink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px -8px;
  padding: 10px 16px 10px 14px;
  background-color: #edf7f1;
  border: 1px solid #cfe9da;
  border-radius: 8px;
  color: var(--nci-navy);
  font-weight: 500;
}
.adressconfirm.adresvink:before {
  content: '';
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nci-valid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.formcontainer {
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  border: 1px solid #999999;
    padding: 40px;
}
.formcontainer p{
  color: #000000; 
  font-size: 18px;
  font-weight: 700;
}
.formcontainer p.gegevens-title{
  margin-bottom: 10px;  
}
.formcontainer p.title-between{
  margin-top: 30px;
}
.formcontainer .form-field {
  padding-left: 4px;
  padding-right: 4px;
  position: relative;
}
.form-field input.is-active ~ label, .filled-in label, .filled-in-error label, .form-field label.activelabel {
  -webkit-transform: translateY(4px) scale(.85);
  transform: translateY(4px) scale(.85);
  color: var(--nci-blue);
}
.form-field label.activelabel, .valid ~ label{
  color: #58c143;
  -webkit-transform: translateY(4px) scale(.85);
  transform: translateY(4px) scale(.85);
}
.filled-in-error label {
  color: #EB8283;
}
.errorbox, #postcodeError {
    width:100%;
}
@media screen and (max-width: 768px) {
  label[for=payment_ibannumber] {
    top: 0px!important;
  }
  .errorbox, #postcodeError {
    float: left;
  }
  .formcontainer{
    padding: 25px;
  }
}
/* ================== END FORM BASIS ================== */

/* ================== START BIRTHDATE ================== */
.form-geboorte label {
  font-size:14px;
  color:#999;
  left:20px;
  position:absolute;
  top: 10px;
}
.zsm{
  display: inline-block;
  margin-right: 15px;
}
.date-style{
  width:110px;
  display: inline-block;
  margin-right:5px;
  font-size:16px;
  border:none;
  border:1px solid #8d8d8d;
  border-radius:2px;
  height:45px;
  margin:0 0 5px 0;
  padding:10px;
  transition:0.4s ease all;
  -moz-transition:0.4s ease all;
  -webkit-transition:0.4s ease all;
  -webkit-appearance:none;
}
.date-style.mm {
  margin-left: 10px;
}
.date-style.yy {
  margin-right: 0px;
  margin-left: 10px;
}
.date-style:focus{
  outline:none;
  border:1px solid var(--nci-blue);
}
@media screen and (max-width: 576px) {
  .date-style {width: 30%; margin-left: 0;}
  .date-style.mm {margin-left: 4px;}
  .date-style.yy {margin-left: 4px;}
}
/* ================== END BIRTHDATE ================== */

/* ================== START VOORWAARDEN ================== */
#fillVoorw li {
  list-style-type: square;
  padding: 0 16px 0 0;
}
#fillVoorw {
  list-style-type: square;
  padding: 0 0px 0 16px;
}
.voorwaardenoverlay {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  width: 100%;
  height: 100%;
  display: none;
}
.popuptitle {
  font-weight:900;
  font-size:30px;
  margin-bottom:20px;
}
.form-open {
  width: 90%;
  animation: open 1s;
  transition:1s ease all;
  -moz-transition:1s ease all;
  -webkit-transition:1s ease all;
  opacity:1;
}
.lightbox {
  background-color: #ffffff;
  height: 50vh;
  color:#181818;
  overflow-y: auto;
  padding:50px 50px 50px 50px;
  font-family: Source Sans Pro, Helvetica, Arial, sans-serif;
  font-size:14px;
  line-height:1.6em;
  -webkit-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.25);
  -moz-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.25);
  box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.25);
  margin: auto;
  position: absolute;
  width:100%;
  left: 0;
  right: 0;
}
#popup {
  width: 60%;
  margin:auto;
  position:absolute;
  height:50vh;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
#close {
  position:absolute;
  color:#ffffff;
  top:-20px;
  right:-20px;
  padding-top: 10px;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  width: 50px;
  height: 50px;
  background-color:var(--nci-blue);
  border-radius: 30px;
  text-align: center;
  z-index:9999;
}
@media(max-width: 767px){
  .lightbox{
    padding: 20px 20px 20px 20px;
  }
  #popup {
    width: 80%;
  }
  .popuptitle {
    font-size: 26px;
  }
}
/*Keyframes lightbox open*/
@keyframes open {
  0% {display: none;}
  1% {width: 0;display: block;color:white;opacity: 0;}
  80% {color:white;}
  100% {display: block;width: 90%;color:#181818;opacity: 1;}
}

@keyframes open {
  0% {display: none;}
  1% {width: 0;display: block;color:white;opacity: 0;}
  80% {color:white;}
  100% {width: 100%;}
}
/* ================== END VOORWAARDEN ================== */



/* ================== NCI OVERRIDES OP FORMULIER ================== */
/* Laatste stap: alleen geslacht, als drie knoppen naast elkaar */
.formcontainer { text-align: center; }
.formcontainer p.gegevens-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nci-muted);
  margin: 0 0 8px;
}
.formcontainer p.geslacht-vraag {
  font-size: 22px;
  font-weight: 700;
  color: var(--nci-navy);
  margin: 0 0 20px;
}
.gender-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gender-choice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.gender-choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin: 0;
  border: 1px solid var(--nci-border);
  border-radius: 10px;
  background: #fff;
  font-size: 17px;
  font-weight: 500;
  color: var(--nci-navy);
  cursor: pointer;
  transition: all .2s ease;
}
.gender-choice label:hover { border-color: var(--nci-blue); background: #f7faff; }
.gender-choice input[type="radio"]:checked + label { background: var(--nci-blue); border-color: var(--nci-blue); color: #fff; }
.gender-choice input[type="radio"]:focus-visible + label { outline: 3px solid rgba(47, 107, 242, .35); outline-offset: 2px; }
.submit-row { margin-top: 24px; }
.submit-row .cta { max-width: 340px; margin-top: 0; }
.submit-row .cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.submit-row .cta:disabled:hover { background-color: var(--nci-blue); }

.formcontainer {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--nci-border);
  padding: 32px;
}
.formcontainer p { color: var(--nci-navy); }
.form-field input {
  border: 1px solid #c9d3e0;
  border-radius: 8px;
  height: 52px;
  color: var(--nci-navy);
}
.form-field input:focus { border-color: var(--nci-blue); }
.form-field label { color: var(--nci-muted); }
.form-field input.valid, input.birthdate-valid.valid { border-color: var(--nci-valid); }
.form-field label.activelabel, .valid ~ label { color: var(--nci-valid); }
.form-field input.error, input.birthdate-valid.error { border-color: var(--nci-error); }
.form-field input.error ~ label, .filled-in-error label { color: var(--nci-error); }
li.error, li.valid { color: var(--nci-error); }
.form-geslacht input[type=radio] + label { color: var(--nci-text); max-width: 90px; width: auto; margin-right: 18px; }
.form-checkbox .check-box { font-size: 15px; line-height: 19px; color: var(--nci-text) !important; }
.nostyle { color: var(--nci-text) !important; }
#popup #close { background-color: var(--nci-blue); padding-top: 12px; }
.popuptitle { color: var(--nci-navy); }
.lightbox { border-radius: 14px; font-family: inherit; }

/* ================== PRELOADER ================== */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #fff;
  z-index: 99999;
}
[data-loader="circle-side"] {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  animation: circle infinite .95s linear;
  border: 3px solid var(--nci-blue);
  border-top-color: rgba(16, 44, 76, .15);
  border-right-color: rgba(16, 44, 76, .15);
  border-bottom-color: rgba(16, 44, 76, .15);
  border-radius: 100%;
}
@keyframes circle { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ================== RESPONSIVE ================== */
@media (max-width: 991px) {
  .site-header .container-xl { padding-left: 32px; padding-right: 32px; }
  .card-nci h1 { font-size: 38px; }
}

@media (max-width: 767px) {
  /* Mobiel: geen kaart, content direct op de grijze achtergrond (zie design) */
  .site-header { padding: 14px 0; }
  .site-header .container-xl { padding-left: 20px; padding-right: 20px; }
  .site-header .logo { height: 54px; }
  /* Mobiel: te smal om over het midden te centreren, dus in de ruimte naast het logo */
  .header-tekst {
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
    white-space: normal;
    font-size: 13px;
    line-height: 1.35;
    padding-left: 12px;
  }

  .site-main { padding: 28px 16px 40px; }

  .card-nci,
  #intro-screen .card-nci,
  .card-wizard {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .card-nci h1 { font-size: 30px; line-height: 1.15; margin-bottom: 18px; }
  .lead-nci { font-size: 17px; line-height: 1.6; margin-bottom: 14px; }

  .intro-steps { grid-template-columns: 1fr; gap: 20px; padding: 22px 0; margin: 20px 0 22px; }
  .intro-step h2 { font-size: 17px; margin-top: 2px; }

  .cta-row { flex-direction: column; gap: 14px; align-items: stretch; }
  .btn-nci { width: 100%; max-width: none; justify-content: center; } /* volledige breedte */
  /* Tekst + pijl op één regel en mooi gecentreerd */
  #toon-uiting { width: 100%; gap: 12px; padding: 17px 18px; font-size: 17px; white-space: nowrap; }
  .duration { justify-content: center; width: 100%; } /* gecentreerd onder de knop */
  .small-note { text-align: center; }

  .part-stepper { margin-bottom: 28px; }
  .part-line { width: auto; flex: 1; max-width: 130px; }
  .icon-tile { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 24px; }
  .title-with-icon { gap: 16px; margin-bottom: 18px; }
  .title-with-icon h1 { font-size: 26px; }
  .title-with-icon .icon-tile { margin: 0; }
  .icon-tile svg { width: 38px; height: 38px; }
  .info-box { padding: 18px 20px; gap: 18px; }
  .info-box h2 { font-size: 17px; }

  .question_title { margin-bottom: 24px; }
  .question_title h3 { font-size: 22px; }
  .button_choice .btn_choice { padding: 14px 16px; }
  .button_choice .btn_choice span { font-size: 16px; }

  .scale_choice { --gap: 6px; }
  .scale_choice .btn_scale { height: 48px; font-size: 15px; border-radius: 8px; }
  .scale_labels { font-size: 13px; }

  .formcontainer { padding: 20px 16px; background: #fff; }
  #popup { width: 88%; }
}
