/* ============================================================
   Лид-форма «Заполните форму» (модалка, открывается по [data-form])
   ============================================================ */
.lf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 11, 20, .82);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lf-overlay.is-open { opacity: 1; visibility: visible; }

.lf {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 38px 34px 30px;
  box-shadow: 0 40px 90px rgba(11, 16, 32, .4);
  transform: translateY(16px) scale(.98);
  transition: transform .25s;
  font-family: var(--font-normal, "Inter", system-ui, sans-serif);
}
.lf-overlay.is-open .lf { transform: none; }

.lf__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border: 0; border-radius: 10px;
  background: #f3f6f9;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1B1B1C;
  transition: background .15s;
}
.lf__close:hover { background: #e7edf3; }

/* Правило проекта: заголовок модалки 28px, подзаголовок 17px */
.lf__title {
  font-family: var(--font-wide, sans-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #1B1B1C;
  margin: 0 0 8px;
}
.lf__sub { font-size: 17px; line-height: 1.5; color: #6a7178; margin: 0 0 24px; }

.lf__form { display: grid; gap: 12px; }
.lf__field input,
.lf__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1.5px solid #E2E9EE;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: #1B1B1C;
}
.lf__field input { height: 52px; }
.lf__field textarea { padding: 14px 16px; min-height: 92px; resize: vertical; line-height: 1.5; }
.lf__field input:focus,
.lf__field textarea:focus { outline: none; border-color: #0658AF; }
.lf__field.is-error input,
.lf__field.is-error textarea { border-color: #e6273e; }

.lf__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #6a7178;
  cursor: pointer;
  margin-top: 2px;
}
.lf__check input { position: absolute; opacity: 0; pointer-events: none; }
.lf__box {
  flex: none;
  box-sizing: border-box;
  width: 16px; height: 16px;
  background: #F3F6F9;
  border: 1.5px solid #c4ccd4;
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s, border-color .15s;
}
.lf__box svg { width: 9px; height: 9px; opacity: 0; transform: scale(.6); transition: .15s; }
.lf__check input:checked + .lf__box { background: #FF662D; border-color: #FF662D; }
.lf__check input:checked + .lf__box svg { opacity: 1; transform: scale(1); }
.lf__check.is-error .lf__box { border-color: #e6273e; }
.lf__check a {
  color: #0658AF;
  text-decoration: underline;
  text-decoration-color: rgba(6, 88, 175, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.lf__check a:hover { color: #FF662D; text-decoration-color: #FF662D; }

.lf__submit {
  height: 56px;
  margin-top: 6px;
  background: #FF662D;
  border: 0;
  border-radius: 11px;
  font-family: var(--font-wide, sans-serif);
  font-size: 17px;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
}
.lf__submit:hover { background: #e85620; }
.lf__submit:active { transform: translateY(1px); }
.lf__submit:disabled { opacity: .45; cursor: not-allowed; }

/* успешный экран */
.lf__done { text-align: center; padding: 12px 4px; }
.lf__done-ic {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(70, 210, 127, .14);
  display: flex; align-items: center; justify-content: center;
  color: #2bb673;
}
.lf__done h3 { font-family: var(--font-wide, sans-serif); font-weight: 400; font-size: 24px; color: #1B1B1C; margin: 0 0 10px; }
.lf__done p { font-size: 15px; line-height: 1.55; color: #5b6167; margin: 0; }
