/* Lead forms in OttoLearn's own style, sent to HubSpot by /assets/lead-form.js
   (lib/lead-form.cjs builds the markup). They replace the HubSpot embeds and
   follow the house form standard (neo-context company/site-design.md, Forms
   send through code): a red asterisk after each required label, 16px labels,
   18px typed text, and a 16px semibold submit button at least 48px tall that
   grows 2% and glows in its own colour on hover and keyboard focus.
   The button is the site's yellow-green with dark text, as its other buttons
   are; HubSpot's white text on that green read at about 2:1. The 24px under
   each form keeps the privacy line that follows clear of the button (Barrett
   Telfer, 2026-11-12). */
.lf { font-family: "Work Sans", sans-serif; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--otto-black-original, #222); text-align: left; display: grid; gap: 16px; margin: 8px 0 24px; }
.lf__text { font-size: 16px; line-height: 1.5; }
.lf__text h3 { margin: 8px 0 0; font-size: 20px; line-height: 1.3; font-weight: 600; color: inherit; }
.lf__text h3 strong { font-weight: inherit; }
.lf__text p { margin: 0; }
.lf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lf__field { display: grid; gap: 6px; min-width: 0; }
.lf__label { font-size: 16px; font-weight: 600; line-height: 1.3; color: inherit; margin: 0; }
.lf__label:has(+ .lf__input:required)::after { content: " *"; color: #dc2626; }
.lf__optional { font-weight: 400; opacity: .8; }
.lf__input { box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; font: inherit; font-size: 18px; color: var(--otto-black-original, #222); background: #fff; border: 1px solid #8e8e9a; border-radius: 4px; transition: border-color .15s ease, box-shadow .15s ease; }
.lf__input--area { min-height: 120px; resize: vertical; }
select.lf__input { appearance: auto; }
.lf__input:focus { outline: none; border-color: var(--indigo-blue, #4153ff); box-shadow: 0 0 0 3px rgba(65, 83, 255, .25); }
.lf__send { justify-self: start; min-height: 48px; margin: 4px 0 0; padding: 12px 28px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: .3px; color: var(--otto-app-black, #17161a); background: var(--yellow-green, #8fc31a); border: 0; border-radius: 4px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.lf__send:hover, .lf__send:focus-visible { transform: scale(1.02); box-shadow: 0 0 20px rgba(143, 195, 26, .45), 0 0 48px rgba(143, 195, 26, .2); }
.lf__send:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.lf__send:disabled { cursor: progress; opacity: .75; transform: none; box-shadow: none; }
.lf__fail { margin: 0; font-size: 16px; font-weight: 600; color: #b42318; }
.lf__fail a { color: inherit; }
.nv-form-reason { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; }
/* One-field signups: the email and the button share a row. */
.lf--inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; row-gap: 8px; max-width: 560px; }
.lf--inline .lf__send { margin: 0; }
.lf--inline .lf__fail { grid-column: 1 / -1; }
/* Forms on the site's dark and coloured panels: the green blog signup
   (.demo-cta) and the dark landing-page panels (.ol-lp-form). */
.demo-cta .lf, .ol-lp-form .lf { color: #fff; }
.demo-cta .lf__fail, .ol-lp-form .lf__fail { color: #fff; text-decoration: underline; }
.demo-cta .lf__label:has(+ .lf__input:required)::after, .ol-lp-form .lf__label:has(+ .lf__input:required)::after { color: #ffb4b4; }
@media (max-width: 567px) {
  .lf__row, .lf--inline { grid-template-columns: 1fr; }
  .lf--inline .lf__send, .lf__send { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .lf__send:hover, .lf__send:focus-visible { transform: none; }
}
