﻿.fq-page {
    padding: 24px 0 56px;
    color: #1f2d44;
    font-size: 16px;
}

.fq-page * {
    box-sizing: border-box;
}

/* Hero */
.fq-hero {
    background: linear-gradient(120deg, #d6e6ff 0%, #e6efff 55%, #efeaff 100%);
    border: 1px solid #bcd0f2;
    border-radius: 18px;
    padding: 28px 32px 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 18px rgba(37,99,235,.10);
}

.fq-hero-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.fq-icon-tile {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 3px 10px rgba(37,99,235,.18);
}

.fq-title {
    font-size: 30px;
    font-weight: 700;
    color: #16336b;
    margin: 0;
    line-height: 1.2;
}

.fq-subtitle {
    font-size: 16px;
    color: #3f557f;
    margin: 6px 0 0;
    max-width: 720px;
    line-height: 1.55;
}

.fq-search {
    position: relative;
    max-width: 720px;
}

.fq-search-ic {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #1d4ed8;
    pointer-events: none;
}

.fq-search-input {
    width: 100%;
    height: 54px;
    font-family: inherit;
    font-size: 16px;
    color: #1f2d44;
    background: #fff;
    border: 2px solid #b8c9e6;
    border-radius: 14px;
    padding: 0 52px 0 52px;
    box-shadow: 0 2px 8px rgba(30,64,130,.08);
}

    .fq-search-input::placeholder {
        color: #8da0c0;
    }

    .fq-search-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59,130,246,.2);
    }

.fq-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: none;
    background: #eef2f9;
    color: #4a5f88;
    cursor: pointer;
    font-size: 14px;
}

    .fq-search-clear:hover {
        background: #dbe5f6;
    }

.fq-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.fq-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2f4570;
    background: rgba(255,255,255,.75);
    border: 1px solid #c3d5f2;
    border-radius: 999px;
    padding: 6px 15px;
}

    .fq-stat i {
        color: #2563eb;
    }

/* Topic chips */
.fq-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.fq-topic {
    --tc: #3b82f6;
    --tb: #dbe9ff;
    --tf: #1d4ed8;
    --tt: #eaf2ff;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: #fbfcff;
    border: 1.5px solid #d3def2;
    border-radius: 14px;
    padding: 11px 14px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(30,64,130,.05);
    transition: transform .12s, border-color .12s, box-shadow .12s, background .12s;
}

    .fq-topic:hover {
        transform: translateY(-2px);
        border-color: var(--tc);
        box-shadow: 0 6px 14px rgba(30,64,130,.12);
    }

    .fq-topic.active {
        background: var(--tt);
        border-color: var(--tc);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 20%, transparent);
    }

    .fq-topic:focus-visible, .fq-q:focus-visible, .fq-btn:focus-visible, .fq-link-btn:focus-visible, .fq-search-clear:focus-visible {
        outline: 3px solid #93c5fd;
        outline-offset: 2px;
    }

.fq-topic-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--tb);
    color: var(--tf);
    flex: 0 0 auto;
}

.fq-topic-label {
    flex: 1;
    font-size: 15.5px;
    font-weight: 700;
    color: #1b2f57;
    line-height: 1.2;
}

.fq-topic-count {
    font-size: 13px;
    font-weight: 700;
    color: #4b5a78;
    background: #fff;
    border: 1px solid #d3def2;
    border-radius: 999px;
    padding: 1px 10px;
}

.fq-topic.active .fq-topic-count {
    color: #fff;
    background: var(--tc);
    border-color: var(--tc);
}

/* category colours (shared by topics and items) */
.fq-c-blue {
    --tc: #3b82f6;
    --tb: #dbe9ff;
    --tf: #1d4ed8;
    --tt: #eaf2ff;
}

.fq-c-cyan {
    --tc: #06b6d4;
    --tb: #cdeff7;
    --tf: #0e7490;
    --tt: #e5f7fb;
}

.fq-c-amber {
    --tc: #f5a623;
    --tb: #fde7b3;
    --tf: #a15c07;
    --tt: #fff6e0;
}

.fq-c-violet {
    --tc: #8b5cf6;
    --tb: #e0d6fc;
    --tf: #6d3fd8;
    --tt: #f3eeff;
}

.fq-c-green {
    --tc: #22c55e;
    --tb: #bfeccf;
    --tf: #15803d;
    --tt: #e7f8ed;
}

/* Results bar */
.fq-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 4px 12px;
    font-size: 14.5px;
    color: #4a5f88;
}

