/* ── Survey Feedback Screen ──────────────────────────────────────────────── */

/* .stage hides by default; only show layout when active */
#stage-feedback.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0d1117;
  padding: 24px 20px;
  box-sizing: border-box;
}

.fb-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fb-heading {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.4;
}

/* Rating circles */
.fb-rating-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-rating-circles {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.fb-circle {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.fb-circle:hover {
  border-color: #6366f1;
  background: rgba(99,102,241,0.15);
  color: #fff;
}

.fb-circle.selected {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
  transform: scale(1.15);
}

.fb-rating-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* Text area */
.fb-textarea-wrap {
  position: relative;
}

.fb-textarea {
  width: 100%;
  min-height: 96px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  padding: 14px 48px 14px 14px;
  box-sizing: border-box;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}

.fb-textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.fb-textarea:focus {
  border-color: rgba(99,102,241,0.6);
}

.fb-mic-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.fb-mic-btn:hover {
  background: rgba(99,102,241,0.35);
}

.fb-mic-btn.fb-recording {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  animation: fb-pulse 1s infinite;
}

@keyframes fb-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Buttons */
.fb-actions {
  display: flex;
  gap: 12px;
}

.fb-skip-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-skip-btn:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
}

.fb-submit-btn {
  flex: 2;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #6366f1;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-submit-btn:hover:not(:disabled) {
  background: #4f46e5;
}

.fb-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
