/* ════════════════════════════════════════════════════════════════════
   PATCH 9.3 — Модалка «Рассчитать тираж» (обратный звонок).
   Дизайн: проект Omlet (скриншот). Белая карточка со скруглением, поля
   с рамкой, чёрная кнопка-пилюля, снизу мессенджеры. БЕЗ letter-spacing.
   Скоуп — body.kp-body .kp-cm-*. Рендер — inc/callback-modal.php (wp_footer).
   ════════════════════════════════════════════════════════════════════ */
body.kp-body .kp-cm-scrim {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(10, 10, 10, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
body.kp-body .kp-cm-scrim[hidden] { display: none; }

body.kp-body .kp-cm-card {
  position: relative; width: 100%; max-width: 520px;
  background: #fff; border-radius: 22px; padding: 36px 36px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
body.kp-body .kp-cm-x {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: #F0F0F0; color: #0A0A0A;
  display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
body.kp-body .kp-cm-x:hover { background: #E2E2E2; }

body.kp-body .kp-cm-h {
  margin: 0 0 8px; font-size: 32px; font-weight: 700; line-height: 1.1; color: #0A0A0A;
}
body.kp-body .kp-cm-lead {
  margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: #6B6B6B; max-width: 92%;
}

body.kp-body .kp-cm-field { display: block; margin-bottom: 16px; }
body.kp-body .kp-cm-lbl {
  display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: #0A0A0A;
}
body.kp-body .kp-cm-lbl em { color: var(--yellow, #FECE15); font-style: normal; }
body.kp-body .kp-cm-field input[type="text"],
body.kp-body .kp-cm-field textarea {
  width: 100%; box-sizing: border-box; border: 1.5px solid #E2E2E2; border-radius: 12px;
  padding: 14px 16px; font-size: 16px; font-family: inherit; color: #0A0A0A; background: #fff;
  transition: border-color .15s;
}
body.kp-body .kp-cm-field input::placeholder,
body.kp-body .kp-cm-field textarea::placeholder { color: #9A9A9A; }
body.kp-body .kp-cm-field input:focus,
body.kp-body .kp-cm-field textarea:focus { outline: none; border-color: #0A0A0A; }
body.kp-body .kp-cm-field textarea { resize: vertical; min-height: 84px; }

/* drop-зона «прикрепить макет» */
body.kp-body .kp-cm-drop {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px dashed #CFCFCF; border-radius: 12px; padding: 14px 16px; color: #6B6B6B;
  transition: border-color .15s, background .15s;
}
body.kp-body .kp-cm-drop:hover { border-color: #0A0A0A; background: #FAFAFA; }
body.kp-body .kp-cm-drop svg { flex-shrink: 0; color: #0A0A0A; }
body.kp-body .kp-cm-drop-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
body.kp-body .kp-cm-drop-text b { font-weight: 600; color: #0A0A0A; font-size: 14px; }
body.kp-body .kp-cm-drop-text span { color: #9A9A9A; }
body.kp-body .kp-cm-file { margin-top: 8px; font-size: 13px; color: #0A0A0A; word-break: break-all; }

body.kp-body .kp-cm-agree {
  display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 18px;
  font-size: 13px; line-height: 1.45; color: #6B6B6B; cursor: pointer;
}
body.kp-body .kp-cm-agree input { margin-top: 2px; width: 18px; height: 18px; accent-color: #0A0A0A; flex-shrink: 0; }
body.kp-body .kp-cm-agree a { color: #0A0A0A; text-decoration: underline; }

body.kp-body .kp-cm-submit {
  width: 100%; border: 0; border-radius: 14px; background: #0A0A0A; color: #fff;
  font-size: 16px; font-weight: 600; padding: 17px; cursor: pointer; transition: background .15s;
}
body.kp-body .kp-cm-submit:hover { background: #222; }
body.kp-body .kp-cm-submit:disabled { opacity: .6; cursor: default; }

body.kp-body .kp-cm-status { margin-top: 12px; font-size: 14px; line-height: 1.4; }
body.kp-body .kp-cm-status.is-ok { color: #2E7D32; }
body.kp-body .kp-cm-status.is-err { color: #C62828; }

body.kp-body .kp-cm-msgs { display: flex; gap: 10px; margin-top: 16px; }
body.kp-body .kp-cm-msg {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid #E2E2E2; border-radius: 12px; padding: 11px; font-size: 14px; font-weight: 500;
  color: #0A0A0A; text-decoration: none; transition: border-color .15s, background .15s;
}
body.kp-body .kp-cm-msg:hover { border-color: #0A0A0A; background: #FAFAFA; }
body.kp-body .kp-cm-msg img { width: 20px; height: 20px; }

@media (max-width: 560px) {
  body.kp-body .kp-cm-card { padding: 28px 20px 22px; border-radius: 18px; }
  body.kp-body .kp-cm-h { font-size: 26px; }
  body.kp-body .kp-cm-msg span { display: none; }
}
