:root {
  --navy: #1E1C67;

  --bg: #f5f5f9;
  --card: #ffffff;
  --tint: #ecebf5;
  --text: #1b1a3a;
  --muted: #55556f;
  --border: #dcdce8;
  --brand: var(--navy);
  --on-brand: #ffffff;
  --accent: var(--navy);
  --on-accent: #ffffff;
  --link: var(--navy);
  --focus: #6a67d6;
  --err-text: #a3222b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e24;
    --card: #18173a;
    --tint: #222150;
    --text: #ecebf8;
    --muted: #b4b3d0;
    --border: #33325e;
    --accent: #c3c1f5;
    --on-accent: var(--navy);
    --link: #c3c1f5;
    --focus: #c3c1f5;
    --err-text: #ffa3a8;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header { background: var(--brand); color: var(--on-brand); }
.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  flex: none;
  width: 104px;
  aspect-ratio: 451 / 278;
  background: currentColor;
  -webkit-mask: url(logo-bap-mono.svg) center / contain no-repeat;
  mask: url(logo-bap-mono.svg) center / contain no-repeat;
}
header h1 { font-size: 1.5rem; margin: 0 0 4px; line-height: 1.2; }
header p { margin: 0; opacity: .85; font-size: .95rem; }
main { max-width: 680px; margin: 0 auto; padding: 8px 16px 64px; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.intro { margin-top: 20px; }
.muted { color: var(--muted); font-size: .94rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}
.card.tint { background: var(--tint); border-color: transparent; }
a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
li a { overflow-wrap: anywhere; }
label { display: block; font-weight: 600; margin: 18px 0 6px; }
label:first-child { margin-top: 0; }
label .opt { font-weight: 400; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 22px; cursor: pointer; }
#contact-group { margin-top: 16px; }
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
select, textarea, input[type=text] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}
select:focus, textarea:focus, input:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
textarea { min-height: 200px; resize: vertical; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
button {
  margin-top: 22px;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--border);
  font-weight: 600;
}
button:disabled { opacity: .6; cursor: wait; }
.error { margin: 14px 0 0; color: var(--err-text); font-weight: 600; }
.done { text-align: center; padding: 36px 20px 24px; animation: appear .4s ease-out; }
.done h2 { font-size: 1.3rem; margin: 16px 0 8px; outline: none; }
.check {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
}
@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .done { animation: none; } }
ul { padding-left: 20px; margin: 0; }
li { margin-bottom: 6px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 480px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .logo { width: 88px; }
}
