/* Light by default; the dark block below follows the device setting -
   same palette as css/index.css. */
:root {
  color-scheme: light dark;
  --brand-red: #B20838;
  --brand-red-dark: #8a0629;
  --brand-yellow: #FFD400;
  --page: #F3F3F3;
  --surface: #FFFFFF;
  --text-primary: #222222;
  --text-secondary: #55524f;
  --text-muted: #767676;
  --border: rgba(34,34,34,0.14);
  --link: #B20838;
  --good: #1a8f3c;
  --critical: #B20838;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #121214;
    --surface: #1c1c1e;
    --text-primary: #ececec;
    --text-secondary: #b8b5b2;
    --text-muted: #9a9a9a;
    --border: rgba(255,255,255,0.14);
    --link: #ef4f75;
    --good: #3ccf6b;
    --critical: #ef4f75;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text-primary); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55; }
.brand-header { background: var(--brand-red); color: #fff; padding: 18px 16px 16px; }
.brand-header-inner { max-width: 560px; margin: 0 auto; }
.brand-header h1 { font-size: 1.3rem; margin: 0 0 6px; color: #fff; }
.brand-header a { color: #fff; opacity: 0.9; font-size: 0.85rem; text-decoration: none; }
.brand-header a:hover { text-decoration: underline; }
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 56px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
p { color: var(--text-secondary); margin: 0 0 12px; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0 0 6px; }
.hint { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }
input[type=text], input[type=email], textarea {
  width: 100%; padding: 10px 12px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--page); color: var(--text-primary);
  font-family: inherit; font-size: 0.92rem;
}
textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 16px; }
button[type=submit] {
  width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: var(--brand-red); color: #fff; font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
}
button[type=submit]:disabled { opacity: 0.5; cursor: default; }
button[type=submit]:active:not(:disabled) { opacity: 0.85; }
.status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; display: none; }
.status.ok { display: block; color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.status.err { display: block; color: var(--critical); background: color-mix(in srgb, var(--critical) 10%, transparent); }
footer { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding-top: 8px; }
footer a { color: var(--link); }

/* Formerly inline style attributes - moved here so the CSP needs no
   style-src 'unsafe-inline'. */
.page-title { font-size: 1.4rem; margin: 20px 0 4px; }
.page-intro { margin-bottom: 20px; }
