﻿/* Christmas Toy Drive (/toydrive) + Keys to a Better Christmas (/keystoabetterchristmas).
   Plain CSS, no SCSS features needed. Mobile first. Everything scoped to .td-page. */
.td-page {
  --td-black: #000;
  --td-raised: #1f1f1f;
  --td-white: #fff;
  --td-ink-soft: #ccc;
  --td-ink-raised: #d2d2d2;
  --td-ink-muted: #b2b2b2;
  --td-ink-subtle: #999;
  --td-field: #797979;
  --td-rule: #4c4c4c;
  --td-success: #2dab6d;
  --td-red: #b3121b;
  --td-red-deep: #5c0207;
  --td-red-text: #ff6b6b;
  --td-pink: #ffe6e6;
  --td-max: 1300px;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--td-white);
  background: var(--td-black);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.td-page *, .td-page *::before, .td-page *::after {
  box-sizing: border-box;
}

.td-page h1, .td-page h2, .td-page h3 {
  font-family: Montserrat, system-ui, sans-serif;
  color: inherit;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0;
}

.td-page h1 b, .td-page h2 b, .td-page h3 b {
  font-weight: 700;
}

.td-page p {
  margin: 0;
}

.td-page a {
  color: inherit;
}

.td-page a:hover {
  color: inherit;
}

.td-page img {
  max-width: 100%;
}

.td-page a:focus-visible, .td-page button:focus-visible, .td-page input:focus-visible, .td-page textarea:focus-visible {
  outline: 3px solid var(--td-white);
  outline-offset: 3px;
}

.td-wrap {
  max-width: var(--td-max);
  margin: 0 auto;
  padding: 0 16px;
}

.td-sec {
  padding: 64px 0;
  scroll-margin-top: 90px;
}

.td-raised {
  background: var(--td-raised);
}

.td-small {
  font-size: 14px;
  line-height: 22px;
  color: var(--td-ink-soft);
}

/* Heading scales (design system) */
.td-page .td-h-page {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.td-page .td-h-section {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: 0.06em;
}

.td-page .td-h-small {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.06em;
}

.td-page .td-h-card {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.06em;
}

.td-rule {
  display: block;
  width: 96px;
  height: 1px;
  background: var(--td-rule);
}

.td-center-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: 40px;
}

.td-center-head p {
  font-size: 18px;
  line-height: 28px;
  color: var(--td-ink-soft);
  max-width: 560px;
}

.td-heart {
  fill: var(--td-red);
}

/* Buttons: square, uppercase */
.td-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.td-page .td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.td-page .td-btn-lg {
  min-height: 60px;
  padding: 0 34px;
}

.td-page .td-btn-sm {
  min-height: 44px;
  padding: 0 22px;
  font-size: 13px;
  border-width: 1px;
}

.td-page .td-btn-block {
  display: flex;
  width: 100%;
}

.td-page .td-btn-white {
  background: var(--td-white);
  border-color: var(--td-white);
  color: var(--td-black);
}

.td-page .td-btn-white:hover, .td-page .td-btn-white:focus {
  background: var(--td-ink-soft);
  border-color: var(--td-ink-soft);
  color: var(--td-black);
}

.td-page .td-btn-outline {
  border-color: var(--td-white);
  color: var(--td-white);
}

.td-page .td-btn-outline:hover, .td-page .td-btn-outline:focus {
  background: var(--td-white);
  color: var(--td-black);
}

.td-page .td-btn-black {
  background: var(--td-black);
  border-color: var(--td-black);
  color: var(--td-white);
}

.td-page .td-btn-black:hover, .td-page .td-btn-black:focus {
  background: #333;
  border-color: #333;
  color: var(--td-white);
}

.td-page .td-btn-outline-dark {
  border-color: var(--td-black);
  color: var(--td-black);
}

.td-page .td-btn-outline-dark:hover, .td-page .td-btn-outline-dark:focus {
  background: var(--td-black);
  color: var(--td-white);
}

