:root {
  --color-black: #231f20;
  --color-yellow: #FFD919;
  --color-blue: #0057A3;
  --color-promo-blue: #1E79BF; /* sampled from the campaign artwork's own background so the solid-color fill below/around it matches seamlessly */
  --color-green: #0057A3;
  --font-base: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --container-width: 80rem; /* 1280px */
  --page-width: 120rem; /* 1920px */

  /* Width of each step box in the desktop row layout. Edit these three
     to resize an individual box — they don't need to add up to 100%,
     each is just that box's share of the row. */
  --step-1-width: 40%;
  --step-2-width: 35%;
  --step-3-width: 25%;
}

* { box-sizing: border-box; }

html {
  font-size: 100%; /* 1rem = 16px */
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--color-black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Caps the whole page at the 1920 design width and centers it; the 1280
   reading column below is clamped again inside that via .container */
.site {
  max-width: var(--page-width);
  margin: 0 auto;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  /* Mobile-only gutter so text/boxes don't run to the screen edge;
     reset back to 0 at desktop below, where the layout already
     accounts for its own spacing. */
  padding: 0 1.25rem;
}

a { text-decoration: none; color: inherit; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
}

.btn--yellow {
  background: var(--color-yellow);
  color: var(--color-black);
}

.btn img {
  width: 1.125rem;
  height: 1.125rem;
}

.promo__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem auto 0 auto;
  width: 60%;
}

.promo__buttons .btn {
  flex: 1 1 auto;
  justify-content: center;
}

/* Header — mobile first: logo above button, both centered */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding: 1rem 0;
}

.site-header__logo img {
  height: 3.5rem;
  width: auto;
}

/* Partner strip */
.partner-strip {
  background: var(--color-blue);
  padding: 20px 0;
}

.partner-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.partner-strip__icon {
  height: 4.125rem;
  width: 4.125rem;
}

.partner-strip__divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.partner-strip__logo {
  height: 3.75rem;
  width: auto;
}

/* Intro */
.intro {
  padding: 2.5rem 0;
  text-align: center;
}

.intro__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.intro__subtitle {
  font-size: 1.375rem;
  color: #444;
  margin: 0 auto;
}

/* Terms and conditions page */
.legal {
  padding: 3rem 0 4rem;
}

.legal__container {
  max-width: 50rem;
  padding: 0 1.5rem;
}

.legal__title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 2.5rem;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-blue);
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 0.75rem;
}

.legal ul {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

.legal__closing {
  margin-top: 2rem;
  color: #666;
}

.legal__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: start;
  width: fit-content;
  gap: 1.25rem;
  margin: 2.25rem auto 0;
  padding: 0;
}

.contact-list__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-blue);
}

.contact-list__icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.promo {
  position: relative;
  color: #fff;
  background-color: var(--color-promo-blue);
  background-image: url('../img/Competition Mechanic Mobile.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  padding-top: calc(480 / 430 * 100%);
  padding-bottom: 3rem;
}

.promo__inner {
  display: flex;
  justify-content: center;
}

.promo__card {
  max-width: 100%;
  width: 100%;
  text-align: center;
}

.promo__eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 100%;
  text-transform: uppercase;
  font-size: 1.2594rem;
  margin: 0;
  text-align: center;
  color: var(--color-yellow);
}

.promo__eyebrow-accent {
  color: var(--color-yellow);
  font-weight: 900;
}

.promo__eyebrow-secondary {
  font-weight: 500;
}

.promo__win {
  font-size: 7.3069rem;
  font-weight: 900;
  line-height: 100%;
  margin: 0;
  text-align: center;
}

