/* Rating Section Styles */
.rating-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.rating-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffd700" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    pointer-events: none;
}

.rating-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.rating-header {
    text-align: center;
    margin-bottom: 50px;
}

.rating-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.rating-header h2 i {
    color: #ffd700;
    margin-right: 10px;
}

.rating-header p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Overall Rating Display - Simple Inline */
.overall-rating-simple {
    text-align: center;
    margin-bottom: 40px;
}

.overall-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.overall-rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5aa0;
}

.overall-rating-stars-inline {
    font-size: 1.5rem;
    color: #ffd700;
}

.overall-rating-count {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Rate Us Button Styles */
.rate-us-btn-container {
    text-align: center;
    margin: 40px 0 50px 0;
}

.rate-us-trigger-btn {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(44,90,160,0.3);
}

.rate-us-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,90,160,0.4);
}

.rate-us-trigger-btn i {
    color: #ffd700;
    font-size: 1.2rem;
}

.view-all-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border: 2px solid #2c5aa0;
    border-radius: 50px;
}

.view-all-reviews-link:hover {
    background: #2c5aa0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44,90,160,0.3);
}

.view-all-reviews-link i {
    color: #ffd700;
}

/* Reviews Flow - No Card Design */
.reviews-flow-container {
    max-width: 850px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.reviews-flow-title {
    text-align: center;
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 50px;
    font-weight: 700;
}

.reviews-flow-title i {
    color: #ffd700;
    margin-right: 10px;
}

.reviews-flow {
    position: relative;
    min-height: 300px;
    text-align: center;
}

.review-flow-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
    pointer-events: none;
}

.review-flow-item.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

.flow-profile-icon {
    margin-bottom: 20px;
}

.flow-profile-icon i {
    font-size: 4.5rem;
    color: #2c5aa0;
}

.flow-stars {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.flow-comment {
    color: #444;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.flow-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 2px solid rgba(44,90,160,0.2);
    max-width: 400px;
    margin: 0 auto;
}

.flow-author strong {
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: 700;
}

.flow-author span {
    color: #777;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Flow Dots */
.flow-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.flow-dot {
    width: 14px;
    height: 14px;
    background: #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}

.flow-dot:hover {
    background: #4a90e2;
    transform: scale(1.2);
}

.flow-dot.active {
    background: #2c5aa0;
    width: 40px;
    border-radius: 7px;
}

/* Rating Form Modal - Fully Mobile Responsive */
.rating-form-modal {
    max-width: 550px;
    width: 85%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 30px 25px;
    text-align: left;
}

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

.rating-form-header i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
    display: block;
}

.rating-form-header h3 {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.rating-form-header p {
    color: #666;
    font-size: 0.95rem;
}

.close-rating-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
    flex-shrink: 0;
}

.close-rating-modal:hover {
    color: #333;
    background: #f0f0f0;
    transform: rotate(90deg);
}

/* No Reviews Message */
.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-reviews i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-reviews p {
    font-size: 1.1rem;
}

/* Responsive - Mobile First Approach */
@media (max-width: 768px) {
    .rate-us-trigger-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .rating-form-modal {
        width: 94%;
        padding: 25px 20px;
        max-height: 88vh;
    }
    
    .rating-form-header {
        margin-bottom: 25px;
    }
    
    .rating-form-header h3 {
        font-size: 1.4rem;
        line-height: 1.3;
        padding-right: 30px;
    }
    
    .rating-form-header i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .rating-form-header p {
        font-size: 0.85rem;
    }
    
    .rating-form-group {
        margin-bottom: 18px;
    }
    
    .rating-form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .rating-form-group input,
    .rating-form-group textarea {
        font-size: 0.95rem;
        padding: 11px 13px;
    }
    
    .star-rating-input {
        font-size: 2.2rem;
        gap: 6px;
    }
    
    .submit-rating-btn {
        padding: 13px 28px;
        font-size: 0.98rem;
    }
    
    .close-rating-modal {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1.8rem;
    }
    
    .reviews-flow-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .flow-profile-icon i {
        font-size: 3.5rem;
    }
    
    .flow-stars {
        font-size: 1.5rem;
    }
    
    .flow-comment {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .reviews-flow-container {
        padding: 0 15px;
    }
    
    .reviews-flow-title {
        font-size: 1.4rem;
    }
    
    .flow-profile-icon i {
        font-size: 3rem;
    }
    
    .flow-stars {
        font-size: 1.3rem;
    }
    
    .flow-comment {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .flow-author strong {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .rating-form-modal {
        width: 96%;
        padding: 20px 15px;
        max-height: 90vh;
    }
    
    .rating-form-header h3 {
        font-size: 1.2rem;
        padding-right: 25px;
    }
    
    .rating-form-header i {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .rating-form-header p {
        font-size: 0.8rem;
    }
    
    .rating-form-group {
        margin-bottom: 15px;
    }
    
    .rating-form-group label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .rating-form-group input,
    .rating-form-group textarea {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .rating-form-group textarea {
        min-height: 100px;
    }
    
    .star-rating-input {
        font-size: 2rem;
        gap: 5px;
    }
    
    .submit-rating-btn {
        padding: 12px 24px;
        font-size: 0.92rem;
    }
    
    .close-rating-modal {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }
    
    .rate-us-trigger-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .reviews-flow-title {
        font-size: 1.3rem;
        margin-bottom: 35px;
    }
    
    .flow-profile-icon i {
        font-size: 2.8rem;
    }
    
    .flow-stars {
        font-size: 1.2rem;
        gap: 3px;
    }
    
    .flow-comment {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .flow-author strong {
        font-size: 1rem;
    }
    
    .flow-author span {
        font-size: 0.85rem;
    }
}

/* Rating Grid - Hidden by default */
.rating-grid {
    display: none;
}

.rating-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-form-group {
    display: flex;
    flex-direction: column;
}

.rating-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.rating-form-group input,
.rating-form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    background: #fafafa;
}

.rating-form-group input:focus,
.rating-form-group textarea:focus {
    border-color: #2c5aa0;
    background: white;
    box-shadow: 0 0 0 3px rgba(44,90,160,0.1);
}

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

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 8px;
    font-size: 2.5rem;
    margin: 10px 0;
}

.star-rating-input .star {
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.star-rating-input .star.active {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.rating-selected {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.rating-selected strong {
    color: #2c5aa0;
}

/* Submit Button */
.submit-rating-btn {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-rating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44,90,160,0.35);
}

.submit-rating-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}



/* Success Modal */
.rating-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rating-modal-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.rating-modal-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

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

.rating-modal-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.rating-modal-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.rating-modal-btn {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44,90,160,0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .rating-header h2 {
        font-size: 1.7rem;
    }
    
    .overall-rating-number {
        font-size: 3rem;
    }
    
    .overall-rating-stars {
        font-size: 1.5rem;
    }
    
    .star-rating-input {
        font-size: 2rem;
    }
    
    .rating-modal-content {
        padding: 35px 25px;
    }
}
