:root {
  color-scheme: light;
  --green: #004c44;
  --apricot: #f1b570;
  --orange: #ef8409;
  --olive: #517526;
  --leaf: #6c9c32;
  --leaf-light: #acd075;
  --paper: #f8f8f8;
  --tint: #eef4e4;
  --ink: #1c2a27;
  --mist: #e8f1ed;
  --grey: #5b6c66;
  --line: #d7e2db;
  --error: #a33b00;
  --heading: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
}
.logo { height: 36px; width: auto; display: block; }
.count { margin: 0 0 0 auto; color: var(--grey); font-size: .875rem; white-space: nowrap; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--grey);
  font: 700 .8125rem var(--heading);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--green); color: #fff; }

.bar { height: 4px; background: var(--line); }
.bar span { display: block; width: 0; height: 100%; background: var(--leaf); transition: width .25s ease; }

main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
}

.kicker {
  margin: 0 0 10px;
  color: var(--olive);
  font: 600 .75rem/1.3 var(--heading);
  letter-spacing: .22em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 10px;
  color: var(--green);
  font: 800 clamp(1.5rem, 5.4vw, 2.125rem)/1.12 var(--heading);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
h1:focus { outline: none; }
.hint { margin: 0 0 20px; color: var(--grey); }

.panel {
  position: relative;
  overflow: hidden;
  padding: 32px 24px 40px;
  border-radius: 28px 28px 28px 88px;
  background: var(--green);
  color: var(--mist);
}
.panel::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 200px;
  height: 200px;
  border: 26px solid var(--leaf-light);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: .16;
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }
.panel .kicker { color: var(--apricot); }
.panel h1 { color: #fff; }
.panel p { margin: 0 0 14px; }
.facts { margin: 20px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 10px; margin-top: 8px; }
.facts li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 12px 0 12px 12px;
  background: var(--apricot);
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; width: 100%; }
.options { display: grid; gap: 10px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px 14px 14px 26px;
  background: #fff;
  font-weight: 600;
  transition: border-color .12s ease, background .12s ease;
}
.option span::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.option input[type="checkbox"] + span::before { border-radius: 6px; }
.option input:hover + span { border-color: var(--leaf); }
.option input:checked + span { border-color: var(--green); background: var(--tint); }
.option input:checked + span::before { border: 6px solid var(--green); }
.option input[type="checkbox"]:checked + span::before { border: 2px solid var(--green); background: var(--green); }
.option input[type="checkbox"]:checked + span::after {
  content: "";
  position: absolute;
  left: 24.5px;
  top: 50%;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.option input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.option input:disabled { cursor: not-allowed; }
.option input:disabled + span { opacity: .45; }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips .option span { min-height: 44px; padding: 8px 12px; font-size: .9375rem; }

.field { display: block; margin-bottom: 16px; }
.field > b, .group-label { display: block; margin-bottom: 6px; font-weight: 600; }
.field small { display: block; margin-bottom: 6px; color: var(--grey); font-size: .875rem; }
input[type="text"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
}
textarea { min-height: 88px; resize: vertical; }
input[type="text"]:focus, textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--green); }
.other { margin-top: 10px; }

.notice {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fdf1e3;
  font-size: .9375rem;
}
.error { min-height: 24px; margin: 14px 0 0; color: var(--error); font-weight: 600; font-size: .9375rem; }

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.btn {
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--green);
  font: 700 1rem var(--heading);
  cursor: pointer;
}
.btn.primary { margin-left: auto; border-color: var(--green); background: var(--green); color: #fff; }
.btn:hover { border-color: var(--leaf); }
.btn.primary:hover { background: #00635a; border-color: #00635a; }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: progress; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript { padding: 24px 16px; text-align: center; }

@media (max-width: 400px) {
  .logo { height: 30px; }
  .count { font-size: .8125rem; }
  .btn { padding: 0 18px; }
}
@media (min-width: 640px) {
  .top { padding: 14px 24px; }
  main { padding-top: 44px; }
  .panel { padding: 44px 40px 52px; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
