/* Shared styling for the three public intake forms.

   Tokens only — every colour here is a var() from /styles/brand.css. This file
   declares no :root block on purpose: that is the drift brand.css exists to
   prevent, and a form that invented its own --danger would report a statutory
   omission in the wrong red. */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.masthead a { text-decoration: none; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
}

h1 { font-size: 26px; line-height: 1.25; margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; }
.statute {
  font-size: 13px;
  color: var(--muted-soft);
  margin: 0 0 24px;
}

/* A callout carries something the filer must read before typing — the NCII
   route's emergency guidance, the counter-notice's jurisdiction warning. */
.callout {
  background: var(--brand-wash);
  border: 1px solid var(--brand-hairline);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-body);
  margin: 0 0 24px;
}
.callout.warn {
  background: transparent;
  border-color: var(--warning-soft);
}
.callout strong { color: var(--ink); }

fieldset { border: 0; margin: 0; padding: 0; }

.field { margin-bottom: 22px; }
.field > label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--ink);
}
.hint {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* Attestations. Larger hit area than a bare checkbox because ticking one is a
   statement under penalty of perjury, not a preference. */
.attest {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  cursor: pointer;
}
.attest input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.attest span { font-size: 14px; line-height: 1.55; color: var(--ink-body); }

/* The honeypot. Off-screen rather than display:none — some automated fillers
   skip hidden inputs but not positioned ones. aria-hidden and tabindex keep it
   away from anybody using a screen reader or the keyboard. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.err {
  color: var(--danger);
  font-size: 13px;
  margin: 6px 0 0;
  display: none;
}
.err.show { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.attest.invalid { border-color: var(--danger); }

button[type="submit"] {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--card);
  background: var(--brand);
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  margin-top: 8px;
}
button[type="submit"]:hover { background: var(--brand-dark); }
button[type="submit"][disabled] { opacity: 0.6; cursor: default; }

.formnote { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 16px; }

/* Result states replace the form rather than sitting above it: after a
   successful filing there is nothing left to do on this page, and leaving a
   populated form on screen invites a second identical notice. */
.result { display: none; }
.result.show { display: block; }
.result h2 { font-size: 20px; margin: 0 0 10px; }
.reference {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  word-break: break-all;
}
.summary {
  border: 1px solid var(--danger);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  display: none;
}
.summary.show { display: block; }
.summary p { margin: 0 0 8px; font-weight: 600; color: var(--danger); font-size: 14.5px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { font-size: 14px; line-height: 1.55; color: var(--ink-body); }

.backlink { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--brand); }
