* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.no-bar { scrollbar-width: none; -ms-overflow-style: none; }
.no-bar::-webkit-scrollbar { display: none; }
.reviews-fade::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 72px; background: linear-gradient(to right, rgba(252,242,245,0), #FCF2F5); pointer-events: none; z-index: 3; }
.leren-fade::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 72px; background: linear-gradient(to right, rgba(255,255,255,0), #fff); pointer-events: none; z-index: 3; }
.no-fade::after { display: none !important; }
h1 { font-size: clamp(32px, 6.2vw, 56px) !important; }
h2 { font-size: clamp(27px, 4.4vw, 40px) !important; }

.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

.nav-link:hover { color: #2e3849; }
.btn-primary:hover { background: #f5c400; transform: translateY(-2px); }
.btn-cta-sm:hover { background: #f5c400; transform: translateY(-1px); }
.btn-outline:hover { border-color: #566072; }
.btn-yellow:hover { background: #f5c400; }
.btn-dark:hover { background: #1f2734; }
.carousel-prev:hover { border-color: #2e3849; background: #FCF2F5; }
.carousel-next:hover { background: #f5c400; }
.link-more:hover { color: #566072; }
#reviews-track article > div:first-child > span { width: 36px !important; height: 36px !important; font-size: 14px !important; }
#reviews-track article > div:first-child > div > div:first-child { font-size: 14px !important; }
#reviews-track article > div:first-child > div > div:last-child { font-size: 12px !important; }
#reviews-track article > p { margin-bottom: 4px; }
.footer-link:hover { color: #566072; }
.field:focus { border-color: #2e3849; }

.legal-bar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid rgba(103,118,142,0.16); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; }
.legal-main { max-width: 1200px; margin: 0 auto; padding: 56px 28px 96px; }
.legal-main h1 { font-family: 'Advent Pro', sans-serif; font-weight: 600; font-size: clamp(30px, 4.4vw, 44px) !important; line-height: 1.1; color: #2e3849; margin: 0 0 28px; }
.legal-main h2 { font-family: 'Advent Pro', sans-serif; font-weight: 600; font-size: 24px !important; line-height: 1.25; color: #2e3849; margin: 38px 0 12px; }
.legal-main h3 { font-family: 'Mulish', sans-serif; font-weight: 800; font-size: 17px; color: #2e3849; margin: 24px 0 8px; }
.legal-main p, .legal-main li { font-size: 16px; line-height: 1.7; color: #4a5666; }
.legal-main p { margin: 0 0 14px; }
.legal-main ul { margin: 0 0 18px; padding-left: 22px; }
.legal-main li { margin-bottom: 6px; }
.legal-main a { color: #2e3849; font-weight: 600; }
.legal-main strong { color: #2e3849; }
.legal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; }
.legal-main table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.legal-main th, .legal-main td { text-align: left; vertical-align: top; padding: 12px 14px; line-height: 1.5; border: 1px solid rgba(103,118,142,0.18); }
.legal-main th { background: #2e3849; color: #FCF2F5; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.legal-main td { color: #4a5666; }
.legal-main tbody tr:nth-child(even) td { background: #fbf3f6; }
@media (max-width: 640px) {
  .legal-table-wrap { overflow: visible; }
  .legal-main table, .legal-main tbody, .legal-main tr, .legal-main td { display: block; width: 100%; }
  .legal-main thead { display: none; }
  .legal-main tbody tr { background: #fff; border: 1px solid rgba(103,118,142,0.2); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
  .legal-main td { border: none; border-bottom: 1px solid rgba(103,118,142,0.14); padding: 12px 16px; }
  .legal-main tbody tr td:last-child { border-bottom: none; }
  .legal-main tbody tr:nth-child(even) td { background: transparent; }
  .legal-main td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-weight: 800; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #566072; }
}

.form-shell { position: relative; min-height: 320px; }
.form-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.form-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(103,118,142,0.2); border-top-color: #ffcc00; animation: form-spin 0.8s linear infinite; }
.form-loading-text { font-size: 15px; font-weight: 600; color: #566072; max-width: 22em; line-height: 1.5; }
.form-shell:has(.leadix-form input, .leadix-form select, .leadix-form textarea) .form-loading { display: none; }
.form-loading.is-error .form-spinner { display: none; }
.form-loading.is-error .form-loading-text { color: #2e3849; font-weight: 700; }
@keyframes form-spin { to { transform: rotate(360deg); } }
.form-fallback { text-align: center; font-size: 14px; color: #4a5666; margin: 22px 0 0; }
.form-fallback a { color: #2e3849; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(46,56,73,0.2); }
.form-fallback a:hover { border-bottom-color: #2e3849; }
@media (prefers-reduced-motion: reduce) { .form-spinner { animation-duration: 2.4s; } }

.leadix-form .form-group { margin: 0 0 24px !important; }
.leadix-form .form-group:last-child { margin-bottom: 0 !important; }
.leadix-form .form-label { display: block !important; font-weight: 700 !important; font-size: 14px !important; color: #2e3849 !important; margin-bottom: 8px !important; }
.leadix-form .required-input { color: #d4566f !important; }
.leadix-form .ldx-gap-1 { gap: 20px !important; }
.leadix-form .form-control { width: 100% !important; padding: 14px 16px !important; border: 1px solid rgba(103,118,142,0.32) !important; border-radius: 12px !important; font-family: inherit !important; font-size: 16px !important; color: #2e3849 !important; background: #fff !important; outline: none !important; box-shadow: none !important; }
.leadix-form textarea.form-control { resize: vertical !important; min-height: 120px !important; }
.leadix-form .form-control:focus { border-color: #2e3849 !important; }
.leadix-form .radio-group { display: flex !important; flex-direction: column !important; gap: 11px !important; }
.leadix-form .radio-button { display: flex !important; align-items: center !important; gap: 11px !important; font-size: 16px !important; color: #2e3849 !important; cursor: pointer !important; }
.leadix-form input[type="radio"], .leadix-form input[type="checkbox"] { appearance: auto !important; -webkit-appearance: auto !important; -moz-appearance: auto !important; width: 18px !important; height: 18px !important; accent-color: #ffcc00 !important; border: 0 !important; background: none !important; margin: 0 !important; }
.leadix-form input[type="radio"]::before, .leadix-form input[type="radio"]::after, .leadix-form input[type="checkbox"]::before, .leadix-form input[type="checkbox"]::after { display: none !important; }
.leadix-form .checkbox-group { display: flex !important; align-items: flex-start !important; gap: 11px !important; font-size: 14px !important; color: #4a5666 !important; }
.leadix-form .checkbox-group input[type="checkbox"] { margin-top: 2px !important; flex: 0 0 auto !important; }
.leadix-form .privacy-notice-paragraph { margin: 0 !important; }
.leadix-form .checkbox { display: flex !important; align-items: flex-start !important; gap: 12px !important; }
.leadix-form .privacy-notice-paragraph a { color: #4a5666 !important; }
.leadix-form .controls, .leadix-form .submit-button-wrapper { display: block !important; text-align: right !important; }
.leadix-form form > div > .ldx-grid + .ldx-grid,
.leadix-form form > div > .ldx-grid + .controls { margin-top: 28px !important; }
.leadix-form .submit, .leadix-form button[type="submit"] { align-self: start !important; background: #ffcc00 !important; color: #2e3849 !important; font-weight: 800 !important; font-size: 15px !important; padding: 14px 32px !important; border: none !important; border-radius: 12px !important; cursor: pointer !important; box-shadow: 0 10px 24px rgba(255,204,0,0.4) !important; font-family: inherit !important; transition: background .15s ease, transform .15s ease !important; }
.leadix-form .submit:hover, .leadix-form button[type="submit"]:hover { background: #f5c400 !important; transform: translateY(-2px) !important; }

@media (max-width: 900px) {
  .r2 { grid-template-columns: 1fr !important; gap: 32px !important; }
  .rfoot { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .rblock { padding: 34px 24px !important; }
  section { padding-top: 40px !important; padding-bottom: 40px !important; }
  #schrijf-je-in { position: static !important; top: auto !important; }
  [style*="font-size: 34px"] { font-size: 26px !important; }
  .section-img { height: auto !important; aspect-ratio: 3 / 2 !important; }
  #top { padding-bottom: 0 !important; }
  .desktop-nav { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (max-width: 760px) {
  .sticky-top { position: static !important; }
  #aanpak, #lessenreeks, #reeksen, #voor-wie, #faq, #inschrijven { scroll-margin-top: 16px !important; }
}
@media (max-width: 600px) {
  .section-img { height: auto !important; aspect-ratio: 1 / 1 !important; }
  .ann-extra { display: none; }
  .ann-row { font-size: 13px !important; padding: 10px 16px !important; gap: 5px !important; text-align: center; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 560px) {
  .rfoot { grid-template-columns: 1fr !important; }
  .rblock { padding: 26px 18px !important; }
  #reeksen-track > article, #leren-track > article { flex: 0 0 82vw !important; }
}
@media (max-width: 400px) {
  .hero-badge { font-size: 11px !important; letter-spacing: 0 !important; gap: 7px !important; padding: 6px 12px !important; }
}

/* FAQ accordion */
.faq-item { border: 1px solid rgba(103,118,142,0.18); border-radius: 16px; background: #fff; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: 'Advent Pro', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.3; color: #2e3849; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex: 0 0 auto; color: #566072; transition: transform .25s ease; }
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline: 2px solid #2e3849; outline-offset: -2px; border-radius: 16px; }
.faq-a { padding: 2px 24px 22px; font-size: 15.5px; line-height: 1.65; color: #4a5666; }

/* Last card snaps to the end so mandatory snap doesn't yank back at the edge */
.no-bar > article:last-child { scroll-snap-align: end !important; }

/* Carousel position indicator (dots) */
.carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 14px; }
.carousel-dots[hidden] { display: none !important; }
.carousel-dot { width: 30px; height: 40px; padding: 0; border: none; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.carousel-dot::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(86,96,114,0.3); transition: background .25s ease, width .25s cubic-bezier(0.22,1,0.36,1); }
.carousel-dot:hover::before { background: rgba(86,96,114,0.55); }
.carousel-dot.is-active::before { width: 24px; background: #ffcc00; }
.carousel-dot:focus-visible { outline: none; }
.carousel-dot:focus-visible::before { outline: 2px solid #2e3849; outline-offset: 3px; }
.no-bar:focus-visible { outline: 2px solid #2e3849; outline-offset: 6px; border-radius: 10px; }

/* Sticky conversion CTA on mobile (header is not sticky there) */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: block; text-align: center; background: #ffcc00; color: #2e3849; font-weight: 800; font-size: 16px; padding: 15px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 30px rgba(46,56,73,0.28); transition: transform .35s cubic-bezier(0.22,1,0.36,1), opacity .25s ease; }
  .mobile-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
