.reviews-section {
    padding: 6rem 0;
    background: #FDFBF7; /* Off-White background */
    font-family: 'Inter', -apple-system, sans-serif;
    color: #333333;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Testimonial Carousel */
.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
}

.reviews-header-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0;
}

.reviews-header-title span {
    color: #008080;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(15, 82, 186, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 82, 186, 0.02);
    display: none; /* Controlled by JS */
    flex-direction: column;
    gap: 1.25rem;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-card.active {
    display: flex;
}

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

.testimonial-rating {
    font-size: 1.25rem;
    color: #ffb300; /* Star yellow color */
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444444;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0b2240;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-author::before {
    content: "—";
    color: #008080;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 128, 128, 0.2);
    background: #ffffff;
    color: #008080;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: #008080;
    color: #ffffff;
    border-color: #008080;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 128, 128, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: #008080;
    width: 20px;
    border-radius: 4px;
}

/* Leave a Review Form */
.review-form-wrapper {
    background: #ffffff;
    border: 1px solid rgba(15, 82, 186, 0.06);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(15, 82, 186, 0.03);
    box-sizing: border-box;
}

.form-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 1.5rem 0;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b2240;
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', -apple-system, sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

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

/* Star Rating Selector */
.star-rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating-selector input {
    display: none;
}

.star-rating-selector label {
    font-size: 1.75rem;
    color: #cbd5e1; /* Gray star default */
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
    color: #ffb300; /* Yellow star on hover/checked */
}

.form-submit-btn {
    padding: 0.9rem 1.5rem;
    background: #008080; /* Teal primary */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.2);
}

.form-submit-btn:hover {
    background: #006666;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 4rem 0;
    }
    .reviews-container {
        padding: 0 1.5rem;
    }
    .reviews-header-title {
        font-size: 2rem;
    }
    .review-form-wrapper {
        padding: 2rem 1.5rem;
    }
}