/*
 * سبک‌های بخش نظرات پارتیوو
 * این CSS از کد ارائه‌شده توسط کاربر استخراج شده و به عنوان فایل جداگانه برای افزونه استفاده می‌شود.
 */

.reviews-section {
  text-align: center;
  padding: 50px 20px;
}
.reviews-title {
  font-size: 2em;
  font-weight: 900;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e63946;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.partivo-title {
  color: black;
}
.red-wo {
  color: #e63946;
}

.reviews-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  scroll-behavior: smooth;
}
.reviews-scroll::-webkit-scrollbar {
  height: 8px;
}
.reviews-scroll::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 10px;
}
.reviews-scroll::-webkit-scrollbar-thumb {
  background: #e63946;
  border-radius: 10px;
}

.review-card {
  min-width: 250px;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: right;
  line-height: 1.6;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.review-card p {
  font-size: 1em;
  margin-bottom: 5px;
  color: #333;
}
.review-card span {
  font-size: 0.9em;
  color: #777;
}
.review-card .stars {
  color: #ffc107;
  font-size: 1.2em;
  margin-top: 5px;
  display: inline-block;
  direction: ltr;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.reviews-dots span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.3s ease;
}
.reviews-dots span.active {
  background: #e63946;
}

.review-form {
  max-width: 500px;
  margin: 30px auto 0;
  text-align: right;
}
.review-form input,
.review-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95em;
}
.review-form button,
#submitRatingBtn {
  background: #e63946;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.review-form button:hover,
#submitRatingBtn:hover {
  background: #c92a3d;
}

.typing-label {
  display: flex;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.blinking-bar {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #e63946;
  margin-left: 5px;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.success-icon {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 15px;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.popup-star-rating {
  margin-top: 10px;
}
.popup-star {
  font-size: 2em;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s;
}
.popup-star.selected,
.popup-star.hover {
  color: #ffc107;
}