/* Aanvullende stijlen bovenop de thema-CSS (styles.css van het WordPress-thema, ongewijzigd).
   Alleen voor onderdelen die in WordPress door plugins werden opgemaakt. Kleuren = huisstijl. */

/* ---------- Contactformulier (was Gravity Forms) ---------- */
.jc-form { display: grid; gap: 1rem; }
.jc-form__rij { display: grid; gap: .25rem; }
.jc-form__rij--twee { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .jc-form__rij--twee { grid-template-columns: 1fr 1fr; gap: .75rem; } }
.jc-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jc-form input, .jc-form textarea {
  width: 100%; border: 1px solid #38747a; background: #fff; color: #2b2b2b;
  font: inherit; font-weight: 300; font-size: 1rem; line-height: 1.5; padding: .65rem 1.25rem; border-radius: 0;
}
.jc-form textarea { min-height: 14rem; resize: vertical; }
.jc-form input::placeholder, .jc-form textarea::placeholder { color: #395e60; opacity: .85; }
.jc-form input:focus-visible, .jc-form textarea:focus-visible { outline: 2px solid #8bdbb5; outline-offset: 1px; }
.jc-form__teller { font-size: .8rem; font-weight: 300; color: #395e60; margin-top: .25rem; }
.jc-form__voet { display: flex; justify-content: flex-end; }
.jc-form__voet button:disabled { opacity: .6; cursor: wait; }
.jc-form__melding { margin: 0; padding: .75rem 1rem; background: #eef6f2; color: #395e60; font-weight: 500; }
.jc-form__melding--fout { background: #fbeceb; color: #8a2f25; }
.jc-form__honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cookiemelding ---------- */
.jc-cookie { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; pointer-events: none; }
.jc-cookie[hidden] { display: none; }
.jc-cookie__binnen { pointer-events: auto; width: 100%; max-width: 60rem; background: #395e60; color: #fff; padding: 1.5rem 1.75rem; box-shadow: 0 10px 30px rgba(57, 94, 96, .35); display: grid; gap: 1rem; }
.jc-cookie__titel { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8bdbb5; font-size: 1.05rem; }
.jc-cookie__tekst { margin: 0; font-weight: 300; font-size: .95rem; line-height: 1.6; }
.jc-cookie__tekst a { color: #8bdbb5; text-decoration: underline; }
.jc-cookie__keuzes { display: grid; gap: .6rem; }
.jc-cookie__keuzes[hidden] { display: none; }
.jc-cookie__keuze { display: flex; gap: .75rem; align-items: flex-start; font-weight: 300; font-size: .95rem; cursor: pointer; }
.jc-cookie__keuze input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: #8bdbb5; flex-shrink: 0; }
.jc-cookie__keuze strong { font-weight: 700; }
.jc-cookie__knoppen { display: flex; flex-wrap: wrap; gap: .75rem; }
.jc-cookie__knop { font: inherit; font-weight: 700; font-size: .95rem; padding: .8rem 1.5rem; border: 1px solid #8bdbb5; background: transparent; color: #fff; cursor: pointer; }
.jc-cookie__knop:hover { background: rgba(139, 219, 181, .15); }
.jc-cookie__knop--vol { background: #8bdbb5; color: #395e60; }
.jc-cookie__knop--vol:hover { background: #fff; color: #395e60; }
.jc-cookie__knop--link { border-color: transparent; text-decoration: underline; padding-left: .5rem; padding-right: .5rem; }
.jc-cookie__knop[hidden] { display: none; }
.jc-cookie__knop:focus-visible, .jc-cookie__keuze input:focus-visible, .jc-cookie__tekst a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .jc-cookie__knop { flex: 1 1 100%; } }

/* ---------- Inschrijfopties (vervangt de Sportbit-webshop) ---------- */
.jc-opties { display: grid; }
.jc-optie { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 0; }
.jc-optie__actie { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
@media (min-width: 1024px) { .jc-optie { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Nieuwsbrief-aanmelding in de footer (Centraal Dashboard, double opt-in) ---------- */
.jc-nieuwsbrief { display: grid; gap: .75rem; padding: 2rem 0 2.5rem; border-top: 1px solid #8bdbb5; align-items: end; }
@media (min-width: 1024px) { .jc-nieuwsbrief { grid-template-columns: 2fr 1.2fr 1.6fr auto; gap: 1rem; } }
.jc-nieuwsbrief__intro p { margin: 0; }
.jc-nieuwsbrief__veld input {
  width: 100%; border: 1px solid #8bdbb5; background: #fff; color: #2b2b2b;
  font: inherit; font-weight: 300; font-size: 1rem; line-height: 1.5; padding: .65rem 1rem; border-radius: 0;
}
.jc-nieuwsbrief__veld input::placeholder { color: #395e60; opacity: .85; }
.jc-nieuwsbrief__veld input:focus-visible { outline: 2px solid #8bdbb5; outline-offset: 1px; }
.jc-nieuwsbrief__knop {
  background: #8bdbb5; color: #24403f; border: 1px solid #8bdbb5; font: inherit; font-weight: 700;
  padding: .65rem 2rem; cursor: pointer; transition: background .15s, color .15s;
}
.jc-nieuwsbrief__knop:hover { background: transparent; color: #8bdbb5; }
.jc-nieuwsbrief__knop:disabled { opacity: .6; cursor: wait; }
.jc-nieuwsbrief__voet { grid-column: 1 / -1; margin: 0; font-size: .85rem; font-weight: 300; color: #d6e4e2; }
.jc-nieuwsbrief__voet a { color: #8bdbb5; text-decoration: underline; }
.jc-nieuwsbrief__voet--fout { color: #f3c4bf; }

/* Vaste actiebalk onderaan op telefoon en tablet (src/_includes/actiebalk.njk). Vanaf 1024 px verborgen. */
.jc-actiebalk { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: #38747a; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(57, 94, 96, .25); }
.jc-actiebalk__knop { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 .75rem; font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; text-align: center; text-decoration: none; }
.jc-actiebalk__knop--mint { background: #8bdbb5; color: #38747a; }
.jc-actiebalk__knop--teal { background: #38747a; color: #fff; }
.jc-actiebalk__knop:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
@media (max-width: 1023px) {
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .jc-cookie { bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1024px) { .jc-actiebalk { display: none; } }

/* Label achter een menulink, bijv. "Coming soon" (navigatie.json: badge). */
.jc-menu-badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: #8bdbb5; color: #38747a; font-size: .65rem; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
a:has(> .jc-menu-badge) { justify-content: flex-start; }
#mobile-navigation a:has(> .jc-menu-badge) { flex-wrap: wrap; row-gap: .35rem; }

/* Online afspraak maken (src/_includes/afspraak.njk): één venster, links de keuzes (teal), rechts de
   Flux-widget of een uitleg. Flux-paneel: 380 x 600, "fixed" rechtsonder in het podium (transform), met
   82 px ruimte onder het paneel en de zwevende sluitknop daaronder; die valt buiten de rand. */
#jc-flux { --widget-accent: #38747a; --widget-surface: #ffffff; --widget-radius: 0px; --widget-font-family: "Core Sans G", sans-serif; }
@media (prefers-color-scheme: dark) { #jc-flux { --widget-surface: #1f3536; } .jc-afspraak__venster { background: #1f3536; } }
.jc-afspraak { width: min(1000px, calc(100% - 32px)); height: min(640px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: #fff; color: #395e60; box-shadow: 0 24px 70px rgba(31, 53, 54, .4); overflow: hidden; }
.jc-afspraak[open] { display: grid; grid-template-columns: 1fr 420px; }
.jc-afspraak::backdrop { background: rgba(31, 53, 54, .65); }
.jc-afspraak__keuzes { background: #38747a; color: #fff; padding: 28px 28px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.jc-afspraak__kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.jc-afspraak__titel { margin: 0; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; }
.jc-afspraak__titel span { color: #8bdbb5; }
.jc-afspraak__sluit { color: #8bdbb5; font-size: 2.2rem; line-height: 1; background: none; border: 0; cursor: pointer; padding: 0 4px; }
.jc-afspraak__lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jc-afspraak__optie { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 13px 16px; border: 1px solid #8bdbb5; background: transparent; color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.jc-afspraak__optie strong { font-weight: 700; text-transform: uppercase; font-size: .95rem; letter-spacing: .02em; color: #8bdbb5; }
.jc-afspraak__optie span { font-size: .88rem; color: #e6f2ee; }
.jc-afspraak__optie:hover, .jc-afspraak__optie:focus-visible { background: rgba(139, 219, 181, .15); outline: none; }
.jc-afspraak__optie[aria-pressed="true"] { background: #8bdbb5; }
.jc-afspraak__optie[aria-pressed="true"] strong, .jc-afspraak__optie[aria-pressed="true"] span { color: #2d5254; }
.jc-afspraak__bel { margin: auto 0 0; padding-top: 16px; font-size: .9rem; color: #e6f2ee; }
.jc-afspraak__bel a { color: #8bdbb5; font-weight: 700; }
.jc-afspraak__rechts { position: relative; background: #fff; overflow: hidden; }
.jc-afspraak__balk { display: none; }
.jc-afspraak__leeg, .jc-afspraak__info { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; }
.jc-afspraak__leeg[hidden], .jc-afspraak__info[hidden], .jc-afspraak__venster[hidden] { display: none; }
.jc-afspraak__leeg-kop, .jc-afspraak__info-kop { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1.15; color: #38747a; }
.jc-afspraak__leeg-kop span { color: #8bdbb5; }
.jc-afspraak__leeg p:not([class]), .jc-afspraak__info p:not([class]) { margin: 0; color: #4b5b5c; }
.jc-afspraak__knop { align-self: flex-start; margin-top: 8px; padding: 14px 28px; background: #8bdbb5; color: #38747a; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.jc-afspraak__knop:hover { background: #38747a; color: #fff; }
.jc-afspraak__venster { position: absolute; inset: 0; overflow: hidden; }
.jc-afspraak__podium { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 80px); transform: translateZ(0); }
@media (max-width: 899px) {
  .jc-afspraak { width: 100%; height: 100dvh; margin: 0; box-shadow: none; }
  .jc-afspraak[open] { display: block; }
  .jc-afspraak__keuzes { height: 100%; padding: 20px 16px 16px; }
  .jc-afspraak__titel { font-size: 1.35rem; }
  .jc-afspraak__rechts { display: none; height: 100%; overflow-y: auto; }
  .jc-afspraak--gekozen .jc-afspraak__keuzes { display: none; }
  .jc-afspraak--gekozen .jc-afspraak__rechts { display: block; }
  .jc-afspraak__balk { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 12px 0 16px; background: #38747a; }
  .jc-afspraak__terug { background: none; color: #8bdbb5; font-weight: 700; border: 0; cursor: pointer; padding: 0; }
  .jc-afspraak__leeg, .jc-afspraak__info { height: auto; padding: 24px 16px; }
  .jc-afspraak__venster { position: relative; inset: auto; height: 640px; }
}

/* Anker boven een blok (veld "anker"): niet onder de vaste kopbalk verdwijnen. */
.jc-anker { scroll-margin-top: 110px; }
@media (min-width: 1024px) { .jc-anker { scroll-margin-top: 160px; } }

/* Blok "Volgende voorlichtingen": de datum-hexagon krimpt niet naast lange tekst. */
.shrink-0 { flex-shrink: 0; }
