/* ===== Модальные формы сайта (подложка, карточка, поля) ===== */

.it_feedback_front_form {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  overflow-y: auto;
}

.it_feedback_front_form .form-content {
  background-color: #fff;
  margin: 5vh auto;
  padding: 30px 34px 26px;
  width: 560px;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  cursor: default;
  overflow-y: auto;
}

.it_feedback_front_form .close {
  color: #999;
  float: right;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  margin: -8px -8px 0 0;
}
.it_feedback_front_form .close:hover,
.it_feedback_front_form .close:focus {
  color: #333;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* Поля — единый стиль с формой инициативы */
.it_feedback_front_form .form-content label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #2b3a55;
  margin: 12px 0 4px;
}

.it_feedback_front_form .form-content input,
.it_feedback_front_form .form-content select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #c9d8ef;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.it_feedback_front_form .form-content textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #c9d8ef;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.it_feedback_front_form .form-content input:focus,
.it_feedback_front_form .form-content select:focus,
.it_feedback_front_form .form-content textarea:focus {
  border-color: #0342a0;
  box-shadow: 0 0 0 3px rgba(3, 66, 160, 0.12);
}

.it_feedback_front_form .form-content h4 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.it_feedback_front_form .form-content .form-submit,
.it_feedback_front_form .form-content .form-actions input,
.it_feedback_front_form .form-content .form-actions button {
  width: 100%;
  color: #fff;
  background: #0342a0;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  margin-top: 16px;
  padding: 12px 0;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.it_feedback_front_form .form-content .form-submit:hover,
.it_feedback_front_form .form-content .form-actions input:hover,
.it_feedback_front_form .form-content .form-actions button:hover {
  background: #0250c9;
}

.it_feedback_front_form .form-content .messages {
  border-radius: 8px;
  margin-top: 18px;
  padding: 12px 16px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .it_feedback_front_form .form-content {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    padding: 24px 20px;
  }
}
