/* ==========================================================================
   DESIGN TOKENS (globaal)
   ========================================================================== */
:root {
  --brand: #1a73e8; /* primair DSC-blauw */
  --brand-600: #185ec1;
  --brand-700: #114a9b;

  --chat-size: 64px; /* standaardgrootte chat-launcher */
  --text: #ffffff; /* tekst op donkere achtergronden */
  --ink: #0f172a; /* donkerblauw/zwart voor tekst/nav */
  --bg: #0b1220;

  --overlay-from: rgba(100, 100, 100, 0.8); /* gradient onderzijde */
  --overlay-to: rgba(255, 255, 255, 0.01); /* gradient bovenzijde */

  --radius: 50px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  --focus: 0 0 0 3px rgba(26, 115, 232, 0.35);

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

   --adm-surface: #fff;
}

/* 2) Universele, nette focusring voor toetsenbordgebruikers */
:where(*):focus-visible {
  outline: none; /* vervang de browser-outline */
  box-shadow: 0 0 0 3px 
 color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 8px; /* optioneel, pas aan naar smaak */
}

/* 3) Opt-out mogelijkheid voor specifieke elementen */
:where(.no-focus-ring, [data-no-focus-ring]):focus-visible {
  box-shadow: none;
}

*[hidden]{
  display: none !important;
}

/* 4) Fallback voor browsers zonder :focus-visible */
@supports not selector(:focus-visible) {
  :where(*):focus {
    outline: none;
    box-shadow: var(--shadow), var(--focus);
    border-radius: 8px;
  }
}

/* ==========================================================================
   BASE STYLES / RESET
   ========================================================================== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   BUTTONS (globaal)
   ========================================================================== */
.btn,
.btn:link,
.btn:visited {
  font-family: inherit;
  font-size: 1rem; 
  line-height: 1.15;
  text-decoration: none;
}

/* Reset browser-afwijkingen op echte buttons (iOS/Win) */
button.btn {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

button.btn {
  cursor: pointer;
}

.btn {
  --padY: 14px;
  --padX: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  min-height: 60px;
  padding: var(--padY) var(--padX);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--focus);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-600);
}
.btn--primary:active {
  background: var(--brand-700);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.btn--white {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--adm-border);
  background: var(--adm-surface);
  cursor: pointer;
  font: inherit;
}
.btn--white:hover {
  background: color-mix(in srgb, var(--brand) 6%, var(--adm-surface));
}

.cta-group {
  display: flex;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   SLIDE IN PANEL
   ========================================================================== */

:root {
  --ink: #0f172a;
  --brand: #1a73e8;
}

/* Scroll lock wanneer paneel open is */
body.no-scroll {
  overflow: hidden;
}

/* Overlay + slide-in basis */
.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 401;
  display: grid;
  place-items: stretch end;
  background: rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
  overscroll-behavior: contain;
}

.contact-panel[hidden] {
  opacity: 0;
  pointer-events: none;
}

.contact-panel__content {
  width: min(650px, 100vw);
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 100vh; /* fallback */
  height: 100dvh; /* correcte viewport op mobiel */
  max-height: 100dvh;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.contact-panel:not([hidden]) .contact-panel__content {
  transform: translateX(0);
}

.contact-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.9)
  );
}

.contact-panel__header h2 {
  margin: 0;
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.contact-panel__close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  border-radius: 10px;
  padding: 2px 6px;
}

.contact-panel__close:hover {
  background: rgba(15, 23, 42, 0.06);
}

.contact-panel__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.35);
}

.contact-panel__body {
  padding: 18px;
  flex: 1 1 auto;
  min-height: 0; /* BELANGRIJK: zonder dit geen overflow in flex child */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* soepele scroll op iOS */
}






/* ====== Form basis: flex + gap + inputs (voor BEIDE formulieren) ====== */


/* Feedback (gedeeld) */
.contact-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.35;
}

.contact-msg--ok {
  background: #ecfdf5;
  border-color: #10b98133;
  color: #065f46;
}

.contact-msg--error {
  background: #fef2f2;
  border-color: #ef444433;
  color: #7f1d1d;
}



