/* Modern Frontend FAQ Styles */

.faq-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.faq-main-background {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.faq-main-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.faq-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
}

.faq-subtitle {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.faq-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.faq-item:hover::before {
    transform: scaleX(1);
}

.faq-question {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.faq-toggle-icon {
    font-size: 16px;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 25px;
    color: #495057;
    font-size: 15px;
    line-height: 1.8;
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
}

.faq-answer.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.faq-search-container {
    margin-bottom: 30px;
    text-align: center;
}

.faq-search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.faq-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
    pointer-events: none;
}

.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    display: none;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-frontend-container {
        padding: 15px;
    }
    
    .faq-main-background {
        padding: 20px;
        border-radius: 15px;
    }
    
    .faq-title {
        font-size: 28px;
    }
    
    .faq-subtitle {
        font-size: 14px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 20px;
        font-size: 14px;
    }
    
    .faq-search-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }
    
    .faq-search-icon {
        right: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .faq-main-background {
        padding: 15px;
        margin: 15px 0;
    }
    
    .faq-title {
        font-size: 24px;
    }
    
    .faq-question {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 15px;
        font-size: 13px;
    }
    
    .faq-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    .faq-search-container {
        display: none;
    }
    
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .faq-answer {
        display: block !important;
    }
    
    .faq-toggle-icon {
        display: none;
    }
}
