/* ==========================================================================
   Custom styles (hand-maintained, not part of the Webflow export)
   Keep additions here so the original Webflow CSS stays untouched.
   ========================================================================== */

:root {
  --rw-magenta: #ec008c;
  --rw-magenta-dark: #c70077;
  --rw-ink: #231f20;
  --rw-grey: #6d6e71;
  --rw-white: #ffffff;
  --rw-overhang: 130px;
}

/* Visually hidden, still read by screen readers and search engines */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Amour Rewards section
   Desktop (992px+): QR codes shown, phone and step 2 overhang the pink panel.
   Below 992px: QR codes hidden, single column, tap-friendly buttons.
   -------------------------------------------------------------------------- */

.rewards-section {
  background-color: var(--rw-white);
  padding: 60px 20px calc(60px + var(--rw-overhang));
  font-family: "Open Sans", sans-serif;
}

.rewards-panel {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 56px 0;
  background-color: var(--rw-magenta);
  border-radius: 40px;
  color: var(--rw-white);
  display: flow-root; /* lets .rewards-body overhang the panel's bottom edge */
}

.rewards-header {
  text-align: center;
  margin-bottom: 44px;
}

.rewards-kicker,
.rewards-sub {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.rewards-kicker { font-weight: 600; }
.rewards-kicker,
.rewards-sub { text-wrap: balance; }
.rewards-sub { font-weight: 700; }

.rewards-title {
  margin: 8px 0 12px;
  line-height: 0;
}

.rewards-title img {
  display: inline-block;
  width: 100%;
  max-width: 560px;
  height: auto;
}

.rewards-body {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: calc(-1 * var(--rw-overhang));
}

/* Phone mockup: real screenshot inside a CSS frame */
.rewards-phone {
  position: relative;
  margin: 0;
  padding: 6px;
  background: linear-gradient(145deg, #d9d9d9, #9e9e9e);
  border-radius: 44px;
  box-shadow: 0 18px 30px rgba(35, 31, 32, 0.28);
}

.rewards-phone picture,
.rewards-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}

.rewards-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 470px;
  justify-self: center;
  width: 100%;
}

.rewards-card {
  background-color: var(--rw-white);
  border: 3px solid var(--rw-magenta);
  border-radius: 36px;
  padding: 22px 30px 26px;
  color: var(--rw-ink);
}

.rewards-card-title {
  margin: 0 0 16px;
  color: var(--rw-grey);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  text-align: center;
}

.rewards-card-body {
  display: flex;
  align-items: center;
  gap: 22px;
}

.rewards-qr {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  padding: 10px;
  box-sizing: content-box;
  background: var(--rw-white);
  border: 1px solid #ececec;
  border-radius: 6px;
}

.rewards-card-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rewards-card-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.rewards-card-copy strong {
  color: var(--rw-magenta);
  font-weight: 700;
}

.rewards-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rewards-btn {
  display: block;
  padding: 7px 18px;
  background-color: var(--rw-ink);
  border-radius: 999px;
  color: var(--rw-white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rewards-btn:hover {
  background-color: var(--rw-magenta);
  color: var(--rw-white);
}

.rewards-btn:focus-visible {
  outline: 3px solid var(--rw-magenta);
  outline-offset: 3px;
}

/* Copy that only makes sense on one kind of device */
.rw-touch { display: none; }

/* --------------------------------------------------------------------------
   Tablet and mobile: compact layout. No QR codes, no card boxes, small phone
   beside the buttons so the section stays short.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .rewards-section {
    padding: 28px 16px;
  }

  .rewards-panel {
    max-width: 560px;
    padding: 24px 18px 22px;
    border-radius: 26px;
  }

  .rewards-header { margin-bottom: 18px; }

  .rewards-kicker,
  .rewards-sub {
    font-size: 15px;
    letter-spacing: 0;
  }

  .rewards-title { margin: 4px 0 6px; }
  .rewards-title img { max-width: 250px; }

  .rewards-body {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 0;
  }

  .rewards-phone {
    padding: 3px;
    border-radius: 18px;
    box-shadow: 0 8px 16px rgba(35, 31, 32, 0.25);
  }

  .rewards-phone picture,
  .rewards-phone img { border-radius: 15px; }

  .rewards-steps {
    gap: 10px;
    max-width: none;
  }

  /* Each step is its own compact white card, like desktop */
  .rewards-card {
    padding: 12px 12px 14px;
    border: 0;
    border-radius: 18px;
  }

  .rewards-card-title {
    margin: 0 0 8px;
    color: var(--rw-grey);
    font-size: clamp(12px, 3.6vw, 15px); /* shrinks with the screen so it stays on one line */
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0;
  }

  .rewards-qr,
  .rewards-card-copy p { display: none; }

  .rewards-card-body { display: block; }

  .rewards-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .rewards-btn {
    flex: 1 1 0;
    padding: 10px 8px; /* 40px+ tall touch target */
    font-size: 14px;
  }

  .rw-desktop { display: none; }
  .rw-touch { display: inline; }
}

/* Roomier phone on tablets */
@media screen and (min-width: 600px) and (max-width: 991px) {
  .rewards-body { grid-template-columns: 140px minmax(0, 1fr); gap: 28px; }
  .rewards-steps { gap: 14px; }
  .rewards-card { padding: 16px 18px 18px; }
  .rewards-card-title { font-size: 17px; }
  .rewards-btn { font-size: 15px; padding: 11px 12px; }
}

@media screen and (max-width: 359px) {
  .rewards-body { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .rewards-card { padding: 10px 6px 12px; }
  .rewards-card-title { font-size: 11px; }
  .rewards-buttons { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .rewards-btn { transition: none; }
}

/* --------------------------------------------------------------------------
   Contact form: inline error messages (see js/form-validation.js)
   -------------------------------------------------------------------------- */
.cf-borders-text-field.is-invalid {
  border-color: #c8102e;
  box-shadow: 0 0 0 1px #c8102e;
}

.form-error {
  margin: -14px 0 14px;
  color: #c8102e;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.form-error:empty { display: none; }
