/* =========================================================
   TALK2MARKET TESTIMONIALS
========================================================= */

.testimonials-section {

    padding: 85px 20px;

    background: #ffffff;

}


.testimonials-container {

    max-width: 1250px;

    margin: 0 auto;

}


/* =========================================================
   HEADER
========================================================= */

.testimonials-heading {

    text-align: center;

    max-width: 750px;

    margin: 0 auto 35px;

}


.testimonials-eyebrow {

    display: inline-block;

    margin-bottom: 10px;

    color: #ff6a00;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

}


.testimonials-heading h2 {

    margin: 0 0 12px;

    color: #111827;

    font-size: 38px;

    line-height: 1.2;

}


.testimonials-heading p {

    margin: 0;

    color: #6b7280;

    font-size: 15px;

    line-height: 1.7;

}


/* =========================================================
   RATING SUMMARY
========================================================= */

.testimonials-summary {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-bottom: 35px;

}


.summary-score {

    color: #111827;

    font-size: 34px;

    font-weight: 800;

}


.summary-stars {

    color: #f5a623;

    font-size: 22px;

    letter-spacing: 2px;

}


.summary-count {

    color: #6b7280;

    font-size: 13px;

}


/* =========================================================
   REVIEW GRID
========================================================= */

.testimonials-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

}


.testimonial-card {

    position: relative;

    padding: 25px;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 7px 25px
        rgba(0,0,0,.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.testimonial-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.09);

}


/* =========================================================
   STARS
========================================================= */

.testimonial-stars {

    color: #f5a623;

    font-size: 17px;

    letter-spacing: 1px;

    margin-bottom: 14px;

}


.testimonial-rating-number {

    margin-left: 7px;

    color: #777;

    font-size: 12px;

    letter-spacing: 0;

}


/* =========================================================
   REVIEW
========================================================= */

.testimonial-review {

    min-height: 80px;

    margin: 0 0 20px;

    color: #374151;

    font-size: 14px;

    line-height: 1.7;

}


.testimonial-review::before {

    content: "“";

    color: #ff6a00;

    font-size: 30px;

    font-weight: 800;

    vertical-align: -8px;

    margin-right: 3px;

}


/* =========================================================
   USER
========================================================= */

.testimonial-user {

    display: flex;

    align-items: center;

    gap: 12px;

    padding-top: 16px;

    border-top: 1px solid #eeeeee;

}


.testimonial-avatar {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #ff6a00,
            #ff8b38
        );

    color: #ffffff;

    font-size: 15px;

    font-weight: 800;

}


.testimonial-user-info {

    min-width: 0;

}


.testimonial-name {

    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #111827;

    font-size: 13px;

    font-weight: 750;

}


.testimonial-location {

    display: block;

    margin-top: 3px;

    color: #9ca3af;

    font-size: 10px;

}


.testimonial-verified {

    margin-left: auto;

    color: #16a34a;

    font-size: 11px;

    white-space: nowrap;

}


.testimonial-verified i {

    margin-right: 3px;

}


/* =========================================================
   WRITE REVIEW BUTTON
========================================================= */

.write-testimonial-wrapper {

    display: flex;

    justify-content: center;

    margin-top: 35px;

}


.write-testimonial-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 47px;

    padding: 0 23px;

    border: 1px solid #ff6a00;

    border-radius: 9px;

    background: #ff6a00;

    color: #ffffff;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.write-testimonial-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 25px
        rgba(255,106,0,.25);

}


/* =========================================================
   MODAL
========================================================= */

.testimonial-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0,0,0,.72);

    backdrop-filter:
        blur(6px);

}


.testimonial-modal.show {

    display: flex;

}


.testimonial-modal-box {

    position: relative;

    width: min(560px, 95vw);

    max-height: 92vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.35);

}


.testimonial-modal-close {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #f3f4f6;

    color: #555;

    font-size: 19px;

    cursor: pointer;

}


/* =========================================================
   MODAL HEADING
========================================================= */

.testimonial-modal-kicker {

    display: block;

    margin-bottom: 6px;

    color: #ff6a00;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.testimonial-modal-box h3 {

    margin: 0 0 7px;

    color: #111827;

    font-size: 25px;

}


.testimonial-modal-subtitle {

    margin: 0 0 22px;

    color: #777;

    font-size: 12px;

}


/* =========================================================
   RATING SELECTOR
========================================================= */

.testimonial-rating-area {

    margin-bottom: 22px;

    padding: 18px;

    border-radius: 13px;

    background: #fff8f2;

    text-align: center;

}


.testimonial-rating-label {

    display: block;

    margin-bottom: 10px;

    color: #444;

    font-size: 12px;

    font-weight: 700;

}


.star-selector {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

}


.star-option {

    width: 39px;

    height: 39px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    background: transparent;

    color: #d5d5d5;

    font-size: 27px;

    cursor: pointer;

    padding: 0;

}


.star-option:hover,
.star-option.active {

    color: #f5a623;

}


.rating-value {

    display: block;

    margin-top: 7px;

    color: #f5a623;

    font-size: 13px;

    font-weight: 800;

}


/* =========================================================
   FORM
========================================================= */

.testimonial-form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

}


.testimonial-form-group {

    margin-bottom: 14px;

}


.testimonial-form-group.full {

    grid-column: 1 / -1;

}


.testimonial-form-group label {

    display: block;

    margin-bottom: 7px;

    color: #333;

    font-size: 11px;

    font-weight: 750;

}


.testimonial-form-group label span {

    color: #e4572e;

}


.testimonial-form-group input,
.testimonial-form-group textarea {

    width: 100%;

    border: 1px solid #dedede;

    border-radius: 8px;

    outline: none;

    padding: 12px;

    background: #ffffff;

    color: #333;

    font-family: inherit;

    font-size: 13px;

}