/* ==========================================================================
   FORMULIER STYLES (gedeeld voor alle formulieren)
   ========================================================================== */

/* Accessibility: Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1a73e8;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label > span {
  font-weight: 700;
}

/* Intro sectie */
.form-intro,
.aanmelden__intro,
.afmelden__intro {
  margin-bottom: 24px;
  background: #f2f4f7;
  padding: 12px 16px;
  min-height: 90px;
}

/* Hints */
.hint {
  color: #475569;
  font-size: 0.9rem;
}

/* Formulier basis layout */
.form-fieldset,
.aanm-fieldset,
.afm-fieldset,
.faces-fieldset {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.form-fieldset legend,
.aanm-fieldset legend,
.afm-fieldset legend,
.faces-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}

/* Inputs en textareas voor alle formulieren */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: #0f172a;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.02) inset;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

/* Datums container */
.form-dates,
.aanm-dates,
.afm-dates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Grid voor datums/checkboxes */
.form-dates-grid,
.aanm-dates-grid,
.afm-dates-grid {
  margin-top: 0px;
  padding-top: 0px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 14px;
}

/* Checkbox/Radio items */
.form-date-item,
.form-checkbox-item,
.form-radio-item,
.aanm-date-item,
.afm-date-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-radio-item:hover,
.form-date-item:hover,
.aanm-date-item:hover,
.afm-date-item:hover,
.radio-item:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.15);
}

.form-date-item input[type="checkbox"],
.form-checkbox-item input[type="checkbox"],
.form-radio-item input[type="radio"],
.aanm-date-item input[type="checkbox"],
.afm-date-item input[type="checkbox"],
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-radio-item label,
.form-date-item label,
.aanm-date-item label,
.afm-date-item label,
.radio-item label {
  cursor: pointer;
  flex: 1;
  margin: 0;
}

/* Datepicker rij */
.form-date-add__row,
.aanm-date-add__row,
.afm-date-add__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Chips (gekozen datums) */
.form-picked,
.aanm-picked,
.afm-picked {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0px;
  padding: 0;
}

.form-chip,
.aanm-chip,
.afm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #e4f0fb;
}

.form-chip button,
.aanm-chip button,
.afm-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}

/* Subtitels */
.form-subtitle,
.aanm-subtitle,
.afm-subtitle {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Multi-step Progress Indicator */
.form-progress,
.aanm-progress,
.afm-progress {
  margin-bottom: 32px;
}

.form-progress__bar,
.aanm-progress__bar,
.afm-progress__bar {
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.form-progress__fill,
.aanm-progress__fill,
.afm-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8, #4a90e2);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 33.33%;
}

.form-progress__steps,
.aanm-progress__steps,
.afm-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-progress__step,
.aanm-progress__step,
.afm-progress__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  border: none;
}

.form-progress__step-number,
.aanm-progress__step-number,
.afm-progress__step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.form-progress__step-label,
.aanm-progress__step-label,
.afm-progress__step-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-progress__step--active .form-progress__step-number,
.aanm-progress__step--active .aanm-progress__step-number,
.afm-progress__step--active .afm-progress__step-number {
  background: #1a73e8;
  color: white;
}

.form-progress__step--active .form-progress__step-label,
.aanm-progress__step--active .aanm-progress__step-label,
.afm-progress__step--active .afm-progress__step-label {
  color: #1a73e8;
}

.form-progress__step--completed .form-progress__step-number,
.aanm-progress__step--completed .aanm-progress__step-number,
.afm-progress__step--completed .afm-progress__step-number {
  background: #10b981;
  color: white;
}

.form-progress__step--completed .form-progress__step-number::after,
.aanm-progress__step--completed .aanm-progress__step-number::after,
.afm-progress__step--completed .afm-progress__step-number::after {
  content: "✓";
}

.form-progress__step--completed .form-progress__step-label,
.aanm-progress__step--completed .aanm-progress__step-label,
.afm-progress__step--completed .afm-progress__step-label {
  color: #475569;
}

.form-progress__step:focus,
.aanm-progress__step:focus,
.afm-progress__step:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.form-progress__step:focus:not(:focus-visible),
.aanm-progress__step:focus:not(:focus-visible),
.afm-progress__step:focus:not(:focus-visible) {
  outline: none;
}

