/* =========================
   Base Reset
========================= */
@font-face {
  font-family: "ITC Avant Garde Gothic Std";
  src: url("https://www.vvaa.nl/fonts/2A4C7A_2_0.woff")
    format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ITC Avant Garde Gothic Std";
  src: url("https://www.vvaa.nl/fonts/2A4C7A_2_0.woff")
    format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ITC Avant Garde Gothic Std";
  src: url("https://www.vvaa.nl/fonts/2A5158_0_0.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
} 
*/
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e2e8f0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ITC Avant Garde Gothic Std, 'Jost', "Adjusted Arial Fallback", Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  scroll-padding-top: 10rem;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  margin-bottom: 0.75rem;
  min-width: 320px;
  font-feature-settings: "kern";
  font-family: ITC Avant Garde Gothic Std, 'Jost', "Adjusted Arial Fallback", Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #1a202c;
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Page Layout Containers
========================= */
.css-wiydbf {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.css-1lqua4b {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.css-r9vv2y {
  padding: 10px 0px 0px 10px;
  background: #fff;
}

.css-1pmz0pb {
  padding: 0px 0px 64px;
}

.css-8rirfr {
  max-width: 1200px;
  padding: 0px 24px;
}

.css-ul40jh {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.css-u1k6in {
  height: 64px;
}

/* =========================
   Titles / Text
========================= */
.css-ubp539 {
  font-size: 3.5rem;
  line-height: 2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
}

.css-1dtffye {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 700;
  color: rgb(0 0 0 / 48%);
  margin: 0;
}

.css-1dtffyf {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
  color: rgb(153 153 153);
  margin: 0;
}

.css-o927ld {
  font-size: 1.5rem;
  line-height: 0;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 16px 0;
}

.css-1xe7ip {
  font-size: 1rem;
    line-height: 1.6;
    color: #000;
    margin: 24px 0 0 0;
    font-weight: 400;
}

.css-70qvj9 {
  margin: 0 0 12px 0;
  text-align: left;
  align-self: flex-start;
}

.chakra-form__label,
.css-tarz8p {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: #1a202c;
  margin: 0;
}

.chakra-form__required-indicator,
.css-135t10f {
  margin-left: 4px;
  color: #e53e3e;
  font-weight: 700;
}

.css-khi97 {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #000000;
  display: block;
  text-align: left;
}

.chakra-form-control[role="group"] .chakra-radio__label .css-khi97 {
  font-size: 1rem; /* example: 16px */
  font-weight: 500;
}

.chakra-divider,
.css-ti069f {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 16px 0 0 0;
}

/* =========================
   Form Layout + Inputs
========================= */
.css-rszk63 {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
}

.css-1m96lhp {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.chakra-form-control {
  width: 100%;
  position: relative;
}

.css-nv9gbv {
  margin-top: 0;
}

.chakra-input {
  width: 100%;
  height: 4rem;
  padding: 0 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background: #ffffff;
  color: #1a202c;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s, outline-color 0.2s;
}

.chakra-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Step action buttons layout */
.css-1lekzkb,
.qs-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.qs-step-actions.qs-only-next {
  justify-content: flex-end;
}

form {
  margin: 0;
}

/* =========================
   Step Progress Indicator
========================= */
.css-i5w1bh {
  justify-content: flex-start;
  align-items: center;
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.css-i5w1bh::-webkit-scrollbar {
  height: 0px;
  width: 0px;
}

@media (max-width: 1280px) {
  .css-i5w1bh::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (min-width: 64em) {
  .css-i5w1bh {
    width: calc(100% + 2rem);
    padding-inline-start: 1rem;
    padding-inline-end: 1rem;
    margin-left: -1rem;
    overflow-x: auto;
  }
}

.css-16oa7w1 {
  opacity: 1;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  display: flex;
  position: relative;
  background-color: #fff;
}

.css-16oa7w1:hover {
  cursor: default;
}

.css-16oa7w1[aria-disabled="true"]:hover {
  cursor: not-allowed;
}

.css-1t1yzbe {
  opacity: 0.4;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  display: flex;
  position: relative;
  background-color: #fff;
}

.css-1t1yzbe:hover {
  cursor: not-allowed;
}

@media screen and (min-width: 64em) {
  .css-16oa7w1,
  .css-1t1yzbe {
    margin-right: 3rem;
  }
}

.css-1no37z1 {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.css-1n38mmz {
  justify-content: center;
  align-items: center;
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: #edf2f7;
}

.css-1w55bq1 {
  font-family: ITC Avant Garde Gothic Std, 'Jost', "Adjusted Arial Fallback", Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: #000000;
}

.css-xg4ns2 {
  display: flex;
  align-items: center;
}

.css-xg4ns2[aria-current="step"] {
  font-weight: 700;
}

.css-enwk4t {
  font-family: ITC Avant Garde Gothic Std, 'Jost', "Adjusted Arial Fallback", Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.25rem;
  line-height: 1.2;
  color: #000000;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   Step Indicator visual rules
   - active underline (orange)
   - active square background = orange
   - done square background = #FFB678
========================= */
#qs-step-indicator {
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

/* buttons must be relative so underline can sit under each */
#qs-step-indicator > button {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
}

/* underline for ACTIVE step */
#qs-step-indicator > button.qs-step-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 4px;
  background: #ff861e;
  border-radius: 2px;
}

/* CURRENT step number square = ORANGE (Step 1 included) */
#qs-step-indicator .css-1n38mmz[aria-current="step"] {
  background: #ff861e !important;
}

/* DONE steps (checkmark square) = LIGHT ORANGE */
#qs-step-indicator > button.qs-step-done .css-1n38mmz {
  background: #ffb678 !important;
}

/* done checkmark aligns nicely */
#qs-step-indicator > button.qs-step-done .qs-step-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Disabled steps remain faded */
#qs-step-indicator > button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================
   Step logic display (show/hide)
========================= */
.qs-step {
  display: none;
}
.qs-step[data-step="1"] {
  display: block;
}

/* Hide section 2 by default (Step 2 & 3) */
.qs-step .qs-subsection[data-substep="2"],
.qs-step .qs-sub2-divider {
  display: none;
}

/* Show section 2 when unlocked */
.qs-step[data-sub2="show"] .qs-subsection[data-substep="2"],
.qs-step[data-sub2="show"] .qs-sub2-divider {
  display: block;
}

/* =========================
   Radio Styles
========================= */
.chakra-radio-group,
.chakra-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.chakra-radio,
.css-1lg30oz {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.chakra-radio__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.css-17dpyp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    row-gap: 10px;
    column-gap: 10px;
}
.e1mwtgo90,
.css-18i96px {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 2px solid #cbd5e0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  margin-top: 2px;
}

/* Default OFF */
.chakra-radio .e1mwtgo90::after {
  content: "";
  display: none;
}

/* Checked state (support both ways) */
.chakra-radio[data-checked] .e1mwtgo90,
.e1mwtgo90[data-checked] {
  border-color: #000000;
}

.chakra-radio .chakra-radio__input:checked ~ .e1mwtgo90 {
  border-color: #ff861e;
}

.chakra-radio .chakra-radio__input:checked ~ .e1mwtgo90::after {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #ff861e;
}

.chakra-radio__label,
.css-v3qd94 {
  font-size: 16px;
  line-height: 1.5;
  color: #1a202c;
}

.chakra-radio:hover .e1mwtgo90 {
  border-color: #a0aec0;
}

/* Radio group invalid state (red border) */
.qs-radio-group-invalid .e1mwtgo90 {
  border-color: #e53e3e !important;
}

/* =========================
   Buttons
========================= */
.chakra-button {
  font-family: ITC Avant Garde Gothic Std, 'Jost', "Adjusted Arial Fallback", Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 24px 18px;
  border-radius: 5px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  background: #ff861e;
  color: #000000;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.chakra-button:active {
  transform: translateY(1px);
}

.chakra-button:hover {
  background: #ff9e4b;
}

.css-1fa4om9 {
  background: #ff861e;
  color: #000000;
}
.css-1fa4om9:hover {
  background: #ff9e4b;
}

.css-q76qqy {
  background: #ffffff;
  color: #000000;
}
.css-q76qqy:hover {
  background: #fff;
}

.chakra-button:disabled,
.chakra-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* VORIGE button arrow <- + transition on hover */
.qs-icon-left svg {
  transform: rotate(180deg);
}

.qs-icon-left {
  display: inline-flex;
  transition: transform 0.25s ease;
}

.css-q76qqy:hover .qs-icon-left {
  transform: translateX(-6px);
}

/* =========================
   Invalid input style (Step 4 text inputs, etc.)
========================= */
.qs-invalid {
  outline: 2px solid #e53e3e;
  outline-offset: 2px;
}

/* =========================
   Steps 1–3 — Two column layout
========================= */
.qs-step[data-step="1"] .chakra-form-control[role="group"],
.qs-step[data-step="2"] .chakra-form-control[role="group"],
.qs-step[data-step="3"] .chakra-form-control[role="group"] {
  display: grid;
  grid-template-columns: 520px 1fr;
  column-gap: 48px;
  align-items: center;
}

/* remove bottom spacing under label */
.qs-step[data-step="1"] .chakra-form-control[role="group"] .css-70qvj9,
.qs-step[data-step="2"] .chakra-form-control[role="group"] .css-70qvj9,
.qs-step[data-step="3"] .chakra-form-control[role="group"] .css-70qvj9 {
  margin: 0;
}

/* remove margin-top from option container */
.qs-step[data-step="1"] .chakra-form-control[role="group"] .chakra-radio-group,
.qs-step[data-step="2"] .chakra-form-control[role="group"] .chakra-radio-group,
.qs-step[data-step="3"] .chakra-form-control[role="group"] .chakra-radio-group {
  margin-top: 0;
}

/* Mobile: stack question above options */
@media (max-width: 768px) {
  .qs-step[data-step="1"] .chakra-form-control[role="group"],
  .qs-step[data-step="2"] .chakra-form-control[role="group"],
  .qs-step[data-step="3"] .chakra-form-control[role="group"] {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
}

/* =========================
   Step 4 Two Column Layout
========================= */
.qs-two-col-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 10px; /* reduced spacing */
}

.qs-two-col-label {
  flex: 0 0 260px;
}

.qs-two-col-control {
  flex: 1 1 auto;
  min-width: 0;
}

.qs-step[data-step="4"] .chakra-form-control {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .qs-two-col-row {
    flex-direction: column;
    gap: 8px;
  }
  .qs-two-col-label {
    flex: 1 1 auto;
  }
}

/* =========================
   Step 4 Square Checkbox Style
========================= */
.chakra-checkbox.css-19686a6,
.chakra-checkbox.css-62cov {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
  margin-top: 0 !important;
}

/* Hide native checkbox */
.chakra-checkbox.css-19686a6 input[type="checkbox"],
.chakra-checkbox.css-62cov input[type="checkbox"],
.chakra-checkbox__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* The square box element */
.qs-checkbox-control {
  width: 20px;
  height: 20px;
  border-radius: 0.125rem;
  border: 2px solid #cbd5e0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  margin-top: 2px;
}

/* Checked state */
.chakra-checkbox.css-19686a6 input[type="checkbox"]:checked + .qs-checkbox-control,
.chakra-checkbox.css-62cov input[type="checkbox"]:checked + .qs-checkbox-control,
.chakra-checkbox__input:checked + .qs-checkbox-control {
  border-color: #ff861e;
  background: #ff861e;
}

/* Checkmark */
.chakra-checkbox.css-19686a6 input[type="checkbox"]:checked + .qs-checkbox-control::after,
.chakra-checkbox.css-62cov input[type="checkbox"]:checked + .qs-checkbox-control::after,
.chakra-checkbox__input:checked + .qs-checkbox-control::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  display: block;
  margin-top: -1px;
}

/* Hover */
.chakra-checkbox:hover .qs-checkbox-control {
  border-color: #a0aec0;
}

.chakra-checkbox__label.css-7venl8 {
  font-size: 16px;
  line-height: 1.5;
  color: #1a202c;
}

.chakra-checkbox__label.css-7venl8 a {
  color: #1a202c;
  text-decoration: underline;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .css-8rirfr {
    padding: 0 16px;
  }

  .css-rszk63 {
    padding: 16px;
  }

  .chakra-input {
    height: 42px;
  }

  .chakra-button {
    height: 42px;
    padding: 0 16px;
  }

  .css-1lekzkb,
  .qs-step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .css-1lekzkb .chakra-button,
  .qs-step-actions .chakra-button {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .css-8rirfr {
    padding: 0 20px;
  }
}


/* =========================================
   Step 4 Intro Box (like screenshot)
========================================= */
.qs-step[data-step="4"] .qs-step4-intro {
  background: #edf2f7;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  margin-bottom: 18px;
  border-left: 6px solid #ff861e;
}

.qs-step[data-step="4"] .qs-step4-title {
  margin: 0 0 6px 0;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #000000;
}

.qs-step[data-step="4"] .qs-step4-text {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  color: rgb(0 0 0 / 48%);
}


/* =========================
   Loading / Spinner
========================= */
@keyframes qs-spin {
  to { transform: rotate(360deg); }
}

/* Spinner inside the button (black, matches your button text) */
.qs-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: #000;
  border-radius: 9999px;
  animation: qs-spin 0.8s linear infinite;
}

.chakra-button.qs-loading {
  cursor: not-allowed;
  opacity: 0.85;
}

.chakra-button.qs-loading .qs-btn-spinner {
  display: inline-block;
}

/* Optional full-page overlay while processing */
#qs-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#qs-loading-overlay .qs-overlay-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

#qs-loading-overlay .qs-overlay-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0,0,0,.18);
  border-top-color: #ff861e; /* your orange */
  border-radius: 9999px;
  animation: qs-spin 0.8s linear infinite;
}

#qs-loading-overlay .qs-overlay-text {
  font-weight: 700;
  color: #000;
}
.chakra-button.qs-loading .qs-btn-label { display: none; }


