.ps-lead-modal,
.ps-lead-modal * {
  box-sizing: border-box;
}

.ps-lead-modal {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  padding: 22px;
  overflow-y: auto;
  place-items: center;
  color: #092443;
  background: rgba(3, 22, 47, 0.68);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(8px);
}

.ps-lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.ps-modal-open,
body.ps-modal-open {
  overflow: hidden;
}

.ps-lead-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(360px, 1.22fr);
  width: min(830px, 100%);
  max-height: min(760px, calc(100dvh - 44px));
  overflow: auto;
  border: 1px solid rgba(202, 221, 240, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(1, 22, 49, 0.34);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ps-lead-modal.is-open .ps-lead-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ps-lead-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 34px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(38, 145, 255, 0.42), transparent 30%),
    radial-gradient(circle at 7% 92%, rgba(239, 106, 58, 0.25), transparent 27%),
    linear-gradient(150deg, #073e80, #041f43 75%);
}

.ps-lead-aside::after {
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.ps-lead-brand {
  display: block;
  width: 176px;
  height: auto;
  margin-bottom: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.ps-lead-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 13px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: #b9dcff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ps-lead-aside h2 {
  max-width: 270px;
  margin: 0;
  color: #fff;
  font: 850 clamp(25px, 3vw, 34px)/1.12 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.035em;
}

.ps-lead-aside > p {
  margin: 17px 0 25px;
  color: #bad0e9;
  font-size: 13px;
  line-height: 1.7;
}

.ps-lead-benefits {
  display: grid;
  margin: auto 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.ps-lead-benefits li {
  position: relative;
  margin: 0;
  padding-left: 23px;
  color: #e8f3ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.ps-lead-benefits li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ef6a3a;
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.ps-lead-main {
  position: relative;
  padding: 35px 36px 31px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.ps-lead-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #dce7f3;
  border-radius: 11px;
  color: #294b70;
  background: #fff;
  box-shadow: 0 7px 18px rgba(6, 47, 99, 0.08);
  font: 400 25px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: 160ms ease;
}

.ps-lead-close:hover,
.ps-lead-close:focus-visible {
  color: #fff;
  border-color: #0d68d8;
  background: #0d68d8;
  transform: translateY(-1px);
}

.ps-lead-heading {
  padding-right: 38px;
}

.ps-lead-heading small {
  display: block;
  margin-bottom: 6px;
  color: #0d68d8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ps-lead-heading h3 {
  margin: 0;
  color: #092443;
  font: 850 23px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em;
}

.ps-lead-heading p {
  margin: 8px 0 20px;
  color: #657b94;
  font-size: 12px;
  line-height: 1.55;
}

.ps-lead-form {
  display: grid;
  margin: 0;
  gap: 13px;
}

.ps-lead-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ps-lead-form label {
  display: grid;
  margin: 0;
  gap: 6px;
  color: #34516f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.ps-lead-form input,
.ps-lead-form select {
  width: 100%;
  min-width: 0;
  height: 45px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  color: #173956;
  background: #fff;
  box-shadow: 0 1px 2px rgba(6, 47, 99, 0.025);
  font: 500 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  outline: 0;
  appearance: auto;
}

.ps-lead-form input:focus,
.ps-lead-form select:focus {
  border-color: #4e9df6;
  box-shadow: 0 0 0 3px rgba(20, 122, 243, 0.13);
}

.ps-lead-consent {
  grid-template-columns: 16px 1fr;
  align-items: start;
  color: #667b91 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.ps-lead-form .ps-lead-consent input {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: #0d68d8;
}

.ps-lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #0d68d8;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #147af3, #075bc1);
  box-shadow: 0 12px 26px rgba(13, 104, 216, 0.24);
  font: 850 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: 160ms ease;
}

.ps-lead-submit:hover,
.ps-lead-submit:focus-visible {
  background: linear-gradient(135deg, #075bc1, #064c9e);
  box-shadow: 0 15px 30px rgba(13, 104, 216, 0.32);
  transform: translateY(-1px);
}

.ps-lead-privacy {
  margin: -3px 0 0;
  color: #7d8ea2;
  font-size: 9.5px;
  line-height: 1.45;
  text-align: center;
}

.ps-lead-form .ps-turnstile-slot {
  min-height: 65px;
  margin: 0;
}

.ps-lead-form .ps-form-message {
  margin: 0;
}

@media (max-width: 700px) {
  .ps-lead-modal {
    align-items: end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .ps-lead-dialog {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }

  .ps-lead-aside {
    min-height: 0;
    padding: 23px 24px 21px;
  }

  .ps-lead-brand,
  .ps-lead-benefits {
    display: none;
  }

  .ps-lead-aside h2 {
    max-width: calc(100% - 38px);
    font-size: 24px;
  }

  .ps-lead-aside > p {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.55;
  }

  .ps-lead-main {
    padding: 24px;
  }

  .ps-lead-close {
    top: 14px;
    right: 14px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  .ps-lead-heading {
    padding-right: 0;
  }

  .ps-lead-heading h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .ps-lead-modal {
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .ps-lead-dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 19px;
  }

  .ps-lead-aside {
    padding: 19px 20px 17px;
  }

  .ps-lead-kicker {
    margin-bottom: 9px;
  }

  .ps-lead-aside h2 {
    font-size: 21px;
  }

  .ps-lead-aside > p {
    display: none;
  }

  .ps-lead-main {
    padding: 20px;
  }

  .ps-lead-heading p {
    margin-bottom: 14px;
  }

  .ps-lead-field-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ps-lead-form {
    gap: 10px;
  }

  .ps-lead-form input,
  .ps-lead-form select {
    height: 43px;
  }

  .ps-lead-form .ps-turnstile-slot {
    min-height: 62px;
    overflow: hidden;
    transform-origin: left top;
  }
}

@media (max-width: 360px) {
  .ps-lead-form .ps-turnstile-slot {
    width: 304px;
    margin-bottom: -5px;
    transform: scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-lead-modal,
  .ps-lead-dialog,
  .ps-lead-close,
  .ps-lead-submit {
    transition: none;
  }
}
