/* Modal de Feedback */
#feedback-modal-overlay {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    justify-content: flex-end;
    align-items: flex-end;
}

#feedback-modal-overlay.show {
    display: flex;
}

#feedback-modal {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 380px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

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

#feedback-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 25px;
    height: 25px;
    z-index: 10;
}

#feedback-modal-close:hover {
    color: #000;
}

.feedback-step {
    display: none;
}

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

.feedback-step h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    line-height: 1.3;
}

.feedback-step p {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.feedback-options {
    margin-bottom: 20px;
}

.feedback-option {
    margin-bottom: 12px;
}

.feedback-option input[type="checkbox"],
.feedback-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.feedback-option label {
    cursor: pointer;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.feedback-option input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.feedback-option input[type="text"].show {
    display: block;
}

.feedback-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    gap: 8px;
}

.feedback-rating-label {
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
}

.feedback-rating-stars {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.feedback-star {
    font-size: 24px;
    cursor: pointer;
    color: #e0e0e0;
    transition: all 0.2s ease;
    line-height: 1;
    display: inline-block;
    user-select: none;
    opacity: 0.6;
}

.feedback-star:hover {
    color: #ffc107 !important;
    opacity: 1 !important;
    transform: scale(1.15);
}

.feedback-star.active {
    color: #ffc107 !important;
    opacity: 0.8;
}

.feedback-star.selected {
    color: #ff6b00 !important;
    opacity: 1 !important;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 107, 0, 0.4));
}

.feedback-email-input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.feedback-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    gap: 8px;
    flex-wrap: wrap;
}

.feedback-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    min-width: 80px;
}

.feedback-btn-primary {
    background-color: #007bff;
    color: white;
}

.feedback-btn-primary:hover {
    background-color: #0056b3;
}

.feedback-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.feedback-btn-secondary:hover {
    background-color: #545b62;
}

.feedback-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-success {
    text-align: center;
    padding: 15px;
}

.feedback-success h3 {
    color: #28a745;
    margin-bottom: 12px;
    font-size: 16px;
}

.feedback-success p {
    color: #666;
    margin-bottom: 15px;
    font-size: 13px;
}

.feedback-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.feedback-error.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    #feedback-modal-overlay {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    #feedback-modal {
        padding: 15px;
        max-width: 100%;
        width: 100%;
    }

    .feedback-rating {
        flex-direction: column;
        gap: 10px;
    }

    .feedback-rating-stars {
        width: 100%;
    }

    .feedback-buttons {
        flex-direction: column;
    }

    .feedback-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #feedback-modal-overlay {
        bottom: 0;
        right: 0;
        left: 0;
    }

    #feedback-modal {
        border-radius: 8px 8px 0 0;
        max-height: 90vh;
    }
}

