.rating-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rating-display {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.average-rating {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: #ffc107;
    display: block;
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 24px;
    color: #ffc107;
    margin-bottom: 10px;
    display: block;
}

.rating-stars .star {
    color: #e9ecef;
    cursor: default;
}

.rating-stars .star.filled, .rating-stars .star.half {
    color: #ffc107;
}

.rating-count {
    font-size: 14px;
    color: #6c757d;
}

.rating-distribution {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-bar-label {
    width: 40px;
    font-size: 14px;
    color: #495057;
}

.rating-bar-container {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    margin: 0 10px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background: #ffc107;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.rating-bar-count {
    width: 40px;
    font-size: 14px;
    color: #6c757d;
    text-align: right;
}

.rating-submit {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.rating-submit h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.rating-stars-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-star {
    font-size: 36px;
    color: #e9ecef;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-star:hover, .rating-star.active {
    color: #ffc107;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.rating-message {
    margin-top: 15px;
    font-size: 14px;
    color: #28a745;
}

.rating-message.error {
    color: #dc3545;
}
