.feedback-widget { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; }
.feedback-widget-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: #2563eb; color: #fff; border: 0; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;
  transition: transform .15s ease;
}
.feedback-widget-btn:hover { transform: scale(1.05); }

.feedback-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.5);
  display: none; place-items: center;
}
.feedback-modal.is-open { display: grid; }

.feedback-modal-panel {
  background: #fff; color: #111827;
  border: 1px solid #e5e7eb; border-radius: 16px;
  width: calc(100% - 2rem); max-width: 420px;
  padding: 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.feedback-modal-panel h3 { margin: 0 0 .75rem; font-size: 1.1rem; }
.feedback-field { margin-bottom: .8rem; }
.feedback-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.feedback-field select,
.feedback-field textarea,
.feedback-field input {
  width: 100%; padding: .55rem .7rem; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: .9rem; font-family: inherit; background: #fff; color: #111827;
}
.feedback-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 1rem;
  padding-right: 2.2rem;
  cursor: pointer;
}
.feedback-field textarea { resize: vertical; min-height: 90px; }
.feedback-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
.feedback-actions .btn { padding: .45rem .9rem; border-radius: 8px; font-size: .9rem; cursor: pointer; border: 1px solid transparent; }
.feedback-actions .btn-primary { background: #2563eb; color: #fff; }
.feedback-actions .btn-ghost { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.feedback-footer { margin-top: .75rem; font-size: .85rem; text-align: center; }
.feedback-footer a { color: #2563eb; text-decoration: none; }
.feedback-footer a:hover { text-decoration: underline; }

.dark .feedback-modal-panel { background: #111827; color: #f9fafb; border-color: #374151; }
.dark .feedback-field select,
.dark .feedback-field textarea,
.dark .feedback-field input { background: #1f2937; color: #f9fafb; border-color: #374151; }
.dark .feedback-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.dark .feedback-actions .btn-ghost { background: #1f2937; color: #f9fafb; border-color: #374151; }
