.rating-us-container {
    text-align: center;
    padding: 30px 20px;
    /*     background: #f8f9fa; */
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.rating-display {
    margin-bottom: 30px;
    text-align: center;
}

.average-rating {
    font-size: 24px;
    margin-bottom: 10px;
}

.rating-value {
    font-weight: bold;
    color: #333;
}

.rating-star {
    color: #e02b20;
    font-size: 28px;
    margin-left: 5px;
}

.total-ratings {
    color: #6c757d;
    font-size: 14px;
}

/* Slider Styles */
.ratings-slider-container {
    position: relative;
    margin: 30px 0 50px;
    padding: 0 40px;
    overflow: hidden;
}

.ratings-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 25px;
}

.slider-item {
    flex: 0 0 calc(33.333% - 17px);
    min-width: 0;
}

/* Rating Card - Centered Content */
.rating-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeef2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Profile Picture - Centered */
.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 3px solid #e02b20;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-pic.default {
    background: linear-gradient(135deg, #007bff, #00d2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    border: none;
}

/* Description/Quote - Centered */
.rating-quote {
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 20px;
    padding: 0 15px;
    font-style: italic;
    text-align: center;
    width: 100%;
}

/* Name - Centered */
.rating-author {
    font-weight: 600;
    color: #1a2634;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
    width: 100%;
}

/* Rating Stars - Centered */
.rating-stars {
    color: #e0e0e0;
    font-size: 22px;
    letter-spacing: 4px;
    text-align: center;
    width: 100%;
}

.rating-stars .star.active {
    color: #e02b20;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #e02b20;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #0056b3;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.slider-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: #e02b20;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: #e02b20;
}

/* Rating Button */
.rating-us-button {
    background: #e02b20;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.rating-us-button:hover {
    background: #f92f25;
    transform: scale(1.05);
}

/* Popup Styles */
.rating-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.rating-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 35px;
    border-radius: 15px;
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.rating-popup.active,
.rating-popup-overlay.active {
    display: block;
}

.rating-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
}

.rating-popup-header h3 {
    margin: 0;
    color: #1a2634;
    font-size: 24px;
}

.close-popup {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
}

.close-popup:hover {
    color: #e74c3c;
}

.rating-stars-input {
    text-align: center;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.rating-stars-input .star {
    font-size: 45px;
    cursor: pointer;
    color: #ddd;
    margin: 0 5px;
    display: inline-block;
    transition: all 0.2s ease;
}

.rating-stars-input .star.active,
.rating-stars-input .star:hover {
    color: #e02b20;
    transform: scale(1.1);
}

/* Profile Picture Upload in Popup */
.profile-upload-container {
    margin-bottom: 20px;
    text-align: center;
}

.profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px dashed #007bff;
    position: relative;
    cursor: pointer;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-preview .default-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.upload-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.upload-btn:hover {
    background: #0056b3;
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#profile-pic-input {
    display: none;
}

.upload-progress {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e7ed;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-rating {
    width: 100%;
    padding: 14px;
    background: #e02b20;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-rating:hover {
    background: #f92f25;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.submit-rating:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rating-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.rating-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rating-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.no-ratings-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
}

/* Review counter styles */
.review-counter {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    margin-left: 10px;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

#review-char-count {
    font-weight: 700;
    color: #007cba;
    transition: color 0.3s ease;
}

/* Character count warning colors */
#review-char-count.warning {
    color: #ffc107 !important;
}

#review-char-count.near-limit {
    color: #ff9800 !important;
    font-weight: 700;
}

#review-char-count.at-limit {
    color: #f44336 !important;
    font-weight: 700;
    animation: pulse 1s infinite;
}

/* Textarea border colors based on character count */
#rating-review.warning {
    border-color: #ffc107 !important;
    border-width: 2px !important;
}

#rating-review.near-limit {
    border-color: #ff9800 !important;
    border-width: 2px !important;
}

#rating-review.at-limit {
    border-color: #f44336 !important;
    border-width: 2px !important;
    animation: borderPulse 1s infinite;
}

/* Remaining characters style */
#chars-remaining {
    font-weight: 600;
    transition: color 0.3s ease;
}

.review-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes borderPulse {
    0% { border-color: #f44336; }
    50% { border-color: #ff9800; }
    100% { border-color: #f44336; }
}

/* Focus state */
#rating-review:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#rating-review.warning:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

#rating-review.near-limit:focus {
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

#rating-review.at-limit:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .slider-item {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 100%;
    }

    .ratings-slider-container {
        padding: 0 30px;
    }

    .rating-popup {
        padding: 25px;
        width: 95%;
    }

    .rating-stars-input .star {
        font-size: 35px;
    }

    .rating-us-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .profile-pic {
        width: 70px;
        height: 70px;
    }

    .profile-pic.default {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .rating-us-container {
        padding: 20px 10px;
    }

    .rating-card {
        padding: 20px 15px;
    }

    .profile-pic {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .profile-pic.default {
        font-size: 24px;
    }

    .rating-quote {
        font-size: 14px;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .rating-author {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .rating-stars {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .ratings-slider-container {
        padding: 0 25px;
    }
}