html {
  -webkit-text-size-adjust: 100%;
}

body {
  color: #1f252b;
  background:
    linear-gradient(180deg, rgba(191, 31, 48, 0.08) 0%, rgba(255, 255, 255, 0) 260px),
    #f4f6f8 !important;
}

a {
  color: #b31b2c;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #861221;
}

.page-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 40px) !important;
}

.page-shell > form {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.page-shell::before,
.page-shell::after {
  display: none;
}

.survey-card {
  width: 100%;
  max-width: 1120px !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  border: 1px solid #dfe3e7 !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(32, 33, 36, 0.1) !important;
  backdrop-filter: none !important;
}

.hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px) !important;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0)),
    #b31b2c !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(20px, 5vw, 64px) 0;
  height: 4px;
  background: linear-gradient(90deg, #ffffff 0 32%, #149a72 32% 66%, #f2c94c 66% 100%);
}

.hero-copy {
  max-width: 900px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

.hero-logo-wrap {
  margin-bottom: 26px !important;
}

.brand-mark {
  width: min(460px, 82vw) !important;
  max-height: 180px;
  object-fit: contain;
  padding: 10px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18) !important;
  animation: logoEntrance 0.72s ease-out both;
}

.eyebrow,
.section-kicker {
  border-radius: 6px !important;
  letter-spacing: 0.04em !important;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.section-kicker {
  background: #f7e8eb !important;
  color: #a01828 !important;
}

.hero h1 {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(2rem, 7vw, 3.75rem) !important;
  letter-spacing: 0 !important;
}

.hero-lead {
  color: #ffffff !important;
  font-size: clamp(1rem, 2.3vw, 1.16rem) !important;
  line-height: 1.65 !important;
}

.hero-lead a,
.hero-lead a:hover,
.hero-lead a:focus {
  color: #ffffff !important;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

.hero-badges {
  gap: 8px !important;
}

.hero-badge {
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.content-wrap {
  padding: clamp(18px, 4vw, 44px) !important;
}

.panel,
.vote-panel,
.topic-panel {
  border-radius: 8px !important;
  border-color: #dfe3e7 !important;
  box-shadow: none !important;
}

.panel {
  padding: clamp(20px, 3vw, 32px) !important;
  animation: sectionReveal 0.58s ease-out both;
}

.panel-soft,
.vote-panel,
.topic-panel {
  background: #ffffff !important;
}

.panel-accent,
.panel-warning {
  background: #fff8e6 !important;
}

.panel-success {
  background: #edf8f4 !important;
}

.panel h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem) !important;
  letter-spacing: 0 !important;
}

.panel p,
.choice-note,
.submit-copy,
.step-copy p,
.info-card p {
  color: #3f4a55 !important;
}

.form-control {
  min-height: 52px !important;
  border-radius: 8px !important;
  border-color: #cfd6dd !important;
  background: #ffffff !important;
}

.form-control:focus {
  border-color: #b31b2c !important;
  box-shadow: 0 0 0 0.2rem rgba(179, 27, 44, 0.14) !important;
}

.helper-box,
.consent-box,
.step-card,
.info-card,
.protocol-box,
.support-note,
.alert-note,
.success-visual,
.warning-visual,
.protocol-code,
.step-number {
  border-radius: 8px !important;
}

.helper-box,
.consent-box,
.topic-panel,
.step-card,
.info-card,
.protocol-box,
.support-note,
.alert-note {
  animation: sectionReveal 0.58s ease-out both;
}

.vote-title {
  max-width: 680px;
  margin-right: auto !important;
  margin-left: auto !important;
  color: #1f252b !important;
  font-size: clamp(1.06rem, 2.2vw, 1.28rem);
  text-align: center;
}

.vote-title span {
  font-size: inherit !important;
  color: inherit !important;
}

.vote-title a,
.vote-title a:hover,
.vote-title a:focus {
  color: #a01828 !important;
}

.vote-title span:nth-child(3) {
  display: inline-block;
  margin-top: 6px;
}

.choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 680px;
  margin-right: 0;
  margin-left: 0;
  margin-inline: auto;
}

