/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 40px 20px;
    margin: 20px 0;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    min-height: 200px;
}

.carousel-item {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.testimonial-card {
    text-align: center;
    padding: 20px;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #666;
}

.dot:hover {
    background-color: #888;
}

/* Testimonials Widget */
.testimonial-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-content {
    animation: fadeInOut 8s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

.widget-content .testimonial-stars {
    color: #ffd700;
    margin-bottom: 12px;
}

.widget-content .testimonial-text {
    color: white;
    margin-bottom: 12px;
    font-size: 14px;
}

.widget-content .testimonial-author {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* Rating Input Styling */
.rating-input {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
}

.rating-star {
    display: none;
}

.rating-label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

/* Hover effect from JavaScript */
.rating-label.hover {
    color: #ffc107;
}

/* Selected/checked state from JavaScript */
.rating-label.selected {
    color: #ffc107;
}

/* Form Styling */
.testimonial-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-form .form-control,
.testimonial-form .form-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.testimonial-form .form-control:focus,
.testimonial-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.testimonial-form .btn {
    margin-right: 10px;
}
