/* Feedback Popup Styles */
#feedback-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#feedback-popup-overlay.show {
    opacity: 1;
}

#feedback-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 35px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#feedback-popup-overlay.show #feedback-popup {
    transform: scale(1) translateY(0);
}

.feedback-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

#feedback-popup h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #1a1a1a;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

#feedback-popup p {
    margin: 0 0 25px 0;
    color: #555;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

#feedback-popup p:first-of-type {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 8px;
    color: #1565c0;
    font-size: 14px;
    border: 1px solid #bbdefb;
}

.rating-prompt {
    margin: 20px 0 15px 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 500;
}

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

.feedback-rating .star {
    font-size: 40px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-rating .star:hover,
.feedback-rating .star.hover {
    color: #ffca28;
    transform: scale(1.15) rotate(-5deg);
    text-shadow: 0 0 20px rgba(255, 202, 40, 0.5);
}

.feedback-rating .star.selected {
    color: #ffc107;
    transform: scale(1.1);
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.1); }
}

.star-label {
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    height: 24px;
    transition: all 0.2s ease;
}

.feedback-comment {
    animation: slideDown 0.3s ease;
    width: 100%;
    margin-top: 0px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-comment textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
    box-sizing: border-box;
    min-height: 80px;
}

.feedback-comment textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.feedback-anonymous {
    animation: fadeIn 0.3s ease 0.2s both;
    width: 100%;
    margin-top: 12px;
}

.feedback-anonymous label {
    cursor: pointer;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.feedback-anonymous label:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
}

.feedback-anonymous input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0073aa;
    margin-right: 10px;
    flex-shrink: 0;
}

.feedback-anonymous span {
    user-select: none;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.product-feedback-link {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    border-top: 1px solid #e0e0e0;
}

.product-feedback-link a {
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1000;
    cursor: pointer;
    display: inline-block;
}

.product-feedback-link a:hover {
    color: #005a87 !important;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.feedback-buttons button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-submit {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004568 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.feedback-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

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

.feedback-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dfc3;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.1);
}

.feedback-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f0b2b8;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.1);
}

/* Mobile styles */
/* Mobile styles */
@media (max-width: 768px) {
    #feedback-popup {
        padding: 25px 20px;
        width: 95%;
        max-width: 100%;
    }
    
    #feedback-popup h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    #feedback-popup p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .rating-prompt {
        font-size: 15px;
        margin: 15px 0 10px 0;
    }
    
    .feedback-rating {
        margin: 15px 0;
    }
    
    .feedback-rating .star {
        font-size: 32px;
        margin: 0 3px;
    }
    
    .star-label {
        font-size: 14px;
        margin: 10px 0 15px 0;
    }
    
    .feedback-comment {
        margin-top: 15px;
    }
    
    .feedback-comment textarea {
        font-size: 14px;
        padding: 12px;
        min-height: 100px;
    }
    
    .feedback-anonymous {
        margin-top: 12px;
    }
    
    .feedback-anonymous label {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .feedback-anonymous input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .feedback-buttons {
        flex-direction: row;
        gap: 10px;
        margin-top: 20px;
    }
    
    .feedback-buttons button {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .product-feedback-link {
        font-size: 12px;
        padding: 8px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    #feedback-popup {
        padding: 20px 15px;
    }
    
    #feedback-popup h3 {
        font-size: 18px;
    }
    
    .feedback-rating .star {
        font-size: 28px;
        margin: 0 2px;
    }
    
    .feedback-buttons {
        flex-direction: column;
    }
    
    .feedback-buttons button {
        width: 100%;
        padding: 14px;
    }
    
    .feedback-comment textarea {
        min-height: 80px;
    }
}