/* Feedback Popup Styles */

/* Overlay */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup Container */
.feedback-popup {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.feedback-overlay.active .feedback-popup {
    transform: scale(1);
}

/* Close Button */
.feedback-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.feedback-close:hover {
    color: #333;
}

/* Header */
.feedback-header {
    text-align: center;
    margin-bottom: 30px;
}

.feedback-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.feedback-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Rating Section */
.feedback-rating {
    margin: 30px 0;
}

.feedback-rating-label {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.feedback-stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.feedback-star {
    font-size: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
    opacity: 0.3;
}

.feedback-star.active,
.feedback-star:hover {
    opacity: 1;
    transform: scale(1.2);
}

.feedback-star.active {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Comment Section */
.feedback-comment {
    margin: 30px 0;
}

.feedback-comment label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.feedback-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.feedback-comment textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Submit Button */
.feedback-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.feedback-submit.enabled {
    opacity: 1;
    pointer-events: all;
}

.feedback-submit.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.feedback-submit.enabled:active {
    transform: translateY(0);
}

/* Thank You Screen */
.feedback-thankyou {
    display: none;
    text-align: center;
}

.feedback-thankyou.active {
    display: block;
}

.feedback-thankyou-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.feedback-thankyou h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.feedback-thankyou p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.feedback-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feedback-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feedback-link:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.feedback-link-icon {
    font-size: 24px;
}

/* Low Rating Message */
.feedback-low-rating {
    display: none;
    text-align: center;
}

.feedback-low-rating.active {
    display: block;
}

.feedback-low-rating-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.feedback-low-rating h2 {
    font-size: 26px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.feedback-low-rating p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* Loading State */
.feedback-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.feedback-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .feedback-popup {
        padding: 30px 25px;
    }
    
    .feedback-header h2 {
        font-size: 22px;
    }
    
    .feedback-stars {
        gap: 10px;
    }
    
    .feedback-star {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .feedback-popup {
        padding: 25px 20px;
        max-width: 95%;
    }
    
    .feedback-header h2 {
        font-size: 20px;
    }
    
    .feedback-header p {
        font-size: 14px;
    }
    
    .feedback-stars {
        gap: 8px;
    }
    
    .feedback-star {
        font-size: 35px;
    }
    
    .feedback-link {
        padding: 16px 20px;
        font-size: 15px;
    }
}

