/* === Floating Feedback Button === */
/* Standalone floating feedback button (legacy) - Hidden, functionality moved to FAB */
.floating-feedback-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

.floating-feedback-btn:hover {
  transform: scale(1.12) rotate(-6deg);
  box-shadow:
    0 12px 30px rgba(255, 152, 0, 0.7),
    0 0 18px rgba(255, 183, 77, 0.8);
}

.floating-feedback-btn i {
  animation: iconBounce 2s infinite;
}

/* Tooltip text */
.floating-feedback-btn::after {
  content: "Feedback";
  position: absolute;
  left: 75px;
  white-space: nowrap;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Tooltip arrow */
.floating-feedback-btn::before {
  content: "";
  position: absolute;
  left: 65px;
  border: 6px solid transparent;
  border-right-color: #222;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-feedback-btn:hover::after,
.floating-feedback-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Optional notification dot */
.floating-feedback-btn .notify-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #ff3d00;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 61, 0, 0.8);
}
@keyframes feedbackPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 152, 0, 0.6);
  }
  70% {
    box-shadow:
      0 0 0 16px rgba(255, 152, 0, 0);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 152, 0, 0);
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Accessibility: focus styles */
.floating-feedback-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.18), 0 8px 20px rgba(0,0,0,0.18);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-feedback-btn i,
  .floating-feedback-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .floating-feedback-btn {
    bottom: 100px;
    left: 14px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* Move tooltip above on very narrow screens */
  .floating-feedback-btn::after {
    left: auto;
    right: 14px;
    transform: translateX(10px);
  }
  .floating-feedback-btn::before {
    left: auto;
    right: 24px;
    border-left-color: #222;
    border-right-color: transparent;
  }
}

/* High contrast preference: stronger outline */
@media (prefers-contrast: more) {
  .floating-feedback-btn {
    box-shadow: none;
    outline: 3px solid #ffb74d;
  }
}

/* === Modal Overlay === */
.feedback-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Modal Card === */
.feedback-modal-content {
  background: #ffffff;
  padding: 30px 35px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Close Button === */
.close-feedback {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.close-feedback:hover {
  color: #000;
}

/* === Modal Header === */
.feedback-modal-content h2 {
  margin-bottom: 15px;
  color: #333;
  font-size: 22px;
  font-weight: 700;
}

/* === Input Groups === */
.feedback-input {
  text-align: left;
  margin-top: 12px;
}

.feedback-input label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.feedback-input input,
.feedback-input textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff !important;    /* ✅ force white background */
  color: #333 !important;          /* ✅ ensure dark text */
}

.feedback-input input:focus,
.feedback-input textarea:focus {
  border-color: #ff9800;
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.3);
}

/* === Star Rating === */
.feedback-stars {
  margin: 18px 0 10px;
  text-align: center;
}

.feedback-stars i {
  font-size: 28px;
  margin: 0 5px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
}

.feedback-stars i:hover {
  transform: scale(1.2);
  color: #ffb84d;
}

.feedback-stars i.active {
  color: #ff9800;
}

/* === Submit Button === */
#feedbackForm button {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
}

#feedbackForm button:hover {
  background: linear-gradient(135deg, #e68900, #ff9800);
  transform: translateY(-2px);
}