/**
 * Frontend styles for Testimonial Collector
 *
 * @package Testimonial_Collector
 */

/* ===========================
   Submission Form Styles
   =========================== */

.testimonial-form-wrapper {
    max-width: 100%;
    /* margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.testimonial-form-field {
    margin-bottom: 20px;
}

.testimonial-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.testimonial-form-field .required {
    color: #d63638;
}

.testimonial-form-field input[type="text"],
.testimonial-form-field input[type="email"],
.testimonial-form-field select,
.testimonial-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.testimonial-form-field input:focus,
.testimonial-form-field select:focus,
.testimonial-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.testimonial-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.testimonial-form-field .field-description {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Honeypot field - hidden from users */
.testimonial-honeypot {
    position: absolute;
    left: -9999px;
}

/* Submit button */
.testimonial-submit-btn {
    background-color: #B8956A;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-submit-btn:hover {
    background-color: #005177;
}

.testimonial-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Form messages */
.testimonial-form-messages {
    margin-bottom: 20px;
}

.testimonial-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.testimonial-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.testimonial-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===========================
   Testimonials Display Styles
   =========================== */

.testimonials-wrapper {
    margin: 0;
    padding: 20px;
}

.testimonials-carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 15px;
    margin: 0 10px;
    outline: none;
}

.testimonial-content {
    /* background: red;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content:hover {
    /* transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.testimonial-text {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
}

.testimonial-text::before {
    display: none;
    content: '"';
    font-size: 48px;
    color: #866841;
    line-height: 0;
    position: relative;
    top: 15px;
    margin-right: 5px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-stars {
    font-size: 20px;
    color: #ffc107;
}

.rating-number {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.testimonial-author {
    font-size: 16px;
    color: #866841;
    margin-bottom: 5px;
    text-align: center;
}

.testimonial-author strong {
    font-weight: 700;
}

.testimonial-date {
    display: none;
    font-size: 13px;
    color: #999;
}

/* No testimonials message */
.testimonials-none {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

/* Slick Carousel overrides */
.testimonials-carousel .slick-prev,
.testimonials-carousel .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
}

.testimonials-carousel .slick-prev {
    left: -50px;
}

.testimonials-carousel .slick-next {
    right: -50px;
}

.testimonials-carousel .slick-prev:before,
.testimonials-carousel .slick-next:before {
    font-size: 40px;
    color: #f4f2ed;
    opacity: 0.1;
}

.testimonials-carousel .slick-prev:hover:before,
.testimonials-carousel .slick-next:hover:before {
    opacity: .2;
}

.testimonials-carousel .slick-dots {
    display: none !important;
    bottom: -40px;
}

.testimonials-carousel .slick-dots li button:before {
    font-size: 12px;
    color: #f4f2ed;
}

.testimonials-carousel .slick-dots li.slick-active button:before {
    color: #f4f2ed;
    opacity: .2;
}

/* ===========================
   Responsive Styles
   =========================== */

@media screen and (max-width: 1024px) {
    .testimonials-carousel .slick-prev {
        left: 10px;
    }

    .testimonials-carousel .slick-next {
        right: 10px;
    }
}

@media screen and (max-width: 768px) {
    .testimonial-form-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }

    .testimonial-content {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonials-carousel .slick-prev,
    .testimonials-carousel .slick-next {
        width: 30px;
        height: 30px;
    }

    .testimonials-carousel .slick-prev:before,
    .testimonials-carousel .slick-next:before {
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {

    .testimonial-form-field input,
    .testimonial-form-field select,
    .testimonial-form-field textarea {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .testimonial-submit-btn {
        width: 100%;
    }
}