/* ============================================================
   GM FORMULA — поп-ап с формой заявки
   ============================================================ */

.gmf-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.gmf-modal.is-open { display: block; }
.gmf-modal__backdrop { position: absolute; inset: 0; background: rgba(9,28,51,.55); backdrop-filter: blur(2px); }
.gmf-modal__dialog {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 460px;
  margin: 6vh auto 0;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 34px 32px 30px;
  box-shadow: rgba(9,28,51,.25) 0 20px 60px 0;
  font-family: "Exo 2", Arial, sans-serif;
  color: #091C33;
  box-sizing: border-box;
  animation: gmfModalIn .18s ease-out;
}
@keyframes gmfModalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gmf-modal__dialog { animation: none; } }

.gmf-modal__dialog *, .gmf-modal__dialog *::before, .gmf-modal__dialog *::after { box-sizing: border-box; }

.gmf-modal__close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: none; background: none; font-size: 28px; line-height: 1; color: rgba(9,28,51,.4); cursor: pointer; border-radius: 8px; }
.gmf-modal__close:hover { color: #091C33; background: #F6F6F9; }

.gmf-modal__title { margin: 0; font: 700 24px/30px "Exo 2", sans-serif; }
.gmf-modal__hint { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: rgba(9,28,51,.55); }

/* Форма */
.gmf-lead-form { margin-top: 20px; }
.gmf-field { margin-bottom: 14px; }
.gmf-field label { display: block; font-size: 13px; font-weight: 600; color: rgba(9,28,51,.6); }
.gmf-field input, .gmf-field textarea {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid rgba(9,28,51,.15); background: #fff; border-radius: 8px;
  padding: 12px 14px; font: 400 16px "Exo 2", sans-serif; color: #091C33; resize: vertical;
  min-height: 48px;
}
.gmf-field input:focus, .gmf-field textarea:focus { outline: none; border-color: #FF6B00; }

/* honeypot — прячем надёжно и от глаз, и от скринридеров */
.gmf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gmf-consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 2px; font-size: 12px; line-height: 18px; color: rgba(9,28,51,.55); }
.gmf-consent input { margin-top: 3px; flex-shrink: 0; }
.gmf-consent a { color: #144582; text-decoration: underline; }

.gmf-lead-form__submit {
  margin-top: 18px; width: 100%; height: 48px; border: none; border-radius: 8px;
  font: 700 15px "Exo 2", sans-serif; color: #fff;
  background: linear-gradient(97deg, #FF6B00 0%, #FF951A 55.19%, #FF6B00 100%);
  cursor: pointer;
}
.gmf-lead-form__submit:hover { opacity: .9; }
.gmf-lead-form__submit:disabled { opacity: .6; cursor: default; }

.gmf-lead-form__status { margin-top: 14px; font-size: 14px; line-height: 20px; text-align: center; min-height: 1px; }
.gmf-lead-form__status.is-error { color: #C0392B; }
.gmf-lead-form__status.is-success { color: #1E9E5A; }

@media (max-width: 480px) {
  .gmf-modal__dialog { margin-top: 0; border-radius: 0; min-height: 100%; max-height: 100%; padding: 26px 20px; }
  .gmf-modal__close { width: 44px; height: 44px; top: 8px; right: 8px; }
  .gmf-lead-form__submit { height: 52px; }
}
