/* ==========================================================================
   DESIGN TOKENS (globaal)
   ========================================================================== */
/* ligght mode (standaard) */
   :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;

   --modal-background:rgba(2, 6, 23, 0.28);
   --modal-blur: blur(2px);
}


/* 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%;
}

/* ==========================================================================
   MODAL (globaal) — gebruikt door meerdere componenten
   - Generieke variant: .modal + subelementen
   - Blogpost variant: .blogpost-modal + subelementen
   ========================================================================== */

/* Container */
.modal,
.blogpost-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal:not([hidden]),
.blogpost-modal:not([hidden]) {
  display: flex;
}

/* Overlay */
.modal__backdrop,
.blogpost-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

/* Content */
.modal__content,
.blogpost-modal__content {
  position: relative;
  background: var(--adm-surface, #fff);
  border-radius: var(--adm-radius, 14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  width: 100%;
  max-height: 85vh;
  height: 85vh;
  display: flex;
  flex-direction: column;
  margin-top: 64px;
}

/* Blogpost modal transitions */
.blogpost-modal__overlay { animation: fadeIn 0.2s ease; }
.blogpost-modal__content { animation: slideUp 0.3s ease; }

/* Header */
.modal__header,
.blogpost-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--adm-border, rgba(15, 23, 42, 0.12));
}

.modal__title,
.blogpost-modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--adm-ink, #0f172a);
  font-weight: 700;
}

