/* Visit Santa — festive booking, mobile-first */

body.santa-page {
  --santa-ink: #1a1816;
  --santa-cream: #f7efe6;
  --santa-forest: #16352b;
  --santa-forest-mid: #234a3c;
  --santa-berry: #7a2e2e;
  --santa-berry-deep: #5c2222;
  --santa-gold: #c4a574;
  --tap: 2.75rem;
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  color: var(--santa-ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(122, 46, 46, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(34, 74, 60, 0.35), transparent 50%),
    radial-gradient(ellipse 55% 40% at 0% 70%, rgba(22, 53, 43, 0.28), transparent 45%),
    linear-gradient(180deg, #1a2f28 0%, #243f35 38%, #3a2a24 100%) !important;
  background-attachment: scroll;
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.santa-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 55%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.35) 0 1.5px, transparent 2.5px);
  background-size: 140px 140px, 190px 190px, 120px 120px;
}

.santa-snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.santa-snow span {
  position: absolute;
  top: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
  animation: santa-fall linear infinite;
  opacity: 0.45;
  will-change: transform;
}

.santa-snow span:nth-child(1) { left: 8%; animation-duration: 12s; }
.santa-snow span:nth-child(2) { left: 22%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: -2s; }
.santa-snow span:nth-child(3) { left: 36%; animation-duration: 13s; animation-delay: -5s; }
.santa-snow span:nth-child(4) { left: 51%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: -1s; }
.santa-snow span:nth-child(5) { left: 64%; animation-duration: 14s; animation-delay: -7s; }
.santa-snow span:nth-child(6) { left: 78%; width: 2px; height: 2px; animation-duration: 15s; animation-delay: -3s; }
.santa-snow span:nth-child(7) { left: 90%; animation-duration: 13s; animation-delay: -8s; }
.santa-snow span:nth-child(8) { left: 14%; width: 2px; height: 2px; animation-duration: 18s; animation-delay: -4s; }

@keyframes santa-fall {
  0% { transform: translate3d(0, -4vh, 0); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: translate3d(12px, 105vh, 0); opacity: 0.1; }
}

@keyframes santa-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

.santa-top,
.santa-main {
  position: relative;
  z-index: 1;
}

.santa-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding:
    calc(0.7rem + env(safe-area-inset-top, 0px))
    max(0.9rem, env(safe-area-inset-right, 0px))
    0.7rem
    max(0.9rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(22, 53, 43, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--santa-cream);
}

.santa-top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--santa-cream);
  text-align: right;
  line-height: 1.15;
  max-width: 70%;
}

.santa-top__home {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(247, 239, 230, 0.9);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.santa-top__home:active {
  color: #fff;
}

.santa-main {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding:
    0.85rem
    max(0.75rem, env(safe-area-inset-left, 0px))
    calc(7.5rem + env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 0.85rem;
  box-sizing: border-box;
}

.santa-main--success {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.santa-hero {
  text-align: center;
  padding: 0.15rem 0.25rem 0;
  animation: santa-rise 0.55s ease both;
}

.santa-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 165, 116, 0.45);
  background: rgba(122, 46, 46, 0.35);
  color: #f3e2c8;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.santa-hero__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--santa-cream);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.santa-hero__title em {
  font-style: italic;
  color: #efd3a4;
}

.santa-hero__sub {
  margin: 0 auto;
  max-width: 26rem;
  color: rgba(247, 239, 230, 0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}

.santa-card {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 239, 230, 0.96));
  border: 1px solid rgba(196, 165, 116, 0.42);
  border-radius: 14px;
  padding: 1rem 0.95rem 1.1rem;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: santa-rise 0.6s ease both;
  animation-delay: 0.06s;
}

.santa-card#booking-card {
  animation-delay: 0.1s;
}

.santa-inclusions {
  animation-delay: 0.16s;
}

.santa-lead {
  margin: 0 0 0.75rem;
  color: #5a4a3c;
  font-size: 1rem;
  line-height: 1.45;
}

.santa-notice,
.hint {
  color: #6b5a4a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.santa-notice {
  margin: 0 0 0.9rem;
  background: linear-gradient(90deg, rgba(122, 46, 46, 0.1), rgba(196, 165, 116, 0.18));
  border-left: 3px solid var(--santa-berry);
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
}

.santa-form {
  display: grid;
  gap: 0.9rem;
}

.santa-form fieldset {
  border: 1px solid rgba(34, 74, 60, 0.16);
  border-radius: 12px;
  padding: 0.85rem 0.8rem;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.55);
  min-width: 0;
}

.santa-form legend {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--santa-forest);
  padding: 0 0.35rem;
}

.santa-form label {
  display: grid;
  gap: 0.28rem;
  font-weight: 500;
  font-size: 0.92rem;
  min-width: 0;
}

