html.lead-dialog-open { overflow: hidden; }
.lead-dialog {
  --lead-blue: #3d88f7;
  box-sizing: border-box;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(90vh, 780px);
  max-height: min(90dvh, 780px);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  border: 1px solid #e3edfc;
  border-radius: 22px;
  background: #fff;
  color: #263a54;
  font-family: inherit;
  box-shadow: 0 22px 70px rgb(28 74 140 / 20%);
}
.lead-dialog:not([open]), .lead-dialog [hidden] { display: none !important; }
.lead-dialog::backdrop { background: rgb(20 48 85 / 36%); backdrop-filter: blur(3px); }
.lead-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eaf2ff;
  color: #5d7ba7;
  cursor: pointer;
}
.lead-dialog__close:hover { background: #dceaff; color: var(--lead-blue); }
.lead-dialog__header { padding: 26px 32px 22px; background: #f3f8ff; border-bottom: 1px solid #e9f1fc; }
.lead-dialog__brand { font-size: 12px; font-weight: 600; color: var(--lead-blue); }
.lead-dialog__header h1 { margin: 8px 0; color: var(--lead-blue); font-size: 25px; line-height: 1.4; font-weight: 600; }
.lead-dialog__header p { margin: 0; color: #708299; font-size: 13px; line-height: 1.7; }
.lead-dialog__header .lead-dialog__context { margin-top: 10px; color: #3f6caa; overflow-wrap: anywhere; }
.lead-form { padding: 22px 32px 28px; }
.lead-form__hint { margin: 0 0 17px; color: #8b99ad; font-size: 12px; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.lead-field { min-width: 0; }
.lead-field label { display: block; margin-bottom: 8px; color: #38516f; font-size: 13px; line-height: 1.5; }
.lead-field label span { color: #97a3b4; font-size: 12px; }
.lead-field input, .lead-field textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #e1e7ef;
  border-radius: 24px;
  background: #fff;
  color: #263a54;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lead-field input::placeholder, .lead-field textarea::placeholder { color: #a1adbc; }
.lead-field input:hover, .lead-field textarea:hover { border-color: #afcef8; }
.lead-field input:focus, .lead-field textarea:focus { border-color: var(--lead-blue); box-shadow: 0 0 0 3px rgb(61 136 247 / 10%); }
.lead-field [aria-invalid="true"] { border-color: #e17878; }
.lead-field--message { margin-top: 20px; }
.lead-field textarea { min-height: 88px; max-height: 200px; border-radius: 15px; resize: vertical; }
.lead-field__error { margin: 5px 0 0; font-size: 12px; color: #c45050; line-height: 1.5; }
.lead-form__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead-form__status { margin: 16px 0 0; padding: 11px 14px; border-radius: 10px; background: #f4f8ff; color: #456b9e; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.lead-form__status[data-state="error"] { background: #fff5f4; color: #ba5454; }
.lead-form__status[data-state="success"] { background: #edf7ff; color: #2876d9; }
.lead-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin: 22px 0 0;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--lead-blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background .15s;
}
.lead-form__submit:hover:not(:disabled) { background: #2b70dc; }
.lead-form__submit:disabled { cursor: default; opacity: .75; }
.lead-form__submit:focus-visible, .lead-dialog__close:focus-visible { outline: 3px solid #b4d2ff; outline-offset: 3px; }
.lead-form__spinner { box-sizing: border-box; width: 17px; height: 17px; border: 2px solid rgb(255 255 255 / 40%); border-top-color: #fff; border-radius: 50%; animation: lead-spin .8s linear infinite; }
@keyframes lead-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .lead-dialog { width: calc(100vw - 24px); border-radius: 18px; }
  .lead-dialog__header { padding: 24px 22px 18px; }
  .lead-form { padding: 20px 22px 24px; }
  .lead-form__grid { grid-template-columns: 1fr; gap: 14px; }
  .lead-field input, .lead-field textarea { font-size: 16px; padding: 11px 15px; }
  .lead-dialog__header h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-field input, .lead-field textarea, .lead-form__submit { transition: none; }
  .lead-form__spinner { animation: none; }
}
