:root {
  color-scheme: light;
  --navy: #102A4A;
  --orange: #FF8E18;
  --yellow: #FFB81C;
  --cream: #FFFBF2;
  --red: #C1272D;
  --ink: #102A4A;
  --muted: #40566F;
  --line: #E5DCCB;
  --display: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  background-color: #9F1429;
  color: var(--ink);
  font-family: var(--body);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  inset: -100% 0 0;
  background-repeat: repeat;
  content: '';
  pointer-events: none;
  animation: snowfall linear infinite;
}

body::before {
  opacity: .8;
  background-image:
    radial-gradient(3px 3px at 24px 32px, #fff 98%, transparent),
    radial-gradient(2px 2px at 82px 114px, #fff9 98%, transparent),
    radial-gradient(3px 3px at 153px 77px, #fff 98%, transparent),
    radial-gradient(2px 2px at 202px 168px, #fff9 98%, transparent);
  background-size: 240px 210px;
  animation-duration: 18s;
}

body::after {
  opacity: .5;
  background-image:
    radial-gradient(2px 2px at 46px 92px, #fff 98%, transparent),
    radial-gradient(3px 3px at 126px 28px, #fff9 98%, transparent),
    radial-gradient(2px 2px at 196px 142px, #fff 98%, transparent);
  background-size: 270px 190px;
  animation-duration: 27s;
}

.topbar {
  position: relative;
  z-index: 1;
  height: 190px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #760E20;
  color: var(--cream);
  box-shadow: 0 7px 22px #4A071A55;
}

.topbar::before {
  position: absolute;
  right: 3%;
  bottom: 1px;
  left: 3%;
  height: 1px;
  background: #FFFBF244;
  content: '';
}

.topbar::after {
  position: absolute;
  right: 3%;
  bottom: -5px;
  left: 3%;
  height: 9px;
  background-image: radial-gradient(circle at 8px 3px, #FFB81C 0 2.5px, transparent 3.5px), radial-gradient(circle at 31px 3px, #FF8E18 0 2.5px, transparent 3.5px), radial-gradient(circle at 53px 3px, #C1272D 0 2.5px, transparent 3.5px);
  background-size: 70px 9px;
  content: '';
  pointer-events: none;
}

.topbar-lights {
  position: absolute;
  top: 8px;
  left: 50%;
  display: flex;
  width: min(460px, 76vw);
  justify-content: space-between;
  transform: translateX(-50%);
  pointer-events: none;
}

.topbar-lights::before {
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  height: 7px;
  border-top: 1px solid #E8D9A6;
  border-radius: 50%;
  content: '';
}

.topbar-lights span {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 12px;
  border: 1px solid #FFE6A5;
  border-radius: 50% 50% 45% 45%;
  background: #E83B3B;
  box-shadow: 0 0 10px #FF4545B0;
  animation: twinkle 1.8s ease-in-out infinite alternate;
}

.topbar-lights span:nth-child(3n + 2) {
  background: #61D77A;
  box-shadow: 0 0 10px #61D77AB0;
  animation-delay: .6s;
}

.topbar-lights span:nth-child(3n) {
  background: #FFD34E;
  box-shadow: 0 0 10px #FFD34EB0;
  animation-delay: 1.1s;
}

.holly-sprig {
  position: absolute;
  top: 69px;
  z-index: 1;
  font-size: 47px;
  line-height: 1;
  filter: drop-shadow(0 3px 4px #39061166);
}

.holly-left { left: calc(50% - 157px); transform: rotate(-24deg); }
.holly-right { right: calc(50% - 157px); transform: scaleX(-1) rotate(-24deg); }
.holly-sprig i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid #FFD785;
  border-radius: 50%;
  background: #D82534;
  box-shadow: 0 0 7px #FF4655;
}
.holly-sprig i:nth-child(2) { top: 21px; left: 27px; }
.holly-sprig i:nth-child(3) { top: 31px; left: 37px; }
.holly-sprig i:nth-child(4) { top: 15px; left: 41px; }

.header-tree {
  position: absolute;
  bottom: 12px;
  z-index: 1;
  font-size: 35px;
  filter: drop-shadow(0 2px 3px #39061177);
}

.tree-left { left: max(5vw, 18px); }
.tree-right { right: max(5vw, 18px); }

.brand {
  position: relative;
  z-index: 1;
  display: inline-grid;
  align-items: center;
  justify-items: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-logo {
  width: 122px;
  height: 122px;
  flex: 0 0 122px;
  object-fit: contain;
  background: var(--cream);
  border: 3px solid #FFCF6A;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #FFFFFF1A, 0 5px 15px #39061155;
}
.brand-copy { display: grid; justify-items: center; gap: 2px; }
.brand-copy strong { color: #FFE6A5; font-family: var(--display); font-size: 16px; }
.brand-copy small { color: var(--cream); font-size: 10px; font-weight: 500; }

.topbar-note {
  position: absolute;
  top: 20px;
  right: max(4vw, 18px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #FFE6A5;
  font-size: 12px;
  font-weight: 500;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px #FFB81C88; }

@keyframes twinkle {
  from { opacity: .65; filter: brightness(.8); }
  to { opacity: 1; filter: brightness(1.35); }
}

.campaign {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 64px));
  min-height: calc(100vh - 268px);
  margin: 0 auto;
  padding: 57px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(390px, 0.93fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: start;
}

.story {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid #F3D69D;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 15px 38px #4A071A44;
}
.story::after {
  position: absolute;
  top: 10px;
  right: 17px;
  color: #D7A334;
  content: '✦';
  font-size: 29px;
}
.eyebrow, .step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.eyebrow-line { width: 24px; height: 2px; background: var(--orange); }

h1, h2, h3, p, figure { margin-top: 0; }
h1 {
  margin: 22px 0 17px;
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.99;
  letter-spacing: 0;
  font-weight: 600;
}
h1 span { color: var(--navy); }
.story-copy {
  max-width: 435px;
  margin-bottom: 27px;
  color: #304B69;
  font-size: 15px;
  line-height: 1.65;
}
.hosting-notice {
  max-width: 435px;
  margin: -12px 0 24px;
  padding: 11px 13px;
  border-left: 3px solid #D29A48;
  border-radius: 0 8px 8px 0;
  background: #FFF4E4;
  color: #63451F;
  font-size: 12px;
  line-height: 1.55;
}

.event-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: var(--cream);
  box-shadow: 0 5px 22px #102A4A0A;
}
.date-stamp {
  width: 53px;
  height: 53px;
  flex: 0 0 53px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
}
.date-day { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1; }
.date-month { margin-top: 2px; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.event-info { display: grid; gap: 3px; }
.event-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.event-info strong { font-family: var(--display); font-size: 18px; }
.event-info > span:last-child { color: var(--muted); font-size: 11px; }

.event-star {
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: auto;
  display: grid;
  place-items: center;
  font-size: 0;
}
.event-star::before { content: '\1F43E'; font-size: 27px; line-height: 1; }
.event-star::after {
  position: absolute;
  top: 0;
  right: 1px;
  width: 13px;
  height: 12px;
  background: linear-gradient(to bottom, var(--red) 0 68%, var(--cream) 68% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: '';
  transform: rotate(28deg);
}

.pet-photo {
  position: relative;
  height: 194px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #E5DCCB;
}
.pet-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 47%; }
.pet-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}
.photo-paw { font-size: 14px; }
.story-footnote { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.signup {
  position: relative;
  padding: 34px 35px 20px;
  border: 1px solid #F3D69D;
  border-top: 5px solid var(--yellow);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 15px 38px #4A071A44;
}
.form-heading { margin-bottom: 23px; }
.form-heading h2 {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: 0;
}
.form-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.field-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
input[type="text"], input[type="tel"] {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: #FFFEFA;
  color: var(--ink);
  font: 13px var(--body);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input[type="text"]:focus, input[type="tel"]:focus { border-color: var(--navy); box-shadow: 0 0 0 3px #102A4A20; }
input::placeholder { color: #65768A; }
.phone-label { margin-top: 16px; }
.requirements-heading { display: flex; justify-content: space-between; align-items: center; margin: 23px 0 4px; }
.requirements-heading .field-label { margin: 0; }
.required-note { color: var(--muted); font-size: 10px; }

.requirement {
  position: relative;
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: start;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.requirement input { position: absolute; width: 19px; height: 19px; opacity: 0; cursor: pointer; }
.checkmark {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #8492A1;
  border-radius: 2px;
  background: var(--cream);
  transition: background 120ms ease, border-color 120ms ease;
}
.checkmark::after { content: ''; width: 8px; height: 4px; transform: rotate(-45deg) scale(0); border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transition: transform 120ms ease; }
.requirement input:checked + .checkmark { border-color: var(--yellow); background: var(--yellow); }
.requirement input:checked + .checkmark::after { transform: rotate(-45deg) scale(1); }
.requirement input:focus-visible + .checkmark { outline: 2px solid var(--navy); outline-offset: 2px; }
.requirement-copy { display: flex; flex-wrap: wrap; column-gap: 6px; row-gap: 4px; font-size: 12px; line-height: 1.5; }
.requirement-copy a { color: var(--navy); font-size: 11px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.requirement-copy a:hover { color: var(--orange); }
.requirement-copy a.is-disabled { color: #65768A; text-decoration: none; cursor: default; }
.declaration { margin: 12px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.submit-button {
  width: 100%;
  min-height: 50px;
  padding: 0 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 2px;
  background: var(--orange);
  color: var(--navy);
  font: 700 13px var(--body);
  cursor: pointer;
  transition: background 150ms ease, box-shadow 180ms ease, transform 150ms ease;
}
.submit-button:hover { background: var(--yellow); box-shadow: 0 8px 22px #FF8E1855, 0 0 0 3px #FFB81C55; transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.submit-button:disabled { opacity: 0.7; cursor: wait; transform: none; }
.button-arrow { color: var(--navy); font-size: 20px; }
.privacy-note { margin: 10px 0 0; color: #40566F; font-size: 10px; line-height: 1.5; }
.form-message { margin-top: 12px; padding: 10px 12px; background: #FCE9E5; color: var(--red); font-size: 12px; line-height: 1.4; }
[hidden] { display: none !important; }

.success-panel { padding: 2px 0 12px; animation: appear 280ms ease both; }
.success-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: 20px; font-weight: 700; }
.success-panel h3 { margin: 8px 0 6px; font: 600 26px var(--display); }
.success-panel > p { margin-bottom: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.participant-id { padding: 13px; display: grid; gap: 6px; background: #F1EBDD; }
.participant-id span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.participant-id strong { overflow-wrap: anywhere; color: var(--navy); font: 600 13px var(--display); }
.copy-button { margin-top: 10px; padding: 8px 0; border: 0; background: transparent; color: var(--navy); font: 700 11px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-bottom { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.form-bottom span:nth-child(2) { color: var(--red); font-size: 13px; line-height: 8px; }

.page-footer {
  position: relative;
  z-index: 1;
  min-height: 78px;
  padding: 12px max(6.7vw, 28px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 4px solid var(--yellow);
  background: var(--cream);
  color: #304B69;
  font-size: 10px;
}
.footer-store { display: flex; align-items: center; gap: 10px; }
.footer-store img { width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; background: var(--cream); border: 1px solid var(--line); }
.footer-store div, .footer-note { display: grid; gap: 4px; }
.footer-store strong { color: var(--navy); font: 600 14px var(--display); }
.footer-store span, .footer-note > span { color: var(--muted); font-size: 11px; }
.footer-note { justify-items: end; }
.footer-note small { color: #40566F; font-size: 11px; }
.footer-note a { color: var(--navy); text-decoration: none; }
.footer-note a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes snowfall { from { transform: translateY(-30%); } to { transform: translateY(100%); } }

@media (max-width: 800px) {
  .campaign { width: min(560px, calc(100% - 40px)); padding: 30px 0 40px; grid-template-columns: 1fr; gap: 22px; }
  .story { padding-top: 0; }
  h1 { font-size: 56px; }
  .story-copy { max-width: 460px; }
  .pet-photo { height: 210px; }
  .signup { padding: 29px 27px 19px; }
  .page-footer { padding: 14px 20px; gap: 12px; }
}

@media (max-width: 420px) {
  .topbar { height: 194px; padding: 8px 18px; }
  .holly-sprig { top: 80px; font-size: 31px; }
  .holly-left { left: calc(50% - 123px); }
  .holly-right { right: calc(50% - 123px); }
  .holly-sprig i { width: 7px; height: 7px; }
  .holly-sprig i:nth-child(2) { top: 15px; left: 18px; }
  .holly-sprig i:nth-child(3) { top: 21px; left: 25px; }
  .holly-sprig i:nth-child(4) { top: 11px; left: 28px; }
  .header-tree { bottom: 10px; font-size: 27px; }
  .tree-left { left: 10px; }
  .tree-right { right: 10px; }
  .topbar-lights { width: 84vw; }
  .brand-logo { width: 104px; height: 104px; flex-basis: 104px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .topbar-note { top: 10px; right: 10px; left: auto; }
  .topbar-note { font-size: 10px; }
  .campaign { width: calc(100% - 32px); padding-top: 25px; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: 46px; }
  .story-copy { font-size: 13px; }
  .story { padding: 21px; }
  .signup { padding: 25px 20px 17px; }
  .form-heading h2 { font-size: 28px; }
  .page-footer { flex-wrap: wrap; justify-content: space-between; font-size: 9px; }
  .footer-note { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
