/* === УНИКАЛЬНАЯ ОБЁРТКА ДЛЯ ИЗОЛЯЦИИ БАННЕРА И ФОРМЫ === */
#unique-feedback-wrapper,
#feedback-banner {
  position: relative !important;
  z-index: 10000 !important;
}

/* === СБРОС И НАСЛЕДОВАНИЕ СТИЛЕЙ (для изоляции от base.css / decor.css) === */
#unique-feedback-wrapper *,
#unique-feedback-wrapper *::before,
#unique-feedback-wrapper *::after,
#feedback-banner *,
#feedback-banner *::before,
#feedback-banner *::after {
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  font-weight: normal !important;
  text-decoration: none !important;
  list-style: none !important;
  line-height: 1.2 !important;
}

/* ==================================================================== */
/* === СТИЛИ ДЛЯ БАННЕРА ОБРАТНОЙ СВЯЗИ === */
/* ==================================================================== */

#feedback-banner {
  position: relative;
  width: 100%;
  height: 124px;
  border: 1px solid #373737;
  background-color: rgb(251, 251, 251);
  background-image: url('/images/feedback/background_banner.png');
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

#feedback-banner .feedback-banner-content {
  position: absolute;
  top: 23px;
  left: 65px;
}

#feedback-banner .desktop-text,
#feedback-banner .mobile-text {
  margin: 0 0 16px 0;
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 26px;
  letter-spacing: 0;
  color: #000;
}

#feedback-banner .mobile-text {
  display: none;
}

#feedback-banner .feedback-cta-button {
  position: absolute;
  left: 5px;
  top: 45px;
  width: 210px;
  height: 35px;
  background-color: #AB261B;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geologica', sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0;
  color: #FFFFFF;
  text-transform: uppercase;
  overflow: hidden;
  padding-right: 40px;
  padding-left: 15px;
  box-sizing: border-box;
}

#feedback-banner .feedback-cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background-image: url('/images/feedback/operator.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* === АДАПТАЦИЯ БАННЕРА ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ === */
@media (max-width: 768px) {
  #feedback-banner {
    height: 210px !important;
    border: 1px solid #B5B5B5 !important;
    border-radius: 5px !important;
    margin: 15px 0 !important;
    background-image: url('/images/feedback/background_banner_mobile.png') !important;
  }

  #feedback-banner .feedback-banner-content {
    top: 40px !important;
    left: 20px !important;
    width: calc(100% - 40px) !important;
  }

  #feedback-banner .desktop-text {
    display: none !important;
  }

  #feedback-banner .mobile-text {
    display: block !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin: 0 0 20px 0 !important;
  }

  #feedback-banner .feedback-cta-button {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 260px !important;
    height: 44px !important;
    font-size: 12px !important;
    padding-right: 50px !important;
    padding-left: 20px !important;
    box-sizing: border-box !important;
    margin-top: 45px !important;
  }

  #feedback-banner .feedback-cta-button::after {
    width: 44px !important;
    height: 44px !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
  }
}

/* ==================================================================== */
/* === СТИЛИ ДЛЯ ФОРМЫ FEEDBACK === */
/* ==================================================================== */

/* === ОВЕРЛЕЙ === */
#unique-feedback-wrapper .modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(28, 32, 35, 0.85) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  z-index: 20000 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

#unique-feedback-wrapper .modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* === КОНТЕЙНЕР ФОРМЫ === */
#unique-feedback-wrapper .feedback-form-container {
  position: relative !important;
  width: 600px !important;
  height: 526px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  font-family: 'Geologica', sans-serif !important;
  background-color: #ffffff !important;
  overflow: visible !important;
}

/* === ИЗОБРАЖЕНИЕ ОПЕРАТОРА === */
#unique-feedback-wrapper .feedback-operator-image {
  position: absolute !important;
  top: -20px !important;
  left: 41px !important;
  width: 68px !important;
  height: 68px !important;
  background-image: url('/images/feedback/operator.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  z-index: 1002 !important;
}

/* === ЗАГОЛОВОК ФОРМЫ === */
#unique-feedback-wrapper .feedback-form-header {
  width: 600px !important;
  height: 73px !important;
  background: #AB261B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#unique-feedback-wrapper #feedback-modal-title {
  color: #D9D9D9 !important;
  font-family: 'Geologica', sans-serif !important;
  font-weight: 400 !important;
  font-size: 19px !important;
  line-height: 18px !important;
  text-align: center !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* === ПЕРЕКЛЮЧАЕМЫЕ КНОПКИ === */
#unique-feedback-wrapper .feedback-switch-container {
  position: absolute !important;
  top: 84px !important;
  left: 25px !important;
  width: 554px !important;
  height: 54px !important;
  border: 1px solid #B5B5B5 !important;
  border-radius: 100px !important;
  display: flex !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#unique-feedback-wrapper .feedback-switch-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Geologica', sans-serif !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 100% !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  color: #000 !important;
  height: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#unique-feedback-wrapper #switch-phone {
  flex: 0 0 169px !important;
}

#unique-feedback-wrapper #switch-email {
  flex: 0 0 277px !important;
}

#unique-feedback-wrapper .feedback-switch-btn.active {
  background: #D93B27 !important;
  color: #FFFFFF !important;
}

