/*======================================
        TESTIMONIALS
======================================*/

.testimonials-section{
    padding:100px 0;
    background:#f7fff5;
    position: relative;
}

.testimonial-slider{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    justify-content:center;
}

.testimonial-card{
    background:#fff;
    border-radius:20px;
    padding:35px;
    width:360px;
    max-width:100%;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
    position:relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(46,125,50,.20);
}

.quote-icon{
    font-size:38px;
    color:#2E7D32;
    margin-bottom:20px;
}

.review{
    color:#555;
    line-height:30px;
    min-height:100px;
    flex-grow: 1;
}

.stars{
    color:#FFC107;
    margin:20px 0;
    font-size: 16px;
    letter-spacing: 2px;
}

.stars .far.fa-star {
    color: #e0e0e0;
}

.customer{
    display:flex;
    align-items:center;
    gap:15px;
}

.customer img{
    width:65px;
    height:65px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #2E7D32;
}

.customer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #66bb6a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: 3px solid #2E7D32;
    box-shadow: 0 4px 10px rgba(46,125,50,0.2);
    flex-shrink: 0;
    text-transform: uppercase;
}

.customer h5{
    margin:0;
    font-weight:600;
    font-size: 16px;
    color: #1a1a1a;
}

.customer span{
    color:#777;
    font-size: 13px;
}

.customer .review-date {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Review CTA & Button */
.review-cta-container {
    text-align: center;
    margin-top: 50px;
}

.btn-write-review {
    background: linear-gradient(135deg, #2E7D32, #1b5e20);
    color: #fff !important;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(46,125,50,0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-write-review:hover {
    background: linear-gradient(135deg, #1b5e20, #2E7D32);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46,125,50,0.4);
    color: #fff;
}

/*==========================================
    INTERACTIVE 5-STAR RATING SYSTEM
==========================================*/

.rating-selection-wrapper {
    background: #fbfdfb;
    border: 1.5px solid rgba(46, 125, 50, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.rating-selection-wrapper.has-error {
    border-color: #e53935;
    background: #fffbfa;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
    animation: shakeRating 0.4s ease;
}

@keyframes shakeRating {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.interactive-star-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
}

.star-rating-btn {
    background: transparent;
    border: none;
    padding: 4px 6px;
    font-size: 34px;
    color: #d1d5db;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease, filter 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.star-rating-btn:hover {
    transform: scale(1.22);
}

.star-rating-btn:active {
    transform: scale(0.95);
}

.star-rating-btn.hovered,
.star-rating-btn.selected {
    color: #FFB300;
    filter: drop-shadow(0 2px 6px rgba(255, 179, 0, 0.45));
}

.star-rating-btn.selected {
    animation: starPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

/* Rating feedback display */
.rating-feedback-display {
    min-height: 32px;
}

.rating-score-pill {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f1f5f2;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.rating-status-text {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.25s ease;
}

/* Rating specific theme states */
.rating-score-pill.rate-poor,
.rating-status-text.rate-poor {
    color: #d32f2f;
}
.rating-score-pill.rate-poor {
    background: #ffebee;
    border-color: #ffcdd2;
}

.rating-score-pill.rate-fair,
.rating-status-text.rate-fair {
    color: #e65100;
}
.rating-score-pill.rate-fair {
    background: #fff3e0;
    border-color: #ffe0b2;
}

.rating-score-pill.rate-good,
.rating-status-text.rate-good {
    color: #f57f17;
}
.rating-score-pill.rate-good {
    background: #fffde7;
    border-color: #fff9c4;
}

.rating-score-pill.rate-very-good,
.rating-status-text.rate-very-good {
    color: #43a047;
}
.rating-score-pill.rate-very-good {
    background: #f1f8e9;
    border-color: #dcedc8;
}

.rating-score-pill.rate-excellent,
.rating-status-text.rate-excellent {
    color: #1b5e20;
}
.rating-score-pill.rate-excellent {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.review-char-count {
    font-size: 12px;
    color: #667085;
}

/* Modal Custom Styling */
.review-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.review-modal .modal-header {
    background: #f7fff5;
    border-bottom: 1px solid #e8f5e9;
    border-radius: 20px 20px 0 0;
    padding: 20px 25px;
}

.review-modal .modal-title {
    font-weight: 700;
    color: #2E7D32;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-modal .modal-body {
    padding: 25px;
}

.review-modal .form-control:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

@media(max-width:991px){
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card{
        width:100%;
        max-width: 500px;
    }
}

@media(max-width:576px){
    .testimonials-section {
        padding: 45px 0;
    }

    .testimonial-card{
        padding: 25px 20px;
        width:100%;
    }

    .review {
        min-height: auto;
        line-height: 24px;
        font-size: 14px;
    }

    .customer img,
    .customer-avatar {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

/*==========================================
    ORDERS FLOW - RATE YOUR ORDER STYLES
==========================================*/

.btn-rate-order {
    background: linear-gradient(135deg, #2E7D32, #1b5e20);
    color: #ffffff !important;
    border: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-rate-order i {
    color: #FFD54F;
    font-size: 13px;
    transition: transform 0.25s ease;
}

.btn-rate-order:hover {
    background: linear-gradient(135deg, #1b5e20, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.35);
    color: #ffffff !important;
}

.btn-rate-order:hover i {
    transform: rotate(20deg) scale(1.15);
}

.order-rated-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.25);
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.08);
}

.order-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff3e0;
    color: #f57c00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.order-review-info-banner {
    background: #f1f8f3;
    border-radius: 12px;
    border: 1px solid rgba(46, 125, 50, 0.15);
    font-size: 13.5px;
}

.order-details-actions .btn-rate-order {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
}

.order-details-actions .order-rated-badge {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
}

.order-rating-card {
    background: #ffffff;
    border: 1px solid #e8eee8;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 8px 30px rgba(38, 80, 45, 0.07);
    margin-bottom: 24px;
}

.order-rating-card .stars-display {
    color: #FFB300;
    font-size: 18px;
    letter-spacing: 2px;
}

.order-rating-card .stars-display .far.fa-star {
    color: #e0e0e0;
}