/* Ticks */
.td-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.td-ticks li {
  position: relative;
  margin: 0;
  padding-left: 38px;
  font-weight: 500;
  line-height: 24px;
}

.td-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--td-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px no-repeat;
}

/* ---------- Hero (both pages) ---------- */
.td-hero {
  position: relative;
  background: #330000;
  display: flex;
  flex-direction: column;
}

/* Mobile: image as a banner on top, fading into the hero colour, copy below it. */
.td-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: 78% 50%;
}

.td-hero-scrim {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 16/10;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(51, 0, 0, 0) 40%, rgba(51, 0, 0, 0.85) 85%, #330000 100%);
}

.td-hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--td-max);
  margin: -48px auto 0;
  padding: 0 16px 72px;
}

.td-hero-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.td-hero .td-btns > .td-btn {
  flex: 1 1 100%;
}

.td-hero-keys .td-hero-inner {
  padding-bottom: 40px;
}

.td-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--td-white);
  color: var(--td-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.td-page .td-hero h1 {
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.td-page .td-hero h1 b {
  font-weight: 900;
}

.td-hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 580px;
}

.td-lead {
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
}

.td-hero-soft {
  font-size: 15px;
  line-height: 24px;
  color: #f0d6d6;
}

.td-hero-strong {
  font-size: 15px;
  line-height: 24px;
  font-weight: 700;
}

.td-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.td-partners span {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d6d6;
}

.td-partners .td-partner-starship {
  height: 40px;
  width: auto;
}

.td-partners .td-partner-flava {
  height: 44px;
  width: auto;
}

.td-back {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.td-page .td-back:hover {
  color: var(--td-ink-soft);
}

.td-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.td-hero-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--td-pink);
}

.td-hero-note b {
  color: var(--td-white);
}

/* ---------- Quick info ---------- */
.td-quick-sec {
  position: relative;
  margin-top: -40px;
  padding: 0 16px;
}

.td-quick {
  max-width: var(--td-max);
  margin: 0 auto;
  display: grid;
  background: var(--td-white);
  color: var(--td-black);
  border-radius: 12px;
}

.td-quick-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e2e2;
}

.td-quick-item svg {
  width: 26px;
  height: 26px;
}

.td-quick-item:last-child {
  border-bottom: 0;
}

.td-quick-item svg {
  flex: none;
  color: var(--td-red);
}

.td-quick-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-page .td-quick-item h2 {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.td-quick-item p {
  font-size: 15px;
  line-height: 22px;
  color: #333;
}

.td-page .td-quick-item a {
  color: var(--td-black);
  font-weight: 700;
}

/* ---------- How to get involved ---------- */
.td-ways {
  display: grid;
  gap: 32px;
}

.td-way {
  display: flex;
  flex-direction: column;
  background: var(--td-raised);
  scroll-margin-top: 90px;
}

.td-way-donate {
  background: var(--td-red);
}

.td-way-img {
  background: var(--td-red-deep);
  aspect-ratio: 16/7.5;
  overflow: hidden;
}

.td-way-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.td-way-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 22px;
  flex-grow: 1;
}

.td-way-body > p {
  line-height: 26px;
  color: var(--td-ink-raised);
}

.td-way-donate .td-way-body > p {
  color: var(--td-pink);
}

.td-page .td-way-body > .td-way-lead, .td-way-lead {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: var(--td-white);
}

.td-way-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--td-red-text);
}

.td-way-donate .td-way-num {
  color: #ffd9d9;
}

.td-page .td-way .td-h-section {
  font-size: 28px;
  line-height: 36px;
}

.td-way-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--td-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.td-way-foot-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  border-top-color: rgba(255, 255, 255, 0.35);
}

.td-way-foot-stack span {
  font-size: 13px;
  text-align: center;
  color: var(--td-pink);
}

.td-way-loc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.td-way-loc span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-ink-muted);
}

.td-qr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}

.td-qr {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #feeff5;
}

.td-qr img {
  width: 170px;
  height: 170px;
  display: block;
}