/* === ПОЛЯ ВВОДА === */
#unique-feedback-wrapper .input-field {
  position: absolute !important;
  width: 533px !important;
  height: 54px !important;
  left: 38px !important;
  border: 1px solid #B5B5B5 !important;
  border-radius: 5px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  font-family: 'Geologica', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #000 !important;
  outline: none !important;
  background-color: white !important;
}

#unique-feedback-wrapper .feedback-email,
#unique-feedback-wrapper .feedback-phone {
  top: 148px !important;
}

#unique-feedback-wrapper .feedback-name {
  top: 211px !important;
}

#unique-feedback-wrapper .feedback-message {
  top: 274px !important;
  width: 533px !important;
  height: 143px !important;
  padding: 12px !important;
  resize: vertical !important;
}

/* === КНОПКА ОТПРАВКИ === */
#unique-feedback-wrapper .feedback-btn {
  position: absolute !important;
  width: 277px !important;
  height: 44px !important;
  left: 294px !important;
  top: 433px !important;
  background-color: #5B5B5B !important;
  color: #D9D9D9 !important;
  border: none !important;
  border-radius: 40px !important;
  font-family: 'Geologica', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 19px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  opacity: 0.7 !important;
  pointer-events: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#unique-feedback-wrapper .feedback-btn.valid {
  background-color: #AB261B !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#unique-feedback-wrapper .feedback-btn.valid:hover {
  background-color: #D93B27 !important;
}

/* === КРЕСТИК ЗАКРЫТИЯ === */
#unique-feedback-wrapper .modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 13px !important;
  height: 13px !important;
  cursor: pointer !important;
  z-index: 1002 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#unique-feedback-wrapper .modal-close::before,
#unique-feedback-wrapper .modal-close::after {
  content: '' !important;
  position: absolute !important;
  width: 100% !important;
  height: 2px !important;
  top: 50% !important;
  left: 0 !important;
  background-color: #920000 !important;
  transform-origin: center !important;
  border-radius: 1px !important;
}

#unique-feedback-wrapper .modal-close::before {
  transform: rotate(45deg) !important;
}

#unique-feedback-wrapper .modal-close::after {
  transform: rotate(-45deg) !important;
}

/* === ПОДСКАЗКИ === */
#unique-feedback-wrapper #feedback-email-error,
#unique-feedback-wrapper #feedback-phone-error,
#unique-feedback-wrapper #feedback-name-error,
#unique-feedback-wrapper #feedback-message-error {
  position: absolute !important;
  left: 38px !important;
  z-index: 10 !important;
  height: 20px !important;
  line-height: 1.2 !important;
  font-size: 11px !important;
  color: #c00 !important;
  text-align: center !important;
  width: 533px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  display: none;
}

#unique-feedback-wrapper #feedback-email-error,
#unique-feedback-wrapper #feedback-phone-error {
  top: 208px !important;
}

#unique-feedback-wrapper #feedback-name-error {
  top: 271px !important;
}

#unique-feedback-wrapper #feedback-message-error {
  top: 427px !important;
}

/* === СКРЫТИЕ LABEL (для доступности) === */
#unique-feedback-wrapper .feedback-form-body-inner label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === СООБЩЕНИЕ ПОСЛЕ ОТПРАВКИ === */
#unique-feedback-wrapper .feedback-message-result {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 400px !important;
  height: 89px !important;
  background-color: #AB261B !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  z-index: 1003 !important;
  overflow: hidden !important;
  color: #D9D9D9 !important;
  font-family: 'Geologica', sans-serif !important;
  display: block !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

#unique-feedback-wrapper .feedback-message-result > div {
  margin: 0 !important;
  padding: 0 20px !important;
  font-size: 18px !important;
  line-height: 19px !important;
  color: #D9D9D9 !important;
  text-align: center !important;
  font-weight: 400 !important;
  white-space: pre-line !important;
}

/* === КРЕСТИК ЗАКРЫТИЯ СООБЩЕНИЯ === */
#unique-feedback-wrapper .feedback-message-close {
  position: absolute !important;
  top: 5px !important;
  right: 33px !important;
  width: 13px !important;
  height: 13px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  z-index: 1004 !important;
}

#unique-feedback-wrapper .feedback-message-close::before,
#unique-feedback-wrapper .feedback-message-close::after {
  content: '' !important;
  position: absolute !important;
  width: 100% !important;
  height: 2px !important;
  top: 50% !important;
  left: 0 !important;
  background-color: #7D0000 !important;
  transform-origin: center !important;
}

#unique-feedback-wrapper .feedback-message-close::before {
  transform: rotate(45deg) !important;
}

#unique-feedback-wrapper .feedback-message-close::after {
  transform: rotate(-45deg) !important;
}

/* ==================================================================== */
/* === ФИКСЫ ДЛЯ КОРРЕКТНОЙ РАБОТЫ JS И ВИДИМОСТИ === */
/* ==================================================================== */

/* === ФИКС: БАННЕР ДОЛЖЕН БЫТЬ ВИДИМ === */
#feedback-banner {
  position: relative !important;
  z-index: 20001 !important;
  display: block !important;
  visibility: visible !important;
  overflow: visible !important;
  margin: 20px 0 !important;
}

/* === ФИКС: ПОЗВОЛЯЕМ JS МЕНЯТЬ СТИЛИ ПОЛЕЙ И ПОДСКАЗОК === */
#unique-feedback-wrapper .input-field,
#unique-feedback-wrapper .input-field:focus {
  border-color: #B5B5B5 !important;
}

#unique-feedback-wrapper .error-message {
  display: none !important;
}