.testimonial-form-group input {

    height: 45px;

}


.testimonial-form-group textarea {

    min-height: 120px;

    resize: vertical;

}


.testimonial-form-group input:focus,
.testimonial-form-group textarea:focus {

    border-color: #ff6a00;

    box-shadow:
        0 0 0 3px
        rgba(255,106,0,.10);

}


.testimonial-character-count {

    display: block;

    margin-top: 5px;

    text-align: right;

    color: #aaa;

    font-size: 9px;

}


/* =========================================================
   FORM MESSAGE
========================================================= */

.testimonial-form-message {

    display: none;

    margin-bottom: 15px;

    padding: 11px 13px;

    border-radius: 8px;

    font-size: 11px;

    line-height: 1.5;

}


.testimonial-form-message.show {

    display: block;

}


.testimonial-form-message.error {

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;

}


.testimonial-form-message.success {

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #166534;

}


/* =========================================================
   SUBMIT
========================================================= */

.testimonial-submit-btn {

    width: 100%;

    height: 47px;

    border: 0;

    border-radius: 9px;

    background: #ff6a00;

    color: #ffffff;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;

}


.testimonial-submit-btn:disabled {

    opacity: .65;

    cursor: not-allowed;

}


/* =========================================================
   OTP SCREEN
========================================================= */

.testimonial-otp-screen {

    display: none;

}


.testimonial-otp-screen.show {

    display: block;

}


.testimonial-form-screen.hide {

    display: none;

}


.otp-icon {

    width: 62px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #fff4e9;

    color: #ff6a00;

    font-size: 28px;

}


.otp-screen-content {

    text-align: center;

}


.otp-screen-content h4 {

    margin: 0 0 7px;

    color: #111827;

    font-size: 20px;

}


.otp-screen-content p {

    margin: 0 auto 20px;

    max-width: 390px;

    color: #777;

    font-size: 12px;

    line-height: 1.6;

}


.otp-input {

    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid #ddd;

    border-radius: 9px;

    outline: none;

    text-align: center;

    letter-spacing: 9px;

    font-size: 22px;

    font-weight: 800;

}


.otp-input:focus {

    border-color: #ff6a00;

    box-shadow:
        0 0 0 3px
        rgba(255,106,0,.10);

}


.verify-otp-btn {

    width: 100%;

    height: 47px;

    margin-top: 14px;

    border: 0;

    border-radius: 9px;

    background: #ff6a00;

    color: #ffffff;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;

}


.resend-otp-btn {

    margin-top: 15px;

    border: 0;

    background: transparent;

    color: #ff6a00;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

}


/* =========================================================
   SUCCESS SCREEN
========================================================= */

.testimonial-success-screen {

    display: none;

    text-align: center;

}


.testimonial-success-screen.show {

    display: block;

}


.success-check {

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #f0fdf4;

    color: #16a34a;

    font-size: 35px;

}


.testimonial-success-screen h4 {

    margin: 0 0 8px;

    color: #111827;

    font-size: 22px;

}


.testimonial-success-screen p {

    margin: 0;

    color: #777;

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .testimonials-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 600px) {

    .testimonials-section {

        padding: 60px 15px;

    }


    .testimonials-heading h2 {

        font-size: 29px;

    }


    .testimonials-summary {

        flex-wrap: wrap;

        gap: 7px 13px;

    }


    .summary-score {

        font-size: 30px;

    }


    .testimonials-grid {

        grid-template-columns: 1fr;

    }


    .testimonial-modal {

        padding: 10px;

    }


    .testimonial-modal-box {

        padding: 24px 18px;

        border-radius: 15px;

    }


    .testimonial-form-grid {

        grid-template-columns: 1fr;

        gap: 0;

    }


    .testimonial-form-group.full {

        grid-column: auto;

    }


    .star-option {

        width: 34px;

        height: 38px;

        font-size: 25px;

    }

}


@media (max-width: 380px) {

    .star-option {

        width: 29px;

        font-size: 22px;

    }

}

/* =========================================
   TESTIMONIAL EMPTY STATE - FIX
========================================= */

.testimonials-section {
    padding: 70px 20px 70px;
}

.testimonials-heading {
    margin-bottom: 35px;
}

.testimonials-heading h2 {
    margin-bottom: 12px;
}

.testimonials-heading p {
    margin-bottom: 0;
}


/* Rating / Write Review Area */

.testimonial-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 22px;
    margin: 20px auto 35px;
    max-width: 700px;
}

.testimonial-empty-state p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}


/* Write Review Button */

.write-testimonial-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.write-testimonial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 205px;
    min-height: 56px;

    padding: 14px 24px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    font-size: 16px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.write-testimonial-btn:hover {
    transform: translateY(-2px);
}


/* No Reviews Message */

.testimonial-no-reviews {
    display: none !important;
}


/* =========================================
   TESTIMONIAL GRID
========================================= */

.testimonials-grid {
    margin-top: 25px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .testimonials-section {
        padding: 55px 15px 55px;
    }

    .testimonials-heading {
        margin-bottom: 28px;
    }

    .testimonials-heading h2 {
        font-size: 32px;
    }

    .testimonials-heading p {
        font-size: 15px;
    }

    .testimonial-empty-state {
        margin-top: 15px;
        margin-bottom: 25px;
        gap: 18px;
    }

    .testimonial-empty-state p {
        font-size: 15px;
    }

    .write-testimonial-btn {
        min-width: 190px;
        min-height: 52px;
        padding: 13px 20px;
        font-size: 15px;
    }
}