/*
 * Origo-EIGEN public form-component (.forms-public) — styling.
 *
 * De POC laadt verder de gevendorde theme-1 live-CSS (beboparket-live.css),
 * maar het belverzoek-/contactformulier ("Gratis advies op maat") is een
 * Origo-native component met eigen markup (.forms-public, .btn.origo-btn,
 * .visually-hidden) die NIET in de theme-1 live-CSS voorkomt. Zonder deze
 * regels valt de anti-spam-honeypot zichtbaar terug (losse input onder de
 * titel) en rendert de submit-knop als native browser-knop.
 *
 * Gespiegeld 1-op-1 met de Origo-bron resources/css/_public-forms.scss.
 * Waarden = beboparket.nl .button-primary CTA (min-height 46, radius 5, #00AEEF).
 *
 * Apart bestand (geen Astro <style>): Astro scoped <style>-blokken matchen niet
 * op via set:html geïnjecteerde HTML. Deze global <link> wél.
 */

/* 1) Anti-spam honeypot onzichtbaar (Bootstrap visually-hidden utility). */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 2) Publieke submit-/stap-knop — 1-op-1 met theme-1 .button.button-primary.
   Resolved uit theme-1 button/scss/variables.scss: min-height 46px,
   padding 0 calc((46/2)-(24/2))=0 11px, border-radius 5px, font 1rem/500,
   transition all .1s ease-in-out, bg #00AEEF/wit, hover darken 5% = #009bd6. */
.forms-public .btn.origo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background-color: #00aeef;
  color: #fff;
  /* <button> erft standaard geen font (UA zet Arial) → font-weight:500 viel
     terug op regular (Arial heeft geen medium). inherit pakt de theme-stack
     (system-ui, …) die 500 wél ondersteunt, net als theme-1 %button. */
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  column-gap: 0.5rem;
  transition: all 0.1s ease-in-out;
}

.forms-public .btn.origo-btn:hover,
.forms-public .btn.origo-btn:focus-visible {
  background-color: #009bd6;
  color: #fff;
}

.forms-public .btn.origo-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* 3) Bootstrap-spacing-utilities die het Origo-form-template gebruikt maar NIET
   in de theme-1 live-CSS zitten — zonder deze plakt de submit-knop-wrapper
   (.mt-4) tegen het laatste veld (de ontbrekende witruimte boven de knop). */
.forms-public .mt-3 { margin-top: 1rem; }
.forms-public .mt-4 { margin-top: 1.5rem; }
.forms-public .mb-4 { margin-bottom: 1.5rem; }

/* FORMS-375-SPACING 2026-07-07 — veld-tussenruimte gekalibreerd op live.
   Live rendert de gform_fields-row-gap FLUID (RFS van 2rem): band-metingen op
   de live-shots (cursus-laminaat-leggen) geven ≈22px @375, ≈27px @768, 32px
   @≥1200 = calc(1.1rem + 1.2vw) met cap 2rem — identiek aan
   --component-columns-columns-1-row--row-gap (= rfs(2rem)) in de theme-CSS.
   Verving de eerdere 1.25rem-gok. !important: wint van theme
   `.section.columns-1 .row` (0,3,0); NB public-live-overrides.css zet dezelfde
   waarden met hogere specificiteit (.component.form …). */
.forms-public .row { row-gap: calc(1.1rem + 1.2vw) !important; }

@media (min-width: 1200px) {
  .forms-public .row { row-gap: 2rem !important; }
}

/* Label — 1-op-1 met live .gfield_label.gform-field-label: font-size 14px,
   font-weight 700, kleur #000. GEEN margin-bottom (input volgt direct op de
   25,6px-label-lijnbox — bandmeting-bevestigd); de Bootstrap-default 0.5rem gaf
   +8px per veld. line-height 1.83 (= live 25,6/14) reserveert dezelfde ruimte
   onder de labeltekst. Geldt ook voor <legend class="form-label"> (radio/
   checkbox-groepen). */
.forms-public .form-label,
.forms-public legend.form-label {
  display: block;
  margin-bottom: 0;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.83;
}

/* 4) Flex-utilities voor de submit-knop-wrapper (.mt-4.d-flex.justify-content-between
   met lege <span> + knop) → met space-between schuift de knop naar RECHTS,
   1-op-1 met theme-1's .component.buttons.align-right. Niet in theme-1 live-CSS. */
