/* Дополнения к .mp-form и .mp-modal из styles.css шаблона для кастомных форм (forms.js). */

.mpf-no-scroll {
  overflow: hidden;
}

.mpf-modal__close {
  background: none;
  border: 0;
  padding: 4px 8px;
  color: #9d9fa2;
}
.mpf-modal__close:hover {
  color: #222;
}
.mpf-modal__title {
  margin: 10px 30px 10px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

/* Подписи нужны для экранных дикторов; на экране поле подписано placeholder'ом. */
.mpf__label,
.mpf__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mpf__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mpf__item_no-icon .mp-form__input,
.mpf__item_no-icon .mp-form__textarea {
  padding-left: 27px;
}
.mpf__select {
  appearance: auto;
}
.mpf__choices {
  border: 0;
  margin: 10px 0;
  padding: 0;
}
.mpf__choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  cursor: pointer;
}

.mpf__item_error .mp-form__input,
.mpf__item_error .mp-form__textarea {
  box-shadow: inset 0 0 0 2px #e53935;
}
.mpf__error {
  margin: -6px 0 6px 20px;
  color: #e53935;
  font-size: 13px;
  line-height: 1.3;
}
.mp-form-checkbox + .mpf__error {
  margin: 4px 0 0;
}

.mpf__message {
  margin: 10px 0;
  padding: 10px 16px;
  border-radius: 16px;
  background: #eaf6ec;
  color: #1b5e20;
  font-size: 14px;
}
.mpf__message_error {
  background: #fdecea;
  color: #b71c1c;
}
.mpf__success {
  padding: 30px 10px;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  color: #1b5e20;
}
.mpf__loading {
  padding: 30px 0;
  text-align: center;
  color: #9d9fa2;
}
.mpf .mp-button[disabled],
[data-mpf-bind] .mp-button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Капча невидимая: блок нужен только как контейнер виджета. */
.mpf__captcha:empty {
  display: none;
}

/* Калькулятор: согласие и сообщение под суммой. */
.mp-calculator .mpf__calc-consent {
  margin: 10px 0 0;
}
.mp-calculator .mpf__calc-consent .mp-form-checkbox {
  font-size: 12px;
}
