.brand {
    position: relative;
    background-image: url("../BANNER_DESKTOP_980x221.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 980 / 221;
}

.brand .logo,
.brand h1,
.brand p {
    display: none;
}

@media (max-width: 768px) {
    .brand {
        background-image: url("../Copy of BANNER_MOBILE_408x257.jpg");
        aspect-ratio: 408 / 257;
        background-size: 100% 100%;
    }
}
.conditional {
  border-color: #d0d0d0;
  box-shadow: inset 4px 0 0 var(--orange);
}

.conditional > .kicker {
  margin-bottom: 14px;
}

.merchandise-notice {
  padding: 16px 18px;
  border: 1px solid #f0c7bc;
  border-radius: 9px;
  background: #fff2ee;
  color: #7d2816;
}

.merchandise-notice strong,
.merchandise-notice span {
  display: block;
}

.merchandise-notice span {
  margin-top: 3px;
  font-size: 13px;
}

select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: .65;
}

/* ------------------------------------------------------------------ */
/* A field left empty is outlined, so every gap shows at once          */
/* ------------------------------------------------------------------ */

.field.is-invalid > label {
  color: #b42318;
}

.field.is-invalid > input,
.field.is-invalid > select,
input.is-invalid,
select.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 1px #d92d20;
  background: #fffafa;
}

.field.is-invalid > input:focus,
.field.is-invalid > select:focus,
input.is-invalid:focus,
select.is-invalid:focus {
  outline: 3px solid rgba(217, 45, 32, .2);
  border-color: #d92d20;
}

/* The receipt input sits inside a dashed drop box, which carries the outline. */
.field.is-invalid .file {
  border-color: #d92d20;
  background: #fffafa;
}

/* The one hint under the receipt and an online order's proof of delivery: pulled up to sit with them, not a grid gap away. */
.upload-hint {
  margin: -11px 0 0;
}

/* ------------------------------------------------------------------ */
/* Campaign footing, bottom left of the form                           */
/* ------------------------------------------------------------------ */

.promo-note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #e3e3e3;
  /* Flush with the left edge of the form, under the Back button. */
  text-align: left;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}

.promo-note p {
  margin: 0;
}

.promo-note__mechanics {
  margin-top: 4px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #222;
}

/* ------------------------------------------------------------------ */
/* Step 3: a list of products                                          */
/* ------------------------------------------------------------------ */
/*
 * One receipt often covers several items, so step 3 repeats a block per
 * product. Each block is outlined and numbered so it reads as one product
 * rather than eight loose fields in a row.
 */

.product-entry {
  position: relative;
  margin: 0 0 18px;
  padding: 18px 18px 6px;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  background: #fcfcfd;
}

.product-entry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-entry__title {
  margin: 0;
  color: #16325c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-entry__remove {
  padding: 6px 12px;
  border: 1px solid #e3b9b4;
  border-radius: 999px;
  background: #fff;
  color: #b42318;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.product-entry__remove:hover {
  border-color: #b42318;
  background: #fdf3f2;
}

/* Hidden on the only block: there is nothing to remove down to. */
.product-entry__remove[hidden] {
  display: none;
}

.product-add {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.product-add .hint {
  margin: 0;
}

#add-product[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* The reference numbers on the confirmation page, one per product. */
.reference-list {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.reference-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fcfcfd;
}

.reference-list__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: .04em;
}

.reference-list__product {
  font-weight: 600;
}

.reference-list__serial {
  color: #667085;
  font-size: 13px;
}

