/* QnA Page Styles */
.qna-section {
    margin-top: 72px;
    min-height: calc(100vh - 72px - 300px);
    padding: 60px 24px 80px;
    background: var(--gray-100);
}

.qna-container {
    max-width: 1000px;
    margin: 0 auto;
}

.qna-header {
    text-align: center;
    margin-bottom: 48px;
}

.qna-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.qna-header p {
    font-size: 16px;
    color: var(--gray-500);
}

/* Search Box */
.qna-search {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.qna-search input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    outline: none;
    transition: all 0.2s;
}

.qna-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 40, 160, 0.1);
}

.qna-search input::placeholder {
    color: var(--gray-400);
}

.qna-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.qna-search-icon svg {
    width: 20px;
    height: 20px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 10px 20px;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(20, 40, 160, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.faq-question-text {
    flex: 1;
}

.faq-category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-category-badge.general {
    background: rgba(20, 40, 160, 0.1);
    color: var(--primary);
}

.faq-category-badge.hosting {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.faq-category-badge.payment {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.faq-category-badge.tech {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.faq-category-badge.account {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
}

.faq-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.5;
}

.faq-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.3s;
}

.faq-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    background: var(--primary);
    color: var(--white);
}

.faq-item.active .faq-arrow svg {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 28px 28px 76px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
}

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

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

.faq-answer-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

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

.faq-answer-content strong {
    color: var(--gray-800);
}

.faq-answer-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer-content a:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    display: none;
}

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

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Contact Section */
.contact-section {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #6b4fcc 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.contact-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-section p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-btn.primary {
    background: var(--white);
    color: var(--primary);
}

.contact-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .qna-header h1 {
        font-size: 26px;
    }

    .qna-search input {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question-content {
        gap: 12px;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .faq-title {
        font-size: 15px;
    }

    .faq-answer-content {
        padding: 0 20px 20px 60px;
        font-size: 14px;
    }

    .contact-section {
        padding: 32px 24px;
    }

    .contact-section h3 {
        font-size: 20px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-btn {
        justify-content: center;
    }
}
