/* Atsiliepimų skyrius */
.testimonials-section {
  background: #f7f7f7;
  padding: 50px 20px;
  text-align: center;
}

/* Slinktis */
.slider-wrapper {
  max-width: 900px;
  margin: 20px auto 0;
  overflow: hidden;
  position: relative;
}

.testimonials-slider {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 300px;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-stars {
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: gold;
}

.testimonial-text {
  font-style: italic;
  color: #444;
  margin-bottom: 10px;
}

.testimonial-name {
  font-weight: 600;
  color: #222;
}

/* Slinkties mygtukai */
.testimonials-prev,
.testimonials-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #444;
  z-index: 10;
}

.testimonials-prev {
  left: 5px;
}
.testimonials-next {
  right: 5px;
}

/* Formos žvaigždutės (star-rating) */
.star-rating {
  direction: rtl;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  gap: 5px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.star-rating label:before {
  content: "★";
  display: inline-block;
}

/* Hover ir pasirinktos žvaigždutės efektas */
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: gold;
  transform: scale(1.2);
  z-index: 2;
}

/* Forma */
.testimonial-form {
  background: white;
  max-width: 400px;
  margin: 0 auto;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.atsiliepimo-forma {
  background: #f7f7f7;
  padding: 50px 20px;
  text-align: center;
}

.testimonial-form input[type="text"],
.testimonial-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  resize: vertical;
}

.testimonial-form textarea {
  min-height: 100px;
}

.testimonial-form button {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.testimonial-form button:hover {
  background-color: #444;
}
/*Patvirtinimas feedback */

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}