@media (max-width: 640px) {
  .product-entry {
    padding: 14px 14px 4px;
  }

  .product-add {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .product-add .button {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Room for three columns                                              */
/* ------------------------------------------------------------------ */
/*
 * Product, Model Number / SKU and Serial Number sit on one line. At the old
 * 980px the three shared roughly 290px each, which cut "Model Number / SKU"
 * across two lines and left the product names in the select truncated. The
 * form is wider, and the three-column row is given a little more gap than the
 * two-column rows so the boxes do not read as one run-on field.
 */
.page {
  width: min(100% - 32px, 1180px);
}

.product-entry .grid.three {
  gap: 20px;
}

/*
 * Below the point where three across stops being readable, the row becomes two
 * and then one. app.css already collapses .grid.three to a single column under
 * 720px; this fills the gap between, where three is too tight but one wastes
 * the width.
 */
@media (max-width: 1000px) and (min-width: 721px) {
  .product-entry .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ */
/* Add Another Product, above the list                                 */
/* ------------------------------------------------------------------ */
/*
 * The button sits at the top of the section, to the right, so it lands over the
 * Serial Number column of the first product. Below the list it walked down the
 * page with every product added and had to be hunted for.
 *
 * The hint takes the space to its left, which keeps the button on the right
 * edge without a spacer element.
 */
.product-add {
  justify-content: space-between;
  margin: 0 0 16px;
}

.product-add .hint {
  flex: 1 1 auto;
}

.product-add .button {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  /* Stacked, with the button first: it is the thing being reached for. */
  .product-add {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }
}

/*
 * The campaign footing, smaller.
 *
 * It is a legal requirement rather than something anyone reads while filling
 * the form in, so it sits quietly at the bottom. 11px with tighter leading, and
 * the mechanics line only slightly stronger than the rest.
 */
.promo-note {
  margin-top: 28px;
  padding-top: 14px;
  font-size: 11px;
  line-height: 1.45;
  color: #6b7280;
}

.promo-note__mechanics {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
}

/* ------------------------------------------------------------------ */
/* Add Another Product: dark, so it reads as an action rather than a   */
/* second attempt at the orange Continue button below it.              */
/* ------------------------------------------------------------------ */
.button--dark,
.button--dark:hover {
  border-color: #1d1d1d;
  background: #1d1d1d;
  color: #fff;
}

.button--dark:hover {
  background: #000;
  border-color: #000;
}

/* ------------------------------------------------------------------ */
/* "See eligible products", beside the Product label                   */
/* ------------------------------------------------------------------ */
.label-with-link {
  display: flex;
  align-items: baseline;
}

/* The asterisk stays beside "Product"; only the link is pushed to the right. */
.label-with-link .req { margin-left: 4px; }
.label-with-link .label-link { margin-left: auto; padding-left: 10px; }

.label-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.label-link:hover { color: var(--orange-dark); }
.label-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* The eligible-products dialog                                        */
/* ------------------------------------------------------------------ */
/*
 * Two lists, one visible at a time. Opening either tab hides the other, so the
 * question being answered is never ambiguous: a shopper is looking for one
 * product and wants to know which side of the line it falls on.
 */
.product-guide {
  width: min(100% - 32px, 720px);
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.product-guide[open] {
  display: flex;
  flex-direction: column;
}

.product-guide::backdrop {
  background: rgba(0, 0, 0, .55);
}

.product-guide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.product-guide__head h2 { margin: 0; font-size: clamp(20px, 3vw, 27px); }

.product-guide__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.product-guide__tabs {
  display: flex;
  gap: 6px;
  padding: 14px 26px 0;
}

.product-guide__tab {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: var(--soft);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.product-guide__tab span {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #e3e3e3;
  font-size: 11px;
}

.product-guide__tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.product-guide__tab.is-active span { background: rgba(255, 255, 255, .25); }

.product-guide__panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 26px 26px;
  border-top: 1px solid var(--line);
}

.product-guide__note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.product-guide__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-guide__list li {
  padding: 8px 10px;
  border-left: 3px solid var(--orange);
  border-radius: 0 7px 7px 0;
  background: #fff6f3;
}

.product-guide__list strong { display: block; font-size: 13px; }
.product-guide__list span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.product-guide__list--plain li {
  border-left-color: #c9c9c9;
  background: var(--soft);
}

@media (max-width: 560px) {
  .product-guide__tabs { flex-wrap: wrap; padding-inline: 18px; }
  .product-guide__head { padding: 20px 18px 14px; }
  .product-guide__panel { padding: 16px 18px 20px; }
  .label-with-link { flex-wrap: wrap; }
}

/* The promo mechanics line links to the full mechanics page. */
.promo-note__mechanics a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-note__mechanics a:hover {
  color: var(--orange-dark);
}

/* ------------------------------------------------------------------ */
/* Promo footer: thin outline buttons for mechanics and FAQ            */
/* ------------------------------------------------------------------ */
.promo-note__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.button-thin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 14px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  /* Sentence-case labels ("See Promo Mechanics"): no tracking, or the S drifts away from the word. */
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.button-thin:hover {
  background: var(--orange);
  color: #fff;
}

.button-thin:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Step 1: Terms / Privacy consent, left of Continue                   */
/* ------------------------------------------------------------------ */
.actions--consent {
  align-items: center;
}

.consent {
  display: grid;
  gap: 6px;
}

.consent__label {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}

.consent__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.consent__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent__item:hover { color: var(--orange); }
.consent__item:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.consent__tick {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;
  border-radius: 4px;
  background: #fff;
}

.consent__item.is-accepted .consent__tick {
  border-color: var(--success);
  background: var(--success);
}

.consent__item.is-accepted .consent__tick::after {
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}

#step-one-next:disabled {
  cursor: not-allowed;
  opacity: .45;
}

/* ------------------------------------------------------------------ */
/* Terms / Privacy / FAQ modals (built on .product-guide)              */
/* ------------------------------------------------------------------ */
.legal-modal__body {
  overflow-y: auto;
  padding: 18px 26px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

.legal-modal__body h3 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 15px;
}

.legal-modal__body h3:first-child { margin-top: 0; }
.legal-modal__body p { margin: 0 0 10px; }
.legal-modal__body ul,
.legal-modal__body ol { margin: 0 0 10px; padding-left: 22px; }
.legal-modal__body li { margin-bottom: 4px; }

.legal-modal__body details {
  border-bottom: 1px solid var(--line);
}

.legal-modal__body summary {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.legal-modal__body details p { margin: 0 0 12px; }

.legal-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.legal-modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.legal-modal__agree input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 0;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--orange);
}

.legal-modal__agrees {
  display: grid;
  gap: 10px;
}

.legal-modal__agree--optional {
  font-weight: 500;
}

.legal-modal__done {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  padding: 8px 22px;
}

@media (max-width: 720px) {
  .actions--consent { align-items: stretch; }
  .legal-modal__foot { flex-direction: column; align-items: stretch; }
  .legal-modal__done { width: 100%; }
}

@media (max-width: 560px) {
  .legal-modal__body { padding: 16px 18px; }
  .legal-modal__foot { padding: 14px 18px; }
}

/* FAQ: solid red, pushed to the bottom-right corner of the footer. */
.button-thin--faq {
  margin-left: auto;
  border-color: #e02424;
  background: #e02424;
  color: #fff;
}

.button-thin--faq:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
}

.button-thin--faq:focus-visible { outline-color: #e02424; }

/* The product box is a single text input with browser suggestions (datalist), not a dropdown. */
.product-entry__product {
  width: 100%;
}

/* Category headings inside the VIP Pass tab of the product guide. */
.product-guide__category {
  margin: 18px 0 8px;
  color: var(--ink, #1d1d1d);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-guide__panel > .product-guide__category:first-of-type { margin-top: 4px; }
