/* =============================
   REVIEW FORM WRAPPER
============================= */
.crp-review-form {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}


.crp-from-field-group {
    display: inline-block;
    width: 100%;
}

/* =============================
   INPUTS & TEXTAREA
============================= */
.crp-review-form input[type="text"],
.crp-review-form input[type="email"],
.crp-review-form textarea {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
}

.crp-review-form input[type="text"],
.crp-review-form input[type="email"] {
    width: 100%;
}

.crp-review-form textarea {
    width: 100%;
    height: 200px;
    resize: none;
}

/* =============================
   STAR RATING
============================= */
.crp-review-title {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 6px;
    color: #000;
}

.crp-country {
    display: block;
    font-size: 12px;
    color: #777;
}

.crp-author-info {
    display: flex;
    flex-direction: column;
}

.crp-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 3px;
}

.crp-rating input {
    display: none;
}

.crp-rating label {
    font-size: 45px;
    color: #dcdcdc;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

/* Hover stars */
.crp-rating label:hover,
.crp-rating label:hover ~ label {
    color: #ffc107;
}

/* Selected stars */
.crp-rating input:checked ~ label {
    color: #ffc107;
}

/* =============================
   SUBMIT BUTTON
============================= */
.crp-review-form button {
    padding: 10px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.crp-review-form button:hover {
    background: #005f8d;
}

/* =============================
   SUCCESS MESSAGE
============================= */
.crp-success {
    margin-top: 10px;
    color: #2e7d32;
    font-weight: 600;
}

/* =============================
   MOBILE RESPONSIVE
============================= */
@media (max-width: 768px) {
    .crp-review-form {
        flex-direction: column;
        align-items: stretch;
    }

    .crp-review-form input,
    .crp-review-form textarea {
        width: 100%;
    }

    .crp-rating {
        justify-content: center;
    }
}


/* GRID */
.crp-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* CARD */
.crp-review-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform .2s ease;
}

.crp-review-card:hover {
    transform: translateY(-4px);
}

/* CONTENT */
.crp-review-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.crp-readmore {
    color: #1a73e8;
    font-weight: 500;
    cursor: pointer;
}

/* FOOTER */
.crp-review-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.crp-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* AVATAR */
.crp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* STARS */
.crp-stars {
    color: #fbbc04;
    font-size: 14px;
}

/* PAGINATION */
.crp-pagination {
    text-align: center;
    margin-top: 30px;
}

.crp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.crp-pagination .current {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}


/* ============================
   AJAX PAGINATION
============================ */

.crp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.crp-pagination .crp-page {
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover */
.crp-pagination .crp-page:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Active Page */
.crp-pagination .crp-page.active {
    background: #111;
    color: #fff;
    border-color: #111;
    pointer-events: none;
}

/* Loading state */
.crp-review-grid {
    transition: opacity 0.3s ease;
}

/* Mobile Friendly */
@media (max-width: 480px) {
    .crp-pagination .crp-page {
        min-width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 13px;
    }
}


/* ============================
   3 COLUMN REVIEW SUMMARY
============================ */

.crp-summary-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0 0 0;
    background-color: #ffffff;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    padding: 18px;
    border-radius: 5px;
}

.crp-rating-label {
    font-size: 26px !important;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.crp-avg-rating {
    font-size: 18px;
    margin: 6px 0;
}

.crp-review-count {
    font-size: 14px;
    color: #666;
}

.crp-center {
    font-size: 18px;
    font-weight: 600;
}

.crp-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.crp-bar {
    background: #e0e0e0;
    height: 12px;
    border-radius: 3px;
    overflow: hidden;
}

.crp-bar span {
    display: block;
    height: 100%;
    background: #f5c518;
}

/* Mobile */
@media (max-width: 768px) {
    .crp-summary-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* ============================
   HOME PAGE LAST REVIEWS
============================ */

.crp-home-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.crp-home-review-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px;
    transition: box-shadow 0.3s ease;
}

.crp-home-review-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.crp-home-review-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.crp-home-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crp-home-avatar {
    width: 36px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.crp-home-country {
    display: block;
    font-size: 13px;
    color: #777;
}

.crp-home-stars {
    color: #f5c518;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
    .crp-home-review-content p {
        font-size: 14px;
    }
}


/* Stars */
.crp-stars {
    font-size: 22px;
    margin: 5px 0;
}

.crp-stars .star {
    color: #ddd;
}

.crp-stars .star.filled,
.crp-stars .star.half {
    color: #f5b301;
}

.crp-view-all {
    width: 100%;
    display: inline-block;
    margin: 20px 0px;
    text-align: center;
}


.crp-view-all a {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 10px;
    border-radius: 5px;
}