/* Floating Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.feedback-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.feedback-button:active {
    transform: translateY(-1px);
}

.feedback-button-icon {
    font-size: 20px;
    line-height: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feedback-button {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .feedback-button-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .feedback-button {
        bottom: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .feedback-button-icon {
        font-size: 16px;
    }
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.feedback-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.feedback-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.feedback-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

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

.feedback-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-form-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.feedback-form-required {
    color: #ff6b6b;
}

.feedback-form-select,
.feedback-form-input,
.feedback-form-textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.feedback-form-select:focus,
.feedback-form-input:focus,
.feedback-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feedback-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

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

.feedback-form-submit,
.feedback-form-cancel {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.feedback-form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feedback-form-submit:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feedback-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.feedback-form-cancel {
    background: #f5f5f5;
    color: #666;
}

.feedback-form-cancel:hover {
    background: #e0e0e0;
}

/* Success message */
.feedback-success {
    text-align: center;
    padding: 40px 20px;
}

.feedback-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feedback-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.feedback-success-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

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

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

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .feedback-modal-content {
        padding: 25px;
        width: 95%;
    }

    .feedback-modal-title {
        font-size: 20px;
    }

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

    .feedback-form-submit,
    .feedback-form-cancel {
        width: 100%;
    }
}
