.form-field {
  --veldrand: #8192a6;
  --veldinkt: #202b40;
  --veldhint: #52617a;
  --veldblauw: #294ac3;
  --veldradius: 12px;
  --veldlicht: #f7f9fe;
  min-width: 0; margin-bottom: 12px;
}
.veld-controle {
  position: relative; min-width: 0; padding: 10px 16px 9px; border: 1px solid var(--veldrand);
  border-radius: var(--veldradius); background: linear-gradient(112deg,#fff 25%,var(--veldlicht));
  color: var(--veldinkt);
}
.veld-controle:hover { border-color: #647893; }
.veld-controle:focus-within, .veld-controle[data-open] {
  border-color: var(--veldblauw); background: #fff;
  box-shadow: 0 0 0 3px rgb(52 85 209 / 13%);
}
.form-field .veld-controle > label {
  display: block; margin: 0 0 3px; color: #44546c; font-size: .8125rem; font-weight: 590;
  letter-spacing: .003em; line-height: 1.4;
}
.form-field .veld-controle > label span { font-size: inherit; font-weight: 420; color: #616e81; }
.veld-controle:focus-within > label, .veld-controle[data-open] > label { color: var(--veldblauw); }
.veld-keuze { padding-right: 57px; }
.form-field .veld-kiezer {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--veldinkt);
  font: inherit; font-size: 1.0625rem; font-weight: 515; line-height: 1.42; text-align: left;
}
.veld-kiezer::before { position: absolute; inset: 0; content: ""; border-radius: var(--veldradius); }
.veld-kiezer:focus-visible, .form-field .veld-controle :is(input,textarea):focus-visible { outline: none; }
.veld-waarde { overflow-wrap: anywhere; }
.veld-keuze[data-leeg] .veld-waarde { color: var(--veldhint); font-weight: 430; }
.veld-pijl {
  position: absolute; inset-inline-end: 13px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: #e9effc; color: var(--veldblauw); pointer-events: none;
}
.veld-pijl::before {
  content: ""; width: 7px; height: 7px; box-sizing: border-box;
  border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.veld-keuze[data-open] { z-index: 3; }
.veld-keuze[data-open] .veld-pijl { background: #dfe8ff; }
.veld-keuze[data-open] .veld-pijl::before { transform: translateY(2px) rotate(225deg); }
.veld-opties {
  position: absolute; z-index: 1; inset-inline: -1px; top: calc(100% + 7px); max-height: 380px;
  min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a5b5d1 transparent;
  list-style: none; margin: 0; padding: 5px; border: 1px solid #c5d1e4; border-radius: 14px; background: #fff;
  box-shadow: 0 14px 34px -8px rgb(29 48 91 / 18%), 0 2px 7px rgb(29 48 91 / 6%);
  transform-origin: top center;
}
.veld-keuze[data-omhoog] .veld-opties { top: auto; bottom: calc(100% + 7px); transform-origin: bottom center; }
.veld-opties [role="option"] {
  position: relative; display: flex; align-items: center; min-height: 43px; padding: 9px 38px 9px 11px;
  border-radius: 8px; font-size: 1rem; line-height: 1.35; font-weight: 460; color: var(--veldinkt);
  overflow-wrap: anywhere; cursor: pointer;
}
.veld-opties [data-actief] { background: #edf2fd; color: #213c99; }
.veld-opties [aria-selected="true"] { color: #2444af; font-weight: 590; }
.veld-opties [aria-selected="true"]::after {
  position: absolute; right: 16px; top: 50%; width: 6px; height: 11px; content: ""; box-sizing: border-box;
  border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-60%) rotate(45deg);
}
.veld-tekstregel, .veld-tekstvak { cursor: text; }
.form-field .veld-controle :is(input,textarea) {
  display: block; width: 100%; height: auto; min-height: 0; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0;
  appearance: none; background: transparent; color: var(--veldinkt); caret-color: var(--veldblauw);
  font: inherit; font-size: 1.0625rem; line-height: 1.42; font-weight: 470;
}
.veld-tekstregel > label { width: fit-content; max-width: 100%; transform-origin: left top; }
.form-field .veld-tekstregel:has(input:placeholder-shown):not(:focus-within) > label {
  color: var(--veldhint); font-weight: 460; transform: translateY(11px) scale(1.15);
}
.form-field .veld-tekstvak > textarea { min-height: 102px; resize: vertical; line-height: 1.52; }
.veld-controle:has([aria-invalid="true"]) { border-color: #ac4556; }
.veld-controle:has([aria-invalid="true"]):focus-within { box-shadow: 0 0 0 3px rgb(169 64 83 / 13%); }
.form-field .field-error { margin: 6px 1px 2px; }
@media (prefers-reduced-motion: no-preference) {
  .veld-controle, .veld-pijl { transition: border-color .16s, box-shadow .16s, background-color .16s; }
  .veld-pijl::before, .veld-tekstregel > label { transition: transform .18s ease, color .18s ease; }
  .veld-keuze[data-open] .veld-opties { animation: veld-open .15s ease-out; }
  @keyframes veld-open { from { opacity: 0; transform: scaleY(.985); } to { opacity: 1; transform: none; } }
}
@media (max-width: 550px) {
  .veld-controle { padding-inline-start: 13px; }
  .veld-keuze { padding-inline-end: 49px; }
  .veld-pijl { inset-inline-end: 10px; width: 28px; height: 28px; }
  .veld-opties [role="option"] { min-height: 44px; }
}
@media (max-width: 360px) {
  .form-duo { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media (forced-colors: active) {
  .veld-controle, .veld-opties { border-color: ButtonText; }
  .veld-controle:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
  .veld-opties [data-actief] { outline: 1px solid Highlight; outline-offset: -1px; }
}
.veld-controle > select[hidden], .veld-opties[hidden] { display: none !important; }
@media print {
  .veld-opties, .veld-pijl { display: none; }
  .veld-controle { box-shadow: none; background: white; }
}
