/* 50-off-install-promo landing page (Figma: CCWD "Section 33").
   Mobile first; desktop values are the 1920-wide design's.
   Fonts: Anton (headlines, buttons), Inter (trust lines), and the system
   Helvetica/Arial stack for body text (Helvetica is not freely licensed). */

:root {
  --red: #bb2542;
  --blue: #3eb4e4;
  --blue-dark: #2ea3d3;
  --ink: #07071a;
  --black: #010101;
  --hero-bg: #f7f7f7;
  --reviews-bg: #f6f7fb;
  --line: #d7d7d7;
  --placeholder: #757575;
  --green: #38a65e;
  --green-dark: #237c44;
  --amber: #96621a;
  --anton: "Anton", Impact, "Arial Narrow", sans-serif;
  --helv: Helvetica, Arial, sans-serif;
  --inter: "Inter", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--helv);
  color: var(--ink);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
:focus-visible {
  outline: 3px solid rgba(62, 180, 228, 0.6);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ HEADER ============ */
.top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  background: var(--red);
}
.top__logo {
  width: 170px;
}

/* ============ HERO + FLOW ============ */
.hero {
  position: relative;
  background: var(--hero-bg);
}
/* 8px strip at the top of the hero; the red part fills as the visitor advances */
.hero__strip {
  height: 8px;
  background: rgba(7, 7, 26, 0.1);
}
.hero__strip span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--red);
  transition: width 0.5s ease;
}
.hero__inner {
  max-width: 622px;
  margin: 0 auto;
  padding: 36px 16px 48px;
  text-align: center;
}
.hero__title {
  font-family: var(--anton);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__title span {
  display: block;
}
.hero__title .hero__title-accent {
  color: var(--blue);
}
.hero__lead {
  max-width: 505px;
  margin: 14px auto 0;
  font-size: 18px;
  line-height: 1.5;
}
.hero.is-done .hero__lead {
  display: none;
}

/* contact form + submitted screens: the page ends after the hero */
.is-form-only main > section:not(.hero),
.is-form-only .foot {
  display: none;
}
/* ...and the grey hero fills the screen below the header (64px / 81px) */
.is-form-only .hero {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
}
@media (min-width: 1024px) {
  .is-form-only .hero {
    min-height: calc(100vh - 81px);
    min-height: calc(100svh - 81px);
  }
}

.step {
  display: none;
  margin-top: 32px;
  animation: fadeIn 0.3s ease both;
}
.step.is-active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* fields */
.field {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-family: var(--helv);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(62, 180, 228, 0.2);
}
.field[aria-invalid="true"] {
  border-color: var(--red);
}
#postal {
  text-transform: uppercase;
}
#postal::placeholder {
  text-transform: none;
}
.field-err {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--red);
}
.field-err:empty {
  display: none;
}
.form-err {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fbeef1;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  color: #9e1b35;
}
.form-err:empty {
  display: none;
}

/* buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  background: var(--blue);
  color: #fff;
  text-transform: uppercase;
  transition: background-color 0.15s;
}
.btn:hover {
  background: var(--blue-dark);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn--anton {
  font-family: var(--anton);
  font-size: 18px;
  line-height: 23px;
  letter-spacing: 0.01em;
}
.btn--helv {
  font-family: var(--helv);
  font-weight: 700;
}
.postal .btn {
  margin-top: 20px;
}

/* trust lines */
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto 0;
  font-family: var(--inter);
  font-size: 13px;
  line-height: 17px;
  text-align: left;
}
.secure img {
  flex: none;
  width: 24px;
}
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--inter);
  text-align: left;
}
.rating img {
  flex: none;
  width: 40px;
}
.rating p {
  display: flex;
  flex-direction: column;
}
.rating b {
  font-size: 11.8px;
  line-height: 20px;
}
.rating span:last-child {
  font-size: 12px;
  line-height: 15px;
}

/* loading */
.spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 5px solid #e3e3e5;
  border-top-color: var(--red);
  border-right-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading__title {
  margin-top: 22px;
  font-family: var(--anton);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.375;
  text-transform: uppercase;
}
.loading__bar {
  height: 7px;
  margin: 16px auto 0;
  max-width: 667px;
  border-radius: 7px;
  background: #e3e3e5;
  overflow: hidden;
}
.loading__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 7px;
  background: var(--red);
}
.loading__bar.is-running span {
  animation: fill var(--loading-ms, 3000ms) linear forwards;
}
@keyframes fill {
  to {
    width: 100%;
  }
}
.loading__caption {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
}