.form-progress__step:focus-visible,
.aanm-progress__step:focus-visible,
.afm-progress__step:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

/* Multi-step Form Steps */
.form-step,
.aanm-step,
.afm-step {
  display: none;
  animation: formFadeIn 0.3s ease;
}

.form-step--active,
.aanm-step--active,
.afm-step--active {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 12px;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Buttons */
.form-navigation,
.aanm-navigation,
.afm-navigation {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}

.form-navigation button,
.aanm-navigation button,
.afm-navigation button {
  flex: 1;
}

.form-navigation button:first-child,
.aanm-navigation button:first-child,
.afm-navigation button:first-child {
  margin-right: auto;
}

.form-navigation button:last-child,
.aanm-navigation button:last-child,
.afm-navigation button:last-child {
  margin-left: auto;
}

/* Summary (voor multi-step) */
.form-summary,
.aanm-summary,
.afm-summary {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-summary__title,
.aanm-summary__title,
.afm-summary__title {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.form-summary__section,
.aanm-summary__section,
.afm-summary__section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.form-summary__section:last-of-type,
.aanm-summary__section:last-of-type,
.afm-summary__section:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.form-summary__section h4,
.aanm-summary__section h4,
.afm-summary__section h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a73e8;
}

.form-summary__list,
.aanm-summary__list,
.afm-summary__list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.form-summary__list dt,
.aanm-summary__list dt,
.afm-summary__list dt {
  font-weight: 600;
  color: #475569;
}

.form-summary__list dd,
.aanm-summary__list dd,
.afm-summary__list dd {
  margin: 0;
  color: #0f172a;
}

.form-edit-btn,
.aanm-edit-btn,
.afm-edit-btn {
  width: 100%;
  margin-bottom: 24px;
}

/* Grid layouts */
.form-name-grid,
.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-address-grid,
.address-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

/* Info box */
.form-info-box,
.info-box {
  background: #e6f0ff;
  border-left: 4px solid #1a73e8;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
}

.form-info-box p,
.info-box p {
  margin: 0;
  color: #0f172a;
  line-height: 1.5;
}

.form-info-box strong,
.info-box strong {
  color: #1a73e8;
}

/* Radio groep */
.form-radio-group,
.radio-group {
  margin-top: 0px;
  padding-top: 0px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 14px;
}

/* Checkbox styling voor voorwaarden */
.form-checkbox-terms,
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #f8fafc;
  margin-top: 16px;
}

.form-checkbox-terms input[type="checkbox"],
.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox-terms label,
.checkbox-item label {
  flex: 1;
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-terms label a,
.checkbox-item label a {
  color: #1a73e8;
  text-decoration: underline;
}

/* Honeypot */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Responsive aanpassingen */
@media (max-width: 640px) {
  .form-name-grid,
  .form-address-grid,
  .name-grid,
  .address-grid {
    grid-template-columns: 1fr;
  }

  .form-intro,
  .aanmelden__intro,
  .afmelden__intro {
    min-height: auto;
  }

  .form-progress__step-label,
  .aanm-progress__step-label,
  .afm-progress__step-label {
    font-size: 0.75rem;
  }

  .form-progress__step-number,
  .aanm-progress__step-number,
  .afm-progress__step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .form-summary__list,
  .aanm-summary__list,
  .afm-summary__list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-summary__list dt,
  .aanm-summary__list dt,
  .afm-summary__list dt {
    font-weight: 700;
    margin-top: 8px;
  }

  .form-summary__list dt:first-child,
  .aanm-summary__list dt:first-child,
  .afm-summary__list dt:first-child {
    margin-top: 0;
  }

  .form-navigation,
  .aanm-navigation,
  .afm-navigation {
    flex-direction: column;
  }

  .form-navigation button,
  .aanm-navigation button,
  .afm-navigation button {
    max-width: none;
  }
}

/* ==========================================================================
   MISC
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
    transform: none;
  }
}

/* toegankelijkheid helper */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  clip-path: inset(50%);
}