.td-qr span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-black);
}

.td-qr-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 220px;
}

.td-qr-text img {
  height: 46px;
  width: auto;
  align-self: flex-start;
}

.td-qr-text p {
  font-size: 14px;
  line-height: 22px;
  color: var(--td-pink);
}

/* ---------- The big day ---------- */
.td-bigday {
  background: var(--td-red);
  scroll-margin-top: 90px;
}

.td-bigday-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.td-bigday-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.td-bigday-copy > p {
  font-size: 17px;
  line-height: 28px;
  color: var(--td-pink);
  max-width: 620px;
}

.td-page .td-bigday-copy > .td-bigday-strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--td-white);
}

.td-live {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--td-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.td-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4b4b;
}

.td-page .td-bigday h2 {
  font-size: clamp(36px, 3.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.td-page .td-bigday h2 b {
  font-weight: 900;
}

.td-page .td-bigday-copy > .td-bigday-sub {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--td-white);
}

.td-bigday-sub b {
  font-weight: 900;
}

.td-bigday-card {
  flex: 1 1 340px;
  min-width: 0;
  background: var(--td-black);
  display: flex;
  flex-direction: column;
}

.td-bigday-card-top {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid var(--td-rule);
}

.td-bigday-card-top img {
  height: 64px;
  width: auto;
  align-self: flex-start;
}

.td-bigday-card-top div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-label-sm {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-ink-muted);
}

.td-bigday-time {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.td-bigday-card dl {
  margin: 0;
  padding: 24px 28px;
  display: grid;
  gap: 20px;
}

.td-bigday-card dl div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-bigday-card dt {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-ink-muted);
}

.td-bigday-card dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.td-bigday-actions {
  padding: 0 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.td-bigday-actions > .td-btn, .td-bigday-actions > .td-cal {
  flex: 1 1 100%;
}

.td-cal {
  position: relative;
  display: flex;
}

.td-cal > .td-btn {
  flex: 1;
}

.td-cal-menu {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--td-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.td-cal-menu[hidden] {
  display: none;
}

.td-cal-menu li {
  margin: 0;
}

.td-page .td-cal-menu a {
  display: block;
  padding: 12px 18px;
  color: var(--td-black);
  text-decoration: none;
  font-weight: 600;
}

.td-page .td-cal-menu a:hover, .td-page .td-cal-menu a:focus {
  background: #f0f0f0;
  color: var(--td-black);
}

/* ---------- Keys to a better Christmas (on /toydrive) ---------- */
.td-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 56px;
  background: var(--td-raised);
}

.td-keys-img {
  flex: 1 1 480px;
  min-width: 0;
  align-self: stretch;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  background: var(--td-red-deep);
}

.td-keys-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}

.td-keys-text {
  flex: 1 1 420px;
  min-width: 0;
  padding: 32px 22px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.td-keys-text > p {
  font-size: 15px;
  line-height: 24px;
  font-weight: 300;
  color: var(--td-ink-raised);
}

.td-page .td-keys-text > .td-way-lead {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: var(--td-white);
}

.td-page .td-keys-text > .td-keys-strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--td-white);
}

.td-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-red-text);
}

