.cv-wrapper {
  --cv-red: #c61f17;
  --cv-red-dark: #8f120d;
  --cv-cream: #f5e7c7;
  --cv-cream-soft: #e7d5ac;
  --cv-ink: #130f0d;
  --cv-ink-soft: #241b17;
  --cv-gold: #b69752;
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 14px 22px;
  border: 2px solid rgba(245, 231, 199, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at top center, rgba(198, 31, 23, 0.32), transparent 34%),
    radial-gradient(circle at 50% 120%, rgba(182, 151, 82, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(23, 17, 15, 0.96) 0%, rgba(13, 10, 9, 0.98) 100%);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(198, 31, 23, 0.16);
  color: var(--cv-cream);
  font-family:
    "Georgia",
    "Times New Roman",
    serif;
  position: relative;
  overflow: hidden;
}

.cv-wrapper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245, 231, 199, 0.1);
  border-radius: 20px;
  pointer-events: none;
}

.cv-header {
  position: relative;
  margin-bottom: 22px;
  padding: 12px 8px 18px;
  text-align: center;
}

.cv-state-screen {
  padding: 26px 8px 18px;
  text-align: center;
}

.cv-state-screen h2 {
  margin: 0 0 16px;
  color: #fff6df;
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.cv-state-screen-inline {
  padding: 0;
}

.cv-header::after {
  content: "";
  display: block;
  width: 110px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent 0%, var(--cv-red) 50%, transparent 100%);
}

.cv-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(245, 231, 199, 0.2);
  border-radius: 999px;
  background: rgba(198, 31, 23, 0.18);
  color: var(--cv-cream);
  font-family:
    "Arial Black",
    "Helvetica Neue",
    sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cv-header h2 {
  margin: 0;
  color: #fff6df;
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.cv-header-lead {
  margin: 14px auto 0;
  max-width: 24ch;
  color: var(--cv-cream-soft);
  font-size: 18px;
  line-height: 1.28;
}

.cv-wrapper[data-step="thankyou"] .cv-header-lead,
.cv-wrapper[data-step="thankyou"] .cv-meta,
.cv-wrapper[data-step="thankyou"] .cv-header h2,
.cv-wrapper[data-step="final"] .cv-header-lead,
.cv-wrapper[data-step="final"] .cv-meta,
.cv-wrapper[data-step="final"] .cv-header h2 {
  display: none;
}

.cv-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cv-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(245, 231, 199, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cv-cream-soft);
  font-family:
    "Arial",
    sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-section-intro {
  margin-bottom: 16px;
  text-align: center;
}

.cv-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cv-red);
  font-family:
    "Arial Black",
    "Helvetica Neue",
    sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cv-section-intro h3 {
  margin: 0;
  color: #fff6df;
  font-size: 28px;
  line-height: 1;
}

.cv-form input[type="text"],
.cv-form input[type="email"] {
  width: 100%;
  margin-bottom: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(245, 231, 199, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 236, 0.08);
  color: #fff8eb;
  font-family:
    "Arial",
    sans-serif;
  font-size: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.cv-form input[type="text"]::placeholder,
.cv-form input[type="email"]::placeholder {
  color: rgba(245, 231, 199, 0.64);
}

.cv-form input[type="text"]:focus,
.cv-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(198, 31, 23, 0.8);
  background: rgba(255, 248, 236, 0.12);
  box-shadow: 0 0 0 4px rgba(198, 31, 23, 0.14);
}

.cv-charity {
  margin-bottom: 12px;
}

.cv-charity-select {
  display: block;
  cursor: pointer;
}

.cv-charity-select input {
  position: absolute;
  opacity: 0;
}