/* Close button */
.modal__close,
.blogpost-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--adm-muted, #667085);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover,
.blogpost-modal__close:hover {
  background: #f3f4f6;
  color: var(--adm-ink, #0f172a);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

/* Body */
.modal__body,
.blogpost-modal__body {
  padding: 24px;
  overflow-y: auto;
}

/* Blogpost-specifieke states (loading/error) */
.blogpost-modal__loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.blogpost-spinner { width: 48px; height: 48px; border: 4px solid #e5e7eb; border-top-color: var(--adm-brand, #1a73e8); border-radius: 50%; animation: modalSpin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes modalSpin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.blogpost-modal__error { text-align: center; padding: 40px 20px; color: #64748b; }
.blogpost-modal__error-icon { font-size: 48px; opacity: 0.5; margin-bottom: 16px; }
.blogpost-modal__error-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--ink, #1a202c); }
.blogpost-modal__error-message { font-size: 14px; opacity: 0.7; margin-bottom: 16px; }
.blogpost-modal__error-retry { margin-top: 16px; padding: 10px 24px; background: var(--brand, #1a73e8); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s ease; }
.blogpost-modal__error-retry:hover { background: #1557b0; }

@media (max-width: 768px){
  .modal, .blogpost-modal {
    padding: 0px;
    z-index: 101;
  }

  .modal__content,
  .blogpost-modal__content {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh; /* Dynamic viewport height voor betere iPhone ondersteuning */
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0px;
    margin: 0px;
    margin-top: 0px; /* Reset desktop margin-top */
    padding: 0px;
  }

  /* Ensure modal body takes available space */
  .modal__body,
  .blogpost-modal__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Blogpost modal content helpers */
.blogpost-modal__body .post-modal-meta { padding-bottom: 16px !important; margin-bottom: 20px !important; border-bottom: 1px solid var(--adm-border, rgba(15, 23, 42, 0.12)) !important; }
.blogpost-modal__body .post-modal-meta-row { display: flex !important; align-items: center !important; gap: 12px !important; flex-wrap: wrap !important; font-size: 0.875rem !important; color: var(--muted, #707785) !important; margin-bottom: 0 !important; }
.blogpost-modal__body .post-modal-author,
.blogpost-modal__body .post-modal-date { display: inline-flex !important; align-items: center !important; gap: 4px !important; }
.blogpost-modal__body .post-modal-categories { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
.blogpost-modal__body .category-tag-modal { display: inline-block !important; padding: 4px 10px !important; background: #e6f0ff !important; color: #1A67E0 !important; border-radius: 12px !important; font-size: 0.75rem !important; font-weight: 600 !important; line-height: 1.3 !important; margin-top: auto;
    margin-bottom: auto; }

.blogpost-modal__body .post-full-content { color: var(--ink, #1a202c); line-height: 1.7; font-size: 1rem; }
.blogpost-modal__body .post-full-content h1,
.blogpost-modal__body .post-full-content h2,
.blogpost-modal__body .post-full-content h3 { color: var(--ink, #1a202c); margin-top: 1.5em; margin-bottom: 0; font-weight: 700; }
.blogpost-modal__body .post-full-content h1 { font-size: 2rem; margin-top: 0; }
.blogpost-modal__body .post-full-content h2 { font-size: 1.5rem; }
.blogpost-modal__body .post-full-content h3 { font-size: 1.25rem; font-weight: normal; }
.blogpost-modal__body .post-full-content p { margin: 1em 0; }
.blogpost-modal__body .post-full-content img { 
    max-height: 65vh;
    max-width: 100%;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    object-fit: cover;
}
@media (max-width: 768px) {
  .blogpost-modal__body .post-full-content img { 
    height: auto;
  }
}
.wp-block-image{
  margin-left: 0px !important;
  margin-right: 0px !important;
}

.blogpost-modal__body .post-full-content a { color: var(--brand, #1a73e8); text-decoration: underline; }
.blogpost-modal__body .post-full-content a:hover { color: #1557b0; }
.blogpost-modal__body .post-full-content ul,
.blogpost-modal__body .post-full-content ol { margin: 0; padding-left: 2em; }
.blogpost-modal__body .post-full-content li { margin: 0; }
.blogpost-modal__body .post-full-content blockquote { border-left: 4px solid var(--brand, #1a73e8); padding-left: 1em; margin: 1.5em 0; color: var(--muted, #707785); font-style: italic; }
.blogpost-modal__body .post-full-content code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.9em; }
.blogpost-modal__body .post-full-content pre { background: #f3f4f6; padding: 1em; border-radius: 8px; overflow-x: auto; margin: 1.5em 0; }
.blogpost-modal__body .post-full-content pre code { background: none; padding: 0; }

/* Comments section */
.blogpost-modal__body .post-comments-section { margin-top: 2em; padding-top: 1.5em; border-top: 2px solid var(--adm-border, rgba(15, 23, 42, 0.12)); }
.blogpost-modal__body .post-comments-section #comments,
.blogpost-modal__body .post-comments-section .comments-area { margin: 0; }
.blogpost-modal__body .post-comments-section .comments-title,
.blogpost-modal__body .post-comments-section h2,
.blogpost-modal__body .post-comments-section h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.blogpost-modal__body .post-comments-section .comment-list,
.blogpost-modal__body .post-comments-section ol.comment-list { list-style: none; padding: 0; margin: 0; }
.blogpost-modal__body .post-comments-section .comment,
.blogpost-modal__body .post-comments-section li.comment { margin-bottom: 1em; padding: 1em; background: #f9fafb; border-radius: 8px; border: 1px solid var(--adm-border, rgba(15, 23, 42, 0.08)); }
.blogpost-modal__body .post-comments-section .comment-author { font-weight: 700; font-size: 0.95rem; color: var(--ink, #1a202c); margin-bottom: 0.25em; }
.blogpost-modal__body .post-comments-section .comment-author img,
.blogpost-modal__body .post-comments-section .avatar { border-radius: 50%; margin-right: 6px; vertical-align: middle; width: 32px; height: 32px; }
.blogpost-modal__body .post-comments-section .comment-metadata,
.blogpost-modal__body .post-comments-section .comment-meta { font-size: 0.8rem; color: var(--muted, #707785); margin-bottom: 0.75em; }
.blogpost-modal__body .post-comments-section .comment-metadata a,
.blogpost-modal__body .post-comments-section .comment-meta a { color: var(--muted, #707785); text-decoration: none; }
.blogpost-modal__body .post-comments-section .comment-content,
.blogpost-modal__body .post-comments-section .comment-text { line-height: 1.6; font-size: 0.95rem; color: var(--ink, #1a202c); }
.blogpost-modal__body .post-comments-section .comment-content p { margin: 0.5em 0; }
.blogpost-modal__body .post-comments-section .reply { display: none; margin-top: 0.5em; }
.blogpost-modal__body .post-comments-section .comment-reply-link { font-size: 0.85rem; color: var(--brand, #1a73e8); text-decoration: none; font-weight: 600; }
.blogpost-modal__body .post-comments-section .comment-reply-link:hover { text-decoration: underline; }
.blogpost-modal__body .post-comments-section .children { list-style: none; padding-left: 1.5em; margin-top: 0.75em; }
.blogpost-modal__body .post-comments-section .comment-respond,
.blogpost-modal__body .post-comments-section #respond { margin-top: 1.5em; padding: 0.75em; background: #f8f8f8; border-radius: 8px; border: 1px solid var(--adm-border, rgba(15, 23, 42, 0.08)); }
.blogpost-modal__body .post-comments-section .comment-respond h3,
.blogpost-modal__body .post-comments-section #respond h3,
.blogpost-modal__body .post-comments-section .comment-reply-title { font-size: 1.1rem; margin: 0; }
.blogpost-modal__body .post-comments-section .comment-form p { margin: 0; }
.blogpost-modal__body .post-comments-section .comment-form label { font-size: 0.9rem; margin-bottom: 0.25em; display: block; }
.blogpost-modal__body .post-comments-section .comment-form input[type=\"text\"],
.blogpost-modal__body .post-comments-section .comment-form input[type=\"email\"],
.blogpost-modal__body .post-comments-section .comment-form input[type=\"url\"],
.blogpost-modal__body .post-comments-section .comment-form textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--adm-border, rgba(15, 23, 42, 0.12)); border-radius: 6px; font: inherit; font-size: 0.9rem; margin-bottom: 0.5em; }
.blogpost-modal__body .post-comments-section .comment-form textarea { height: 70px; min-height: 70px; resize: vertical; }
.blogpost-modal__body .post-comments-section .comment-form input[type=\"submit\"],
.blogpost-modal__body .post-comments-section .comment-form button[type=\"submit\"] { padding: 6px 16px; background: var(--brand, #1a73e8); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: background 0.2s ease; }
.blogpost-modal__body .post-comments-section .comment-form input[type=\"submit\"]:hover,
.blogpost-modal__body .post-comments-section .comment-form button[type=\"submit\"]:hover { background: #1557b0; }
.blogpost-modal__body .post-comments-section .comment-notes,
.blogpost-modal__body .post-comments-section .logged-in-as { font-size: 0.85rem; margin-bottom: 0.5em; color: var(--muted, #707785); }
.blogpost-modal__body .post-comments-section .comment-form-url{ display: none; }

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--secondary {
  background: #f1f5f9;
  color: var(--ink);
  border-color: #e2e8f0;
}
.btn--secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.btn--secondary:active {
  background: #cbd5e1;
}

.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.35s ease-out;
}

.contact-panel__content.is-open {
  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%);
}


.ch2-icon.ch2-visible{
  display: none !important;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow);
}
thead th {
  text-align: left;
  font-weight: 800;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fbfcff;
  border-bottom: 1px solid var(--rp-border);
  padding: 10px 12px;
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rp-border);
}
tbody tr:hover {
  background: #fafbff;
}

/* Responsive table container voor mobiel */
@media (max-width: 768px) {

  .wp-block-table{
    margin: 0px;
  }

  /* Optioneel: kleinere padding op mobiel */
  thead th,
  tbody td {
    padding: 7px 7px;
    font-size: 0.85rem;
  }
}