/* contact */
.good-news {
  padding: 18px 18px 18px 20px;
  border-left: 5px solid var(--green);
  background: #fff;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3), 0 6px 10px 4px rgba(0, 0, 0, 0.15);
  text-align: left;
}
.good-news__title {
  font-family: var(--anton);
  font-size: 20px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--green-dark);
}
.good-news__spots {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--amber);
}
.reserve__strong {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #08071a;
}
.reserve__note {
  margin-top: 8px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.3;
  color: #08071a;
}
.lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}
.lead__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.lead__label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #08071a;
}
.select {
  position: relative;
}
.select::after {
  /* the design's chevron (select-arrow.svg) rotated to point down */
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 5px;
  height: 8px;
  margin-top: -4px;
  background: url("/rd_img/50-off-install-promo/select-arrow.svg") center / contain no-repeat;
  transform: rotate(90deg);
  pointer-events: none;
}
.select .field {
  padding-right: 44px;
  cursor: pointer;
}
.select .field:invalid {
  color: var(--placeholder);
}
.select option {
  color: var(--ink);
}
.consent {
  font-size: 12px;
  line-height: 1.5;
  color: #55555f;
}
.lead .btn {
  margin-top: 8px;
}

/* done */
.step--done:focus {
  outline: none;
}
.done__msg {
  font-family: var(--anton);
  font-size: 28px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
}
.done__count {
  margin: 24px auto 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--blue);
  font-family: var(--anton);
  font-size: 48px;
  line-height: 96px;
  color: #fff;
}
.done__note {
  margin-top: 16px;
  font-size: 15px;
  color: #55555f;
}

/* ============ BANDS ============ */
.band {
  padding: 36px 16px;
  background: var(--red);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}
.band h2,
.band p {
  font-family: var(--anton);
  font-weight: 400;
}
.band--title h2 {
  max-width: 906px;
  margin: 0 auto;
  font-size: 30px;
  line-height: 1.3;
}
.band--stats h2 {
  max-width: 1115px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.3;
}
.band--stats p {
  max-width: 1115px;
  margin: 10px auto 0;
  font-size: 19px;
  line-height: 1.35;
}

/* ============ BADGES ============ */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 24px;
  padding: 32px 16px;
  background: #fff;
}
.badges img {
  height: 70px;
  width: auto;
}
.badges picture {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
}
.badges picture img {
  height: auto;
  width: min(501px, 100%);
}

/* ============ REVIEWS ============ */
.reviews {
  padding: 48px 16px;
  background: var(--reviews-bg);
}
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1376px;
  margin: 0 auto;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
  background: #fff;
}
.review h3 {
  font-family: var(--anton);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.15;
  color: var(--ink);
}
.review__text {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.55;
}
.review__by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
}
.review__homestars {
  width: 109px;
}
.review__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eee;
  overflow: hidden;
}
.review__avatar img {
  width: 80px;
  max-width: none;
}

/* ============ QUALIFY CTA ============ */
.qualify {
  padding: 48px 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1.75;
}
.btn--qualify {
  width: auto;
  min-width: 285px;
  min-height: 80px;
  margin: 0 auto 24px;
  font-size: 20px;
  line-height: 30px;
}
.qualify p {
  max-width: 823px;
  margin: 0 auto;
}

/* ============ COLLAGE ============ */
.collage {
  padding: 0 16px 32px;
}
.collage img {
  width: 100%;
  max-width: 1376px;
  margin: 0 auto;
}

/* ============ BEFORE / AFTER ============ */
.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1376px;
  margin: 0 auto;
  padding: 32px 16px;
}
.before-after img {
  width: 100%;
}

/* ============ FINAL CTA ============ */
.final {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: #686868;
  overflow: hidden;
}
.final__bg,
.final__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.final__bg img {
  object-fit: cover;
  object-position: 50% 45%;
}
.final::before {
  /* overlay from the design */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.19);
}
.final__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1086px;
  padding: 32px 20px;
  background: #fff;
  text-align: center;
}
.final__mark {
  width: 70px;
  margin: 0 auto 16px;
}
.final h2 {
  font-family: var(--anton);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--black);
}
.final h2 span {
  display: block;
  color: var(--red);
}
.final__offer {
  margin-top: 12px;
  font-family: var(--anton);
  font-size: 19px;
  line-height: 1.32;
  text-transform: uppercase;
}
.final__terms {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #55555f;
}
.final__note {
  margin-top: 12px;
  font-size: 15px;
  line-height: 22px;
}
.btn--final {
  width: 100%;
  max-width: 430px;
  min-height: 72px;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.4;
}

