/* faq.css - Styles for the FAQ page */

/* --- Page Hero Banner --- */
.faq-hero {
    background: var(--gradient-main);
    padding: 72px 0 60px;
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.faq-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.faq-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.faq-hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.faq-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

/* Search bar */
.faq-search-wrap {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    gap: 10px;
}

.faq-search-box i {
    color: var(--text-gray);
    font-size: 16px;
    flex-shrink: 0;
}

.faq-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
}

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

.faq-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 50%;
    display: none;
    transition: color 0.2s;
}

.faq-search-clear:hover {
    color: var(--brand-pink);
}

.faq-search-clear.visible {
    display: block;
}

/* --- Stats bar under hero --- */
.faq-stats-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--divider);
    padding: 18px 0;
}

.faq-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.faq-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.faq-stat-item i {
    color: var(--brand-pink);
    font-size: 18px;
}

.faq-stat-item strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* --- Main Layout: Sticky Sidebar + Content --- */
.faq-body {
    padding: 64px 0 80px;
    background: var(--bg-light);
}

.faq-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

/* Prevent grid children from overflowing column bounds */
.faq-layout > * {
    min-width: 0;
}

/* --- Sidebar Category Nav --- */
.faq-sidebar {
    position: sticky;
    top: 90px;
}

.faq-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding: 0 12px;
}

.faq-cat-list {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--divider);
}

.faq-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.22s ease;
    border-bottom: 1px solid var(--divider);
    user-select: none;
}

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

.faq-cat-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    transition: color 0.22s ease;
}

.faq-cat-item .cat-count {
    margin-left: auto;
    background: var(--bg-light);
    border-radius: var(--radius-pill);
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.22s ease;
}

.faq-cat-item:hover,
.faq-cat-item.active {
    color: var(--brand-pink);
    border-left-color: var(--brand-pink);
    background: rgba(217, 77, 136, 0.04);
}

.faq-cat-item:hover i,
.faq-cat-item.active i {
    color: var(--brand-pink);
}

.faq-cat-item:hover .cat-count,
.faq-cat-item.active .cat-count {
    background: rgba(217, 77, 136, 0.1);
    color: var(--brand-pink);
}

/* --- FAQ Content Area --- */
.faq-content {
    min-width: 0;
}

/* No results message */
.faq-no-results {
    display: none;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-gray);
}

.faq-no-results i {
    font-size: 48px;
    color: var(--divider);
    margin-bottom: 16px;
    display: block;
}

.faq-no-results p {
    font-size: 16px;
}

/* Category section */
.faq-section {
    margin-bottom: 40px;
}

.faq-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.faq-section-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 16px;
    flex-shrink: 0;
}

.faq-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-section-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-pink);
    background: rgba(217, 77, 136, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-left: auto;
}

/* Accordion items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    border: 1px solid var(--divider);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-item.active {
    border-color: rgba(217, 77, 136, 0.3);
    box-shadow: 0 8px 28px rgba(217, 77, 136, 0.1);
}

.faq-q {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-q-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(217, 77, 136, 0.08);
    color: var(--brand-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.faq-item.active .faq-q-icon {
    background: var(--gradient-main);
    color: var(--bg-white);
}

.faq-q h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
}

.faq-q-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.faq-item.active .faq-q-arrow {
    transform: rotate(180deg);
    background: rgba(217, 77, 136, 0.1);
    color: var(--brand-pink);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-a {
    max-height: 800px;
}

.faq-a-inner {
    padding: 0 24px 24px 72px;
    border-top: 1px solid var(--divider);
    padding-top: 18px;
}

.faq-a-inner p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 12px;
}

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

.faq-a-inner strong {
    color: var(--text-dark);
    font-weight: 600;
}

.faq-a-inner a {
    color: var(--brand-pink);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-a-inner a:hover {
    opacity: 0.8;
}

/* Tags within answers */
.faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.faq-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid var(--divider);
}

.faq-tag i {
    font-size: 11px;
}

