/* ====================================================================
   dab-stroi.ru — формы обратной связи (Этап 21)
   Стили для полей: комментарий, теги
   Подключён в footer (chunk ID=11)
   Версия: v=21 — 2026-08-04
   ==================================================================== */

/* ===== Контейнер тегов в формах ===== */
.form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px 0;
}
.form-tags-title {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}
.form-tags label {
  display: inline-block;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.form-tags input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.form-tags label span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #3d51ad;
  border-radius: 18px;
  background: #fff;
  color: #3d51ad;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.form-tags label:hover span {
  background: #eef1fb;
}
.form-tags input[type="radio"]:checked + span {
  background: #3d51ad;
  color: #fff;
  box-shadow: 0 2px 6px rgba(61, 81, 173, 0.3);
}
.form-tags input[type="radio"]:focus + span {
  outline: 2px solid #3d51ad;
  outline-offset: 2px;
}

/* ===== Поле комментария ===== */
.form-comment {
  margin: 12px 0;
}
.form-comment label {
  display: block;
  font-size: 13px;
  color: #555;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-comment textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-comment textarea:focus {
  border-color: #3d51ad;
  box-shadow: 0 0 0 3px rgba(61, 81, 173, 0.15);
  outline: none;
}
.form-comment textarea::placeholder {
  color: #999;
  font-style: italic;
}

/* ===== Симметричная форма в шапке (form.contact_form) ===== */
.form-header-symmetric .form-group {
  margin-left: 0;
  margin-right: 0;
}
.form-header-symmetric .col-sm-12.control-label {
  text-align: left;
  margin-bottom: 6px;
}
.form-header-symmetric .agreement {
  margin-top: 14px;
}

/* ===== Общие улучшения для всех форм (где уже есть .contact__panel-form) ===== */
.contact__panel-form .form-comment textarea {
  background: #fafafa;
}
.contact__panel-form .form-tags {
  margin-top: 14px;
}

/* Адаптив для маленьких экранов */
@media (max-width: 480px) {
  .form-tags label span {
    padding: 6px 10px;
    font-size: 12px;
  }
  .form-comment textarea {
    min-height: 60px;
  }
}
