:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20242a;
  background: #f3f6f7;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f3f6f7;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dce3e6;
}

.header-inner {
  width: min(100% - 32px, 760px);
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-wrap img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.lang-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: #edf2f5;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid #d4dde2;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b555c;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  font-family: inherit;
}

.lang-btn:hover {
  color: #1b1625;
}

.lang-btn.active {
  background: #ffffff;
  color: #33245b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 750;
}

.lang-btn:focus-visible {
  outline: 2px solid #006c72;
  outline-offset: 2px;
}

.organization {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 750;
  color: #33245b;
}

.program {
  margin: 0;
  font-size: 0.9rem;
  color: #53616a;
}

main { padding-bottom: 56px; }

.intro,
.survey-section {
  width: min(100% - 32px, 700px);
  margin-inline: auto;
}

.intro { padding: 38px 0 26px; }

.location {
  margin: 0 0 12px;
  color: #006c72;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 620px;
  color: #25202f;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 630px;
  margin: 18px 0 22px;
  color: #4b555c;
  font-size: 1.05rem;
  line-height: 1.65;
}

.privacy-note {
  display: flex;
  gap: 12px 18px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid #cbd7db;
  border-bottom: 1px solid #cbd7db;
  color: #3f4b50;
  line-height: 1.5;
}

.privacy-note strong { color: #006c72; white-space: nowrap; }

.survey-section {
  background: #ffffff;
  border: 1px solid #d9e1e4;
  border-radius: 8px;
  overflow: hidden;
}

.question {
  margin: 0;
  padding: 26px 28px;
  border: 0;
  border-bottom: 1px solid #e1e7e9;
}

.question > label,
.question legend {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 15px;
  padding: 0;
  color: #252a2e;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.45;
}

.question-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #e4f3f3;
  color: #006c72;
  font-size: 0.82rem;
}

.required {
  margin-left: auto;
  color: #6b5a78;
  font-size: 0.74rem;
  font-weight: 650;
}

.text-input,
.select-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #aebdc2;
  border-radius: 6px;
  padding: 11px 13px;
  color: #1f2528;
  background: #ffffff;
  font: inherit;
}

.short-input { max-width: 190px; }

.text-input:focus,
.select-input:focus,
.choice:focus-within {
  outline: 3px solid #007f86;
  outline-offset: 2px;
  border-color: #007f86;
}

.choice-list { display: grid; gap: 10px; }

.choice {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid #c6d1d5;
  border-radius: 6px;
  cursor: pointer;
}

.choice:hover { border-color: #008f96; background: #f4fbfb; }
.choice input { width: 20px; height: 20px; accent-color: #007f86; }

.field-error,
.form-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #a22a3a;
  font-size: 0.86rem;
  line-height: 1.4;
}

.form-error { padding: 0 28px; }

.turnstile-wrap {
  min-height: 92px;
  padding: 24px 28px 0;
}

.cf-turnstile { width: 100%; }

.submit-button {
  display: flex;
  width: calc(100% - 56px);
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px;
  border: 0;
  border-radius: 6px;
  background: #553092;
  color: #ffffff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.submit-button:hover { background: #41216f; }
.submit-button:focus-visible { outline: 3px solid #007f86; outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: 0.65; }

.success-state { padding: 48px 28px; text-align: center; }
.success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #dff3e7;
  color: #176a3b;
  font-size: 1.5rem;
  font-weight: 800;
}
.success-mark[data-state="pending"] { background: #e4f3f3; color: #006c72; }
.success-mark[data-state="retry"] { background: #fff3cf; color: #6b5100; }
.success-mark[data-state="failed"] { background: #f8e4e7; color: #8b2030; }
.success-state h2 { margin: 0 0 10px; color: #25202f; font-size: 1.55rem; }
.success-state p { max-width: 480px; margin: 0 auto; color: #4b555c; line-height: 1.6; }

.fixture-notice {
  margin-bottom: 20px !important;
  padding: 11px 14px;
  border: 1px solid #8ecacd;
  border-radius: 6px;
  background: #effafa;
  color: #005f65 !important;
  font-weight: 700;
}

.access-code {
  width: min(100%, 360px);
  min-height: 88px;
  margin: 22px auto;
  padding: 18px;
  border: 2px solid #007f86;
  border-radius: 6px;
  color: #25202f;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0;
}
.access-code[hidden] { display: none; }

.secondary-button {
  min-height: 48px;
  margin: 24px auto 0;
  border: 1px solid #007f86;
  border-radius: 6px;
  padding: 10px 18px;
  background: #ffffff;
  color: #006c72;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.secondary-button:hover { background: #f0f9f9; }
.secondary-button:focus-visible { outline: 3px solid #007f86; outline-offset: 3px; }
.secondary-button:disabled { cursor: wait; opacity: 0.65; }

footer {
  padding: 24px 16px 34px;
  color: #657278;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 520px) {
  .header-inner { min-height: 94px; }
  .header-inner img { width: 66px; height: 66px; }
  .intro { padding-top: 30px; }
  .privacy-note { display: grid; gap: 4px; }
  .question { padding: 23px 20px; }
  .required { width: 100%; margin-left: 37px; }
  .form-error { padding-inline: 20px; }
  .survey-section { width: 100%; }
  .turnstile-wrap { padding-inline: 0; }
  .submit-button { width: calc(100% - 40px); margin: 24px 20px; }
}