/* Highlighted note block inside answer */
.faq-note {
    background: rgba(217, 77, 136, 0.06);
    border-left: 3px solid var(--brand-pink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.65;
}

.faq-note strong {
    color: var(--brand-pink);
}

/* Step list inside answer */
.faq-steps {
    margin: 14px 0;
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.faq-steps li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    counter-increment: step-counter;
}

.faq-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- CTA Banner at Bottom --- */
.faq-cta {
    background: var(--gradient-main);
    border-radius: var(--radius-card);
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    margin-top: 48px;
    color: var(--bg-white);
    overflow: hidden;
    position: relative;
}

.faq-cta::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.faq-cta::after {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.faq-cta-text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.faq-cta-text p {
    font-size: 16px;
    opacity: 0.88;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.faq-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    justify-content: center;
}

.btn-cta-white {
    background: var(--bg-white);
    color: var(--brand-purple);
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    color: var(--brand-pink);
}

.btn-cta-outline {
    background: transparent;
    color: var(--bg-white);
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: border-color 0.2s, background 0.2s;
}

.btn-cta-outline:hover {
    border-color: var(--bg-white);
    background: rgba(255,255,255,0.1);
}

/* --- Highlight matched search text --- */
.faq-highlight {
    background: rgba(217, 77, 136, 0.15);
    color: var(--brand-pink);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 600;
}

/* Search results count */
.faq-search-count {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding: 10px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--divider);
    display: none;
}

.faq-search-count.visible {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        position: static;
    }

    .faq-sidebar-title {
        display: none;
    }

    /* Strip the card container look; become a plain scroll track */
    /* mask-image fades the right edge to signal more tabs beyond */
    .faq-cat-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 4px 4px 8px 4px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
        mask-image: linear-gradient(to right, black 75%, transparent 100%);
    }

    .faq-cat-list::-webkit-scrollbar {
        display: none;
    }

    /* Each category becomes an independent pill chip */
    .faq-cat-item {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 15px;
        border-radius: 100px;
        background: var(--bg-white);
        border: 1.5px solid var(--divider);
        border-left: 1.5px solid var(--divider);
        border-bottom: 1.5px solid var(--divider);
        font-size: 13px;
        font-weight: 500;
        color: var(--text-gray);
        white-space: nowrap;
        transition: background 0.2s ease, border-color 0.2s ease,
                    color 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        user-select: none;
    }

    /* Extra right padding on last chip so it scrolls clear of the gradient */
    .faq-cat-item:last-child {
        margin-right: 44px;
    }

    /* Active / hover: solid pink fill */
    .faq-cat-item:hover,
    .faq-cat-item.active {
        background: var(--brand-pink);
        border-color: var(--brand-pink);
        border-left-color: var(--brand-pink);
        border-bottom-color: var(--brand-pink);
        color: #fff;
        box-shadow: 0 4px 14px rgba(217, 77, 136, 0.30);
    }

    .faq-cat-item:hover i,
    .faq-cat-item.active i {
        color: #fff;
    }

    .faq-cat-item:hover .cat-count,
    .faq-cat-item.active .cat-count {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
    }
}

@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 32px;
    }

    .faq-hero p {
        font-size: 16px;
    }

    .faq-stats-inner {
        gap: 24px;
    }

    .faq-cta {
        padding: 36px 24px;
        gap: 20px;
    }

    .faq-cta-text p {
        max-width: 100%;
    }

    .faq-cta-actions {
        flex-wrap: wrap;
    }

    .faq-a-inner {
        padding-left: 24px;
    }

    .faq-q h3 {
        font-size: 15px;
    }

    .faq-section-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 48px 0 40px;
    }

    .faq-hero h1 {
        font-size: 26px;
    }

    .faq-body {
        padding: 40px 0 60px;
    }

    .faq-q {
        padding: 16px 16px;
        gap: 12px;
    }

    .faq-q-icon {
        width: 28px;
        height: 28px;
    }
}
