/* Review Funnel Floating Button */
.review-funnel-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background-color: #ffffff;
  color: #1e3a8a;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.review-funnel-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background-color: #f8fafc;
}

.review-funnel-btn .star-icon {
  color: #f59e0b;
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .review-funnel-btn {
    display: none !important;
  }
}

/* Review Funnel Modal Overlay */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.review-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Box */
.review-modal {
  background: white;
  width: 90%;
  max-width: 450px;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.review-modal-overlay.active .review-modal {
  transform: scale(1) translateY(0);
}

.review-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.review-close-btn:hover {
  color: #1e293b;
}

.review-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.review-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 24px;
}

/* Stars Container */
.stars-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.star-rating {
  font-size: 3rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.star-rating:hover {
  transform: scale(1.15);
}

.star-rating.active {
  color: #f59e0b;
}

/* State Views (Hidden by default) */
.review-state {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.review-state.active {
  display: block;
}

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

/* Positive View (4-5 stars) */
.positive-view .google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a73e8;
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 16px;
  transition: background 0.3s, transform 0.2s;
}

.positive-view .google-btn:hover {
  background: #1557b0;
  transform: translateY(-2px);
}

/* Negative View (1-3 stars) */
.rf-select, .rf-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-top: 8px;
  outline: none;
  background-color: white;
  transition: border-color 0.2s;
  color: #1e293b;
}

.rf-select {
  appearance: auto;
}

.rf-select:focus, .rf-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.negative-view textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 100px;
  margin-top: 8px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.negative-view textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.negative-view .send-feedback-btn {
  background: #0f172a;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.negative-view .send-feedback-btn:hover {
  background: #1e293b;
}
