.lead-popup {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #eef3ff;
  overflow: auto;
}

.lead-popup::backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(106, 211, 255, 0.18), transparent 34%),
    rgba(4, 7, 18, 0.76);
  backdrop-filter: blur(12px);
}

.lead-popup__surface {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(19, 26, 48, 0.98), rgba(8, 12, 26, 0.98)),
    #0d1224;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.lead-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  cursor: pointer;
}

.lead-popup__close:hover,
.lead-popup__close:focus-visible {
  border-color: rgba(106, 211, 255, 0.5);
  background: rgba(106, 211, 255, 0.12);
  outline: none;
}

.lead-popup__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lead-popup__eyebrow {
  margin: 0 52px 12px 0;
  color: #6ad3ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead-popup h2 {
  max-width: 430px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead-popup__description {
  margin: 16px 0 0;
  color: rgba(238, 243, 255, 0.72);
  font-size: 1rem;
  line-height: 1.55;
}

.lead-popup__form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.lead-popup__form label {
  display: grid;
  gap: 7px;
}

.lead-popup__form span {
  color: rgba(238, 243, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-popup__form input,
.lead-popup__form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #eef3ff;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.lead-popup__form textarea {
  min-height: 108px;
  padding: 13px 14px;
  resize: vertical;
}

.lead-popup__form input:focus,
.lead-popup__form textarea:focus {
  border-color: rgba(106, 211, 255, 0.72);
  background: rgba(106, 211, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(106, 211, 255, 0.1);
}

.lead-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.lead-popup__actions button,
.lead-popup__actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.lead-popup__actions button {
  border: 0;
  background: linear-gradient(135deg, #ff2b55, #ff8a3d);
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 43, 85, 0.24);
}

.lead-popup__actions a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #eef3ff;
}

.lead-popup__actions button:hover,
.lead-popup__actions button:focus-visible,
.lead-popup__actions a:hover,
.lead-popup__actions a:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.lead-popup__status {
  min-height: 20px;
  margin: 0;
  color: rgba(238, 243, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .lead-popup {
    width: min(100vw - 18px, 560px);
    max-height: calc(100vh - 18px);
  }

  .lead-popup__surface {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .lead-popup h2 {
    font-size: 2rem;
  }

  .lead-popup__actions {
    display: grid;
  }
}
