
    :root {
      --green: #015f27;
      --green-soft: #568c6d;
      --lime: #c7d300;
      --ink: #1f2937;
      --muted: #66758e;
      --surface: #f3f8f5;
      --line: #dce7e0;
      --danger: #a52626;
      --white: #fff;
      --shadow: 0 18px 42px rgba(31, 41, 55, .09);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: #eef3f0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.5;
    }
    button, input, select, textarea { font: inherit; }
    button, input, select, textarea { min-height: 50px; }
    button { cursor: pointer; }

    .site-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 22px max(24px, calc((100% - 1160px) / 2));
      background: var(--white);
      border-bottom: 1px solid var(--line);
    }
    .brand { display: block; flex: 0 1 190px; min-width: 0; line-height: 0; }
    .brand img { display: block; width: 100%; height: auto; }
    .brand:focus-visible, .receipt-confirmation h2:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
    .receipt-confirmation { margin-top: 24px; scroll-margin-top: 24px; }
    #prototype-result { overflow-wrap: anywhere; }
    .receipt-home { display: inline-block; text-align: center; text-decoration: none; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
    .safe-note { color: var(--muted); font-size: 14px; text-align: right; }

    .prototype-banner {
      padding: 12px 24px;
      color: #14331f;
      background: #e7efd0;
      border-bottom: 1px solid #cbd7a5;
      font-size: 14px;
      font-weight: 650;
      text-align: center;
    }

    main { width: min(1160px, calc(100% - 32px)); margin: 42px auto 80px; }
    .intro { max-width: 760px; margin-bottom: 28px; }
    h1, h2, h3 { margin-top: 0; line-height: 1.16; letter-spacing: -.025em; }
    h1 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 52px); }
    h2 { margin-bottom: 10px; font-size: clamp(27px, 3.4vw, 38px); }
    h3 { font-size: 21px; }
    p { margin-top: 0; }
    .intro p, .step-intro { color: var(--muted); font-size: 17px; }

    .application-shell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px;
      gap: 28px;
      align-items: start;
    }
    .form-card, .side-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: var(--shadow);
    }
    .form-card { padding: clamp(24px, 4vw, 48px); }
    .side-card { position: sticky; top: 18px; padding: 26px; }

    .progress-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
    .progress-track { height: 8px; margin-bottom: 38px; overflow: hidden; background: var(--line); border-radius: 999px; }
    .progress-bar { width: 16.666%; height: 100%; background: var(--green); transition: width .25s ease; }

    .step[hidden], [hidden] { display: none !important; }
    .section-block { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
    .section-block:first-of-type { margin-top: 24px; }
    .section-heading { margin-bottom: 18px; }

    .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .field { min-width: 0; }
    .field.full { grid-column: 1 / -1; }
    label, legend { display: block; margin-bottom: 7px; font-weight: 700; }
    .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
    input, select, textarea {
      width: 100%;
      padding: 11px 13px;
      color: var(--ink);
      background: var(--white);
      border: 1px solid #bccbc2;
      border-radius: 8px;
      outline: 0;
    }
    /* iOS Safari telt padding soms buiten de breedte van native datumvelden.
       Houd het veld zelf zonder padding; plaats de ruimte in de datumweergave. */
    input[type="date"] {
      display: inline-flex;
      align-items: center;
      min-width: 0;
      max-width: 100%;
      height: 50px;
      padding: 0;
      -webkit-appearance: none;
      appearance: none;
    }
    input[type="date"]::-webkit-datetime-edit { padding: 0 13px; }
    input[type="date"]::-webkit-date-and-time-value {
      min-height: 1.5em;
      padding: 0 13px;
      text-align: left;
    }
    select {
      height: 50px;
      padding-right: 42px;
      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 13px center;
      background-size: 18px;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(1, 95, 39, .15); }
    #truthful { accent-color: var(--green); }
    input.user-valid:not(:focus), select.user-valid:not(:focus), textarea.user-valid:not(:focus) { border-color: #78a88a; }
    input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
    .choice input[aria-invalid="true"] + label { border-color: var(--danger); }
    textarea { min-height: 105px; resize: vertical; }

    fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
    .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .choice { position: relative; }
    .choice input { position: absolute; opacity: 0; pointer-events: none; }
    .choice label {
      display: flex;
      align-items: center;
      min-height: 52px;
      margin: 0;
      padding: 12px 14px;
      border: 1px solid #bccbc2;
      border-radius: 9px;
      cursor: pointer;
    }
    .choice input:checked + label { color: var(--green); background: #eef7f1; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
    .choice input:focus-visible + label { outline: 3px solid rgba(1, 95, 39, .2); outline-offset: 2px; }

    .money-wrap { position: relative; }
    .money-wrap::before { content: "€"; position: absolute; left: 13px; top: 11px; color: var(--muted); }
    .money-wrap input { padding-left: 31px; }

    .notice { margin: 22px 0; padding: 16px 18px; color: #20402b; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
    .error-summary { margin: 20px 0 0; padding: 14px 16px; color: #6f1818; background: #fff2f2; border: 1px solid #e5b7b7; border-radius: 8px; }
    .error-summary a, .error-summary a:visited { color: var(--green); text-decoration: underline; }
    .error-summary a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

    .actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
    .button { min-width: 150px; padding: 12px 20px; border: 1px solid var(--green); border-radius: 8px; font-weight: 750; }
    .button-primary { color: var(--white); background: var(--green); }
    .button-primary:hover { background: #014a1f; }
    .button-secondary { color: var(--green); background: var(--white); }
    .lookup-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
    .lookup-button { min-width: 140px; padding: 10px 14px; color: var(--green); background: var(--white); border: 1px solid var(--green); border-radius: 8px; font-weight: 750; }

    .side-card ol { margin: 0; padding: 0; list-style: none; }
    .side-card li { display: flex; gap: 11px; align-items: center; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; }
    .side-card li:last-child { border-bottom: 0; }
    .step-dot { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border: 1px solid #b8c8be; border-radius: 50%; font-size: 12px; font-weight: 800; }
    .side-card li.active { color: var(--ink); font-weight: 750; }
    .side-card li.active .step-dot { color: var(--white); background: var(--green); border-color: var(--green); }
    .side-card li.done .step-dot { color: var(--green); background: #e8f3ec; border-color: var(--green); }
    .privacy-box { margin-top: 22px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }

    .summary { display: grid; gap: 16px; }
    .summary-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
    .summary-card h3 { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
    .edit-step { min-height: auto; padding: 0; color: var(--green); background: none; border: 0; font-size: 14px; text-decoration: underline; }
    .summary-card dl { display: grid; grid-template-columns: minmax(140px, .8fr) 1.2fr; gap: 8px 18px; margin: 0; }
    .summary-card dt { color: var(--muted); }
    .summary-card dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
    .prototype-submit { width: 100%; margin-top: 22px; padding: 15px 20px; color: #315118; background: var(--lime); border: 0; border-radius: 8px; font-weight: 800; }

    @media (max-width: 900px) {
      .application-shell { grid-template-columns: 1fr; }
      .side-card { position: static; order: -1; }
      .side-card ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
      .side-card li { justify-content: center; padding: 0; border: 0; }
      .side-card li span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
      .privacy-box { display: none; }
    }
    @media (max-width: 640px) {
      .site-header { align-items: flex-start; padding: 18px 20px; }
      .site-header { gap: 16px; }
      .brand { flex-basis: 160px; }
      .safe-note { max-width: 170px; font-size: 12px; }
      main { width: min(100% - 20px, 1160px); margin-top: 24px; }
      .form-card { padding: 24px 18px; border-radius: 14px; }
      .side-card { padding: 16px 18px; border-radius: 14px; }
      .grid, .grid-3 { grid-template-columns: 1fr; }
      .choices { grid-template-columns: 1fr; }
      .lookup-row { grid-template-columns: 1fr; }
      .actions { align-items: stretch; flex-direction: column-reverse; }
      .button { width: 100%; }
      .summary-card dl { grid-template-columns: 1fr; gap: 2px; }
      .summary-card dd { margin-bottom: 9px; }
    }
    body.embedded { background: transparent; }
    body.embedded .site-header,
    body.embedded .prototype-banner { display: none; }
    body.embedded main { width: 100%; margin: 0; padding: 2px; }
    body.embedded .intro { margin: 0 0 28px; }
  
.receipt-download { margin-top: 20px; }
.receipt-download .button { max-width: 100%; white-space: normal; }
