/* Floating Feedback Button Styles */

.floating-feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-feedback-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.floating-feedback-btn svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Modal Overlay */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

/* Modal Content */
.feedback-modal-content {
    background: linear-gradient(135deg, #1a1f3a, #0a0e27);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #3b82f6;
    animation: slideUp 0.3s ease;
}

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

/* Modal Header */
.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.feedback-modal-header h3 {
    color: #3b82f6;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.feedback-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feedback-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Form Styles */
.feedback-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    background: rgba(31, 41, 55, 0.6);
    color: #f9fafb;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(31, 41, 55, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group select {
    cursor: pointer;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(107, 114, 128, 0.3);
    color: #d1d5db;
    border: 1px solid #6b7280;
}

.btn-cancel:hover {
    background: rgba(107, 114, 128, 0.5);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

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

/* Success Message */
.feedback-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.feedback-success h4 {
    color: #10b981;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.feedback-success p {
    color: #d1d5db;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.btn-close-success {
    padding: 12px 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Hidden utility */
.hidden {
    display: none;
}

/* Scrollbar for modal content */
.feedback-modal-content::-webkit-scrollbar {
    width: 8px;
}

.feedback-modal-content::-webkit-scrollbar-track {
    background: #0a0e27;
}

.feedback-modal-content::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.feedback-modal-content::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-feedback-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .floating-feedback-btn svg {
        width: 24px;
        height: 24px;
    }

    .feedback-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .feedback-modal-header {
        padding: 20px;
    }

    .feedback-modal-header h3 {
        font-size: 1.3rem;
    }

    .feedback-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

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

    .feedback-success {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .floating-feedback-btn {
        width: 48px;
        height: 48px;
    }
}