.cv-charity-content {
  position: relative;
  padding: 18px 16px;
  border: 1px solid rgba(245, 231, 199, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(46, 34, 28, 0.92) 0%, rgba(25, 19, 16, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 26px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.cv-charity-content::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(245, 231, 199, 0.4);
  border-radius: 999px;
  background: transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cv-charity-select input:checked + .cv-charity-content {
  transform: translateY(-2px);
  border-color: rgba(198, 31, 23, 0.82);
  background:
    linear-gradient(180deg, rgba(64, 27, 22, 0.98) 0%, rgba(31, 18, 15, 0.98) 100%);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(198, 31, 23, 0.18);
}

.cv-charity-select input:checked + .cv-charity-content::before {
  background: var(--cv-red);
  border-color: var(--cv-red);
  box-shadow: 0 0 0 4px rgba(198, 31, 23, 0.16);
}

.cv-charity img {
  max-width: 70px;
  height: auto;
  display: block;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 231, 199, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.cv-charity h3 {
  margin: 0 24px 8px 0;
  color: #fff7e2;
  font-size: 26px;
  line-height: 1;
}

.cv-charity-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 10px 0 0 auto;
  border: 1px solid rgba(245, 231, 199, 0.22);
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.08);
  cursor: pointer;
  color: var(--cv-gold);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cv-charity-toggle-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.cv-charity-toggle[aria-expanded="true"] .cv-charity-toggle-icon {
  transform: rotate(-135deg);
}

.cv-charity-toggle:hover {
  background: rgba(255, 248, 236, 0.1);
  border-color: rgba(245, 231, 199, 0.3);
  color: #fff2c2;
  transform: translateY(-1px);
}

.cv-charity-description {
  position: relative;
  margin-top: -2px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(245, 231, 199, 0.14);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 236, 0.04) 0%,
    rgba(255, 248, 236, 0.1) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cv-charity-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.cv-charity:has(.cv-charity-description:not([hidden])) .cv-charity-content {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.cv-charity:has(.cv-charity-description:not([hidden])) .cv-charity-toggle {
  background: rgba(198, 31, 23, 0.16);
  border-color: rgba(198, 31, 23, 0.34);
  color: #fff2c2;
}

.cv-charity-toggle[aria-expanded="true"] {
  color: #fff2c2;
  background: rgba(198, 31, 23, 0.16);
  border-color: rgba(198, 31, 23, 0.34);
}

.cv-charity-description p {
  margin: 10px 0 0;
  color: var(--cv-cream-soft);
  font-family:
    "Arial",
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.cv-btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #df2d24 0%, #ab1711 100%);
  color: #fff8ef;
  box-shadow:
    0 14px 28px rgba(198, 31, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-family:
    "Arial Black",
    "Helvetica Neue",
    sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.cv-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow:
    0 18px 34px rgba(198, 31, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cv-skip-link {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--cv-cream-soft);
  cursor: pointer;
  font-family:
    "Arial",
    sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: rgba(245, 231, 199, 0.45);
}

.cv-skip-link:hover {
  color: #fff7e2;
}

#cv-vote-message,
#cv-contact-message {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(198, 31, 23, 0.28);
  border-radius: 14px;
  background: rgba(198, 31, 23, 0.12);
  color: #ffd7d2;
  font-family:
    "Arial",
    sans-serif;
  font-size: 14px;
}

#cv-thankyou-step h2 {
  margin: 0 0 10px;
  color: #fff7e2;
  font-size: 32px;
  line-height: 1;
  text-align: center;
}

#cv-thankyou-step > p {
  margin: 0 0 10px;
  color: var(--cv-cream-soft);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.cv-message {
  padding: 18px 16px;
  border: 1px solid rgba(245, 231, 199, 0.14);
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.06);
  color: #fff2d4;
  text-align: center;
}

.cv-message-success {
  border-color: rgba(198, 31, 23, 0.28);
  background:
    radial-gradient(circle at top center, rgba(198, 31, 23, 0.16), transparent 44%),
    rgba(255, 248, 236, 0.06);
}

.cv-final-banner {
  padding-top: 24px;
  padding-bottom: 24px;
}

.cv-message-success p {
  margin: 8px 0 0;
  color: var(--cv-cream-soft);
}

.cv-contact-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(245, 231, 199, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(38, 28, 24, 0.92) 0%, rgba(22, 17, 15, 0.96) 100%);
}

.cv-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  color: var(--cv-cream-soft);
  font-family:
    "Arial",
    sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.cv-consent input {
  margin-top: 3px;
  accent-color: var(--cv-red);
}

.cv-consent a,
.cv-instagram a {
  color: #fff3cf;
  text-decoration-color: rgba(245, 231, 199, 0.5);
}

.cv-instagram {
  margin-top: 18px;
  text-align: center;
  font-family:
    "Arial",
    sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-final-logo {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.cv-final-logo img {
  width: 132px;
  max-width: 46vw;
  height: auto;
  display: block;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

@media (min-width: 641px) {
  .cv-wrapper {
    padding: 28px 26px 30px;
    border-radius: 34px;
  }

  .cv-wrapper::before {
    inset: 14px;
    border-radius: 28px;
  }

  .cv-header h2 {
    font-size: 48px;
  }

  .cv-state-screen h2 {
    font-size: 48px;
  }

  .cv-header-lead {
    font-size: 20px;
  }

  .cv-section-intro h3 {
    font-size: 34px;
  }

  .cv-charity-content {
    padding: 20px 20px 18px;
  }

  .cv-charity img {
    max-width: 88px;
  }

  .cv-charity h3 {
    font-size: 30px;
  }

  .cv-contact-panel {
    padding: 20px;
  }

}

@media (max-width: 380px) {
  .cv-header h2 {
    font-size: 31px;
  }

  .cv-state-screen h2 {
    font-size: 31px;
  }

  .cv-header-lead {
    font-size: 16px;
  }

  .cv-section-intro h3 {
    font-size: 24px;
  }

  .cv-charity h3 {
    font-size: 22px;
  }
}
