.preorder-form {
  /* padding: 36px 40px 40px; */
}

.preorder-form__title {
  font-size: 1.375em;
  font-weight: 700;
  color: #424242;
  margin-bottom: 28px;
}

.preorder-form__group {
  margin-bottom: 1rem;
}

.preorder-form__group label {
  display: block;
  font-size: 14px;
  color: #424242;
  margin-bottom: 0.5rem;
}

.preorder-form__group label span {
  color: #e53935;
}

.preorder-form__input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #f8f8f8;
  color: #222;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color .2s;
}

.preorder-form__input:focus {
  border-color: var(--main-color-light);
  outline: none;
}

.preorder-form__input--error {
  border-color: #e53935 !important;
  background: #fff8f8;
}

.preorder-form__input--error::placeholder {
  color: #e53935;
}

.preorder-form__agree {
  position: relative;
  margin-bottom: 25px;
}

.preorder-form__agree-checkbox {
  display: none;
}

.preorder-form__agree-label {
  position: relative;
  display: block;

  padding-left: 26px;

  font-size: 14px;
  line-height: 1.5;
  color: #666;

  cursor: pointer;
}

.preorder-form__agree-label:before {
  content: '';

  position: absolute;
  top: 1px;
  left: 0;

  display: block;

  width: 16px;
  height: 16px;

  background-color: #e7e7e7;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;

  border-radius: 4px;

  cursor: pointer;
  box-sizing: border-box;
}

.preorder-form__agree-checkbox:checked
+ .preorder-form__agree-label:before {
    background-image: url('/local/templates/magnet_s1/img/icons/check.svg');
    background-color: var(--main-color);
}

.preorder-form__agree--error .preorder-form__agree-label {
  color: #e53935;
}

.preorder-form__agree--error .preorder-form__agree-label:before {
  border: 1px solid #e53935;
}

.preorder-form__agree-label a {
  color: var(--main-color);
  text-decoration: none;
}

.preorder-form__agree-label a:hover {
  text-decoration: underline;
}

.preorder-form__actions {
  margin-top: 2px;
}

.preorder-form__submit {
  min-width: 115px;
  height: 42px;
  padding: 0 25px;
  border: 0;
  border-radius: 21px;
  background: var(--main-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.preorder-form__submit:hover {
  background: var(--main-color-light);
}

/* ========================= */
/* Окно результата */
/* ========================= */

.preorder-result {
  /* padding: 25px 35px 30px; */
}

.preorder-result__title {
  font-size: 18px;
  font-weight: 700;
  color: #424242;
  margin-bottom: 20px;
}

.preorder-result__text {
  font-size: 14px;
  line-height: 1.6;
  color: #424242;
}

/* ========================= */
/* Popup Bitrix */
/* ========================= */

.popup-window {
  border-top: 4px solid var(--main-color);
}

.popup-window-titlebar {
  padding-top: 5px;
}

.popup-window-close-icon {
  opacity: .7;
}

.popup-window-close-icon:hover {
  opacity: 1;
}