/* Public audit form — page-specific styles
   Loaded AFTER /css/seonos-brand.css. Inherits tokens (--bg, --blue, etc.)
   and the .cwp-shell / .cwp-header / .cwp-footer chrome. */

.af-wrap { /* sits inside .cwp-shell */ }

.af-intro { margin-bottom: 24px; }
.af-intro .cwp-h1 { font-size: 34px; }
.af-intro .cwp-sub { max-width: 60ch; }

/* ── Flash banner ───────────────────────────────────────────────────────── */

.af-flash {
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 14.5px;
  border: 1px solid transparent;
}
.af-flash--info  { background: rgba(2, 144, 251, 0.08);  color: var(--blue3); border-color: var(--blue); }
.af-flash--warn  { background: rgba(255, 122, 26, 0.08); color: #ffc28a;       border-color: var(--orange); }
.af-flash--error { background: rgba(255, 82, 82, 0.08);  color: #ff8a8a;       border-color: #ff5252; }

/* ── Form ───────────────────────────────────────────────────────────────── */

.af-form { /* uses .cwp-card base */ }

.af-row { margin-bottom: 18px; }
.af-row:last-child { margin-bottom: 0; }

.af-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.af-col { display: flex; flex-direction: column; }

.af-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.af-optional {
  font-weight: 400;
  color: var(--muted);
}

.af-input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.af-input::placeholder { color: rgba(168, 186, 194, 0.55); }

.af-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--glow);
  background: rgba(255, 255, 255, 0.07);
}

.af-input--err {
  border-color: #ff5252;
  background: rgba(255, 82, 82, 0.05);
}

textarea.af-input { resize: vertical; min-height: 92px; }
select.af-input {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.af-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 0;
}
.af-err {
  font-size: 12.5px;
  color: #ff8a8a;
  margin: 6px 0 0;
}

/* ── Consent ────────────────────────────────────────────────────────────── */

.af-consent {
  background: rgba(2, 144, 251, 0.04);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.af-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.af-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--blue);
}
.af-consent-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}

/* ── Actions ────────────────────────────────────────────────────────────── */

.af-actions { padding-top: 4px; }
.af-submit { /* reuse .cwp-btn */ }
.af-fineprint {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
  .af-row--two { grid-template-columns: 1fr; }
}
