:root {
  --legal-navy: #092742;
  --legal-blue: #0879c9;
  --legal-border: #dbe5ec;
  --legal-text: #243746;
}

body.modal-open {
  overflow: hidden;
}

.lead-modal[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 24, 41, .74);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 36px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(3, 21, 37, .34);
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--legal-border);
  border-radius: 50%;
  background: #fff;
  color: var(--legal-navy);
  font: 500 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.lead-modal__eyebrow {
  margin: 0 0 10px;
  color: var(--legal-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.lead-modal h2 {
  margin: 0 44px 10px 0;
  color: var(--legal-navy);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.12;
}

.lead-modal__intro {
  margin: 0 0 24px;
  color: #526675;
  line-height: 1.55;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-form__field {
  display: grid;
  gap: 7px;
  color: var(--legal-text);
  font-size: 13px;
  font-weight: 700;
}

.lead-form__field--wide,
.lead-form__consent,
.lead-form__status,
.lead-form__submit {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d8e2;
  border-radius: 7px;
  background: #fff;
  color: #142b3d;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.lead-form input {
  height: 48px;
  padding: 0 14px;
}

.lead-form textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--legal-blue);
  box-shadow: 0 0 0 3px rgba(8, 121, 201, .12);
}

.lead-form__consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #536673;
  font-size: 12px;
  line-height: 1.5;
}

.lead-form__consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--legal-blue);
}

.lead-form__consent a {
  color: #076cae;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-form__status {
  margin: 0;
  padding: 11px 13px;
  border-left: 3px solid #d64545;
  background: #fff3f3;
  color: #7b2626;
  font-size: 13px;
}

.lead-form__submit {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--legal-blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.lead-form__submit:hover {
  background: #0465a9;
  transform: translateY(-1px);
}

.lead-form__submit:disabled {
  cursor: wait;
  opacity: .7;
}

.lead-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cookie-banner {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  display: flex;
  width: min(520px, calc(100vw - 40px));
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: #082842;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 20, 36, .28);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: #a8dbff;
  white-space: nowrap;
}

.cookie-banner button {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #082842;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 20px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: inherit;
  font-size: 12px;
  line-height: 1.45;
  opacity: .78;
}

.site-footer {
  padding-top: 26px;
  padding-bottom: 26px;
}

.site-footer__inner {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
}

.site-footer__legal {
  flex-basis: 100%;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1080px) {
  .site-footer {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .site-footer__inner {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .site-footer__inner > * {
    margin-right: auto;
    margin-left: auto;
  }

  .site-footer p {
    text-align: center;
  }

  .brand--footer {
    min-width: 0;
  }

  .site-footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer__legal {
    flex-basis: auto;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .site-footer__legal {
    gap: 8px 16px;
    padding-top: 14px;
  }
}

@media (max-width: 680px) {
  .lead-modal {
    align-items: end;
    padding: 0;
  }

  .lead-modal__dialog {
    max-height: 94vh;
    padding: 28px 20px 22px;
    border-radius: 14px 14px 0 0;
  }

  .lead-form {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
}
