/* Форма «Подключиться к 1С:Фреш» (#fresh). Отдельный файл, чтобы не трогать style.css
   и не зависеть от правок через Textolite. Классы fi-* — только для этой формы;
   поля и кнопка используют стили сайта (form__text-field, checkbox, btn). */

.section.fresh-invite { background-color: #f4f8f9; }
/* Прямой заход по ссылке vndx.ru/#fresh: заголовок не прячется под фиксированной шапкой.
   Клики по меню Webflow прокручивает сам, с учётом шапки — им это свойство не мешает */
#fresh { scroll-margin-top: 130px; }

/* Вторая кнопка в блоке «Продукты 1С» */
.btn.fi-cta { margin-left: 15px; }

/* Абзац «Если всё понравилось…» под заголовком */
.fi-lead { width: 655px; max-width: 100%; margin: -25px auto 30px; font-size: 18px; line-height: 1.4em; }

.fi-wrapper { position: relative; width: 655px; max-width: 100%; margin: 0 auto; }

.fi-form {
  display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
  -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between;
  text-align: left;
}

/* Две колонки, как у формы контактов: поле 47% ширины */
.fi-field { width: 47%; margin-bottom: 12px; }
.fi-field .form__text-field { display: block; width: 100%; margin-bottom: 4px; }
.fi-field.fi-has-error .form__text-field { border-color: #d24b3b; }

.fi-error { min-height: 18px; color: #d24b3b; font-size: 14px; line-height: 18px; }

.fi-consent { -webkit-flex-basis: 100%; -ms-flex-preferred-size: 100%; flex-basis: 100%; margin-bottom: 25px; }
.fi-consent .fi-error { padding-left: 25px; }

/* Чекбокс: родной checkbox.png почти белый (рассчитан на тёмный блок контактов) и на светлом
   фоне не виден — рисуем рамку сами; отмеченное состояние — родная checkbox_active.png */
.fi-consent .checkbox__label { position: relative; background-image: none; }
.fi-consent .checkbox__label:before {
  content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px;
  border: 1px solid #8f9aa3; border-radius: 3px; background-color: #fff;
}
.fi-consent .checkbox:checked + .checkbox__label { background-image: none; }
.fi-consent .checkbox:checked + .checkbox__label:before {
  border-color: #0492d4; background: #fff url("../images/checkbox_active.png") center / 17px 17px no-repeat;
}
.fi-consent .checkbox:focus + .checkbox__label:before { box-shadow: 0 0 0 2px rgba(4, 146, 212, .45); }
.fi-consent.fi-has-error .checkbox__label:before { border-color: #d24b3b; }

.fi-submit { border-top: 0; border-right: 0; border-left: 0; font-family: inherit; line-height: inherit; }
.fi-submit[disabled] { opacity: .65; cursor: progress; }

.fi-result { display: none; margin-top: 20px; padding: 20px 25px; border-radius: 5px; font-size: 18px; line-height: 1.35em; text-align: center; }
.fi-result.fi-ok   { display: block; background-color: #ffffff; color: #0074aa; border: 1px solid #0492d4; }
.fi-result.fi-warn { display: block; background-color: #fff8e1; color: #6d4c00; border: 1px solid #f0c36d; }
.fi-result.fi-bad  { display: block; background-color: #d24b3b; color: #ffffff; }

/* Ловушка для ботов: за экраном, а не display:none — часть ботов пропускает скрытые поля */
.fi-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Меню: с пунктом «Бесплатный доступ 1C:Fresh» 7 пунктов не помещаются в одну строку
   при стандартных 20px отступа Webflow — ужимаем отступы на десктопе */
@media (min-width: 992px) {
  .navbar__link { padding-left: 9px; padding-right: 9px; font-size: 16px; }
}
@media (min-width: 992px) and (max-width: 1239px) {
  .navbar__link { padding-left: 5px; padding-right: 5px; font-size: 14px; }
}

@media (max-width: 767px) {
  .fi-lead { margin-top: 0; font-size: 16px; }
  #fresh { scroll-margin-top: 60px; }
  .fi-field { width: 100%; }
  .btn.fi-cta { margin-left: 0; margin-top: 15px; }
}
