/* MARK: Christmas & New Year closure page (loaded after contact.css, whose card, field and button styles it reuses) */

.christmas-page {
  --christmas-navy: #03284f;
  --christmas-green: #005f3c;
  --christmas-line: #e3e8ee;
  --christmas-hint: #4f5d6b;
  --christmas-error: #a3231b;
}

.christmas-page.contact-page--v2 .christmas-hero__inner,
.christmas-page.contact-page--v2 .christmas-body__inner {
  width: min(calc(100% - 48px), 880px);
}

/* MARK: Hero (navy winter band) */
.christmas-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px) 0 clamp(52px, 6vw, 76px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 95, 60, 0.55) 0%, rgba(0, 95, 60, 0) 55%),
    var(--christmas-navy);
  color: #fff;
}

/* A thin green, turquoise and orange ribbon along the bottom */
.christmas-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--christmas-green) 0 33.3%,
    var(--calabash-company-turquoise) 33.3% 66.6%,
    var(--calabash-company-orange) 66.6% 100%
  );
}

/* A few quiet snowflakes, kept to the right of the text */
.christmas-hero__snow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(150px, 30vw, 520px);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 300' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'%3E%3Cdefs%3E%3Cpath id='a' d='M0 0V-20M0-12l-5-5M0-12l5-5'/%3E%3Cg id='f'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23a' transform='rotate(60)'/%3E%3Cuse href='%23a' transform='rotate(120)'/%3E%3Cuse href='%23a' transform='rotate(180)'/%3E%3Cuse href='%23a' transform='rotate(240)'/%3E%3Cuse href='%23a' transform='rotate(300)'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23f' transform='translate(430 62) scale(1.9)' opacity='.28'/%3E%3Cuse href='%23f' transform='translate(318 190) scale(.8) rotate(20)' opacity='.22'/%3E%3Cuse href='%23f' transform='translate(476 214) scale(1.1) rotate(10)' opacity='.2'/%3E%3Cuse href='%23f' transform='translate(248 48) scale(.55)' opacity='.2'/%3E%3Cuse href='%23f' transform='translate(372 268) scale(.45)' opacity='.25'/%3E%3Cuse href='%23f' transform='translate(150 252) scale(.7) rotate(30)' opacity='.12'/%3E%3C/svg%3E")
    right center / contain no-repeat;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .christmas-hero__snow {
    opacity: 0.5;
  }
}

.christmas-hero__inner {
  position: relative;
  z-index: 1;
}

.christmas-hero__season {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 14px;
  border: 1px solid rgba(69, 190, 225, 0.65);
  border-radius: 999px;
  background: rgba(69, 190, 225, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.christmas-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.christmas-hero h1:last-child {
  margin-bottom: 0;
}

.christmas-hero__intro {
  max-width: 680px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}

.christmas-hero__intro p {
  margin: 0 0 12px;
}

.christmas-hero__intro p:last-child {
  margin-bottom: 0;
}

.christmas-page .christmas-hero__deadline {
  max-width: 680px;
  margin: 22px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--calabash-company-orange);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  line-height: 1.55;
}

.christmas-page.contact-page--v2 .christmas-hero__deadline a {
  color: #fff;
  font-weight: 800;
}

/* MARK: Body and card */
.christmas-body {
  scroll-margin-top: 100px;
  padding: clamp(32px, 4vw, 48px) 0 var(--calabash-section-gap);
}

.christmas-page .contact-v2-form-card > p {
  max-width: none;
}

.christmas-card__lead {
  color: var(--christmas-hint);
}

/* MARK: Form sections (numbered as they appear) */
.christmas-form {
  counter-reset: christmas-step;
}

.christmas-section,
.christmas-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.christmas-section {
  padding: 24px 0 8px;
  border-top: 1px solid var(--christmas-line);
}

.christmas-section[hidden] {
  display: none;
}

.christmas-section > legend {
  display: flex;
  float: left;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--christmas-navy);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  counter-increment: christmas-step;
}

.christmas-section > legend::before {
  content: counter(christmas-step);
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1.5px solid rgba(69, 190, 225, 0.55);
  border-radius: 50%;
  background: var(--calabash-turquoise-12);
  font-size: 0.9rem;
}

.christmas-section > legend + *,
.christmas-group > legend + * {
  clear: left;
}

.christmas-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  align-items: start;
}

