/* Inline form errors for the California interest form (2026-11-22). */
.form-error-summary {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 2px solid #e5484d;
  background: #2a1214;
  color: #fff;
}
.form-error-summary:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-error-summary-title { margin: 0 0 8px; font-weight: 700; }
.form-error-summary ul { margin: 0; padding-left: 20px; }
.form-error-summary li { margin: 4px 0; line-height: 1.5; }
.form-error-summary a { color: #ffb4b4; text-decoration: underline; }
.form-card .field-error {
  margin: 6px 0 0;
  color: #ff8a8a;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-basis: 100%;
}
.form-card .field-error::before { content: "! "; font-weight: 700; }
.form-card .has-error input:not([type="checkbox"]):not([type="radio"]),
.form-card .has-error select { border-color: #e5484d; }
.form-card .sms-consent.has-error { flex-wrap: wrap; }
.form-card .sms-consent.has-error input[type="checkbox"] { outline: 2px solid #e5484d; }
.form-status.is-error { border-color: #e5484d; background: #2a1214; }
.form-card button[disabled] { opacity: 0.7; cursor: progress; }
/* Keep the summary and fields clear of the sticky header when scrolled to. */
.form-error-summary, .form-card .field, .form-status { scroll-margin-top: 190px; }

.form-card .file-meta {
  margin: 6px 0 0;
  color: #d8d3c8;
  font-size: 0.92rem;
  line-height: 1.45;
}
.form-card .file-meta.is-on { display: block; }
.form-card .file-meta.is-busy { color: #f0e6b8; }
.form-card .file-meta.is-ready { color: #8ee0a8; font-weight: 600; }
.form-card .file-meta.is-error { color: #ff8a8a; font-weight: 600; }
.form-card .field input[type="file"] { max-width: 100%; }
