/* wsc_hero block styles */
/* ---------- Stat pills ---------- */
.wsc-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); }
.wsc-stat__value {
  font-family: var(--wsc-font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.02em;
  line-height: 1;
}
.wsc-stat__label { font-size: 13px; color: var(--wsc-ink-3); margin-top: 6px; }

/* ---------- Hero ---------- */
.wsc-hero { position: relative; background: var(--wsc-surface); border-bottom: 1px solid var(--wsc-line); overflow: hidden; }
.wsc-hero__inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.wsc-hero__text { flex: 1 1 440px; min-width: 300px; }
.wsc-hero__media { flex: 1 1 380px; min-width: 290px; position: relative; }
.wsc-hero__badge {
  position: absolute; z-index: 2; bottom: 22px; left: 22px;
  background: var(--wsc-ink); color: #fff; border-radius: var(--wsc-radius);
  padding: 16px 18px; box-shadow: 0 14px 34px rgba(20, 22, 27, .3); max-width: 220px;
}
.wsc-hero__badge b { font-family: var(--wsc-font-head); font-weight: 800; font-size: 30px; line-height: 1; display: block; }
.wsc-hero__badge span { font-size: 12.5px; color: var(--wsc-footer-ink); margin-top: 5px; display: block; }

/* Decorative orange squares block */
.wsc-marks { position: relative; width: 64px; height: 64px; }
.wsc-marks span { position: absolute; background: var(--wsc-accent); }
.wsc-marks span:nth-child(1) { top: 0; left: 0; width: 26px; height: 26px; }
.wsc-marks span:nth-child(2) { top: 28px; left: 28px; width: 20px; height: 20px; opacity: .45; }
.wsc-marks span:nth-child(3) { top: 28px; left: 0; width: 20px; height: 20px; }

/* Configurable brand-mark (replaces the old decorative squares) */
.wsc-hero__mark { position: relative; width: 56px; height: 56px; margin-bottom: 4px; }
.wsc-hero__mark .wsc-mark { width: 56px; height: 56px; }

/* ---------- Mobile (≤600px): calmer hero ---------- */
/* A separate mobile image is hidden on desktop until the swap kicks in. */
.wsc-hero__img--mobile { display: none; }

/* On mobile (where the two columns wrap under each other): optionally hide the
   hero image, or swap to a dedicated mobile image if one was chosen. */
@media (max-width: 820px) {
  .wsc-hero__media--mhide { display: none !important; }
  .wsc-hero__media--hasmob .wsc-hero__img--main { display: none; }
  .wsc-hero__media--hasmob .wsc-hero__img--mobile { display: block; }
}

@media (max-width: 600px) {
  .wsc-marks { display: none; }              /* decorative squares off */
  .wsc-hero__badge { position: static; max-width: none; margin-top: 14px; box-shadow: none; }
  .wsc-stats { gap: 20px 28px; }
}


/* ==========================================================================
   Websignaal Formulier — front-end styling (wsc design tokens from wsc/core).
   Inputs are rendered by the core form machinery with .form-control /
   .form-check classes, so we target those inside .wsc-form.
   ========================================================================== */

.wsc-form { max-width: 620px; }

.wsc-form__fields { display: grid; gap: 20px; }
.wsc-form__group { display: grid; gap: 8px; }

/* Een veld met het hidden-attribuut hoort weg te blijven — het herkomstveld
   bijvoorbeeld, dat de pagina onthoudt waar de bezoeker vandaan kwam.
   De regel hierboven maakte dat ongedaan: een klasseselector die display zet
   wint van de standaardregel van de browser voor [hidden], dus stond het veld
   er alsnog. Deze regel is specifieker en zet het weer dicht. */
.wsc-form__group[hidden] { display: none; }

.wsc-form__label {
  font-family: var(--wsc-font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--wsc-ink);
  line-height: 1.3;
}
.wsc-form__req { color: var(--wsc-accent-2); margin-left: 2px; }

/* ---------- Text-like inputs ---------- */
.wsc-form .form-control {
  width: 100%;
  font-family: var(--wsc-font-body);
  font-size: 16px;
  color: var(--wsc-ink);
  background: var(--wsc-surface);
  border: 1px solid var(--wsc-line-2);
  border-radius: 12px;
  padding: 13px 15px;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wsc-form textarea.form-control { min-height: 140px; resize: vertical; }
.wsc-form .form-control::placeholder { color: var(--wsc-ink-3); }
.wsc-form .form-control:focus {
  outline: none;
  border-color: var(--wsc-accent);
  box-shadow: 0 0 0 3px rgba(255, 169, 52, .25);
}

.wsc-form select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234E5563' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
}

.wsc-form input[type="file"].form-control { padding: 10px 15px; background: var(--wsc-bg); }

/* ---------- Checkboxes / radios ---------- */
.wsc-form .form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 16px; color: var(--wsc-ink-2);
}
.wsc-form .form-check-input {
  width: 19px; height: 19px; margin-top: 2px; flex: none;
  accent-color: var(--wsc-accent);
}
.wsc-form .form-check-label { cursor: pointer; }
.wsc-form .checkboxList { display: grid; gap: 10px; }