/* ============ FOOTER ============ */
.foot {
  padding: 56px 16px 48px;
  text-align: center;
  font-size: 13px;
  line-height: 24px;
  color: var(--black);
}
.foot__logo svg {
  width: 188px;
  height: auto;
  margin: 0 auto 26px;
}

/* ============ TABLET ============ */
@media (min-width: 600px) {
  .lead__row {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .lead {
    gap: 20px;
  }
  .review {
    padding: 40px 24px 34px;
  }
}
@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .before-after {
    grid-template-columns: repeat(3, 1fr);
  }
  .badges img {
    height: 99px;
  }
  .badges picture {
    flex: 0 1 501px;
  }
  .badges picture img {
    width: 100%;
  }
}

/* ============ DESKTOP (design: 1920 wide) ============ */
@media (min-width: 1024px) {
  .top {
    height: 81px;
  }
  .top__logo {
    width: 215px;
  }
  .hero__inner {
    max-width: 734px;
    padding: 62px 16px 64px;
  }
  .hero__title {
    max-width: 352px;
    margin: 0 auto;
    font-size: 50px;
    line-height: 55px;
  }
  .hero__lead {
    margin-top: 12px;
    font-size: 22px;
    line-height: 33px;
  }
  .step {
    margin-top: 56px;
  }
  .step[data-step="postal"],
  .step[data-step="done"] {
    max-width: 590px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn {
    min-height: 72px;
  }
  .rating {
    margin-top: 30px;
  }
  .step--loading {
    margin-top: 50px;
  }
  .loading__title {
    font-size: 40px;
    line-height: 55px;
  }
  .loading__caption {
    margin-top: 23px;
    font-size: 18px;
    line-height: 33px;
  }
  .step[data-step="contact"] {
    margin-top: 50px;
  }
  .good-news {
    min-height: 120px;
    padding: 23px 30px 24px;
  }
  .good-news__title {
    font-size: 23px;
    line-height: 30px;
  }
  .good-news__spots {
    margin-top: 10px;
    font-size: 18px;
    line-height: 33px;
  }
  .reserve__strong,
  .reserve__note {
    max-width: 604px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
  }
  .reserve__strong {
    margin-top: 30px;
    line-height: 33px;
  }
  .reserve__note {
    margin-top: 10px;
    line-height: 20px;
  }
  .lead {
    max-width: 591px;
    margin: 50px auto 0;
  }
  .lead .btn {
    margin-top: 10px;
  }
  .step[data-step="contact"] .secure {
    margin-top: 30px;
  }
  .done__msg {
    font-size: 34px;
  }

  .band--title {
    padding: 46px 16px;
  }
  .band--title h2 {
    font-size: 46px;
    line-height: 59.8px;
  }
  .band--stats {
    padding: 56px 16px 57px;
  }
  .band--stats h2 {
    font-size: 44px;
    line-height: 59px;
  }
  .band--stats p {
    font-size: 28px;
    line-height: 38px;
  }

  .badges {
    flex-wrap: nowrap;
    gap: 32px;
    padding: 45px 16px;
    min-height: 190px;
  }
  .badges > img {
    flex: none;
  }

  .reviews {
    padding: 101px 16px 100px;
  }
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
    row-gap: 49px;
  }
  .review {
    padding: 70px 24px 34px;
  }
  .review h3 {
    font-size: 25px;
    line-height: 28.6px;
  }
  .review__text {
    margin-top: 38px;
    font-size: 18px;
    line-height: 27px;
  }

  .btn--qualify {
    min-height: 80px;
  }
  .qualify {
    padding: 60px 16px 111px;
    font-size: 16px;
    line-height: 30px;
  }

  .collage {
    padding: 30px 16px 41px;
  }
  .before-after {
    gap: 40px;
    padding: 41px 16px 43px;
  }

  .final {
    min-height: 600px;
    padding: 60px 16px;
  }
  .final__box {
    padding: 48px 40px 52px;
  }
  .final__mark {
    width: 88px;
    margin-bottom: 18px;
  }
  .final h2 {
    font-size: 38px;
    line-height: 49.4px;
  }
  .final__offer {
    margin-top: 6px;
    font-size: 25px;
    line-height: 33px;
  }
  .final__note {
    margin-top: 10px;
  }
  .btn--final {
    min-height: 80px;
    margin-top: 22px;
    font-size: 19px;
    line-height: 28px;
  }

  .foot {
    padding: 108px 16px 49px;
  }
}
