/* Question Float Button */
.question-float-button {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse-question 3s ease-in-out infinite;
}

@keyframes pulse-question {
    0%, 100% { 
        box-shadow: 
            0 10px 30px rgba(16, 185, 129, 0.4),
            0 0 40px rgba(16, 185, 129, 0.2),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 
            0 10px 40px rgba(16, 185, 129, 0.6),
            0 0 60px rgba(16, 185, 129, 0.4),
            0 5px 20px rgba(0, 0, 0, 0.4);
    }
}

.question-float-button:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(16, 185, 129, 0.6),
        0 0 60px rgba(16, 185, 129, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.4);
}

.question-float-button svg {
    stroke: #ffffff;
}

/* Tooltip */
.question-tooltip {
    position: absolute;
    bottom: -40px;
    right: 80px;
    background: rgba(5, 6, 20, 0.95);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.question-float-button:hover .question-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

/* Question Modal */
.question-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.question-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.question-modal {
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(16, 185, 129, 0.2);
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.question-modal-overlay.active .question-modal {
    transform: scale(1);
}

.question-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-modal-close:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    transform: rotate(90deg);
}

.question-modal-content {
    padding: 40px 30px 30px;
}

.question-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.question-modal-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(10px);
}

.question-modal-icon svg {
    width: 40px;
    height: 40px;
    stroke: #10b981;
    position: relative;
    z-index: 1;
}

.question-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-align: center;
}

.question-modal-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 40px 0;
    text-align: center;
}

.question-form {
    margin-bottom: 30px;
}

.question-input-group {
    margin-bottom: 20px;
}

.question-input,
.question-textarea {
    width: 100%;
    padding: 18px 24px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.question-input:focus,
.question-textarea:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.08);
}

.question-input::placeholder,
.question-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.question-submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.question-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.question-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.question-error,
.question-success {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.question-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.question-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.question-privacy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .question-float-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .question-float-button svg {
        width: 24px;
        height: 24px;
    }
    
    .question-tooltip {
        display: none;
    }
    
    .question-modal-content {
        padding: 40px 20px 30px;
    }
    
    .question-modal-title {
        font-size: 1.5rem;
    }
    
    .question-modal-subtitle {
        font-size: 1rem;
    }
    
    .question-input,
    .question-textarea,
    .question-submit-btn {
        font-size: 1rem;
        padding: 16px 20px;
    }
}