/* FAQ Floating Button and Modal */
.faq-float-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #3543F0 0%, #667eea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(53, 67, 240, 0.5),
        0 0 40px rgba(53, 67, 240, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    animation: float-button 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.faq-float-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(53, 67, 240, 0.6),
        0 0 50px rgba(53, 67, 240, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.4);
}

.faq-float-button svg {
    width: 30px;
    height: 30px;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
}

/* Pulse notification dot */
.faq-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    animation: pulse-notify 2s ease-in-out infinite;
}

/* FAQ Modal Overlay */
.faq-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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.faq-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* FAQ Modal Container */
.faq-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    border: 1px solid rgba(53, 67, 240, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(53, 67, 240, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-modal-overlay.active .faq-modal {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

/* FAQ Header */
.faq-header {
    padding: 30px;
    background: rgba(53, 67, 240, 0.1);
    border-bottom: 1px solid rgba(53, 67, 240, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.faq-close {
    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;
}

.faq-close:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    transform: rotate(90deg);
}

/* FAQ Content */
.faq-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(53, 67, 240, 0.3);
    box-shadow: 0 5px 20px rgba(53, 67, 240, 0.1);
}

/* FAQ Question */
.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3543F0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    transform: scaleY(1);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

/* FAQ Toggle Icon */
.faq-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #3543F0;
    stroke-width: 3;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 25px 20px 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* Animations */
@keyframes float-button {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-notify {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-float-button {
        bottom: 70px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .faq-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .faq-title {
        font-size: 1.5rem;
    }
    
    .faq-content {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
.faq-content::-webkit-scrollbar {
    width: 8px;
}

.faq-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.faq-content::-webkit-scrollbar-thumb {
    background: rgba(53, 67, 240, 0.3);
    border-radius: 4px;
}

.faq-content::-webkit-scrollbar-thumb:hover {
    background: rgba(53, 67, 240, 0.5);
}