@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

/* === TESTIMONIAL FORM SECTION === */
.testimonial-form-section {
    background: linear-gradient(135deg, #f9f9f9, #e0fff5);
    padding: 0rem 1rem;
    text-align: center;
    font-family: 'Caprasimo', serif;
    animation: fadeInUp 1s ease-out;
}

    .testimonial-form-section h2 {
        font-size: clamp(1.8rem, 4vw, 2.6rem);
        color: #003344;
        margin-bottom: 2rem;
        transition: font-size 0.4s ease;
    }

    .testimonial-form-section .form-group {
        max-width: 600px;
        margin: 0 auto 1.5rem auto;
        text-align: left;
        animation: slideIn 0.8s ease;
    }

    .testimonial-form-section label {
        display: block;
        margin-bottom: 0.5rem;
        color: #002233;
    }

    .testimonial-form-section input[type="text"],
    .testimonial-form-section textarea {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
        transition: box-shadow 0.3s ease;
    }

        .testimonial-form-section input[type="text"]:focus,
        .testimonial-form-section textarea:focus {
            box-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
            outline: none;
        }

    .testimonial-form-section textarea {
        resize: vertical;
        min-height: 120px;
    }

    .testimonial-form-section button {
        margin-top: 1rem;
        padding: 12px 30px;
        background-color: #00FF99;
        color: #003344;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        font-size: 1.1rem;
        box-shadow: 0 4px 10px rgba(0, 255, 153, 0.3);
        transition: background 0.3s ease, transform 0.2s ease;
    }

        .testimonial-form-section button:hover {
            background-color: #00e68a;
            transform: scale(1.03);
        }

/* Success / Error messages */
.success-message,
.error-message {
    margin-top: 1rem;
    font-size: 1rem;
    animation: fadeIn 0.5s ease;
}

.success-message {
    color: #00aa55;
}

.error-message {
    color: #cc0000;
}


/* === TESTIMONIAL DISPLAY SECTION === */
.testimonial-display-section {
    background-color: #ffffff;
    padding: 0rem 1rem;
    text-align: center;
    font-family: 'Caprasimo', serif;
}

    .testimonial-display-section h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        color: #003344;
        margin-bottom: 3rem;
        transition: font-size 0.4s ease;
    }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-card {
    background-color: #f0fdfa;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 255, 153, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInCard 0.8s ease;
}

    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 255, 153, 0.2);
    }

.stars {
    color: #00cc88;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.comment {
    font-size: 1.05rem;
    font-style: italic;
    color: #002233;
    margin-bottom: 1rem;
    animation: slideFade 0.7s ease;
}

.author {
    font-weight: bold;
    color: #003344;
    margin-top: auto;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #888;
    margin-left: 6px;
}


/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
