/* Genesis Services - Review Cards Styles */

/* Carousel Custom Styling */
#reviewsCarousel {
  padding: 20px 0;
  min-height: 400px;
}

#reviewsCarousel .carousel-inner {
  padding: 20px 10px;
}

#reviewsCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(102, 126, 234, 0.9);
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(102, 126, 234, 1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Review Cards Styling */
.review-card {
  height: 100%;
}

.review-card .card {
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
}

.review-card .card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-4px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.author-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #333;
}

.review-rating {
  display: flex;
  gap: 2px;
}

.review-rating i {
  color: #ffc107;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: -10px;
  }

  .carousel-control-next {
    right: -10px;
  }
  
  #reviewsCarousel .carousel-inner {
    padding: 15px 5px;
  }
}
}

.review-rating i {
  color: #ffa500;
  font-size: 14px;
}

.review-date {
  font-size: 13px;
  color: #888;
}

.review-comment {
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.review-photo {
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 12px;
  display: block;
}

/* No reviews message */
.no-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #888;
}

.no-reviews i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 16px;
}

.no-reviews p {
  font-size: 18px;
  margin: 0;
}

/* Review form modal styles */
.review-modal .modal-dialog {
  max-width: 600px;
}

.modal-content-box {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.close-review-modal {
  font-size: 28px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: color 0.3s;
}

.close-review-modal:hover {
  color: #333;
}

.review-form {
  padding: 24px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Star rating */
.star-rating {
  display: flex;
  gap: 8px;
  font-size: 28px;
}

.star-rating i {
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.star-rating i:hover,
.star-rating i.fas {
  color: #ffa500;
  transform: scale(1.1);
}

/* Photo upload */
.photo-upload {
  position: relative;
}

.photo-upload input[type="file"] {
  display: none;
}

.photo-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.photo-upload-label:hover {
  background: #ebebeb;
  border-color: #667eea;
}

.photo-upload-label i {
  font-size: 20px;
  color: #667eea;
}

.photo-preview {
  margin-top: 12px;
  position: relative;
}

.photo-preview img {
  max-width: 100%;
  width: auto;
  max-height: 200px;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.photo-preview .remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.photo-preview .remove-photo:hover {
  background: rgba(255, 0, 0, 1);
}

/* Modal footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-secondary {
  padding: 12px 24px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .review-card {
    padding: 16px;
  }

  .review-header {
    flex-direction: column;
    gap: 12px;
  }

  .modal-dialog {
    margin: 20px;
  }

  .review-form {
    padding: 16px;
  }
  
  .review-photo {
    max-height: 250px;
  }
  
  .photo-preview img {
    max-height: 150px;
  }
}

/* Additional responsive fixes for very small screens */
@media (max-width: 480px) {
  .review-photo {
    max-height: 200px;
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .author-info h4 {
    font-size: 14px;
  }
}
