/* Feedback Widget Styles */
.feedback-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.feedback-toggle {
  background: #2563eb;
  color: white;
  padding: 16px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.feedback-toggle:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

.feedback-toggle i {
  font-size: 16px;
}

.feedback-form {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 380px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
}

.feedback-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.close-feedback {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.close-feedback:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

.feedback-form form {
  padding: 24px;
}

.rating-section {
  margin-bottom: 20px;
}

.rating-section label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.star-rating {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
  padding: 8px 0;
}

.star {
  font-size: 28px;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  padding: 4px;
  border-radius: 4px;
}

.star:hover,
.star.active {
  color: #fbbf24;
  transform: scale(1.1);
}

.feedback-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.feedback-buttons .btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-buttons .btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.feedback-buttons .btn-secondary:hover {
  background: #e5e7eb;
  color: #374151;
}

.feedback-buttons .btn-primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.feedback-buttons .btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.feedback-buttons .btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.feedback-form .form-group {
  margin-bottom: 20px;
}

.feedback-form .form-group label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  color: #374151;
}

.feedback-form .form-control {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.feedback-form .form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.feedback-form textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.feedback-success {
  padding: 32px 24px;
  text-align: center;
}

.feedback-success i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #10b981;
}

.feedback-success p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
}

.char-counter {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
  margin-top: 4px;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.error {
  color: #ef4444;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .feedback-form {
    width: 340px;
    right: -10px;
  }
  
  .feedback-widget {
    bottom: 16px;
    right: 16px;
  }
  
  .feedback-toggle {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .feedback-form {
    width: calc(100vw - 32px);
    right: -6px;
    border-radius: 12px;
  }
  
  .feedback-toggle span {
    display: none;
  }
  
  .feedback-toggle {
    padding: 14px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  
  .feedback-form form {
    padding: 20px;
  }
  
  .feedback-header {
    padding: 16px 20px 12px;
  }
  
  .feedback-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .feedback-buttons .btn {
    width: 100%;
    justify-content: center;
  }
} 