/* Customer Reviews Styles */
.reviews-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.review-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-content {
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-content i.fas.fa-quote-left {
  color: #ff5e14;
  font-size: 24px;
  margin-bottom: 15px;
  display: block;
}

.review-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.review-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid #ff5e14;
}

.review-author h5 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #333;
}

.review-author .stars i {
  color: #ff5e14;
  margin-right: 2px;
}

.review-author .stars img.star-svg {
  width: 16px;
  height: 16px;
  margin-right: 2px;
}

.reviews-slider {
  position: relative;
  padding: 40px 60px;
}

.swiper-container {
  padding: 30px 10px;
  overflow: hidden;
}

.reviews-slider .swiper-button-next,
.reviews-slider .swiper-button-prev {
  color: #2e8b57;
  background-color: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 50%;
  z-index: 10;
}

.reviews-slider .swiper-button-next {
  right: 10px;
}

.reviews-slider .swiper-button-prev {
  left: 10px;
}

.reviews-slider .swiper-button-next:after,
.reviews-slider .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.reviews-slider .swiper-button-next:hover,
.reviews-slider .swiper-button-prev:hover {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.swiper-pagination-bullet-active {
  background-color: #2e8b57;
}

/* Review Form Styles */
.review-form-container {
  background-color: #fff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}

.review-form .form-control {
  border-radius: 5px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.review-form .form-control:focus {
  border-color: #ff5e14;
  box-shadow: 0 0 0 0.2rem rgba(255, 94, 20, 0.25);
}

/* Star Rating System */
.rating-select {
  margin-bottom: 30px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rating-select p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}

.rating input {
  display: none;
}

.rating label {
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin: 0 8px;
  position: relative;
  transition: transform 0.2s ease;
  display: inline-block;
}

.rating label:before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  background-image: url("../images/star-empty.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.rating input:checked ~ label:before,
.rating label:hover ~ label:before,
.rating label:hover:before {
  background-image: url("../images/star-filled.svg");
}

.rating label:hover {
  transform: scale(1.2);
}

/* Star rating value display */
.rating-value {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
  color: #ff5e14;
  height: 20px;
}

/* Add star labels for better usability */
.star-label {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  padding: 0 10px;
  color: #666;
  font-size: 14px;
}

.star-label span:first-child {
  text-align: left;
}

.star-label span:last-child {
  text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .review-form-container {
    padding: 20px;
  }

  .review-item {
    padding: 20px;
  }
}

/* Create placeholder images for testimonials if needed */
.testimonial-img-placeholder {
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 24px;
}
