/* =========================================================
   REVIEWS SECTION
========================================================= */

.reviews {
    position: relative;
    overflow: hidden;
}


/* =========================================================
   REVIEWS SLIDER
========================================================= */

.reviews-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}


.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;

    /* animation: reviewsRTL 30s linear infinite; */
}


.review-card {
    width: 360px;
    flex: 0 0 360px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}


.review-rating {
    margin-bottom: 18px;
}


.review-rating i {
    color: #f59e0b;
    margin-right: 3px;
}

/* Pause animation when hovering the slider */
/* .reviews-slider:hover .reviews-track {
    animation-play-state: paused;
} */

/* Arrow buttons */
.reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31,41,55,0.85);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    pointer-events: auto;
}

.reviews-prev { left: 8px; }
.reviews-next { right: 8px; }

/* Dots */
.reviews-dots {
    display:flex;
    gap:8px;
    justify-content:center;
    margin-top:18px;
}

.reviews-dot {
    width:10px;
    height:10px;
    background:#d1d5db;
    border-radius:50%;
    border:none;
    padding:0;
    cursor:pointer;
}

.reviews-dot.active {
    background:#1f2937;
}


.review-text {
    margin-bottom: 25px;
}


.review-text p {
    margin: 0;

    color: #4b5563;

    line-height: 1.8;

    font-size: 15px;
}


.review-author {
    display: flex;
    align-items: center;

    padding-top: 18px;

    border-top: 1px solid #e5e7eb;
}


.review-author-info h3 {
    margin: 0;

    font-size: 15px;
}


.review-author-info span {
    display: block;

    margin-top: 3px;

    font-size: 12px;

    color: #6b7280;
}


/* =========================================================
   AUTOMATIC RIGHT → LEFT ANIMATION
========================================================= */

/* @keyframes reviewsRTL {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

} */


/* =========================================================
   REVIEWS FOOTER
========================================================= */

.reviews-footer {
    margin-top: 40px;

    display: flex;
    justify-content: center;
}


/* =========================================================
   REVIEW MODAL
========================================================= */

.review-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}


.review-modal.active {
    display: flex;
}


.review-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(15, 23, 42, 0.75);

    backdrop-filter: blur(5px);
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.review-modal-content {
    position: relative;

    width: 100%;
    max-width: 650px;

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 16px;

    padding: 35px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);

    z-index: 1;

    animation: reviewModalOpen 0.25s ease;
}


@keyframes reviewModalOpen {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   MODAL HEADER
========================================================= */

.review-modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.review-modal-header h2 {
    margin: 5px 0 0;

    font-size: 28px;

    color: #1f2937;
}


.review-modal-close {
    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    color: #1f2937;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s;
}


.review-modal-close:hover {
    background: #ea580c;

    color: #ffffff;
}


/* =========================================================
   REVIEW FORM
========================================================= */

.review-form .form-group {
    margin-bottom: 20px;
}


.review-form label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #1f2937;
}


.review-form input,
.review-form textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition: border-color 0.2s;
}


.review-form input:focus,
.review-form textarea:focus {
    border-color: #ea580c;
}


.review-form textarea {
    resize: vertical;
}


/* =========================================================
   RATING
========================================================= */

.rating-select {
    display: flex;

    flex-direction: row-reverse;

    justify-content: flex-end;

    gap: 5px;
}


.rating-select label {
    margin: 0;

    cursor: pointer;
}


.rating-select input {
    display: none;
}


.rating-select span {
    font-size: 28px;

    color: #d1d5db;

    transition: 0.2s;
}


/* Hover */

.rating-select label:hover span,
.rating-select label:hover ~ label span {
    color: #f59e0b;
}


/* Selected */

.rating-select input:checked ~ label span,
.rating-select input:checked + label span {
    color: #f59e0b;
}


/* =========================================================
   MODAL BODY LOCK
========================================================= */

body.review-modal-open {
    overflow: hidden;
}


/* =========================================================
   NO REVIEWS
========================================================= */

.no-reviews {
    text-align: center;

    padding: 40px 20px;

    color: #6b7280;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .review-card {
        width: 300px;

        flex-basis: 300px;

        padding: 22px;
    }


    .review-modal {
        padding: 12px;
    }


    .review-modal-content {
        padding: 25px 20px;

        max-height: 92vh;
    }


    .review-modal-header h2 {
        font-size: 23px;
    }


    .rating-select span {
        font-size: 24px;
    }

}