/* Frontend styles for the WordPress.org Free edition. */

#egsctp_testimonial_form {
    max-width: 720px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

#egsctp_testimonial_form p {
    margin: 0 0 18px;
}

#egsctp_testimonial_form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

#egsctp_testimonial_form input[type="text"],
#egsctp_testimonial_form input[type="url"],
#egsctp_testimonial_form input[type="date"],
#egsctp_testimonial_form input[type="file"],
#egsctp_testimonial_form textarea,
#egsctp_testimonial_form select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    box-sizing: border-box;
    font: inherit;
}

#egsctp_testimonial_form textarea {
    min-height: 130px;
    resize: vertical;
}

#egsctp_testimonial_form input[type="submit"] {
    border: 0;
    border-radius: 7px;
    padding: 11px 18px;
    background: #2271b1;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

#egsctp_testimonial_form input[type="submit"]:hover,
#egsctp_testimonial_form input[type="submit"]:focus {
    background: #135e96;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    margin: 0;
    color: #cbd5e1;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #ffb300;
}

.egsctp-no-testimonials {
    text-align: center;
    margin: 24px 0;
}

/* Free Slider + Design-1. */
.egsctp-free-testimonials {
    width: min(100%, 760px);
    max-width: 760px;
    height: auto !important;
    min-height: 430px;
    margin: 24px auto;
    padding: 34px 46px 54px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.egsctp-free-testimonials .swiper-wrapper {
    align-items: stretch;
}

.egsctp-free-testimonials .egsctp-free-slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: auto;
    padding: 8px;
    box-sizing: border-box;
}

.egsctp-free-card {
    width: 100%;
    max-width: 520px;
    min-height: 315px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #202124;
    box-sizing: border-box;
}

.egsctp-free-card-body {
    flex: 1 1 auto;
    padding: 28px 34px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.egsctp-free-quote {
    display: block;
    font-family: Georgia, serif;
    color: #74b0e4;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.egsctp-free-quote-open {
    margin-bottom: 8px;
}

.egsctp-free-quote-close {
    margin-top: 8px;
}

.egsctp-free-message {
    width: 100%;
    max-width: 430px;
    color: #3c4043;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.egsctp-free-message p {
    margin: 0 0 10px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.egsctp-free-website {
    margin: 2px 0 8px;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.egsctp-free-website a {
    color: #353535;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.egsctp-free-rating {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 4px 0 0;
    font-size: 19px;
    line-height: 1;
}

.egsctp-free-rating .is-filled {
    color: #ffb300;
}

.egsctp-free-rating .is-empty {
    color: #d5d9df;
}

.egsctp-free-card-footer {
    min-height: 82px;
    background: #78afe0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}

.egsctp-free-avatar-wrap {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
}

.egsctp-free-avatar,
.egsctp-free-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 !important;
}

.egsctp-free-profile-copy {
    min-width: 0;
    text-align: left;
}

.egsctp-free-profile-copy h3 {
    margin: 0 0 3px !important;
    padding: 0;
    color: #101820 !important;
    font-family: inherit;
    font-size: 17px !important;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.egsctp-free-profile-copy p {
    margin: 0 !important;
    padding: 0;
    color: #1f3345 !important;
    font-size: 12px !important;
    line-height: 1.35;
}

.egsctp-free-testimonials .swiper-pagination {
    bottom: 14px !important;
}

.egsctp-free-testimonials .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c9ced6;
    opacity: 1;
}

.egsctp-free-testimonials .swiper-pagination-bullet-active {
    background: #4f86d9;
}

.egsctp-free-testimonials .swiper-button-prev,
.egsctp-free-testimonials .swiper-button-next {
    width: 34px;
    height: 34px;
    color: #4f86d9;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(18, 38, 63, 0.1);
}

.egsctp-free-testimonials .swiper-button-prev::after,
.egsctp-free-testimonials .swiper-button-next::after {
    font-size: 16px !important;
    font-weight: 700;
}

@media (max-width: 767px) {
    .egsctp-free-testimonials {
        padding: 22px 8px 48px;
        min-height: 0;
    }

    .egsctp-free-card {
        min-height: 0;
    }

    .egsctp-free-card-body {
        padding: 24px 20px 20px;
    }

    .egsctp-free-testimonials .swiper-button-prev,
    .egsctp-free-testimonials .swiper-button-next {
        display: none;
    }
}

/* Slider interaction states. */
.egsctp-free-testimonials .swiper-button-prev,
.egsctp-free-testimonials .swiper-button-next,
.egsctp-free-testimonials .swiper-pagination-bullet {
    cursor: pointer;
}

.egsctp-free-testimonials .swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.egsctp-free-testimonials:not(.egsctp-slider-ready) .swiper-button-prev,
.egsctp-free-testimonials:not(.egsctp-slider-ready) .swiper-button-next {
    opacity: 0.55;
}