/* ---------- Closing ---------- */
.td-closing-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.td-page .td-closing h2 {
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.td-page .td-closing h2 b {
  font-weight: 900;
}

.td-closing-inner > p {
  font-size: 18px;
  line-height: 30px;
  color: var(--td-ink-raised);
  max-width: 760px;
}

.td-page .td-closing-inner > .td-closing-strong {
  font-weight: 700;
  color: var(--td-white);
}

.td-cta-panel {
  width: 100%;
  margin-top: 32px;
  background: var(--td-white);
  color: var(--td-black);
  border-radius: 12px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.td-cta-panel .td-btns {
  justify-content: center;
}

/* ---------- Keys page: why ---------- */
.td-why {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}

.td-why-head {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.td-why-body {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.td-why-body p {
  font-size: 17px;
  line-height: 28px;
  font-weight: 300;
  color: var(--td-ink-raised);
}

.td-page .td-why-body .td-why-lead {
  font-size: 22px;
  line-height: 34px;
  font-weight: 500;
  color: var(--td-white);
}

/* ---------- Keys page: vehicle + steps ---------- */
.td-car-photo {
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--td-red-deep);
}

.td-car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.td-page .td-how-h {
  text-align: center;
  margin: 72px 0 40px;
}

.td-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.td-steps li {
  margin: 0;
  padding: 32px;
  background: var(--td-black);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-step-num {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--td-red-text);
}

.td-steps p {
  font-size: 15px;
  line-height: 24px;
  font-weight: 300;
  color: var(--td-ink-muted);
}

/* ---------- Keys page: form ---------- */
.td-form-sec {
  padding-left: 16px;
  padding-right: 16px;
}

.td-form-card {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--td-field);
  border-radius: 4px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.td-form-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-form-head p {
  color: var(--td-ink-soft);
}

.td-form fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.td-page .td-form legend {
  width: 100%;
  padding: 0 0 16px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-white);
  border: 0;
}

.td-form legend b {
  font-weight: 700;
}

.td-field {
  width: 100%;
  margin-bottom: 16px;
}

.td-page .td-field label, .td-page .td-label {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--td-ink-soft);
}

.td-req {
  color: var(--td-red-text);
}

.td-optional {
  color: var(--td-ink-subtle);
}

.td-page .td-form input[type=text], .td-page .td-form input[type=email], .td-page .td-form input[type=tel], .td-page .td-form textarea {
  width: 100%;
  height: auto;
  min-height: 54px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--td-field);
  border-radius: 0;
  background: var(--td-black);
  color: var(--td-white);
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  line-height: 24px;
  box-shadow: none;
}

.td-page .td-form textarea {
  min-height: 170px;
  resize: vertical;
}

.td-page .td-form input::placeholder, .td-page .td-form textarea::placeholder {
  color: var(--td-ink-subtle);
  opacity: 1;
}

.td-page .td-form input[type=text]:focus, .td-page .td-form input[type=email]:focus, .td-page .td-form input[type=tel]:focus, .td-page .td-form textarea:focus {
  background: var(--td-black) !important;
  color: var(--td-white) !important;
  border-color: var(--td-white);
  box-shadow: 0 0 0 1px var(--td-white);
  outline: none;
}

.td-page .td-form .is-invalid-input {
  border-color: var(--td-red-text);
  background: #1a0000;
}

.td-form .form-error {
  display: none;
  color: var(--td-red-text);
  font-size: 14px;
  margin-top: 4px;
}

.td-form .form-error.is-visible {
  display: block;
}

.td-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-page .td-choices label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--td-field);
  font-size: 15px;
  color: var(--td-white);
  cursor: pointer;
}

.td-page .td-choices label:has(input:checked) {
  border-color: var(--td-white);
  box-shadow: inset 0 0 0 1px var(--td-white);
  background: var(--td-raised);
}

.td-page .td-choices input[type=radio] {
  -webkit-appearance: radio;
  appearance: auto;
  margin: 0;
  width: 18px;
  height: 18px;
  background: none;
  accent-color: var(--td-white);
}

.td-consent {
  display: block !important;
}

.td-consent .td-small {
  margin-bottom: 18px;
}

.td-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.td-page .td-check label {
  flex: 1;
  margin: 0;
  padding-top: 1px;
  font-size: 14px;
  line-height: 22px;
  color: var(--td-ink-soft);
  cursor: pointer;
}

.td-page .td-check input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--td-field);
  border-radius: 0;
  background: var(--td-black) center/14px no-repeat;
  cursor: pointer;
}

