/* Outfit Font Integration */
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.woff2') format('woff2'),
         url('../fonts/Outfit-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Medium.woff2') format('woff2'),
         url('../fonts/Outfit-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-SemiBold.woff2') format('woff2'),
         url('../fonts/Outfit-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.woff2') format('woff2'),
         url('../fonts/Outfit-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #fafafa;
    color: #101828;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.faq-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.faq-header {
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    color: #475467;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #101828;
}

.dropdown-arrow {
    font-size: 12px;
    opacity: 0.6;
}

.header-actions {
    display: flex;
    align-items: center;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f9fafb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-btn:hover {
    background: #f2f4f7;
}

.profile-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 80px 24px 80px;
}

.content-wrapper {
    max-width: 768px;
    margin: 0 auto;
}

/* FAQ Introduction */
.faq-intro {
    text-align: center;
    margin-bottom: 48px;
}

.faq-title {
    font-size: 48px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 20px;
    color: #667085;
    margin-bottom: 8px;
    font-weight: 400;
}

.faq-contact {
    font-size: 16px;
    color: #667085;
}

.contact-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: #f2f4f7;
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #667085;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.filter-tab:hover {
    color: #344054;
}

.filter-tab.active {
    background: #ffffff;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

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

.faq-item {
    border-bottom: 1px solid #eaecf0;
    background: transparent;
    margin: 0;
    overflow: visible;
    width: 100%;
}

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

.faq-item[data-category] {
    display: block;
}

.faq-item.hidden {
    display: none !important;
}

/* FAQ Question Button */
.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #101828;
    list-style: none;
    outline: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    gap: 20px;
}

.faq-question:hover {
    color: #333333;
}

.faq-question:hover .faq-icon {
    background-color: #333333;
    transform: scale(1.05);
}

.question-text {
    color: #101828;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    line-height: 1.4;
}

/* Plus/Minus Icon */
.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #222222;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 2px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal line (always visible) */
.faq-icon::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 2px;
}

/* Vertical line (hidden when open) */
.faq-icon::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
}

/* When FAQ item is open, hide vertical line */
.faq-item.open .faq-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
}

/* FAQ Answer */
.faq-answer {
    padding: 0 0 25px;
    color: #333333;
    max-width: 85%;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-item.open .faq-answer {
    opacity: 1;
    max-height: 2000px;
}

.faq-answer p {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #475467;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 400;
}

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

/* Chat Widget (Hidden) */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: none;
}

.chat-button {
    width: 56px;
    height: 56px;
    background: #101828;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.15);
    transition: all 0.2s ease;
}

.chat-button:hover {
    background: #1d2939;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .main-content {
        padding: 40px 16px 60px;
    }
    
    .faq-title {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .faq-subtitle {
        font-size: 18px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 24px;
    }
    
    .faq-question {
        padding: 20px 0;
        font-size: 16px;
        gap: 15px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 0 20px;
        max-width: 90%;
    }
    
    .faq-answer p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-icon::before {
        width: 10px;
        height: 2px;
    }
    
    .faq-icon::after {
        width: 2px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 16px;
    }
    
    .faq-title {
        font-size: 28px;
    }
    
    .faq-subtitle {
        font-size: 16px;
    }
    
    .faq-contact {
        font-size: 14px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .faq-question {
        padding: 15px 0;
        font-size: 15px;
        gap: 12px;
    }
    
    .question-text {
        font-size: 15px;
    }
    
    .faq-answer p {
        font-size: 13px;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
    }
    
    .faq-icon::before {
        width: 8px;
        height: 1px;
    }
    
    .faq-icon::after {
        width: 1px;
        height: 8px;
    }
}