/* Validated.Directory 2.0.0 · the owner's form and the organisation's form (BEA-432), shared by /start/ and /talk/.
   Loads after /brand/tokens.css, /brand/base.css and /dir/shell.css. Day: square inputs with corner marks (the kit's
   .field), one barn button, and the received state, where the Box V burns (the kit's brand-burn). Start sends to the live
   directory Worker (form.js) and shows the received state once it went; if it did not, .send-err says so under the button.
   Talk to us sends to the fleet mailer (the kit's send.js) and shows the same received state only on the mailer's 2xx; if
   it did not go, the kit's .unsent note (base.css) says so. With scripts off each form posts itself. */

.form-sec { position: relative; padding: 62px 0 30px; }
.form-sec .eyebrow { color: var(--ink-2); }
.fs-head { container-type: inline-size; min-width: 0; }
.form-sec h2 { max-width: 100%; font-size: clamp(34px, 17cqw, 56px); text-wrap: balance; }
.fs-say { margin-top: 14px; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--ink); }
.form-card { position: relative; margin-top: 26px; max-width: 660px; padding: 22px 18px 24px; background: var(--paper-hi); border: 1px solid rgba(35, 31, 26, 0.3); box-shadow: 0 34px 60px -40px rgba(35, 31, 26, 0.55); }
.form { display: grid; gap: 20px; }
.form[hidden] { display: none; }
.fl, .opts { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }   /* 12px: the corner marks sit 5px out from each box, so a label or the next option keeps clear of them */
.lab { padding: 0; font: 600 12px/1.4 var(--sans); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.lab-opt { margin-left: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: none; color: var(--ink-2); }
.hint { margin-top: -6px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.fw { display: block; --cm: rgba(35, 31, 26, 0.5); }
.field.mono { font-family: var(--mono); font-size: 15px; }
textarea.field { min-height: 112px; resize: vertical; line-height: 1.5; }
.field::placeholder { color: #8a8174; opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--barn); box-shadow: inset 0 0 0 1px var(--barn); }
.err { font: 500 13px/1.45 var(--mono); color: #8a2f22; }
.err:empty { display: none; }
.opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; min-height: 48px; padding: 11px 14px; border: 1px solid var(--ink-2); background: var(--paper-hi); cursor: pointer; --cm: rgba(35, 31, 26, 0.5); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.opt span { font-size: 16px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.opt:has(input:checked) { background: #fffaf0; box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--indigo); outline-offset: 3px; }
.send { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 2px; }
.send .btn { min-width: 150px; }
.send .btn[aria-busy="true"] { cursor: progress; opacity: 0.72; }
.send-err { font: 500 14px/1.5 var(--mono); color: #8a2f22; max-width: 52ch; outline: none; }
.send-err[hidden] { display: none; }
.send-err a { color: inherit; overflow-wrap: anywhere; }
.fine { font: 400 13px/1.55 var(--mono); color: var(--ink-2); max-width: 52ch; }
.fine a { color: var(--ink); overflow-wrap: anywhere; }

/* The received state: the Box V burns once, and the words say what happens next. */
.received { display: none; outline: none; }
.received.on, html:not(.js) .received:target { display: block; }
.rc-top { display: flex; align-items: flex-start; gap: 18px; }
.received .brand-day { flex: 0 0 auto; margin: 0; }
.received .brand-day .iron { width: 64px; height: 64px; }
/* the label in a weight the page has already loaded, so showing the received state fetches no font file: nothing at all
   leaves the page on Send */
.received .brand-day .b-word { font-weight: 500; }
.rc-date:empty { display: none; }
.rc-h { font: 400 clamp(30px, 8vw, 42px)/1.06 var(--display); color: var(--ink); }
.rc-to { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 44ch; overflow-wrap: break-word; }
.rc-to .rc-email { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }
.rc-list { display: grid; margin-top: 20px; border-top: 1px solid var(--rule-ink); }
.rc-list:empty { display: none; }
.rc-list div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule-ink); }
.rc-list dt { font: 500 11px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.rc-list dd { margin: 0; font: 400 14.5px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.rc-later { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 52ch; }
.rc-later[hidden] { display: none; }
.rc-later .rc-code { font-family: var(--mono); overflow-wrap: anywhere; }
.rc-fine { margin-top: 16px; font: 400 13px/1.55 var(--mono); color: var(--ink-2); }
.rc-act { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 10px; }
.rc-act a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration-color: var(--barn); text-decoration-thickness: 2px; }

.ai-sec { position: relative; padding-top: 34px; padding-bottom: 96px; }
.ai-sec .aibox { max-width: 820px; margin: 0 auto; }
.aibox h2 { font-size: clamp(28px, 7vw, 38px); line-height: 1.1; color: var(--white); margin-top: 0; }

@media (min-width: 900px) {
  .form-sec { padding-top: 92px; }
  .form-sec .fs-in { display: grid; grid-template-columns: minmax(17rem, 0.95fr) minmax(0, 1.05fr); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
  .form-card { margin-top: 6px; padding: 32px 34px 34px; }
  .ai-sec { padding-top: 48px; padding-bottom: 130px; }
}
