@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/InstrumentSans-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/InstrumentSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font: 16px/1.5 "Instrument Sans", system-ui, sans-serif;
  color: #1e3629;
  background: #f5f5ed;
  --line: #c9d1bf;
  --muted: #536455;
  --green: #204c38;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 100% 0%, #e4ebda 0%, transparent 46%);
}
.form-shell { width: min(100% - 40px, 760px); margin: auto; padding: 36px 0 24px; }
.identity { display: flex; align-items: center; gap: 11px; font-weight: 700; overflow-wrap: anywhere; }
.mark {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px;
  border-radius: 50% 50% 6px 50%; background: var(--green); color: #f9f5dd;
  font: italic 24px Georgia, serif;
}
main {
  margin: 26px 0 18px; padding: clamp(24px, 6vw, 58px);
  border-radius: 20px; border: 1px solid #d2d9c9;
  background: #fffef8; box-shadow: 0 7px 28px #2638270c;
}
h1 { margin: 0; font: 400 clamp(34px, 6vw, 61px)/1.08 Georgia, serif; letter-spacing: -.045em; overflow-wrap: anywhere; }
p { margin: .65rem 0; }
.intro { color: var(--muted); max-width: 62ch; white-space: pre-line; overflow-wrap: anywhere; }
.catalog { margin: 24px 0 0; padding: 0; list-style: none; }
.catalog li { padding: 16px 0; border-top: 1px solid var(--line); }
.catalog a { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.15rem; text-decoration: none; color: var(--green); }
.catalog a strong { overflow-wrap: anywhere; }
.catalog a:hover strong { text-decoration: underline; }
.catalog p { margin: 5px 0 0; }
form { margin-top: 30px; }
.progress { margin: 0 0 24px; }
.progress output { font-size: .8rem; color: var(--muted); }
progress { display: block; width: 100%; height: 5px; margin-top: 8px; appearance: none; border: none; border-radius: 8px; background: #e2e6da; color: #698c55; }
progress::-webkit-progress-bar { background: #e2e6da; border-radius: 8px; }
progress::-webkit-progress-value { background: #698c55; border-radius: 8px; }
progress::-moz-progress-bar { background: #698c55; border-radius: 8px; }
.question { margin: 0 0 26px; }
.question label { display: block; margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.question label small { color: var(--muted); font-size: .78rem; font-weight: 400; }
.help { color: var(--muted); font-size: .91rem; white-space: pre-line; overflow-wrap: anywhere; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; padding: 12px 14px;
  border: 1px solid #a8b6a4; background: #fff; color: #24352b;
  border-radius: 6px; font: inherit; line-height: 1.4;
}
textarea { min-height: 105px; resize: vertical; }
input[type=checkbox] { width: 1.25rem; height: 1.25rem; accent-color: var(--green); }
.check-field { display: flex; align-items: baseline; gap: 10px; }
.check-field input { flex: 0 0 20px; align-self: flex-start; margin-top: 4px; }
.check-field label { margin: 0; }
.question.enhanced { min-height: 116px; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
button { cursor: pointer; font: 700 .94rem/1.4 "Instrument Sans", system-ui, sans-serif; border: 1px solid var(--green); border-radius: 7px; padding: 11px 18px; color: white; background: var(--green); }
button:hover { background: #2f5c46; }
.back { margin-right: auto; color: var(--green); background: transparent; border-color: var(--line); }
.back:hover { background: #eef2e7; }
:focus-visible { outline: 3px solid #548e69; outline-offset: 3px; }
.error { padding: 12px 15px; background: #fff0e6; border-left: 3px solid #ad583e; color: #733521; overflow-wrap: anywhere; }
footer { text-align: right; font-size: .78rem; color: var(--muted); }
footer strong { color: #324d37; }
.receipt { display: block; margin-top: 20px; overflow-wrap: anywhere; color: var(--muted); font-size: .82rem; }
body.embedded { min-height: 0; background: #fffef8; }
.embedded .form-shell { width: 100%; padding: 16px; }
.embedded main { margin: 12px 0; border-radius: 10px; padding: clamp(16px, 4vw, 32px); box-shadow: none; }
.embedded h1 { font-size: clamp(28px, 5vw, 43px); }
@media (max-width: 480px) {
  .form-shell { width: calc(100% - 24px); padding-top: 18px; }
  main { margin-top: 16px; padding: 22px 16px; border-radius: 12px; }
  .question.enhanced { min-height: 100px; }
}
