:root {
    --primary-color: var(--heading-color);
    --primary-hover: var(--accent-color);
    --light-bg: #f9fafb;
    --dark-text: var(--heading-color);
    --light-text: var(--heading-color);
    --border-radius: 12px;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.faq-header {
    margin-bottom: 3.5rem;
}

.faq-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-subtitle {
    color: var(--light-text);
    font-weight: 400;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.search-input {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    padding-left: 3rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.category-section {
    margin-bottom: 3rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.category-pill {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: var(--light-text);
    border-radius: 50px;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-pill:hover {
    background-color: #f3f4f6;
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.category-pill.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-count {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-pill:not(.active) .category-count {
    background-color: #f3f4f6;
    color: var(--light-text);
}

.category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    display: none;
}

.category-header.active {
    display: block;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.faq-list {
    margin-bottom: 2rem;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    display: none;
}

.faq-item.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-text);
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-color);
}

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

.faq-answer-content {
    padding-bottom: 1.5rem;
    color: var(--light-text);
}

.faq-item.expanded .faq-answer {
    max-height: 1000px;
    padding-top: 0.5rem;
}

.faq-item.expanded .faq-question {
    color: var(--primary-color);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.expanded .faq-icon {
    transform: rotate(45deg);
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--light-text);
    display: none;
}

.no-results.active {
    display: block;
}

.contact-section {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-text {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #e5e7eb;
    color: var(--dark-text);
    border-radius: 50px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .faq-container {
        padding: 2rem 1rem;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-subtitle {
        font-size: 1rem;
    }

    .category-pills {
        gap: 0.5rem;
    }

    .category-pill {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .contact-section {
        padding: 2rem 1.5rem;
    }
}