.forms-public .d-flex { display: flex; }
.forms-public .justify-content-between { justify-content: space-between; }
/* submit_button_align (links/midden/rechts) 1-op-1 met theme-1's
   .component.buttons.align-{left|center|right}; render honoreert nu de DB-setting. */
.forms-public .justify-content-start { justify-content: flex-start; }
.forms-public .justify-content-center { justify-content: center; }
.forms-public .justify-content-end { justify-content: flex-end; }
.forms-public .align-items-center { align-items: center; }
.forms-public .gap-2 { gap: 0.5rem; }

/* 5) `.d-none` (Bootstrap-utility) ontbrak volledig — zonder deze regel had
   forms.public.render.blade.php's server-side `d-none` op multi-step-stappen
   1+ (`$hasMultipleSteps && $stepIndex !== 0 ? 'd-none' : ''`) GEEN effect,
   en toonde elk multi-step-formulier ALLE stappen tegelijk plat (ontdekt op
   /vloerofferte-aanvragen, form #3309: 2 stappen + 18 conditionele radio's →
   zonder deze regel 30 zichtbare velden i.p.v. 1). Ook nodig voor de
   client-side conditional-logic (`forms-public.js` `initConditional()` zet
   dezelfde class op verborgen `[data-cond]`-wrappers). !important = exacte
   Bootstrap-utility-semantiek (moet boven alle andere display-regels winnen). */
.forms-public .d-none { display: none !important; }

/* 6) Publieke form-VELDEN — 1-op-1 met live Gravity Forms (gform-theme).
   De POC-veldtemplates gebruiken Bootstrap-klassen (.form-control/.form-select/
   .form-check) waarvan de BASIS-styling NIET in de gevendorde theme-1 live-CSS
   zit → inputs vielen terug op de kale UA-render ("ongestyled formulier"). Deze
   regels spiegelen de live GF-input-bandmetingen: height 46px, padding 1px 20px,
   geen border, radius 5px, bg rgba(34,34,34,.05), font 16px, full-width;
   textarea padding 20px. Raakt ALLE public forms (bron-fix). */
.forms-public .form-control,
.forms-public .form-select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 1px 20px;
  border: 0;
  border-radius: 5px;
  background-color: rgba(34, 34, 34, 0.05);
  color: #000;
  font-family: inherit;
  font-size: 16px;
  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
}

.forms-public textarea.form-control {
  min-height: 120px;
  padding: 20px;
  line-height: 1.5;
  resize: vertical;
}

/* <select>: native pijl uit → eigen chevron-affordance (rechts). */
.forms-public .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23222222' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 44px;
}

.forms-public .form-control::placeholder { color: rgba(0, 0, 0, 0.5); }

.forms-public .form-control:focus,
.forms-public .form-select:focus {
  outline: 0;
  background-color: rgba(34, 34, 34, 0.08);
  box-shadow: inset 0 0 0 1px #00aeef;
}

.forms-public .form-control.is-invalid { box-shadow: inset 0 0 0 1px #d32f2f; }

/* Bootstrap-tekstutilities die niet in de theme-CSS zitten. */
.forms-public .text-danger { color: #d32f2f; }
.forms-public .text-muted { color: rgba(0, 0, 0, 0.55); font-size: 0.85rem; }
.forms-public .invalid-feedback { color: #d32f2f; font-size: 0.85rem; margin-top: 0.25rem; }

/* radio-/checkbox-keuzes — nette uitlijning + tussenruimte (Bootstrap
   .form-check(-input/-label) basisstyling ontbreekt in de theme-CSS). */
.forms-public .form-check {
  display: flex;
  align-items: flex-start;
  column-gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.forms-public .form-check-input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  accent-color: #00aeef;
}
.forms-public .form-check-label { font-size: 1rem; line-height: 1.5; }

/* Losse veld-fieldset (radio/checkbox-groep) — geen border/inspringing. */
.forms-public fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Meldingen van forms-public.js (initSubmit): veldfouten uit de 422 van Origo
   en het succes op de plaats van het formulier. Zelfde rood als .invalid-feedback. */
.forms-public .forms-public__melding { padding: 0.75rem 1rem; margin: 0 0 1rem; border-radius: 0.25rem; font-weight: 600; line-height: 1.4; }
.forms-public .forms-public__melding--fout { background: #fdecea; color: #b71c1c; }
.forms-public .forms-public__melding--succes { background: #e8f5e9; color: #1b5e20; }
