.feedback-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: inherit;
}

.feedback-trigger {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.feedback-panel {
  position: absolute;
  right: 0;
  bottom: 50px;
  width: min(390px, calc(100vw - 36px));
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  padding: 16px;
}

.feedback-panel[hidden],
.feedback-form[hidden],
.feedback-choice-grid[hidden] {
  display: none;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.feedback-header h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.feedback-header p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.feedback-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.feedback-choice-grid {
  display: grid;
  gap: 10px;
}

.feedback-choice {
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.65);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}

.feedback-choice:hover {
  border-color: rgba(139, 167, 255, 0.55);
}

.feedback-choice strong {
  display: block;
  margin-bottom: 4px;
}

.feedback-choice span {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.35;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
}

.feedback-form select,
.feedback-form textarea,
.feedback-form input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  box-sizing: border-box;
}

.feedback-form textarea {
  min-height: 110px;
  resize: vertical;
}

.feedback-note {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.feedback-status {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  min-height: 18px;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.feedback-back {
  background: transparent;
  color: #94a3b8;
  border: 0;
  cursor: pointer;
}

.feedback-submit {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #8ba7ff;
  color: #08111f;
  font-weight: 700;
  cursor: pointer;
}

.feedback-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}