.onevl-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.onevl-lead-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.onevl-lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 26, 0.48);
  backdrop-filter: blur(10px);
}
.onevl-lead-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #eefcff);
  color: #172231;
  box-shadow: 0 32px 90px rgba(5, 34, 48, 0.28);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.52s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.52s ease;
}
.onevl-lead-modal.is-visible .onevl-lead-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.onevl-lead-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 32, 42, 0.08);
  color: #172231;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.onevl-lead-mark img {
  display: block;
  width: 132px;
  height: auto;
  margin-bottom: 18px;
}
.onevl-lead-dialog h2 {
  margin: 0 0 10px;
  color: #172231;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}
.onevl-lead-dialog p {
  margin: 0 0 18px;
  color: #607282;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.onevl-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.onevl-lead-actions a {
  padding: 11px 14px;
  border-radius: 999px;
  background: #182331;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.onevl-lead-form {
  display: grid;
  gap: 10px;
}
.onevl-lead-form input,
.onevl-lead-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(23, 54, 68, 0.14);
  border-radius: 15px;
  padding: 13px 14px;
  background: #fff;
  color: #172231;
  font:
    16px/1.35 Arial,
    sans-serif;
}
.onevl-lead-captcha {
  display: grid;
  grid-template-columns: auto 1fr 44px;
  align-items: center;
  gap: 10px;
}
.onevl-lead-captcha span {
  color: #1aaec7;
  font:
    900 16px/1 Arial,
    sans-serif;
}
.onevl-lead-captcha button {
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: #e8faff;
  color: #1486a3;
  font-size: 20px;
  cursor: pointer;
}
.onevl-lead-submit {
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #2fc9dc, #1c82bd);
  color: #fff;
  font:
    900 14px/1.2 Arial,
    sans-serif;
  cursor: pointer;
}
.onevl-lead-honey {
  display: none !important;
}
.onevl-lead-form small {
  min-height: 18px;
  color: #607282;
  font:
    700 12px/1.4 Arial,
    sans-serif;
}
.onevl-lead-success {
  display: none;
  padding: 8px 0 4px;
  text-align: center;
  animation: onevlSuccessIn 0.45s ease both;
}
.onevl-lead-modal.is-sent .onevl-lead-form,
.onevl-lead-modal.is-sent .onevl-lead-actions,
.onevl-lead-modal.is-sent .onevl-lead-dialog > p {
  display: none;
}
.onevl-lead-modal.is-sent .onevl-lead-success {
  display: grid;
  gap: 14px;
  justify-items: center;
}
.onevl-success-badge {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(33, 183, 207, 0.22);
  border-radius: 999px;
  background: rgba(33, 183, 207, 0.12);
  color: #168aa2;
  font:
    900 12px/1 Arial,
    sans-serif;
  letter-spacing: 0.08em;
}
.onevl-lead-success h2 {
  margin: 0;
  color: #172231;
  font-size: 34px;
  line-height: 1;
}
.onevl-lead-success p {
  max-width: 360px;
  margin: 0 auto 4px;
  color: #607282;
}
@keyframes onevlSuccessIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 560px) {
  .onevl-lead-dialog {
    padding: 22px;
    border-radius: 24px;
  }
  .onevl-lead-dialog h2 {
    font-size: 24px;
  }
  .onevl-lead-actions a {
    flex: 1;
    text-align: center;
  }
  .onevl-lead-captcha {
    grid-template-columns: 1fr 1fr 44px;
  }
}
