/* feedback.css — Страница обратной связи (BEM) */

/* === card + mb-5 + authbg (header-карточка с фоном) === */
.feedback__header {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: hsla(240, 7%, 12%, 0.92);
  background-image: url(https://unboxhow.com/wp-content/uploads/2019/07/Dashlane-Complete-Password-Manager-SuiteFull-Review.jpg);
  background-size: cover;
  background-position: center;
  background-clip: border-box;
  border: 1px solid rgba(90, 185, 234, 0.15);
  padding: 25px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  margin-bottom: 2.5rem;
  z-index: 0;
}
.feedback__header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background-color: rgb(53 53 53 / 25%);
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === card-body + text-center === */
.feedback__header-body {
  flex: 1 1 auto;
  min-height: 1px;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* === card-title === */
.feedback__header-title {
  margin-bottom: 0.75rem;
}

/* === m-0 === */
.feedback__header-desc {
  margin: 0;
}

/* === card + mb-5 (форм-карточка) === */
.feedback__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background: hsla(240, 7%, 12%, 0.92);
  border: 1px solid rgba(90, 185, 234, 0.15);
  padding: 25px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  background-clip: border-box;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

/* === card-body === */
.feedback__body {
  flex: 1 1 auto;
  min-height: 1px;
  padding: 1.25rem;
}

/* === flex-список элементов формы === */
.feedback__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

/* === каждый элемент формы === */
.feedback__item {
  display: block;
  min-width: 0;
}

/* === скрытый получатель === */
.feedback__recipient {
  display: none;
}

/* === w-100 === */
.feedback__recipient-label {
  width: 100%;
}

/* === row для двух инпутов (имя + email) === */
.feedback__inputs-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  margin-bottom: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

/* === col-md-6 === */
.feedback__input-col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
@media (min-width: 768px) {
  .feedback__input-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* === form-group === */
.feedback__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* === form-control (input, textarea) === */
.feedback__input {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #e0e0e0;
  background-color: #333a5a;
  background-clip: padding-box;
  border: 1px solid #333a5a;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .feedback__input {
    transition: none;
  }
}
.feedback__input::-ms-expand {
  background-color: transparent;
  border: 0;
}
.feedback__input:focus {
  color: #fff;
  background-color: #262c49;
  border-color: rgb(35 35 35);
  outline: 0;
}
.feedback__input::-webkit-input-placeholder { color: #848484; opacity: 1; }
.feedback__input::-moz-placeholder { color: #848484; opacity: 1; }
.feedback__input:-ms-input-placeholder { color: #848484; opacity: 1; }
.feedback__input::placeholder { color: #848484; opacity: 1; }
.feedback__input:disabled,
.feedback__input[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}
textarea.feedback__input {
  height: auto;
}

/* === подсказка для незарегистрированных === */
.feedback__hint {
  font-size: 90%;
  color: #96afc0;
}

/* === captcha контейнер === */
.feedback__captcha {
  margin-bottom: 0;
}
/* reCAPTCHA фиксирована 304px — zoom влияет на layout (в отличие от transform) */
@media (max-width: 420px) {
  .feedback__captcha {
    zoom: 0.87;
  }
}
@media (max-width: 340px) {
  .feedback__captcha {
    zoom: 0.76;
  }
}

/* === file input (Выбрать файлы) === */
.feedback__group input[type="file"] {
  color: #96afc0;
  width: 100%;
}
.feedback__group input[type="file"]::file-selector-button,
.feedback__group input[type="file"]::-webkit-file-upload-button {
  background: rgba(85, 178, 253, 0.10);
  border: 1px solid rgba(85, 178, 253, 0.28);
  color: #55b2fd;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  margin-right: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.feedback__group input[type="file"]::file-selector-button:hover,
.feedback__group input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  color: #fff;
}

/* === правила === */
.feedback__rules {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

/* === btn Отправить === */
.feedback__submit {
  display: inline-block;
  font-weight: 400;
  color: #55b2fd;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background: rgba(85, 178, 253, 0.10);
  border: 1px solid rgba(85, 178, 253, 0.28);
  padding: 7px 22px;
  font-size: 0.875rem;
  line-height: 22px;
  height: 36px;
  border-radius: 8px;
  outline: none;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.feedback__submit:hover {
  background: rgba(85, 178, 253, 0.22);
  border-color: rgba(85, 178, 253, 0.65);
  color: #fff;
  box-shadow: 0 0 16px rgba(85, 178, 253, 0.35), 0 4px 12px rgba(85, 178, 253, 0.20);
  transform: translateY(-2px);
  text-decoration: none;
}
.feedback__submit:active {
  background: rgba(85, 178, 253, 0.30);
  border-color: rgba(85, 178, 253, 0.80);
  color: #fff;
  box-shadow: 0 0 8px rgba(85, 178, 253, 0.20);
  transform: translateY(0);
}
.feedback__submit:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(85, 178, 253, 0.25);
}
.feedback__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