.choice-grid::before,
.choice-grid::after {
  display: none;
}

.choice-grid > div {
  width: 100%;
  max-width: none;
  padding: 0;
}

.checkdiv {
  min-height: 96px !important;
  border-radius: 8px !important;
  border-color: #d6dce2 !important;
  box-shadow: none !important;
  animation: optionReveal 0.5s ease-out both;
}

.checkdiv:hover {
  transform: translateY(-2px) !important;
  border-color: #b31b2c !important;
  box-shadow: 0 12px 28px rgba(32, 33, 36, 0.08) !important;
}

.checkdiv.is-selected {
  border-color: #149a72 !important;
  background: #eefaf5 !important;
  box-shadow: inset 0 0 0 1px rgba(20, 154, 114, 0.2) !important;
}

.choice-title {
  color: #1f252b !important;
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  letter-spacing: 0 !important;
}

.vote-panel {
  max-width: 760px;
  margin-right: auto !important;
  margin-left: auto !important;
  animation: sectionReveal 0.62s ease-out both;
}

.panel:nth-of-type(1),
.topic-panel:nth-of-type(1),
.helper-box:nth-child(1),
.step-card:nth-child(1),
.info-card:nth-child(1),
.checkdiv:nth-child(1) {
  animation-delay: 0.06s;
}

.helper-box:nth-child(2),
.step-card:nth-child(2),
.info-card:nth-child(2),
.choice-grid > div:nth-child(2) .checkdiv {
  animation-delay: 0.14s;
}

.step-card:nth-child(3),
.info-card:nth-child(3),
.choice-grid > div:nth-child(3) .checkdiv,
.consent-box,
.support-note,
.alert-note {
  animation-delay: 0.22s;
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes optionReveal {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-check-input:checked {
  background-color: #149a72;
  border-color: #149a72;
}

.form-check-input:focus {
  border-color: #149a72;
  box-shadow: 0 0 0 0.2rem rgba(20, 154, 114, 0.16);
}

.submit-bar {
  align-items: center !important;
}

.submit-btn {
  min-width: 190px !important;
  border-radius: 8px !important;
  background: #149a72 !important;
  box-shadow: none !important;
}

.submit-btn:hover,
.submit-btn:focus {
  background: #0f7f5e !important;
}

.success-visual,
.warning-visual {
  box-shadow: none !important;
}

.protocol-code {
  overflow-wrap: anywhere;
  letter-spacing: 0 !important;
}

@media (max-width: 991.98px) {
  .page-shell {
    align-items: center;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    height: auto !important;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding: 0 !important;
  }

  .survey-card {
    min-height: 100vh;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .hero {
    padding: 24px 16px 28px !important;
  }

  .hero::after {
    inset-inline: 16px;
  }

  .brand-mark {
    width: min(340px, 84vw) !important;
    max-height: 132px;
  }

  .hero-badges {
    align-items: stretch;
  }

  .hero-badge {
    width: 100%;
    min-height: 44px;
  }

  .content-wrap {
    padding: 16px !important;
  }

  .panel,
  .vote-panel,
  .topic-panel {
    padding: 18px !important;
  }

  .form-grid {
    margin-top: 18px !important;
  }

  .checkdiv {
    min-height: auto !important;
  }

  .submit-bar {
    gap: 14px !important;
  }

  .submit-copy {
    font-size: 0.95rem;
  }

  .step-card {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }

  .step-number {
    width: 42px !important;
    height: 42px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .panel,
  .vote-panel,
  .topic-panel,
  .helper-box,
  .consent-box,
  .step-card,
  .info-card,
  .protocol-box,
  .support-note,
  .alert-note,
  .checkdiv {
    animation: none !important;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2rem !important;
  }

  .hero-lead,
  .panel p,
  .consent-box .form-check-label {
    font-size: 0.96rem;
  }

  .step-card {
    grid-template-columns: 1fr !important;
  }
}