.christmas-row--address {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.christmas-page .contact-v2-field input[type="date"] {
  display: block;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.christmas-optional {
  color: var(--christmas-hint);
  font-weight: 500;
}

.christmas-hint,
.christmas-nojs {
  margin: 0 0 12px;
  color: var(--christmas-hint);
  font-size: 13.5px;
  line-height: 1.5;
}

.christmas-form.is-enhanced .christmas-nojs {
  display: none;
}

/* MARK: Single choice options */
.christmas-question,
.christmas-group > legend {
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.christmas-group {
  margin-bottom: 8px;
}

.christmas-group > legend {
  float: left;
  width: 100%;
}

.christmas-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.christmas-choices--inline {
  grid-template-columns: 1fr 1fr minmax(0, 2.4fr);
}

.christmas-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid #d7dde4;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color var(--calabash-transition),
    background-color var(--calabash-transition);
}

.christmas-choice input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0;
  accent-color: var(--christmas-navy);
}

.christmas-choice:hover {
  border-color: var(--calabash-company-turquoise);
}

.christmas-choice:has(input:checked) {
  border-color: var(--calabash-company-turquoise);
  background: var(--calabash-turquoise-12);
  font-weight: 700;
}

.christmas-choice:has(input:focus-visible) {
  outline: 3px solid var(--christmas-navy);
  outline-offset: 2px;
}

/* When the browser or an error link jumps to a field, stop below the sticky header */
.christmas-form input,
.christmas-form textarea,
.christmas-section,
.christmas-group {
  scroll-margin-top: 150px;
}

/* MARK: Errors */
.christmas-page .christmas-error {
  margin: 6px 0 0;
  color: var(--christmas-error);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
}

.christmas-page .christmas-choices + .christmas-error {
  margin: -4px 0 12px;
}

.christmas-page .christmas-field--error input,
.christmas-page .christmas-field--error textarea {
  border-color: var(--christmas-error);
}

.christmas-field--error .christmas-choice {
  border-color: var(--christmas-error);
}

.christmas-summary p {
  margin: 0 0 6px;
  font-weight: 800;
}

.christmas-summary ul {
  margin: 0;
  padding-left: 20px;
}

.christmas-page.contact-page--v2 .christmas-summary a {
  text-decoration: underline;
}

.christmas-page .contact-v2-form-notice:focus,
.christmas-message:focus {
  outline: 3px solid var(--calabash-company-turquoise);
  outline-offset: 3px;
}

/* MARK: Confirmation and submit */
.christmas-page .contact-v2-consent {
  margin-bottom: 6px;
  font-size: 14px;
}

.christmas-page .christmas-privacy {
  margin: 10px 0 18px;
  color: var(--christmas-hint);
  font-size: 13.5px;
}

.christmas-page.contact-page--v2 .christmas-privacy a {
  font-weight: 750;
  text-decoration: underline;
}

.christmas-page .contact-v2-submit {
  clear: left;
}

/* MARK: Thank-you and closed messages */
.christmas-message > p {
  font-size: 16px;
  line-height: 1.65;
}

.christmas-message > p:last-child {
  margin-bottom: 0;
}

.christmas-message--closed > p:first-of-type {
  color: var(--christmas-navy);
  font-weight: 700;
}

.christmas-message--closed > .contact-v2-form-notice {
  color: #8b1e1e;
  font-size: 14px;
}

.christmas-page .christmas-message__action {
  margin-top: 24px;
}

.christmas-page.contact-page--v2 .christmas-message__action .calabash-ora-solid-button {
  color: var(--calabash-white);
}

.christmas-page.contact-page--v2 .christmas-message__again a {
  color: var(--calabash-company-orange-a11y);
  font-weight: 800;
  text-decoration: underline;
}

/* MARK: Responsive layout */
@media (max-width: 760px) {
  .christmas-choices--inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .christmas-page.contact-page--v2 .christmas-hero__inner,
  .christmas-page.contact-page--v2 .christmas-body__inner {
    width: min(calc(100% - 30px), 880px);
  }

  .christmas-row,
  .christmas-row--address {
    grid-template-columns: 1fr;
  }

  /* On a phone the snowflakes sit in the top corner, above the heading */
  .christmas-hero__snow {
    bottom: auto;
    height: 96px;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-choice {
    transition: none;
  }
}