.td-page .td-check input[type=checkbox]:checked {
  border-color: var(--td-white);
  background-color: var(--td-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E");
}

.td-page .td-check input[type=checkbox]::before,
.td-page .td-check input[type=checkbox]::after {
  content: none !important;
  display: none !important;
}

.td-page .td-check input.is-invalid-input {
  border-color: var(--td-red-text);
}

.td-page .td-check input.is-invalid-input + label {
  color: var(--td-red-text);
}

.td-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.td-recaptcha {
  margin: 0 0 16px;
}

.td-submit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-page .td-submit .td-btn {
  min-height: 60px;
  padding: 12px 10px;
  font-size: 13px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .td-page .td-submit .td-btn {
    font-size: 14px;
    letter-spacing: 0.08em;
  }
}
.td-submit .td-small {
  text-align: center;
}

/* Fields and the error message scrolled to on validation must land below the fixed strip + header (up to 136px). */
.td-form *, .td-alert {
  scroll-margin-top: 160px;
}

.td-alert:focus {
  outline: none;
}

.td-alert {
  background: #2a0000;
  border-left: 4px solid var(--td-red-text);
  color: var(--td-white);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.td-thanks, .td-closed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.td-thanks p, .td-closed p {
  color: var(--td-ink-soft);
}

.td-thanks:focus {
  outline: none;
}

.td-page .td-thanks h3, .td-page .td-closed h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.td-thanks h3::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--td-red);
  margin-bottom: 16px;
}

.td-closed .td-btn {
  align-self: flex-start;
}

.td-share-fallback {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.td-share-fallback[hidden] {
  display: none;
}

/* ---------- Keys page: red band ---------- */
.td-band {
  background: var(--td-red);
}

.td-band-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.td-band-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-page .td-band h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 676px;
}

.td-page .td-band h2 b {
  font-weight: 900;
}

.td-band-copy p {
  font-size: 17px;
  line-height: 28px;
  color: var(--td-pink);
  max-width: 627px;
}

/* ---------- Keys page: terms ---------- */
.td-terms-sec {
  scroll-margin-top: 90px;
}

.td-terms-head {
  background: var(--td-raised);
  padding: 56px 0;
}

.td-terms-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.td-terms-head .td-terms-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.td-terms-head p {
  font-size: 18px;
  line-height: 28px;
  color: var(--td-ink-soft);
}

.td-terms-body {
  padding-top: 48px;
  padding-bottom: 64px;
  font-size: 15px;
  line-height: 26px;
  font-weight: 300;
  color: var(--td-ink-raised);
}

.td-page .td-terms-body h3 {
  margin: 0;
  padding: 28px 0 12px;
  border-top: 1px solid var(--td-rule);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--td-white);
}

.td-page .td-terms-body h3 + h3 {
  border-top: 0;
  padding-top: 0;
}

.td-terms-body h3:first-child {
  border-top: 0;
  padding-top: 0;
}

.td-terms-body p {
  margin: 0 0 12px;
}

.td-terms-body ol {
  margin: 0 0 16px;
  padding-left: 28px;
}

.td-terms-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.td-terms-body li::marker {
  color: var(--td-red-text);
  font-weight: 700;
}

.td-terms-body ol ol {
  margin-top: 8px;
}

.td-page .td-terms-body a:not(.td-btn) {
  color: var(--td-white);
  text-decoration: underline;
}

.td-terms-body > .td-btns {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--td-rule);
}