.fq-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: #1d4ed8;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}

    .fq-link-btn:hover {
        background: #e6f0ff;
    }

/* Accordion */
.fq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fq-item {
    background: #fbfcff;
    border: 1.5px solid #d3def2;
    border-left: 5px solid var(--tc);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30,64,130,.06);
    transition: box-shadow .15s, border-color .15s;
}

    .fq-item:hover {
        box-shadow: 0 6px 16px rgba(30,64,130,.10);
    }

    .fq-item.open {
        background: #fff;
        border-color: var(--tc);
        box-shadow: 0 8px 22px rgba(30,64,130,.13);
    }

.fq-q-wrap {
    margin: 0;
    font-size: inherit;
}

.fq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: transparent;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
}

.fq-item.open .fq-q {
    background: var(--tt);
}

.fq-q-ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--tb);
    color: var(--tf);
    flex: 0 0 auto;
}

.fq-q-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fq-q-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--tf);
}

.fq-q-title {
    font-size: 17.5px;
    font-weight: 700;
    color: #1b2f57;
    line-height: 1.4;
}

.fq-chev {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f9;
    color: #4a5f88;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex: 0 0 auto;
    transition: transform .2s, background .15s;
}

.fq-item.open .fq-chev {
    transform: rotate(180deg);
    background: var(--tb);
    color: var(--tf);
}

.fq-a {
    padding: 6px 24px 22px 84px;
    font-size: 16px;
    line-height: 1.75;
    color: #33415f;
    animation: fq-open .18s ease-out;
}

    .fq-a p {
        margin: 0 0 12px;
    }

.fq-a-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .fq-a-list li {
        display: flex;
        gap: 11px;
        align-items: flex-start;
        background: #f6f9ff;
        border: 1px solid #e1e9f7;
        border-radius: 10px;
        padding: 9px 14px;
    }

        .fq-a-list li i {
            color: #22c55e;
            margin-top: 5px;
            font-size: 14px;
        }

.fq-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff4dc;
    border: 1px solid #f3d28e;
    border-left: 5px solid #f5a623;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: #6b3d0a;
    line-height: 1.6;
    margin-top: 12px;
}

    .fq-note i {
        color: #d97706;
        margin-top: 4px;
    }

/* Buttons */
.fq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .12s, box-shadow .12s, background .12s;
}

.fq-btn-primary {
    background: linear-gradient(135deg, #2f6fe4, #4f8df5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,.32);
}

    .fq-btn-primary:hover {
        transform: translateY(-1px);
        color: #fff;
    }

.fq-btn-ghost {
    background: #fff;
    color: #2150b8;
    border-color: #b5cbf1;
}

    .fq-btn-ghost:hover {
        background: #eef4ff;
        border-color: #3b82f6;
    }

/* Empty */
.fq-empty {
    text-align: center;
    padding: 52px 24px;
    background: #fbfcff;
    border: 1.5px dashed #b8c9e6;
    border-radius: 16px;
}

.fq-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #cfe0ff;
    color: #1d4ed8;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fq-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #1b2f57;
}

.fq-empty-text {
    font-size: 15.5px;
    color: #64759a;
    margin: 4px 0 16px;
}

/* Help footer */
.fq-help {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 22px 26px;
    background: linear-gradient(120deg, #e6efff, #efeaff);
    border: 1px solid #c3d5f2;
    border-left: 6px solid #3b82f6;
    border-radius: 16px;
}

.fq-help-ic {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 10px rgba(37,99,235,.15);
    flex: 0 0 auto;
}

.fq-help-text {
    flex: 1 1 300px;
}

    .fq-help-text h3 {
        font-size: 19px;
        font-weight: 700;
        color: #16336b;
        margin: 0 0 4px;
    }

    .fq-help-text p {
        margin: 0;
        font-size: 15.5px;
        color: #3f557f;
        line-height: 1.55;
    }

@keyframes fq-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .fq-hero {
        padding: 22px 18px;
    }

    .fq-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fq-title {
        font-size: 24px;
    }

    .fq-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fq-q {
        padding: 14px;
        gap: 12px;
    }

    .fq-q-ic {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .fq-q-title {
        font-size: 16.5px;
    }

    .fq-a {
        padding: 4px 16px 18px 16px;
    }

    .fq-help {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fq-a {
        animation: none;
    }

    .fq-topic, .fq-item, .fq-chev, .fq-btn {
        transition: none;
    }

        .fq-topic:hover {
            transform: none;
        }
}

