/* Main container */
.personal-reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Carousel styles */
.reviews-carousel {
  margin: 2rem 0;
  padding: 1rem;
}

.review-slide {
  padding: 0 15px;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* height: 100%; */
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.review-card h3 {
  color: #333;
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.rating {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-text {
  color: #555;
  line-height: 1.6;
  margin: 1rem 0;
}

.review-date {
  color: #888;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.social-link:hover {
  text-decoration: underline;
}

/* Form styles */
.review-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-form h3 {
  margin: 0 0 1.5rem;
  color: #333;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Button styles */
button[type='submit'] {
  background: #fff; 
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button[type='submit']:hover {
  /* background: #0056b3; */
}

button[type='submit']:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.carousel-button {
  padding: 0;
}

.carousel-dot {
  padding: 0;
}

.carousel-dots {
}

/* Message styles */
.message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Navigation arrows */
.carousel-button-left,
.carousel-button-right {
  width: 40px;
  height: 40px;
  background: #fff !important;
  border: 2px solid #333 !important;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-button-left {
  left: -20px;
}

.carousel-button-right {
  right: -20px;
}

.carousel-button-left svg,
.carousel-button-right svg {
  width: 20px;
  height: 20px;
  stroke: #333;
  stroke-width: 2px;
}

.carousel-button-left:hover,
.carousel-button-right:hover {
  background: #f8f8f8 !important;
  transform: translateY(-50%) scale(1.1);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .personal-reviews-container {
    padding: 1rem;
  }

  /* .slick-prev {
        left: -30px;
    }
    
    .slick-next {
        right: -30px;
    } */
}

@media (max-width: 768px) {
  .review-form {
    padding: 1.5rem;
  }

  .carousel-button-left,
  .carousel-button-right {
    width: 32px;
    height: 32px;
  }

  .carousel-button-left svg,
  .carousel-button-right svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .personal-reviews-container {
    padding: 0.5rem;
  }

  .review-card {
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }
}

/* CSS для reviews-list та review-card */
.reviews-list {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
  gap: 20px;
  margin-bottom: 40px;
}

.review-card.list-view {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.2s;
}

.review-card.list-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.review-card h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 18px;
}

.review-card .rating {
  color: #ffc107;
  margin-bottom: 10px;
  font-size: 16px;
}

.review-card .review-text {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.review-card .social-link {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
}

.review-card .review-date {
  color: #999;
  font-size: 12px;
}

/* Медіа-запити */
@media (max-width: 768px) {
  .reviews-list {
      grid-template-columns: 1fr;
  }
}
