:root {
  color-scheme: light;
  --page: #f4f7f5;
  --panel: #ffffff;
  --text: #17201b;
  --muted: #65736b;
  --line: #d8e1db;
  --accent: #176b5b;
  --accent-dark: #105246;
  --accent-soft: #e7f3ef;
  --danger: #a53d33;
  --success: #14633f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(23, 107, 91, 0.08), rgba(23, 107, 91, 0) 38%),
    var(--page);
}

.poll-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  place-items: center;
}

.poll-panel {
  width: 100%;
  padding: clamp(24px, 5vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(27, 51, 42, 0.12);
}

.poll-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.poll-question {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.choice:hover {
  border-color: rgba(23, 107, 91, 0.45);
  background: var(--accent-soft);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.choice span {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 680;
}

button {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-size: 1rem;
  font-weight: 760;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.result-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(20, 99, 63, 0.28);
  border-radius: 8px;
  background: #eef8f2;
}

.result-label {
  margin-bottom: 6px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-panel p {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 760;
  line-height: 1.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .poll-shell {
    padding: 22px 14px;
    align-items: start;
  }

  .poll-panel {
    margin-top: 18px;
  }
}
