/* CPZ Riooltechniek — gedeelde huisstijl (blauw + wit) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/shared/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/shared/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/shared/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/shared/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(/shared/fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/shared/fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(/shared/fonts/manrope-latin-800-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --blue: #06A6D8;          /* CPZ-blauw (vlakken, accenten) */
  --blue-strong: #0388B3;   /* knoppen: zelfde blauw, net iets dieper voor leesbaarheid */
  --blue-ink: #04729A;      /* links/tekst in blauw op wit */
  --blue-soft: #E7F6FB;
  --blue-softer: #F2FAFD;
  --ink: #121212;
  --muted: #5F6B73;
  --line: #E3E8EC;
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --green: #1F8A4C; --green-soft: #E6F4EC;
  --red: #C0362C;   --red-soft: #FBEBEA;
  --amber: #A85F00; --amber-soft: #FFF3E0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 18, 18, .05), 0 6px 24px rgba(18, 40, 56, .07);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-ink); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font: 700 .78rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }

/* knoppen */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.2rem; border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font); color: #fff; background: var(--blue-strong);
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: #027AA1; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(6, 166, 216, .45); outline-offset: 2px; }
.btn.big { width: 100%; min-height: 56px; font-size: 1.07rem; border-radius: 12px; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--blue-softer); box-shadow: inset 0 0 0 1.5px #CFE3EC; }
.btn.danger { background: var(--surface); color: var(--red); box-shadow: inset 0 0 0 1.5px #F0C9C5; }
.btn.green { background: var(--green); }
.btn[disabled] { opacity: .55; cursor: default; }

/* formulier */
label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 1rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: .4rem; min-height: 50px; padding: .7rem .85rem;
  font: 400 1.02rem/1.3 var(--font); color: var(--ink); background: #fff;
  border: 1.5px solid #D5DDE2; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6, 166, 216, .15); outline: none; }
input[readonly] { background: var(--blue-softer); }
.field-err input, .field-err select { border-color: var(--red); }
.err-msg { display: block; color: var(--red); font-weight: 500; font-size: .85rem; margin-top: .3rem; }
.check-row { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .93rem; }
.check-row input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--blue-strong); }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 1.2rem; }
.seg button { border: 0; background: transparent; min-height: 44px; border-radius: 9px; font: 600 .97rem var(--font); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; } }
[hidden] { display: none !important; }
