/* feedback-widget.css — floating beta feedback widget + modal.
   Injected by /js/feedback-widget.js on authed pages only.
   Design tokens mirror design-system.css (Poppins/Roboto, --primary,
   --radius, soft shadows) so it blends with the CareCost product UI. */

#cc-fb-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 8000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0F172A;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .28), 0 2px 4px rgba(15, 23, 42, .12);
  transition: transform .15s, box-shadow .15s, background .15s;
}
#cc-fb-btn:hover { background: #1E293B; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 23, 42, .32); }
#cc-fb-btn:focus-visible { outline: 2px solid #3B82F6; outline-offset: 3px; }
#cc-fb-btn .cc-fb-btn-ico { width: 14px; height: 14px; }

/* Overlay */
#cc-fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cc-fb-overlay.is-open { display: flex; }

/* Card */
.cc-fb-card {
  background: #fff;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 28px 28px 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
  font-family: 'Roboto', sans-serif;
  color: #0F172A;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.cc-fb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px 8px;
}
.cc-fb-close:hover { color: #0F172A; }
.cc-fb-card-inner { position: relative; }

.cc-fb-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #0F172A;
}
.cc-fb-lede {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 18px;
}

.cc-fb-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 16px 0 8px;
}

/* Category pills */
.cc-fb-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cc-fb-cat {
  padding: 10px 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: background .12s, border-color .12s, color .12s, transform .08s;
}
.cc-fb-cat:hover { background: #F1F5F9; border-color: #CBD5E1; }
.cc-fb-cat.is-on { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.cc-fb-cat-emoji { font-size: 18px; line-height: 1; }
.cc-fb-cat-label { font-size: 11px; }

/* Message textarea */
.cc-fb-ta {
  width: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #0F172A;
  background: #fff;
  resize: vertical;
  min-height: 96px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.cc-fb-ta:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.cc-fb-hint {
  font-size: 11px;
  color: #94A3B8;
  margin: 4px 0 0;
}

/* Urgency dots */
.cc-fb-urg { display: flex; align-items: center; gap: 10px; }
.cc-fb-dots { display: flex; gap: 8px; }
.cc-fb-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background .1s, border-color .1s;
}
.cc-fb-dot:hover { border-color: #94A3B8; }
.cc-fb-dot.is-on { background: #1D4ED8; border-color: #1D4ED8; }
.cc-fb-urg-ends { font-size: 11px; color: #94A3B8; flex: 1; display: flex; justify-content: space-between; }

/* Context note */
.cc-fb-context {
  font-size: 11px;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 14px 0 0;
  line-height: 1.4;
}

/* Actions */
.cc-fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.cc-fb-btn-cancel, .cc-fb-btn-send {
  padding: 9px 16px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.cc-fb-btn-cancel { background: transparent; color: #64748B; }
.cc-fb-btn-cancel:hover { background: #F1F5F9; color: #0F172A; }
.cc-fb-btn-send { background: #1D4ED8; color: #fff; }
.cc-fb-btn-send:hover { background: #1E40AF; }
.cc-fb-btn-send:disabled { background: #CBD5E1; cursor: not-allowed; }

.cc-fb-err {
  font-size: 12px;
  color: #DC2626;
  margin: 10px 0 0;
  text-align: right;
}

/* Success state */
.cc-fb-success {
  text-align: center;
  padding: 24px 12px;
}
.cc-fb-success-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 700;
}
.cc-fb-success h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.cc-fb-success p {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 18px;
}

/* Per-card Report link */
.cc-fb-card-report {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #94A3B8;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  margin-top: 12px;
  float: right;
}
.cc-fb-card-report:hover { color: #1D4ED8; text-decoration: underline; }
