/* feedback-surveys.css - Стили для системы опросов */

.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.feedback-overlay.visible {
  opacity: 1;
}

.feedback-modal {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.feedback-overlay.visible .feedback-modal {
  transform: scale(1) translateY(0);
}

.feedback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.feedback-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.feedback-step {
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.feedback-step.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.feedback-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.feedback-question {
  font-size: 15px;
  color: #555;
  margin: 0 0 24px;
  line-height: 1.5;
}

.feedback-subtitle {
  font-size: 14px;
  color: #888;
  margin: 8px 0 0;
}

/* Кнопки Да/Нет */
.feedback-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.feedback-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-btn span {
  font-size: 18px;
}

.feedback-btn-yes {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.feedback-btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.feedback-btn-no {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #555;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feedback-btn-no:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #eee 0%, #ddd 100%);
}

/* Текстовое поле */
.feedback-textarea {
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.feedback-textarea:focus {
  outline: none;
  border-color: #7c4dff;
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

.feedback-textarea::placeholder {
  color: #aaa;
}

/* Действия (Пропустить / Отправить) */
.feedback-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.feedback-btn-skip {
  background: transparent;
  color: #888;
  padding: 12px 20px;
}

.feedback-btn-skip:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #555;
}

.feedback-btn-submit {
  background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.feedback-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

/* Рейтинг 1-10 */
.feedback-rating {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rating-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-btn:hover {
  border-color: #7c4dff;
  color: #7c4dff;
  transform: scale(1.1);
}

.rating-btn.selected {
  background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
  border-color: #7c4dff;
  color: white;
}

.rating-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
  padding: 0 4px;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
  .feedback-modal {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .feedback-icon {
    font-size: 40px;
  }

  .feedback-title {
    font-size: 18px;
  }

  .feedback-question {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .feedback-btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .rating-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .feedback-textarea {
    min-height: 70px;
    font-size: 14px;
  }
}

/* Анимация благодарности */
#authStepThanks .feedback-icon,
#paymentStepThanks .feedback-icon {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
