:root {
  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #22262e;
  --muted: #5b6470;
  --faint: #8a919b;
  --line: #e7e3da;
  --accent: #2f6f6a;
  --accent-dark: #235550;
  --accent-tint: #eaf2f1;
  --err: #b4342a;
  --ok: #2f6f4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 30, .04), 0 8px 30px rgba(20, 24, 30, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }

.page { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }

/* Header */
.masthead { margin: 8px 0 28px; }
.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 10px;
}
.masthead h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600; font-size: clamp(28px, 6vw, 40px); line-height: 1.12;
  margin: 0 0 14px; letter-spacing: -.01em;
}
.masthead .lede { color: var(--muted); font-size: 17px; margin: 0; max-width: 56ch; }
.masthead .lede strong { color: var(--ink); font-weight: 600; }

/* Section cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 8px; margin: 18px 0;
}
.section-title {
  display: flex; align-items: baseline; gap: 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 20px; font-weight: 600; margin: 2px 0 4px;
}
.section-title .num {
  font-family: -apple-system, system-ui, sans-serif; font-size: 12px; font-weight: 700;
  color: var(--accent); background: var(--accent-tint); border-radius: 999px;
  min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
}
.section-note { color: var(--faint); font-size: 14px; margin: 0 0 14px; }

/* Question blocks */
.q { padding: 14px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; }
.q-label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 3px; }
.q-label .opt-tag { color: var(--faint); font-weight: 400; font-size: 13px; }
.q-help { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }

input[type=text], input[type=email], input[type=url], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
input::placeholder, textarea::placeholder { color: #b3b8bf; }

/* Pill options (radio / checkbox) */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: 14.5px; background: #fff; user-select: none;
  transition: border-color .15s, background .15s;
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt:hover { border-color: #cfd4da; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-tint); }

/* File field */
.filefield {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px dashed #cdd3d1; background: #fbfbf9; border-radius: 10px; padding: 12px 14px;
}
.filefield label.btn-file {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-tint); border: 1px solid #d7e4e2; border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
}
.filefield input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filefield .hint { color: var(--faint); font-size: 13px; }
.filefield .filelist { font-size: 13px; color: var(--muted); flex-basis: 100%; margin-top: 4px; }

/* Contact block emphasis */
.q.req .q-label::after { content: " *"; color: var(--accent); }

/* Actions */
.turnstile-wrap { margin: 8px 0 4px; }
.actions { padding: 8px 0 0; margin-top: 8px; }
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 16px; color: #fff;
  background: var(--accent); border-radius: 12px; padding: 14px 22px; width: 100%;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.status { margin: 12px 2px 0; font-size: 14.5px; min-height: 20px; }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); }
.privacy { color: var(--faint); font-size: 13px; text-align: center; margin-top: 12px; }

/* Success */
.success { text-align: center; padding: 40px 10px; }
.success h2 {
  font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 28px; margin: 0 0 12px;
}
.success p { color: var(--muted); font-size: 17px; max-width: 44ch; margin: 0 auto; }
.success .check {
  width: 56px; height: 56px; border-radius: 999px; background: var(--accent-tint);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 18px;
}

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 36px; }
.foot a { color: var(--muted); }

@media (min-width: 640px) {
  .page { padding-top: 48px; }
  .card { padding: 26px 28px 12px; }
}
