/* Feedback модалка и плавающая кнопка (product-strategy.md тема 6).
   Подключается на всех страницах через <link rel="stylesheet" href="feedback.css">. */

/* ===== ПЛАВАЮЩАЯ КНОПКА ===== */
.feedback-trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--accent, #c17a2a);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.2s;
}
.feedback-trigger:hover { background: var(--accent-hover, #a86520); transform: translateY(-2px); }
.feedback-trigger span:first-child { font-size: 18px; }

@media (max-width: 480px) {
  .feedback-trigger {
    padding: 12px 14px;
    right: 14px;
    bottom: 14px;
  }
  .feedback-trigger-text { display: none; }
}

/* ===== МОДАЛКА ===== */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.feedback-modal.hidden { display: none; }

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  animation: feedbackFadeIn 0.2s ease;
}

.feedback-dialog {
  position: relative;
  background: #fff;
  color: var(--text, #2c2416);
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  animation: feedbackSlideUp 0.25s ease;
}

.feedback-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  padding: 6px 10px;
  line-height: 1;
}
.feedback-close:hover { color: #333; }

.feedback-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-right: 30px;
}

.feedback-section { margin-bottom: 18px; }
.feedback-section.hidden { display: none; }

.feedback-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted, #635541);
  margin-bottom: 8px;
}

.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-chip {
  padding: 8px 14px;
  background: #f5f0e8;
  border: 1px solid var(--border, #d9d2c5);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text, #2c2416);
  transition: all 0.15s;
}
.feedback-chip:hover { background: #ede7da; }
.feedback-chip.active {
  background: var(--accent, #c17a2a);
  color: #fff;
  border-color: var(--accent, #c17a2a);
}

.feedback-dialog textarea,
.feedback-dialog input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #d9d2c5);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text, #2c2416);
  background: #fff;
  resize: vertical;
}
.feedback-dialog textarea:focus,
.feedback-dialog input[type="email"]:focus {
  outline: 2px solid var(--accent, #c17a2a);
  outline-offset: 1px;
  border-color: transparent;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.feedback-actions .btn-primary,
.feedback-actions .btn-secondary {
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.feedback-actions .btn-primary {
  background: var(--accent, #c17a2a);
  color: #fff;
}
.feedback-actions .btn-primary:hover:not(:disabled) { background: var(--accent-hover, #a86520); }
.feedback-actions .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.feedback-actions .btn-secondary {
  background: #f5f0e8;
  color: var(--text, #2c2416);
}
.feedback-actions .btn-secondary:hover { background: #ede7da; }

.feedback-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.feedback-status.hidden { display: none; }
.feedback-status.success { background: #e4f4e1; color: #2a5a22; }
.feedback-status.error   { background: #fde6e6; color: #8a2828; }

@keyframes feedbackFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes feedbackSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
  .feedback-dialog {
    padding: 24px 20px 20px;
    max-height: 90vh;
  }
  .feedback-title { font-size: 18px; }
  .feedback-chip { font-size: 12px; padding: 7px 12px; }
}

/* ===== REJECT FLOW (мелкая ссылка под результатом) ===== */
.reject-flow {
  margin-top: 14px;
  text-align: center;
}

.reject-link {
  background: transparent;
  border: none;
  color: var(--text-muted, #635541);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.reject-link:hover {
  color: var(--accent, #c17a2a);
  text-decoration-style: solid;
}
