/* =====================================================
   FORMS — the site's own forms (_includes/partials/lead-form.njk),
   sent to HubSpot by /js/lead-form.js. They replace HubSpot's embeds.
   Loaded on every page by base.njk.
   ===================================================== */
.pf { display: flex; flex-direction: column; gap: 20px; width: 100%; text-align: left; }
.pf[hidden] { display: none; }
.pf__fields { display: flex; flex-direction: column; gap: 20px; }
.pf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pf__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf__label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 1rem; font-weight: 600;
  color: var(--text-dark, #1A1033);
}
/* Required fields: a red asterisk after the label, as on neovation.com
   (Barrett Telfer, 2026-11-11). CSS text, so there is no icon font to fall
   back from; screen readers announce the field's required attribute. */
.pf__label:has(+ .pf__input:required)::after { content: " *"; color: #DC2626; font-weight: 600; }
.pf__optional { font-weight: 400; color: var(--text-dark-70, rgba(26,16,51,0.70)); }
.pf__input {
  width: 100%; min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid #8E8A96; /* 3.3:1 on white, the WCAG minimum for a field's edge */
  border-radius: 10px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 1.125rem;
  color: var(--text-dark, #1A1033);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select.pf__input { cursor: pointer; }
.pf__input--area { min-height: 120px; resize: vertical; }
.pf__input:focus {
  outline: none;
  border-color: var(--accent, #7C3AED);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
/* Submit button: the house standard for every Neovation site's form button
   (Barrett Telfer, 2026-11-11: one text size, and on hover the slight
   enlargement and glow of expresselearning.com's buttons). 16px semibold in
   the site's font; a darker teal than the site's other buttons, so white text
   clears WCAG AA (5.5:1); the glow is the button's own colour, which reads on
   light and dark backgrounds alike. */
.pf__send {
  align-self: flex-start;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: #fff; background: #0F766E;
  border: none; border-radius: 9999px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.pf__send:hover, .pf__send:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(15,118,110,0.35), 0 0 48px rgba(15,118,110,0.15);
}
.pf__send:focus-visible { outline: 2px solid var(--accent, #7C3AED); outline-offset: 3px; }
.pf__send:disabled { opacity: 0.75; cursor: progress; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .pf__send:hover, .pf__send:focus-visible { transform: none; } }
.pf__fail { margin: 0; font-size: 1rem; color: #B91C1C; }
.pf__fail a { color: inherit; }
.pf__done { margin: 0; font-size: 1rem; font-weight: 600; color: #0F766E; transition: opacity 0.6s ease; }
.pf__done.is-fading { opacity: 0; }
.nv-form-reason { display: block; margin-top: 4px; font-size: 0.75rem; }

/* Subscribe bands: the email and the button on one row */
.pf--inline { max-width: 560px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 8px; align-items: end; }
.pf--inline .pf__send { align-self: end; }
.pf--inline .pf__fail, .pf--inline .pf__done { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .pf__row { grid-template-columns: 1fr; }
  .pf--inline { grid-template-columns: 1fr; }
  .pf--inline .pf__send, .pf__send { align-self: stretch; }
}

/* On a dark card (the Organizations form) */
.pf--dark .pf__label { color: #fff; }
.pf--dark .pf__optional { color: rgba(255,255,255,0.75); }
.pf--dark .pf__label:has(+ .pf__input:required)::after { color: #FCA5A5; }
.pf--dark .pf__fail { color: #FCA5A5; }
.pf--dark .pf__send:hover, .pf--dark .pf__send:focus-visible { box-shadow: 0 0 20px rgba(20,184,166,0.45), 0 0 48px rgba(20,184,166,0.2); }

/* The "Stay updated" band: the text takes the room the capped email field
   leaves, with a double gutter (48px) between them (Barrett Telfer,
   2026-11-11). Selectors carry .newsletter so they outrank the page sheets,
   which load after this one. */
@media (min-width: 768px) {
  .newsletter .newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) min(560px, 50%); column-gap: 48px; }
  .newsletter .newsletter__inner > div:first-child { max-width: none; }
}
