.feedback-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0px auto;

  max-width: 600px;
}

h2 {
  margin: 30px;
  font-size: 1.5em;
}
.feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 0px;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .feedback-buttons {
    flex-direction: row; /* Размещение кнопок по горизонтали */
    gap: 15px; /* Уменьшили расстояние между кнопками */
  }

  .custom-btn {
    width: auto; /* Кнопки не растягиваются на всю ширину */
    max-width: 150px; /* Ограничиваем максимальную ширину кнопок */
    padding: 12px 18px; /* Уменьшаем padding для компактности */
  }
}

@media (max-width: 480px) {
  .custom-btn {
    font-size: 14px; /* Уменьшаем размер текста */
    padding: 10px 16px;
  }
}
/* ============ Модальное окно ============ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Заголовок */
.modal-content h2 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #133670;
}

/* ============ Кнопка закрытия (крестик) ============ */
.modal-close-icon {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 42px;
  font-weight: 700;
  color: #133670;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  padding: 0;
}

.modal-close-icon:hover,
.modal-close-icon:focus,
.modal-close-icon:active {
  background: none;
  color: #133670;
  outline: none;
  box-shadow: none;
}

/* ============ Стили формы с иконками ============ */
.feedback-modern-form .form-group {
  position: relative;
  margin-bottom: 20px;
}

.feedback-modern-form input,
.feedback-modern-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px 12px 42px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 15px;
  transition: border-color 0.3s, background-color 0.3s;
}

.feedback-modern-form input:focus,
.feedback-modern-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: #4d8bf0;
  box-shadow: 0 0 0 2px rgba(77, 139, 240, 0.15);
}

.feedback-modern-form textarea {
  resize: none;
  min-height: 120px;
  max-height: 250px;
  overflow-y: auto;
}

/* Иконки внутри полей */
.input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  pointer-events: none;
}

/* ============ Ошибки валидации ============ */
.error-message {
  color: #d9534f;
  font-size: 0.85em;
  margin-top: 4px;
  display: block;
  text-align: left;
  padding-left: 42px;
}

/* ============ Кнопки ============ */
.submit-btn {
  background: linear-gradient(145deg, #4d8bf0, #133670);
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #133670;
}

.cancel-btn-new {
  background: #ccc;
  color: #333;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  margin-top: 10px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cancel-btn-new:hover {
  background: #bbb;
}
/* Общая иконка по умолчанию */
.input-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: #888;
  pointer-events: none;
}

/* Центровка по вертикали для input */
.feedback-modern-form input + .input-icon {
  top: 50%;
  transform: translateY(-50%);
}

/* Центровка вручную для textarea */
.feedback-modern-form textarea + .input-icon {
  top: 16px;
  transform: none;
}