.santa-form label.check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--tap);
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.santa-form label.check input {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  accent-color: var(--santa-berry);
}

/* 16px+ inputs avoid iOS focus zoom */
.santa-form input,
.santa-form select,
.santa-form textarea {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid rgba(34, 74, 60, 0.22);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  background: #fff;
  color: var(--santa-ink);
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.santa-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--santa-forest-mid) 50%),
    linear-gradient(135deg, var(--santa-forest-mid) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.santa-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.santa-form input:focus,
.santa-form select:focus,
.santa-form textarea:focus {
  outline: none;
  border-color: rgba(122, 46, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(122, 46, 46, 0.14);
}

.santa-form .full {
  display: grid;
  gap: 0.28rem;
}

.child-row,
.dog-row {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
  padding: 0.7rem;
  background: linear-gradient(135deg, rgba(34, 74, 60, 0.06), rgba(122, 46, 46, 0.05));
  border: 1px solid rgba(34, 74, 60, 0.1);
  border-radius: 10px;
  min-width: 0;
}

.child-row .btn--ghost,
.dog-row .btn--ghost {
  width: 100%;
  justify-content: center;
}

/* Fixed pay bar on phones — always reachable while scrolling */
.santa-checkout {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding:
    0.75rem
    max(0.75rem, env(safe-area-inset-right, 0px))
    calc(0.75rem + env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(196, 165, 116, 0.35);
  background: linear-gradient(135deg, rgba(22, 53, 43, 0.98), rgba(92, 34, 34, 0.96));
  color: var(--santa-cream);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.santa-total {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.santa-total strong {
  color: #efd3a4;
}

.santa-form > .form-privacy-notice {
  margin: 0;
  color: #6b5a4a;
  font-size: 0.85rem;
  line-height: 1.4;
}

.santa-form > .form-privacy-notice a {
  color: var(--santa-berry-deep);
  font-weight: 600;
}

.santa-checkout #submit-btn,
.santa-page .btn--forest,
.santa-form > #submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, #933838, #5c2222);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s ease, background 0.15s ease;
}

.santa-checkout #submit-btn:active,
.santa-page .btn--forest:active,
.santa-form > #submit-btn:active {
  filter: brightness(1.08);
}

.santa-checkout #submit-btn:disabled,
.santa-form > #submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.santa-error {
  color: #ffd0d0;
  font-weight: 600;
  margin: 0;
  font-size: 0.92rem;
}

.santa-form > .santa-error {
  color: var(--santa-berry-deep);
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  background: transparent;
  border: 1px dashed rgba(34, 74, 60, 0.35);
  color: var(--santa-forest-mid);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn--ghost:active {
  background: rgba(34, 74, 60, 0.08);
}

.btn--ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.santa-inclusions h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--santa-forest);
}

.santa-inclusions ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  color: #4d4034;
}

.santa-inclusions li {
  margin: 0.25rem 0;
}

.santa-inclusions .hint {
  margin-top: 0.75rem;
}

.santa-inclusions .hint a,
.santa-card a {
  color: var(--santa-berry-deep);
  font-weight: 600;
}

.santa-success-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--santa-forest);
}

/* Phones in landscape / small height */
@media (max-height: 520px) {
  .santa-hero__sub {
    display: none;
  }

  .santa-snow {
    display: none;
  }
}

/* Comfortable tablet+ layout */
@media (min-width: 640px) {
  .santa-main {
    padding-top: 1.25rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1rem;
  }

  .santa-card {
    padding: 1.2rem 1.25rem 1.3rem;
    border-radius: 16px;
  }

  .santa-form fieldset {
    padding: 0.95rem;
  }

  .child-row {
    grid-template-columns: minmax(0, 2fr) minmax(4.5rem, 1fr) minmax(5.5rem, 1fr) auto;
    align-items: end;
  }

  .dog-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(4rem, 1fr) auto;
    align-items: end;
  }

  .child-row .btn--ghost,
  .dog-row .btn--ghost {
    width: auto;
  }

  .santa-checkout {
    position: static;
    margin: 0.25rem 0 0;
    padding: 1rem;
    border-radius: 12px;
    border-top: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  }

}

/* Reduce motion / battery on phones */
@media (prefers-reduced-motion: reduce), (max-width: 480px) and (prefers-reduced-data: reduce) {
  .santa-page::before,
  .santa-snow span,
  .santa-card,
  .santa-hero {
    animation: none !important;
  }

  .santa-snow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .santa-page::before,
  .santa-snow span,
  .santa-card,
  .santa-hero {
    animation: none !important;
  }
}

/* Soften snow on small screens for scroll performance */
@media (max-width: 480px) {
  .santa-snow span:nth-child(n + 5) {
    display: none;
  }
}