.promo__prize {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 1.75rem;
  letter-spacing: -2%;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Centered on mobile — the container's own gutter (above) already
     gives equal left/right clearance. Desktop below restores an
     asymmetric right margin to clear the boxes artwork. */
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.steps__item {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: start;
  gap: 0.55rem;
  padding: 0.275rem 0.28rem 0.275rem 0.45rem;
  background: transparent;
  min-height: 4.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.steps__item:last-child {
  border-bottom: none;
}

.steps__item p {
  margin: 0;
  font-size: 1.0975rem;
  line-height: 1;
}

.steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.steps__icon svg,
.steps__icon img {
  width: 2.5rem;
  height: 2.5rem;
}

.promo__validity {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--color-yellow);
  padding: 2rem 0;
  text-align: center;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}


.site-footer__meta span:nth-child(1),
.site-footer__meta span:nth-child(2) {
  font-weight: 600;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  width: min(26rem, calc(100vw - 2.5rem));
  z-index: 1000;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__panel {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-consent__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
}

.cookie-consent__text {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
}

.cookie-consent__details {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.cookie-consent__option {
  margin-bottom: 1rem;
}

.cookie-consent__option:last-child {
  margin-bottom: 0;
}

.cookie-consent__option-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.cookie-consent__option-header .cookie-consent__badge {
  margin-left: auto;
}

.cookie-consent__option p {
  margin: 0;
  font-size: 0.8125rem;
  color: #777;
}

.cookie-consent__badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #999;
}

.cookie-consent__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.375rem;
}

.cookie-consent__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-consent__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-consent__slider::before {
  content: "";
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  left: 0.16rem;
  top: 0.16rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
  background: var(--color-green);
}

.cookie-consent__switch input:checked + .cookie-consent__slider::before {
  transform: translateX(1.1rem);
}

.cookie-consent__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.cookie-consent__buttons .btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.cookie-consent__save-wrap {
  margin-top: 0.875rem;
}

.cookie-consent__save-wrap .btn {
  width: 100%;
  justify-content: center;
}

.btn--green {
  background: var(--color-green);
  color: #fff;
  border: none;
}

.btn--outline {
  background: #fff;
  color: var(--color-green);
  border: 1px solid var(--color-green);
}

/* Desktop and up */
@media (min-width: 55rem) {
  .container {
    padding: 0;
  }

  .steps {
    /* Right gutter so the box's own border has clearance from the
       card/viewport edge instead of running flush against it. */
    margin: 0 2.25rem 1rem 0;
  }

  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 20px 10px;
  }

  .partner-strip__icon {
    height: 6rem;
    width: 6rem;
  }

  .partner-strip__logo {
    height: 5.625rem;
  }

  .intro {
    padding: 3rem 0;
  }

  .intro__title {
    font-size: 2rem;
  }

  .intro__subtitle {
    font-size: 1.25rem;
  }

  .contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-left: 0;
  }

  .promo {
    background-image: url('../img/TRC Landing Page Campaign Desktop.jpg');
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .promo__inner {
    justify-content: flex-end;
    /* Nudges the whole inner block slightly further right than the
       container's own right edge (flex-end alone can't move it past
       that). transform keeps the direction unambiguous: positive X is
       always toward the right of the screen. */
    transform: translateX(1rem);
  }

  .promo__card {
    /* Kept narrower than the container so the card can never grow into
       the "Fill it to win it" artwork on the left. */
    max-width: 54rem;
  }

  .promo__win {
    font-size: 7.3069rem;
  }

  .promo__prize {
    font-size: 3.0431rem;
  }

  .steps {
    flex-direction: row;
  }

  .steps__item {
    /* Row layout now, so the divider between items runs down the
       right edge instead of along the bottom. */
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
  }

  /* Explicit width per box — edit --step-1/2/3-width in :root to
     resize an individual box without touching this rule. */
  .steps__item:nth-child(1) {
    flex: 0 0 var(--step-1-width);
  }

  .steps__item:nth-child(2) {
    flex: 0 0 var(--step-2-width);
  }

  .steps__item:nth-child(3) {
    flex: 0 0 var(--step-3-width);
  }

  .steps__item:last-child {
    border-right: none;
  }

  .steps__icon {
    width: 3.4375rem; /* ~55px */
    height: 3.4375rem;
  }

  .steps__icon svg,
  .steps__icon img {
    width: 3.4375rem;
    height: 3.4375rem;
  }

  .site-footer__meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .site-footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
}