/* ---------- Tablet + ---------- */
@media (min-width: 640px) {
  .td-half {
    width: calc(50% - 8px);
  }
  .td-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .td-way-body {
    padding: 40px;
  }
  .td-keys-text {
    padding: 40px;
  }
  .td-form-card {
    padding: 48px 32px;
  }
  .td-cta-panel {
    padding: 56px 40px;
  }
  .td-page .td-h-section, .td-page .td-way .td-h-section {
    font-size: 34px;
    line-height: 44px;
  }
  .td-page .td-h-small {
    font-size: 28px;
    line-height: 36px;
  }
}
@media (min-width: 761px) {
  .td-hero-copy {
    gap: 28px;
  }
  .td-hero .td-btns > .td-btn {
    flex: 0 0 auto;
  }
  .td-page .td-hero h1 {
    font-size: clamp(32px, 3vw, 56px);
    line-height: 1.06;
  }
  .td-hero-text {
    gap: 14px;
  }
  .td-lead {
    font-size: 20px;
    line-height: 30px;
  }
  .td-hero-soft, .td-hero-strong {
    font-size: 16px;
    line-height: 26px;
  }
  .td-partners {
    padding-top: 12px;
    border-top: 0;
  }
  .td-quick-item svg {
    width: 32px;
    height: 32px;
  }
  .td-hero-keys .td-hero-copy {
    max-width: 640px;
  }
  .td-partners span {
    width: auto;
  }
  .td-wrap {
    padding: 0 24px;
  }
  .td-sec {
    padding: 104px 0;
  }
  .td-quick-sec {
    margin-top: -64px;
    padding: 0 24px;
  }
  .td-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .td-quick-item {
    padding: 28px 32px;
    border-bottom: 0;
    border-right: 1px solid #e2e2e2;
  }
  .td-quick-item:last-child {
    border-right: 0;
  }
  .td-involved {
    padding-top: 112px;
    padding-bottom: 96px;
  }
  .td-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .td-bigday-inner {
    padding-top: 104px;
    padding-bottom: 104px;
    gap: 64px;
  }
  .td-bigday-card-top {
    padding: 36px 36px 28px;
  }
  .td-bigday-card dl {
    padding: 28px 36px;
  }
  .td-bigday-actions {
    padding: 0 36px 36px;
  }
  .td-bigday-actions > .td-btn, .td-bigday-actions > .td-cal {
    flex: 1 1 140px;
  }
  .td-keys-img {
    min-height: 340px;
  }
  .td-form-sec {
    padding: 104px 24px;
  }
  .td-band-inner {
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .td-terms-head {
    padding: 88px 0;
  }
  .td-terms-wrap {
    padding: 0 24px;
  }
  .td-terms-body {
    padding-top: 72px;
    padding-bottom: 104px;
  }
}
@media (min-width: 1024px) {
  .td-keys-text {
    padding: 48px 40px 48px 0;
  }
}
/* Tablet / small laptop: stacked hero, with the banner image capped at 440px tall (cropped to keep the subject on the right). */
@media (min-width: 761px) and (max-width: 1339px) {
  .td-page .td-hero-img, .td-hero-scrim {
    aspect-ratio: auto;
    height: 440px;
  }
  .td-page .td-hero-img {
    object-position: 78% 85%;
  }
  .td-hero-scrim {
    background: linear-gradient(180deg, rgba(51, 0, 0, 0) 62%, rgba(51, 0, 0, 0.85) 90%, #330000 100%);
  }
}
/* Hero: image beside the text from 1340px (the width where the car clears the headline); below that it stacks above the text.
   The image keeps its own proportions (full hero height, natural width, pinned right). ".td-page" in the selector
   is needed to beat ".td-page img { max-width: 100% }", which was squashing it. The fade covers the image's left edge. */
@media (min-width: 1340px) {
  .td-hero {
    min-height: 760px;
    flex-direction: row;
    align-items: center;
  }
  .td-hero-keys {
    min-height: 680px;
  }
  .td-page .td-hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: fill;
  }
  .td-hero-scrim {
    inset: 0;
    aspect-ratio: auto;
    background: linear-gradient(90deg, #330000 0%, rgba(51, 0, 0, 0.95) 32%, rgba(51, 0, 0, 0.75) 44%, rgba(51, 0, 0, 0.3) 56%, rgba(51, 0, 0, 0) 66%);
  }
  .td-hero-inner {
    margin-top: 0;
    padding: 96px 24px 120px;
  }
  .td-hero-keys .td-hero-inner {
    padding: 96px 24px;
  }
  .td-hero-keys .td-hero-copy {
    max-width: 560px;
  } /* keeps the headline clear of the car */
}
@media (prefers-reduced-motion: reduce) {
  .td-page * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
