/* =============================================================================
   Testimonials & Reviews Styles
   Erik Korte Theme - Testimonials
   ========================================================================== */

/* Testimonials Header */
.testimonials-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Testimonials Container - Grid Layout */
.testimonials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Individual Testimonial Card */
.testimonial {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 100%;
}

/* Testimonial Image Section */
.testimonial-item-left {
    margin-bottom: 1rem;
}

.testimonial-item-image img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Testimonial Content Section */
.testimonial-item-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-item-content .post-title {
    margin-bottom: 1rem;
}

.testimonial-item-content .entry-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.25rem;
}

.testim__entry-date {
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
}

.testimonial-item-content .entry-title .light {
    font-weight: 600;
    color: #333;
}

.testimonial-item-content .post-text {
    color: #555;
    line-height: 1.6;
    flex: 1;
}

/* Testimonials Footer */
.testim__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* No Testimonials Message */
.no-testimonials {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.125rem;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .testimonials {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .testimonials {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .testimonials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial {
        padding: 1.25rem;
    }

    .testimonial-item-image img {
        height: 150px;
    }

    .testim__footer {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================================================
   Testimonial Modal Form Styles
   ========================================================================== */

#testimonialModal .modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
}

#testimonialModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

#testimonialModal .modal-body {
    padding: 2rem;
}

.testimonial-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #333;
}

.testimonial-form input[type="text"],
.testimonial-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #333;
    font-family: inherit;
    transition: border-color 0.2s;
}

.testimonial-form input[type="text"]:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: #a82b2b;
    border-width: 2px;
    background: #fff;
}

.testimonial-form input::placeholder,
.testimonial-form textarea::placeholder {
    color: #999;
}

.testimonial-form textarea {
    min-height: 150px;
    resize: vertical;
}

.testimonial-form input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9375rem;
    cursor: pointer;
}

.testimonial-form .wpcf7-form-control-wrap {
    display: block;
}

.testimonial-form .wpcf7-form p {
    margin-bottom: 0.5rem;
}

.testimonial-form input[type="submit"],
.testimonial-form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: #a82b2b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.testimonial-form input[type="submit"]:hover,
.testimonial-form button[type="submit"]:hover {
    background: #8a2323;
}

.testimonial-form .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.testimonial-form .wpcf7-mail-sent-ok {
    border-color: #28a745;
    color: #28a745;
}

.testimonial-form .wpcf7-not-valid-tip {
    color: #a82b2b;
    font-size: 0.8125rem;
    margin-top: -0.75rem;
    margin-bottom: 0.5rem;
}
