/* Frontend styles for Simple Testimonials Collector */

/* Wrapper around the form */
.stc-testimonial-form-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
    box-sizing: border-box;
}

/* Notices */
.stc-notice {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.stc-notice-success {
    background-color: #e6ffed;
    border: 1px solid #b2f2bb;
    color: #2b8a3e;
}

.stc-notice-error {
    background-color: #fff5f5;
    border: 1px solid #ffa8a8;
    color: #c92a2a;
}

.stc-notice-error ul {
    margin: 0.25rem 0 0 1.2rem;
    padding: 0;
}

/* Form elements */
.stc-testimonial-form p {
    margin-bottom: 1rem;
}

.stc-testimonial-form label {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.stc-testimonial-form input[type="text"],
.stc-testimonial-form input[type="email"],
.stc-testimonial-form select,
.stc-testimonial-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* Submit button */
.stc-btn-submit {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    border: none;
    background-color: #2271b1;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.05s ease-in-out;
}

.stc-btn-submit:hover {
    background-color: #135e96;
}

.stc-btn-submit:active {
    transform: translateY(1px);
}

/* Outer wrapper */
.stc-testimonials-outer {
    width: 100%;
}

/* Inner wrapper */
.stc-testimonials-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    box-sizing: border-box;
    position: relative;
    /* arrows */
}

/* Testimonials list (common) */
.stc-testimonials-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    box-sizing: border-box;
}

/* Grid layout: columns on desktop */
@media (min-width: 768px) {
    .stc-testimonials-grid.stc-grid-cols-1 {
        grid-template-columns: 1fr;
    }

    .stc-testimonials-grid.stc-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stc-testimonials-grid.stc-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stc-testimonials-grid.stc-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Card */
.stc-testimonial-item {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
    background-color: #f8f8f8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.stc-testimonial-content p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333;
}

/* Meta */
.stc-testimonial-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.stc-testimonial-name {
    font-weight: 700;
    color: #222;
}

.stc-testimonial-rating {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    color: #f59f00;
}

/* No testimonials */
.stc-no-testimonials {
    text-align: center;
    color: #666;
}

/* Show more */
.stc-show-more-wrapper {
    margin-top: 1rem;
    text-align: center;
}

.stc-show-more-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    border: 1px solid var(--stc-show-more-bg, #2271b1);
    background-color: var(--stc-show-more-bg, #2271b1);
    color: var(--stc-show-more-text, #ffffff);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out, transform 0.05s ease-in-out;
}

.stc-show-more-btn:hover {
    opacity: 0.9;
}

.stc-show-more-btn:active {
    transform: translateY(1px);
}

/* Slider layout */
.stc-layout-slider .stc-testimonials-list {
    grid-template-columns: 1fr;
}

/* Arrows – side, vertically centred relative to wrapper */
.stc-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 80px;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.stc-slider-prev {
    left: 0;
}

.stc-slider-next {
    right: 0;
}

/* Arrow images */
.stc-slider-arrow img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Dots */
.stc-slider-dots {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.stc-slider-dot {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--stc-dots-inactive, #bbbbbb);
    padding: 0;
}

.stc-slider-dot-active {
    color: var(--stc-dots-active, #2271b1);
}

/* Link to all testimonials */
.stc-all-link {
    max-width: 900px;
    margin: 1.2rem auto 0;
    text-align: right;
}

.stc-all-link a {
    text-decoration: none;
    font-weight: 600;
    color: #2271b1;
}

.stc-all-link a:hover {
    text-decoration: underline;
}

/* Form + testimonials spacing */
.stc-testimonial-form-wrapper+.stc-testimonials-outer .stc-testimonials-wrapper {
    margin-top: 1rem;
}