/* ---------- Invalid state + inline error ---------- */
.wsc-form__group.is-invalid .form-control {
  border-color: #D64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .15);
}
.wsc-form__group.is-invalid .wsc-form__label { color: #C0392B; }
.wsc-form__error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #C0392B;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 4px;
}
.wsc-form__error::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

/* ---------- Alerts ---------- */
.wsc-form__alert {
  border-radius: var(--wsc-radius);
  padding: 16px 18px; margin-bottom: 22px;
  font-size: 15px; line-height: 1.5;
}
.wsc-form__alert--success { background: #E9F7EF; border: 1px solid #B7E4C7; color: #1B6B3A; }
.wsc-form__alert--error { background: #FCECEC; border: 1px solid #F3C0C0; color: #A12626; }
.wsc-form__alert .error { margin-top: 4px; }

/* ---------- reCAPTCHA ---------- */
.wsc-form__captcha { margin-top: 22px; }
.wsc-form__captcha .g-recaptcha { display: inline-block; }

/* ---------- Actions ---------- */
.wsc-form__actions { margin-top: 26px; }
.wsc-form__actions .wsc-btn { border: 0; font-size: 16px; }

/* ---------- a11y helper ---------- */
.wsc-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Dark band ---------- */
.wsc-band--dark .wsc-form__label { color: #fff; }
.wsc-band--dark .wsc-form .form-control {
  background: #1B1E25; border-color: rgba(255,255,255,.14); color: #fff;
}
.wsc-band--dark .wsc-form .form-check { color: var(--wsc-footer-ink); }

/* Het blok wordt na het versturen in beeld geschoven. Deze marge houdt de
   bevestiging vrij van een meeschuivende kop bovenaan de pagina. */
.wsc-form {
    scroll-margin-top: 7rem;
}

/* Terwijl de inzending onderweg is. Zonder dit klikt een ongeduldige bezoeker
   twee keer, en dan staat de aanvraag er ook twee keer. */
.wsc-form__form button[aria-busy="true"] {
    opacity: .65;
    cursor: progress;
}

/* ---------------------------------------------------------------------------
   Tussenscherm vóór het versturen.

   Verborgen tot javascript hem opent; het hidden-attribuut doet dat werk, de
   klasse is er voor de overgang. Kleuren komen uit de tokens van wsc-core, met
   een terugval zodat het venster ook leesbaar is op een site die die tokens
   (nog) niet heeft.
   --------------------------------------------------------------------------- */
.wsc-form__modal[hidden] {
    display: none;
}

.wsc-form__modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wsc-form__modal-scherm {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .45);
}

.wsc-form__modal-venster {
    position: relative;
    width: 100%;
    max-width: 34rem;
    background: var(--wsc-surface, #fff);
    color: var(--wsc-text, #1b1e26);
    border-radius: var(--wsc-radius, .75rem);
    box-shadow: 0 1.5rem 3rem rgba(17, 24, 39, .25);
    padding: 1.75rem;
}

.wsc-form__modal-kop {
    margin: 0 0 .75rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.wsc-form__modal-tekst {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.wsc-form__modal-tekst a {
    color: var(--wsc-accent, #00aeef);
}

.wsc-form__modal-knoppen {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

/* De pagina eronder niet mee laten scrollen zolang het venster openstaat. */
.wsc-form-modal-open {
    overflow: hidden;
}

/* Een terughoudende tweede knop, voor het geval het thema die niet kent. */
.wsc-form__modal .wsc-btn--ghost {
    background: transparent;
    border: 1px solid var(--wsc-border, #ccd2da);
    color: inherit;
}


