/* FAQ Page Styles */

/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, #512BD4 0%, #7B52E8 50%, #9B6EF8 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.faq-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.faq-hero h2 i {
    font-size: 2.5rem;
}

.faq-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.search-box input::placeholder {
    color: #999;
}

/* FAQ Content */
.faq-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Category Links */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    color: #512BD4;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(81, 43, 212, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.category-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(81, 43, 212, 0.2);
    background: linear-gradient(135deg, #512BD4, #7B52E8);
    color: white;
}

.category-link i {
    font-size: 1.8rem;
}

/* FAQ Sections */
.faq-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-section h3 {
    color: #512BD4;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e8e0ff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-section h3 i {
    font-size: 1.5rem;
}

/* FAQ Items */
.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #512BD4;
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: #512BD4;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.faq-answer ul,
.faq-answer ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.faq-answer a {
    color: #512BD4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #7B52E8;
    text-decoration: underline;
}

.faq-answer strong {
    color: #333;
}

/* Still Need Help Section */
.still-need-help {
    background: linear-gradient(135deg, #512BD4 0%, #7B52E8 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin-top: 2rem;
}

.still-need-help h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.still-need-help p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.help-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #512BD4;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.help-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.help-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.help-btn.secondary:hover {
    background: white;
    color: #512BD4;
}

/* Search Highlighting */
.faq-item.search-match .faq-question span {
    color: #512BD4;
}

.faq-item.search-hidden {
    display: none;
}

.faq-section.section-hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 3rem 0;
    }

    .faq-hero h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .faq-hero p {
        font-size: 1.1rem;
    }

    .faq-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .category-link {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }

    .category-link i {
        font-size: 1.4rem;
    }

    .faq-section {
        padding: 1.5rem;
    }

    .faq-section h3 {
        font-size: 1.4rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem 0;
    }

    .still-need-help {
        padding: 2rem 1.5rem;
    }

    .still-need-help h3 {
        font-size: 1.5rem;
    }

    .still-need-help p {
        font-size: 1rem;
    }

    .help-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-hero h2 {
        font-size: 1.6rem;
    }

    .search-box input {
        font-size: 1rem;
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }

    .search-box i {
        left: 1rem;
        font-size: 1rem;
    }

    .help-options {
        flex-direction: column;
    }

    .help-btn {
        width: 100%;
        justify-content: center;
    }
}
