/* ═══════════════════════════════════════════════════════
   SEOCOM Lead Form — единые стили (inline + popup)
   ═══════════════════════════════════════════════════════ */

/* ── Общие переменные ─────────────────────────────────── */
:root {
  --sc-blue:    #155eef;
  --sc-dark:    #152033;
  --sc-muted:   #5d697a;
  --sc-border:  #cbd4e1;
  --sc-bg:      #f4f7fb;
  --sc-white:   #fff;
  --sc-ok:      #067647;
  --sc-err:     #b42318;
  --sc-radius:  14px;
  --sc-shadow:  0 12px 36px rgba(18,36,64,.09);
}

/* ── Inline-секция ────────────────────────────────────── */
.seocom-lead {
  padding: 68px 20px;
  background: var(--sc-bg);
  color: var(--sc-dark);
  font-family: Arial, sans-serif;
  scroll-margin-top: 100px;
}
.seocom-lead * { box-sizing: border-box; }

.seocom-lead__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

/* ── Текстовый блок ───────────────────────────────────── */
.seocom-lead__eyebrow {
  color: var(--sc-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.seocom-lead h2,
.seocom-lead__heading {
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: inherit;
}
.seocom-lead p { color: var(--sc-muted); line-height: 1.6; }

/* ── Карточка формы ───────────────────────────────────── */
.seocom-lead__form {
  background: var(--sc-white);
  padding: 28px;
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
}
.seocom-lead__field {
  display: block;
  margin: 0 0 16px;
  font-weight: 700;
}
.seocom-lead__field input,
.seocom-lead__field textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--sc-border);
  border-radius: 7px;
  font: inherit;
  color: var(--sc-dark);
}
.seocom-lead__field input:focus,
.seocom-lead__field textarea:focus {
  outline: 3px solid rgba(21,94,239,.18);
  border-color: var(--sc-blue);
}
.seocom-lead__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sc-muted);
  margin: 12px 0 18px;
}
.seocom-lead__consent input { margin-top: 3px; flex: 0 0 auto; }
.seocom-lead__consent a { color: var(--sc-blue); text-decoration: underline !important; }

.seocom-lead__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 7px;
  background: var(--sc-blue);
  color: var(--sc-white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
}
.seocom-lead__submit:hover  { background: #1250d4; }
.seocom-lead__submit:disabled { opacity: .6; cursor: wait; }

.seocom-lead__status {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 700;
}
.seocom-lead__status[data-error="1"] { color: var(--sc-err); }
.seocom-lead__status[data-ok="1"]    { color: var(--sc-ok); }

/* honeypot */
.seocom-lead__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* ── Popup-оверлей ────────────────────────────────────── */
#seocom-lead-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#seocom-lead-popup.is-open { display: flex; }

.seocom-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,40,.55);
  backdrop-filter: blur(3px);
}

.seocom-popup__window {
  position: relative;
  z-index: 1;
  background: var(--sc-bg);
  border-radius: var(--sc-radius);
  box-shadow: 0 24px 60px rgba(10,20,40,.22);
  width: min(92vw, 920px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
  animation: sc-popup-in .22s ease;
}
@keyframes sc-popup-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.seocom-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sc-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.seocom-popup__close:hover { background: #e8edf5; color: var(--sc-dark); }

/* popup: форма без внешних отступов */
.seocom-popup__body.seocom-lead__inner { max-width: 100%; }
.seocom-popup__body .seocom-lead__form { box-shadow: none; padding: 0; background: transparent; }

/* скролл заблокирован под popup */
body.seocom-popup-open { overflow: hidden; }

/* ── Адаптив ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .seocom-lead { padding: 42px 16px; }
  .seocom-lead__inner { grid-template-columns: 1fr; gap: 16px; }
  .seocom-lead__form  { padding: 20px; }
  .seocom-popup__window { padding: 32px 20px 24px; }
}
