:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #21332f;
  background: #f3f6f4;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 2rem, 44rem); margin: 2.5rem auto; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.1; }
h2 { font-size: 1.2rem; }
.page-header { margin-bottom: 1.4rem; }
.page-header > p { margin-top: 0.7rem; color: #4b605a; }
.panel {
  padding: clamp(1rem, 4vw, 1.9rem);
  border: 1px solid #d2ded7;
  border-radius: 0.85rem;
  background: #fff;
}
.feedback { margin-bottom: 1rem; border-color: #d1aba7; }
.feedback ul { margin: 0.55rem 0 0; padding-left: 1.35rem; }
.stack > * + * { margin-top: 1.15rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.media-options { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.4rem; }
label, legend { font-weight: 630; }
.field { display: grid; gap: 0.33rem; min-width: 0; }
small, .hint { color: #4b605a; font-size: 0.9rem; font-weight: 400; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 0.35rem; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.56rem 0.65rem;
  border: 1px solid #8fa49a;
  border-radius: 0.45rem;
  background: #fff;
}
input[readonly] { background: #f6f9f7; }
textarea { min-height: 7rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: #1c5c46;
  margin: 0;
}
.choice {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #a3b4ab;
  border-radius: 0.45rem;
  cursor: pointer;
}
.choice:has(input:checked) { background: #e7f2ec; border-color: #28644f; }
.conditional {
  padding: 0.85rem;
  border: 1px solid #d2ded7;
  border-radius: 0.55rem;
  background: #f6f9f7;
}
.conditional > legend { padding: 0 0.3rem; }
.error { margin-top: 0.4rem; color: #9b2525; }
.section-start { padding-top: 1.15rem; border-top: 1px solid #dce5e0; }
.section-start h2 { margin-bottom: 0.85rem; }
.contact-hint { margin-top: 0.5rem; }
.signed-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; margin-bottom: 0.8rem; }
.signed-in > span { overflow-wrap: anywhere; }
button, .button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.55rem 1rem;
  border: 1px solid #1c5c46;
  border-radius: 0.45rem;
  background: #1c5c46;
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { background: #174a39; }
.link-button {
  padding-inline: 0.2rem;
  border-color: transparent;
  color: #1c5c46;
  background: transparent;
  text-decoration: underline;
}
.link-button:hover { background: #e7f2ec; }
:focus-visible { outline: 3px solid #397f64; outline-offset: 3px; }

@media (max-width: 37rem) {
  main { margin: 1.25rem auto; }
  .grid { grid-template-columns: 1fr; }
}
