:root {
  --navy: #1c2b4a;
  --navy-soft: #2f3f60;
  --fg: #1f2537;
  --muted: #6a708a;
  --err: #b00020;
  --line: #d8dbe6;
  --card: #ffffff;
  --accent: #f0dca8;
  --accent-line: #e2c983;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(165deg, #e9f1fb 0%, #efeaf8 48%, #fbedf1 100%);
  background-attachment: fixed;
}

/* Full-bleed campaign hero. Text and logo are baked into the image, so the
   page does not repeat them. */
.hero {
  display: block;
  width: 100%;
  height: auto;
}

main {
  max-width: 46rem;
  margin: 2rem auto;
  padding: 2rem 1.75rem 3rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(28, 43, 74, .10);
}

@media (max-width: 40rem) {
  main { margin: 1rem; padding: 1.5rem 1.1rem 2.5rem; border-radius: 10px; }
}

h1 { color: var(--navy); margin: 0 0 .25rem; line-height: 1.25; }
.lead { color: var(--muted); margin-top: 0; font-size: 1.05rem; }
h2 {
  color: var(--navy);
  margin-top: 2.5rem;
  border-bottom: 2px solid var(--accent-line);
  padding-bottom: .35rem;
}
a { color: var(--navy-soft); }

.clause { margin-bottom: .4rem; }

label { display: block; margin-top: 1rem; font-weight: 600; color: var(--navy); }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], select, textarea {
  width: 100%; padding: .6rem; margin-top: .3rem;
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--fg); background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(47, 63, 96, .15);
}
textarea { min-height: 9rem; resize: vertical; }

fieldset {
  border: 1px solid var(--line); border-radius: 8px;
  margin-top: 1rem; padding: .75rem 1rem 1rem;
}
legend { font-weight: 600; color: var(--navy); padding: 0 .4rem; }
.check {
  font-weight: 400; color: var(--fg);
  display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem;
}
.check input { margin-top: .35rem; flex: 0 0 auto; }

.error { color: var(--err); font-size: .9rem; margin-top: .3rem; font-weight: 600; }
.error-summary {
  border: 1px solid var(--err); border-left: 4px solid var(--err);
  border-radius: 6px; padding: 1rem; margin: 1rem 0;
  background: #fdf2f4;
}
.notice {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem; background: #f4f6fb;
}

button {
  margin-top: 2rem; padding: .85rem 2rem;
  font: inherit; font-weight: 700; cursor: pointer;
  color: var(--navy);
  background: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 8px;
}
button:hover { background: #ecd396; }
button:focus-visible { outline: 3px solid rgba(47, 63, 96, .35); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }

footer {
  margin-top: 3rem; border-top: 1px solid var(--line);
  padding-top: 1rem; font-size: .9rem;
}
