* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  padding: 20px;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}

.reviews-header h2 {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 15px;
}

.reviews-header p {
  font-size: 1.1rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

.overall-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  background-color: #f7fafc;
  padding: 20px;
  border-radius: 10px;
}

.rating-big {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2d3748;
}

.stars-big {
  display: flex;
  gap: 5px;
}

.stars-big i {
  color: #FFD700;
  font-size: 1.8rem;
}

.total-reviews {
  font-size: 1.1rem;
  color: #718096;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #edf2f7;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #e2e8f0;
}

.filter-btn.active {
  background-color: #4299e1;
  color: white;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.review-card {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #4299e1;
}

.user-info h4 {
  font-size: 1.1rem;
  margin-bottom: 3px;
  color: #2d3748;
}

.review-date {
  font-size: 0.85rem;
  color: #a0aec0;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
}

.review-stars i {
  color: #FFD700;
  font-size: 1rem;
}

.review-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2d3748;
}

.review-content p {
  color: #4a5568;
  line-height: 1.6;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.helpful-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #718096;
  cursor: pointer;
  font-size: 0.9rem;
}

.helpful-btn:hover {
  color: #4299e1;
}

.verified {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #38a169;
  font-size: 0.9rem;
}

.write-review {
  text-align: center;
  margin-top: 40px;
}

/* ========== Add Review ========== */
.write-review-btn {
  padding: 12px 30px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.write-review-btn:hover {
  background-color: #3182ce;
}

.load-more {
  text-align: center;
  margin: 20px 0;
}

.load-more-btn {
  padding: 10px 25px;
  background-color: #edf2f7;
  color: #4a5568;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: #e2e8f0;
}

/* Review Form Styles */
.review-form-container {
  display: none;
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.review-form-container h3 {
  text-align: center;
  margin-bottom: 25px;
  color: #2d3748;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.rating-input {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.rating-input i {
  font-size: 1.8rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rating-input i:hover,
.rating-input i.active {
  color: #FFD700;
}

.form-submit {
  text-align: center;
  margin-top: 25px;
}

.submit-btn {
  padding: 12px 35px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #3182ce;
}

.close-form {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #718096;
  cursor: pointer;
  text-decoration: underline;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background-color: #38a169;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .overall-rating {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .review-form-container {
    padding: 20px;
  }
}