/* Credit Quiz Promo — baycorp.co.nz/debt-resolution quiz CTA band */

.bc-credit-quiz-promo {
  --bc-credit-quiz-promo-bg: #00b0cc;
  background: var(--bc-credit-quiz-promo-bg);
  color: #fff;
}

.bc-credit-quiz-promo__row {
  min-height: 450px;
}

.bc-credit-quiz-promo__copy,
.bc-credit-quiz-promo__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-credit-quiz-promo__inner {
  width: 100%;
  max-width: 34rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.bc-credit-quiz-promo__heading {
  margin: 0;
    font-family: "Ostrich Sans", sans-serif;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 52px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    font-size: 42px;
    letter-spacing: -1;
}

.bc-credit-quiz-promo__rule {
  width: 100%;
  height: 1px;
  margin: 1.25rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.95);
}

.bc-credit-quiz-promo__link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  color: #fff;
  font-family: "Ostrich Sans", sans-serif;
  font-size: 35px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}

.bc-credit-quiz-promo__link:hover,
.bc-credit-quiz-promo__link:focus-visible {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
}

.bc-credit-quiz-promo__link-arrow {
  flex-shrink: 0;
  position: relative;
  top: -0.12em;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72em;
  font-weight: 300;
  line-height: 1;
  text-transform: none;
}

.bc-credit-quiz-promo__figure {
  margin: 0;
  width: 100%;
  max-width: 420px;
  
}

.bc-credit-quiz-promo__img {
  display: block;
  width: 100%;
  height: auto;
  
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .bc-credit-quiz-promo__row {
    min-height: 0;
  }

  .bc-credit-quiz-promo__inner {
    padding-block: clamp(2rem, 6vw, 2.75rem);
  }

  .bc-credit-quiz-promo__figure {
    max-width: min(78vw, 280px);
    padding-block: 0 clamp(2rem, 6vw, 2.5rem);
  }

  .bc-credit-quiz-promo__img {
    max-height: min(36vh, 220px);
  }

  .bc-credit-quiz-promo.bc-credit-quiz-promo--mobile-reverse .bc-credit-quiz-promo__copy {
    order: 2;
  }

  .bc-credit-quiz-promo.bc-credit-quiz-promo--mobile-reverse .bc-credit-quiz-promo__media {
    order: 1;
  }

  .bc-credit-quiz-promo.bc-credit-quiz-promo--mobile-reverse .bc-credit-quiz-promo__figure {
    padding-top: clamp(2rem, 6vw, 2.5rem);
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .bc-credit-quiz-promo__inner {
    text-align: right;
    margin-inline: auto;
    max-width: 100%;
  }
}
