/* ===== Global Style ===== */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #eef2f7, #f9fbfd);
    margin: 0;
    padding: 0;
}

/* ===== Container ===== */
.testimonial-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: fadeIn 0.6s ease-in-out;
}

.testimonial-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* ===== Form ===== */
#testimonialForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#testimonialForm input,
#testimonialForm select,
#testimonialForm textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

#testimonialForm input:focus,
#testimonialForm select:focus,
#testimonialForm textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
}

/* ===== Button ===== */
#testimonialForm button {
    background: linear-gradient(135deg, #007bff, #0056d2);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

#testimonialForm button:hover {
    background: linear-gradient(135deg, #0056d2, #003e9f);
    transform: translateY(-2px);
}

/* ===== Testimonials List ===== */
#testimonialList {
    margin-top: 30px;
}

/* ===== Individual Card ===== */
.testimonial-card {
    background: #f8f9fb;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 5px solid #007bff;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===== Name + Company ===== */
.testimonial-card h4 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

.testimonial-card span {
    font-size: 13px;
    color: #777;
}

/* ===== Rating Colors ===== */
.rating {
    margin: 8px 0;
    font-size: 16px;
}

/* 5 star */
.rating-5 {
    color: #28a745;
}

/* 4 star */
.rating-4 {
    color: #17a2b8;
}

/* 3 star */
.rating-3 {
    color: #ffc107;
}

/* 2 star */
.rating-2 {
    color: #fd7e14;
}

/* 1 star */
.rating-1 {
    color: #dc3545;
}

/* ===== Message ===== */
.testimonial-card p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* ===== Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .testimonial-container {
        margin: 20px;
        padding: 20px;
    }
}