/* Testimonials Page Styles */

.testimonial-form-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #EFEAD8 0%, #D6CDA4 100%);
}

.testimonial-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-form-container h2 {
    text-align: center;
    color: #5F7161;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5F7161;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #D6CDA4;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5F7161;
    box-shadow: 0 0 0 3px rgba(95, 113, 97, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.star-rating-container {
    margin-bottom: 1.5rem;
}

.star-rating-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5F7161;
    font-weight: 600;
    font-size: 0.95rem;
}

#starRating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

#starRating .star {
    cursor: pointer;
    color: #D6CDA4;
    transition: all 0.2s ease;
}

#starRating .star:hover,
#starRating .star.active {
    color: #FFB800;
    transform: scale(1.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #5F7161 0%, #6D8B74 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 113, 97, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 113, 97, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* User Testimonials Display Section */
.user-testimonials-section {
    padding: 4rem 0;
    background: #F9F7F4;
}

.user-testimonials-section h2 {
    text-align: center;
    color: #5F7161;
    margin-bottom: 3rem;
    font-size: 2rem;
}

#userTestimonials {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #5F7161;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5F7161 0%, #6D8B74 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-info h3 {
    margin: 0;
    color: #5F7161;
    font-size: 1.1rem;
}

.testimonial-date {
    color: #6D8B74;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #FFB800;
    font-size: 1.1rem;
}

.testimonial-text {
    color: #333;
    line-height: 1.7;
    font-style: italic;
}

.no-testimonials {
    text-align: center;
    color: #6D8B74;
    font-size: 1.1rem;
    padding: 3rem;
    background: white;
    border-radius: 12px;
}

/* Success Message */
.success-message {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Message */
.error-message {
    background: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-form-container {
        padding: 1.5rem;
    }
    
    .testimonial-form-container h2 {
        font-size: 1.5rem;
    }
    
    #starRating {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}
