:root {
  color-scheme: light;
  --background: #e9efe3;
  --surface: #fbf8ee;
  --text: #223427;
  --muted: #64745e;
  --line: #cad8bf;
  --accent: #5f7f55;
  --accent-dark: #3f5f43;
  --sage: #9aac85;
  --moss: #718a55;
  --earth: #9d7b43;
  --shadow: 0 18px 46px rgba(35, 61, 42, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(154, 172, 133, 0.2), transparent 32%),
    linear-gradient(180deg, #eef4e8 0%, #e2ebd9 58%, #d7e2cd 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell,
.poll-layout {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding: 48px 0;
}

.hero {
  margin-bottom: 28px;
}

.hero-content {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #4f6e4a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}

.intro {
  max-width: 640px;
  margin-bottom: 0;
  color: #5a6f58;
  font-size: 1.16rem;
  line-height: 1.6;
}

.poll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 56px;
}

.poll-layout > * {
  min-width: 0;
}

.panel {
  width: 100%;
  max-width: 100%;
  background: rgba(251, 248, 238, 0.96);
  border: 1px solid rgba(95, 127, 85, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.field-label,
legend {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

input[type="text"] {
  width: 100%;
  min-height: 48px;
  margin-bottom: 22px;
  padding: 10px 12px;
  border: 1px solid #b8c8ad;
  border-radius: 6px;
  background: #fffdf6;
  color: var(--text);
}

input[type="text"]:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(84, 115, 59, 0.22);
}

.date-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.date-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid #d5dfca;
  border-radius: 8px;
  background: #fffdf6;
  cursor: pointer;
}

.date-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(95, 127, 85, 0.12);
}

.date-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.date-option strong,
.date-option small {
  display: block;
}

.date-option small {
  margin-top: 2px;
  color: var(--muted);
}

.form-message {
  min-height: 24px;
  margin: 16px 0 12px;
  color: var(--muted);
  line-height: 1.4;
}

.form-message.error {
  color: #9b2f28;
}

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

.turnstile-shell {
  min-height: 65px;
  margin: 0 0 14px;
}

.submit-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover {
  background: #314d35;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.results-list {
  min-width: 0;
}

.announcement {
  margin: -6px 0 20px;
  padding: 14px;
  border: 1px solid #b8cca9;
  border-radius: 8px;
  background: #eef5e8;
  color: var(--accent-dark);
  font-weight: 800;
  line-height: 1.45;
}

.summary-results {
  display: grid;
  gap: 10px;
}

.summary-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.availability-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf6;
}

.availability-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  text-align: center;
}

.availability-table th,
.availability-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #dce5d4;
}

.availability-table th:first-child {
  min-width: 150px;
  text-align: left;
}

.availability-table thead th,
.availability-table tfoot th,
.availability-table tfoot td {
  background: #eef3e9;
  color: var(--accent-dark);
  font-weight: 800;
}

.availability-table tbody tr:last-child th,
.availability-table tbody tr:last-child td,
.availability-table tfoot tr:last-child th,
.availability-table tfoot tr:last-child td {
  border-bottom: 0;
}

.date-check {
  color: #21823b;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.not-selected {
  color: #b4beb0;
}

.empty-results {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 640px);
    padding: 28px 0;
  }

  .poll-layout,
  .hero-content {
    width: min(100% - 24px, 640px);
  }

  .hero-content {
    padding-top: 28px;
  }

  .poll-layout {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .poll-layout,
  .hero-content {
    width: calc(100% - 20px);
  }

  .panel {
    padding: 16px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3rem);
  }

  .date-option {
    padding: 12px;
  }

  .availability-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .availability-table th,
  .availability-table td {
    padding: 10px 4px;
  }

  .availability-table th:first-child {
    width: 40%;
    min-width: 0;
  }

  .availability-table thead th:not(:first-child) {
    font-size: 0.78rem;
  }
}
