/* lead_form.css - модальное окно заявки (публичные страницы): /prices, лендинг.
   Страницы подключают этот файл последним в <head>, чтобы стили окна не перебивались. */
[data-lead-open] { font-family: inherit; }
.lead-backdrop { font-family: "Segoe UI", "Inter", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
.lead-backdrop {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  background: rgba(15, 23, 42, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.lead-backdrop[hidden] { display: none; }
body.lead-open { overflow: hidden; }

.lead-modal {
  position: relative; width: 100%; max-width: 560px; margin: auto;
  background: #fff; color: #0f172a; border-radius: 18px;
  padding: 30px 28px 26px; box-shadow: 0 26px 70px rgba(15, 23, 42, .35);
  font-family: "Segoe UI", "Inter", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: left; line-height: 1.55;
}
.lead-close {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
  border: none; background: transparent; color: #94a3b8; font-size: 26px; line-height: 1;
  cursor: pointer; border-radius: 9px; transition: background .15s, color .15s;
}
.lead-close:hover { background: #f1f5f9; color: #0f172a; }

.lead-modal h3 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.lead-sub { color: #64748b; font-size: 14px; margin: 6px 0 18px; }
.lead-fld { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 12px; }
.lead-fld input, .lead-fld textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f172a;
  font: inherit; font-size: 14.5px; font-weight: 400; outline: none; transition: border-color .15s, box-shadow .15s;
}
.lead-fld input:focus, .lead-fld textarea:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.lead-fld textarea { resize: vertical; min-height: 96px; }
.lead-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lead-row .lead-fld { flex: 1 1 200px; }
.lead-req { color: #e11d48; font-weight: 700; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-note { color: #64748b; font-size: 12.5px; margin: 2px 0 14px; }
.lead-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lead-send {
  padding: 12px 24px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; transition: transform .12s, opacity .15s;
}
.lead-send:hover { transform: translateY(-1px); }
.lead-send:disabled { opacity: .6; cursor: default; transform: none; }
.lead-status { font-size: 13px; color: #64748b; }
.lead-status.err { color: #e11d48; }
.lead-src { margin-top: 12px; color: #94a3b8; font-size: 12px; }
.lead-done { text-align: center; padding: 8px 0 4px; }
.lead-done-ico {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 150, 105, .12); color: #059669; font-size: 28px; font-weight: 700;
}
.lead-done p { color: #64748b; font-size: 14.5px; margin: 8px 0 20px; }

/* Кнопка-ссылка «оставить заявку» внутри текста и футера */
.lead-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.lead-link:hover { opacity: .82; }

@media (max-width: 640px) {
  .lead-modal { padding: 24px 18px 20px; border-radius: 14px; }
  .lead-modal h3 { font-size: 19px; }
  .lead-send { width: 100%; }
}
