/* Lead form layout refresh */
.lead-form__card {
  padding: clamp(28px, 3vw, 44px);
}

.lead-form__fields {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(280px, 1.2fr)
    minmax(220px, .68fr);
  gap: 14px;
  align-items: end;
}

.lead-form__field {
  min-width: 0;
}

.lead-form__field input,
.lead-form__field textarea {
  min-height: 58px;
}

.lead-form__field textarea {
  height: 58px;
  padding-block: 17px;
  line-height: 1.35;
}

.lead-form__field textarea,
.modal__field textarea {
  max-height: 280px;
  resize: vertical;
  overflow-y: auto;
}

.lead-form__submit {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding-inline: 24px;
}

.lead-form__submit:disabled,
.modal__form button[type="submit"]:disabled {
  cursor: wait;
  opacity: .62;
}

.lead-form__consents {
  margin-top: 0;
  gap: 0;
}

.lead-form__consent {
  max-width: 980px;
  margin-top: 22px;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .68);
}

.lead-form__consent + .lead-form__consent {
  margin-top: 9px;
}

.lead-form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.lead-form__consent a {
  color: rgba(255, 255, 255, .92);
}

.lead-form__status {
  min-height: 1.45em;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .76);
}

.modal__consent {
  font-size: 13px;
  line-height: 1.4;
}

.modal__consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media (max-width: 1180px) {
  .lead-form__fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lead-form__fields .lead-form__field:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .lead-form__submit {
    grid-column: 1 / -1;
    width: min(100%, 360px);
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .lead-form__card {
    padding: 22px;
  }

  .lead-form__fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lead-form__fields .lead-form__field,
  .lead-form__fields .lead-form__field:nth-child(n + 3),
  .lead-form__submit {
    grid-column: auto;
  }

  .lead-form__field textarea {
    height: 96px;
    min-height: 96px;
  }

  .lead-form__submit {
    width: 100%;
  }

  .lead-form__consent {
    font-size: 12px;
  }
}

/* Thank-you page */
.thanks-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--navy-dark);
}

.thanks-page .nav {
  background: var(--navy-dark);
  border-bottom-color: rgba(255, 255, 255, .14);
}

.thanks-page .brand,
.thanks-page .nav__phone {
  color: var(--white);
}

.thanks-page .nav__phone:hover {
  color: var(--orange-soft);
}

.thanks-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: clamp(56px, 9vw, 130px);
}

.thanks__card {
  position: relative;
  overflow: hidden;
  min-height: clamp(430px, 60vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 76px);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .035);
}

.thanks__card::after {
  content: "↗";
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: clamp(14px, 3vw, 42px);
  font-size: clamp(80px, 16vw, 240px);
  line-height: .8;
  font-weight: 300;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
}

.thanks__eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(34px, 7vw, 90px);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, .58);
}

.thanks__eyebrow::before {
  content: "";
  width: 34px;
  height: 9px;
  border-radius: 999px;
  background: var(--orange);
}

.thanks__title {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0;
  font-size: clamp(54px, 8.2vw, 136px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 500;
}

.thanks__title span {
  color: var(--orange-soft);
}

.thanks__bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  margin-top: clamp(50px, 8vw, 110px);
}

.thanks__text {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.18;
  letter-spacing: -.025em;
  color: rgba(255, 255, 255, .78);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.thanks__actions .button {
  min-height: 54px;
  padding-inline: 24px;
}

.thanks__actions .button--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}

.thanks__actions .button--ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy-dark);
}

@media (max-width: 760px) {
  .thanks-page .nav__inner {
    grid-template-columns: 1fr auto;
  }

  .thanks__bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .thanks__actions {
    justify-content: flex-start;
  }
}
