/* Member feedback (PRD member-feedback-v1.0). A quiet, member-only floating
   button + a centered modal. Reuses existing primitives (.glass card, .ghost /
   .primary buttons, --ink/--ink-soft/--card-border vars). No second orange CTA:
   the .primary Send lives inside the modal, not on the page. No em-dashes in any
   visible copy (the JS owns the strings). */

/* --- floating trigger: bottom-right, fixed, out of the scorecard flow --- */
.feedback-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.feedback-fab[hidden] { display: none; }

/* --- modal overlay: dimmed backdrop, centered dialog --- */
.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 8, 24, 0.6);
}

.feedback-modal {
  position: relative;
  width: 480px;
  max-width: min(480px, 94vw);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.feedback-heading {
  width: 100%;
  margin: 0;
  padding-right: 24px; /* room for the close affordance */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.feedback-close {
  position: absolute;
  top: 12px;
  right: 16px;
  appearance: none;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}
.feedback-close:hover { color: var(--ink); }

.feedback-text {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(4, 15, 40, 0.5);
}
.feedback-text::placeholder { color: rgba(186, 207, 236, 0.55); }
.feedback-text:focus {
  outline: 2px solid rgba(180, 223, 255, 0.7);
  outline-offset: 2px;
}

.feedback-send { margin-left: auto; }
.feedback-msg { width: 100%; margin: 0; }

/* On narrow screens, let the dialog use the full width comfortably. */
@media (max-width: 600px) {
  .feedback-modal { width: 100%; padding: 20px; }
  .feedback-fab { right: 14px; bottom: 14px; }
}
