.chat-reviews-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.reviews-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.reviews-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, #a7b3c4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reviews-header p {
  color: var(--muted-strong);
  margin-bottom: 24px;
}

/* Chat Reviews Grid */
.chat-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
  padding: 40px 0;
  /* Fade effect on sides */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.review-track {
  display: flex;
  gap: 40px;
  width: max-content;
}

/* Row Directions */
.track-top {
  animation: marquee-left 40s linear infinite;
}

.track-bottom {
  animation: marquee-right 45s linear infinite;
}

/* Pause on Hover */
.chat-reviews-list:hover .review-track {
  animation-play-state: paused;
}

/* Review Host for Shadow DOM */
.review-host {
  flex: 0 0 350px; /* Fixed width for consistency in marquee */
  padding: 10px;
  transition: transform 0.3s ease;
}

.review-host:hover {
  transform: scale(1.05);
  z-index: 10;
}

/* Keyframes */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 20px)); }
}

@keyframes marquee-right {
  0% { transform: translateX(calc(-50% - 20px)); }
  100% { transform: translateX(0); }
}

/* Form Styles */
.chat-review-form {
  display: grid;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chat-review-form input,
.chat-review-form select,
.chat-review-form textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.chat-review-form input:focus,
.chat-review-form select:focus,
.chat-review-form textarea:focus {
  outline: none;
  border-color: var(--accent1);
  background: rgba(15, 23, 42, 0.8);
}

.chat-review-form textarea {
  min-height: 120px;
  resize: vertical;
}

.full-width {
  width: 100%;
}

.char-count {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  pointer-events: none;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
