/* ============================================
   FLOATING FEEDBACK BUTTON - ALWAYS VISIBLE
   ============================================ */

.floating-feedback-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    border: none;
    border-radius: 50px;
    
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    transition: all 0.3s ease;
}

.floating-feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #0d9488);
}

.floating-feedback-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-feedback-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================
   FEEDBACK MODAL
   ============================================ */

.feedback-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    
    /* Center content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal.hidden {
    display: none;
}

.feedback-modal.visible {
    display: flex;
}

.feedback-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    animation: slideUp 0.3s ease-out;
}

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

/* Modal Header */
.feedback-modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Elements */
.feedback-form-group {
    margin-bottom: 20px;
}

.feedback-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.feedback-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.feedback-textarea::placeholder {
    color: #9ca3af;
}

/* Star Rating */
.feedback-rating {
    margin-bottom: 20px;
}

.feedback-rating-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.feedback-stars {
    display: flex;
    gap: 8px;
}

.feedback-star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.feedback-star:hover {
    transform: scale(1.2);
}

.feedback-star.selected {
    filter: brightness(1.2);
}

/* Buttons */
.feedback-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.feedback-btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.feedback-btn-submit:hover {
    background: linear-gradient(135deg, #059669, #0d9488);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feedback-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.feedback-btn-cancel {
    flex: 1;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Loading State */
.feedback-loading {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

.feedback-loading.visible {
    display: block;
}

/* Success Message */
.feedback-success {
    display: none;
    text-align: center;
    padding: 32px;
}

.feedback-success.visible {
    display: block;
}

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

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

.feedback-success-message {
    font-size: 16px;
    color: #6b7280;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .feedback-modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .feedback-modal-content h3 {
        font-size: 20px;
    }
    
    .feedback-buttons {
        flex-direction: column;
    }
    
    .feedback-stars {
        justify-content: center;
    }
}

