.jd-lead {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(8, 18, 40, 0.55);
  -webkit-overflow-scrolling: touch;
}

.jd-lead[hidden] {
  display: none !important;
}

body.jd-lead-open {
  overflow: hidden;
}

.jd-lead__dialog {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(380px, 1.18fr);
  width: min(880px, 100%);
  max-height: calc(100vh - 40px);
  margin: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 24, 56, 0.28);
  color: #17213b;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

.jd-lead__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 36px 32px;
  background: linear-gradient(160deg, #0a1c42 0%, #163a86 58%, #1f4da2 100%);
  color: #fff;
  overflow: hidden;
}

.jd-lead__aside:before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.04);
}

.jd-lead__eyebrow,
.jd-lead__aside h2,
.jd-lead__intro,
.jd-lead__points,
.jd-lead__contact {
  position: relative;
  z-index: 1;
}

.jd-lead__eyebrow {
  margin: 0 0 12px;
  color: #8edfe6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jd-lead__aside h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.jd-lead__intro {
  margin: 0 0 22px;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.jd-lead__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jd-lead__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.45;
}

.jd-lead__points i {
  display: flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(142, 223, 230, 0.16);
  color: #8edfe6;
  font-size: 10px;
}

.jd-lead__contact {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.jd-lead__contact i {
  margin-right: 6px;
}

.jd-lead__panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.jd-lead__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid #e4eaf3;
  border-radius: 50%;
  background: #fff;
  color: #17213b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.jd-lead__close:hover {
  background: #f4f7fc;
}

.jd-lead__form {
  padding: 28px 28px 22px;
}

.jd-lead__form-title {
  margin: 0 28px 14px 0;
  color: #17213b;
  font-size: 16px;
  font-weight: 700;
}

.jd-lead__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jd-lead__field {
  margin-bottom: 10px;
}

.jd-lead__field label {
  display: block;
  margin-bottom: 5px;
  color: #3d4b66;
  font-size: 12px;
  font-weight: 600;
}

.jd-lead__control {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fbfcfe;
  color: #17213b;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.jd-lead__control:focus {
  outline: none;
  border-color: #3156d3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 86, 211, 0.14);
}

textarea.jd-lead__control {
  min-height: 64px;
  resize: vertical;
}

.jd-lead__error {
  display: none;
  margin-top: 4px;
  color: #c53645;
  font-size: 12px;
}

.jd-lead__form.is-invalid .jd-lead__control:invalid {
  border-color: #e3a0a8;
  background: #fff;
}

.jd-lead__form.is-invalid .jd-lead__control:invalid + .jd-lead__error {
  display: block;
}

.jd-lead__captcha {
  min-height: 78px;
  margin: 4px 0 12px;
  overflow: hidden;
}

.jd-lead__alert {
  margin: 0 0 10px;
  color: #c53645;
  font-size: 13px;
}

.jd-lead__honeypot {
  position: absolute;
  left: -9999px;
}

.jd-lead__submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: #3156d3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.jd-lead__submit:hover {
  background: #0b1739;
}

.jd-lead__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 820px) {
  .jd-lead {
    align-items: flex-start;
    padding: 12px;
  }

  .jd-lead__dialog {
    grid-template-columns: 1fr;
    width: min(480px, 100%);
  }

  .jd-lead__aside {
    padding: 22px 20px 18px;
  }

  .jd-lead__aside h2 {
    font-size: 24px;
  }

  .jd-lead__points,
  .jd-lead__contact {
    display: none;
  }

  .jd-lead__intro {
    margin-bottom: 0;
  }

  .jd-lead__form {
    padding: 20px 18px 16px;
  }
}

@media (max-width: 420px) {
  .jd-lead__row {
    grid-template-columns: 1fr;
  }

  .jd-lead__captcha {
    transform: scale(0.85);
    transform-origin: 0 0;
    height: 66px;
  }
}
