/* pl-forms.css — custom Bento-wired forms for pianoles-larsnelissen.com
 * Newsletter (over the dark snowy hero) + Contact. Site purple palette.
 * Scoped under .plf so nothing leaks into the surrounding Elementor layout.
 * Font: the site body font (Blocksy --theme-font-family, Gill Sans) so the
 * form reads as native page copy. Heading above the card stays Marcellus. */

.plf {
  --plf-deep: #250049;
  --plf-purple: #8827C7;
  --plf-bright: #9052ff;
  --plf-lav: #9e9cea;
  --plf-lav-lt: #ede9fb;
  --plf-radius: 16px;
  --plf-field-radius: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  /* Match the site body font (Blocksy theme --theme-font-family) so the form
     reads as native page text, not a separate widget. Heading above the card
     stays on the theme heading font (Marcellus) — it is outside .plf. */
  font-family: var(--theme-font-family, "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif);
  text-align: left;
}
/* Card widths per form (was a shared 460px cap). Newsletter sits on the wide
   hero section; contact fills its ~650px column. */
.plf--newsletter { max-width: 610px; }
.plf--contact { max-width: 650px; }
.plf *, .plf *::before, .plf *::after { box-sizing: border-box; }

/* ---- card surfaces ---- */
.plf__card {
  border-radius: var(--plf-radius);
  padding: 26px 24px 24px;
}
/* Newsletter: frosted deep-purple glass over the dark photo.
   Alpha lowered 0.66 → 0.48 so more of the snowy hero shows through (Lars,
   2026-08-10). Floor is ~0.42 before the lavender label/help text loses contrast. */
.plf--newsletter .plf__card {
  background: rgba(29, 0, 61, 0.48);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(158, 156, 234, 0.38);
  box-shadow: 0 18px 46px rgba(8, 0, 24, 0.45);
}
/* Contact: clean elevated white card */
.plf--contact .plf__card {
  background: #ffffff;
  border: 1px solid rgba(136, 39, 199, 0.16);
  box-shadow: 0 14px 40px rgba(37, 0, 73, 0.14);
}

/* ---- intro / support copy ---- */
.plf__support {
  margin: 0 0 18px;
  font-size: 19px; /* body-text size — reads as native page copy */
  line-height: 1.5;
}
.plf--newsletter .plf__support { color: #cfc8ec; }
.plf--contact .plf__support { color: #5b4d74; }

/* ---- fields ---- */
.plf__field { margin: 0 0 15px; }
.plf__label {
  display: block;
  font-family: inherit; /* site body font — override the theme's label{} rule */
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}
.plf--newsletter .plf__label { color: var(--plf-lav-lt); }
.plf--contact .plf__label { color: var(--plf-deep); }

.plf__input,
.plf__textarea {
  display: block;
  width: 100%;
  font: inherit;
  /* !important — the theme's input:is([type=email],…) selector (specificity
     0,1,1) sets font-size via --theme-form-font-size and outranks this class
     otherwise. Still ≥16px, so no iOS zoom-on-focus. */
  font-size: 17px !important;
  line-height: 1.4;
  /* !important NOTE: the WordPress/Elementor theme sets input background/color
     with higher-than-class specificity (its own values win otherwise — verified
     on the dark newsletter card, where theme-dark input bg made placeholders
     illegible). Forcing a solid white field keeps both the dark newsletter card
     and the light contact card legible and consistent. */
  color: #250049 !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(136, 39, 199, 0.28) !important;
  border-radius: var(--plf-field-radius) !important;
  padding: 12px 14px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.plf__textarea { min-height: 116px; resize: vertical; }
.plf__input::placeholder,
.plf__textarea::placeholder { color: #9a8fb2 !important; opacity: 1; }
.plf__input:focus,
.plf__textarea:focus {
  outline: none;
  border-color: var(--plf-bright);
  box-shadow: 0 0 0 3px rgba(144, 82, 255, 0.28);
}
.plf__input:focus-visible,
.plf__textarea:focus-visible { outline: 2px solid transparent; }

.plf__help {
  display: block;
  margin: 6px 2px 0;
  font-size: 14px;
  line-height: 1.4;
}
.plf--newsletter .plf__help { color: #b3a9d6; }
.plf--contact .plf__help { color: #756789; }

/* ---- mailcheck typo suggestion ("Bedoelde je …?") ---- */
.plf__mc-suggestion {
  display: none;
  margin: 6px 2px 0;
  font-size: 14px;
  line-height: 1.45;
}
.plf__mc-suggestion.is-visible { display: block; }
.plf__mc-suggestion a {
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.plf__mc-dismiss {
  margin-left: 10px;
  font-size: 12.5px;
  cursor: pointer;
  opacity: 0.72;
}
.plf__mc-dismiss:hover { opacity: 1; }
.plf--newsletter .plf__mc-suggestion { color: #cfc8ec; }
.plf--newsletter .plf__mc-suggestion a { color: #c9b6ff; }
.plf--contact .plf__mc-suggestion { color: #5b4d74; }
.plf--contact .plf__mc-suggestion a { color: var(--plf-purple); }

/* ---- opt-in checkbox (contact) ---- */
.plf__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  cursor: pointer;
}
.plf__check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--plf-purple);
  cursor: pointer;
}
.plf__check-label { font-size: 13.5px; line-height: 1.45; color: #4a3d63; }

/* ---- button ---- */
.plf__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(92deg, #8827c7 0%, #9052ff 100%);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  margin-top: 4px;
  cursor: pointer;
  /* !important NOTE: theme applies text-transform:capitalize to buttons, which
     would alter Iris's exact copy ("Ja, ik doe mee" -> "Ja, Ik Doe Mee").
     Force none so the button renders the copy verbatim. */
  text-transform: none !important;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 24px rgba(136, 39, 199, 0.36);
}
.plf__button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(136, 39, 199, 0.44); }
.plf__button:active { transform: translateY(0); }
.plf__button:focus-visible { outline: 3px solid rgba(158, 156, 234, 0.9); outline-offset: 2px; }
.plf__button[disabled] { opacity: 0.65; cursor: default; transform: none; box-shadow: none; }

/* ---- messages ---- */
.plf__error {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  min-height: 0;
}
.plf--newsletter .plf__error { color: #ffc9c9; }
.plf--contact .plf__error { color: #c0392b; }
.plf__error:empty { display: none; }

/* success replaces the form body */
.plf__success { display: none; text-align: center; }
.plf[data-state="done"] .plf__form { display: none; }
.plf[data-state="done"] .plf__success { display: block; }

/* Contact success: vertically centre the whole success block within the form
   column. The form column (.ct-web-studio-form) is a stretched flex column with
   a single child (the form widget); once the tall form collapses to the short
   success card, this centres it instead of leaving it stuck at the top. No-op in
   the form state, where the child already fills the column. */
.ct-web-studio-form { justify-content: center; }
.plf__success-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
}
.plf__success-body { margin: 0; font-size: 19px; line-height: 1.55; }
.plf--newsletter .plf__success-title { color: #ffffff; }
.plf--newsletter .plf__success-body { color: #d7d0ef; }
.plf--contact .plf__success-title { color: var(--plf-deep); }
.plf--contact .plf__success-body { color: #4a3d63; }
.plf__success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  margin: 0 0 14px;
  background: linear-gradient(92deg, #8827c7 0%, #9052ff 100%);
  color: #fff;
}

/* honeypot — visually hidden, off the a11y tree via aria-hidden in markup */
.plf__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* turnstile container — invisible/managed, kept out of the visual flow */
.plf__ts { margin: 2px 0 0; }
.plf__ts:empty { display: none; }

@media (max-width: 480px) {
  .plf__card { padding: 22px 18px 20px; }
}
