/* ContextIQ FAQ Page Styles */

/* ─── LOCKED BRAND CONSTANTS ─── */
.ciq-faq-page {
    --ciq-yellow:    #f5c200;
    --ciq-coral:     #d94f3d;
    --ciq-coral-dk:  #b03d2d;
    --ciq-cream:     #f7f6f2;
    --ciq-cream-dk:  #ece5d4;
}

/* ─── BASE ─── */
.ciq-faq-page *, .ciq-faq-page *::before, .ciq-faq-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ciq-faq-page {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ciq-cream);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* ─── HERO ─── */
.ciq-faq-page .ciq-hero {
    background: var(--ciq-yellow);
    padding: 3rem 2.5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    width: 100%;
}

.ciq-faq-page .ciq-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ciq-faq-page .ciq-hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}
.ciq-faq-page .ciq-hero-wave svg { display: block; width: 100%; }

.ciq-faq-page .ciq-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
    padding-bottom: 5rem;
    width: 100%;
    min-width: 0;
}

.ciq-faq-page .ciq-hero-content {
    flex: 1;
    max-width: 560px;
    min-width: 0;
}

.ciq-faq-page .ciq-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
    /* background injected via inline style (primary_color) */
}

.ciq-faq-page .ciq-hero h1 {
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* font-size and color injected via inline style */
}

.ciq-faq-page .ciq-hero-sub {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    max-width: 420px;
    margin-bottom: 1.8rem;
    /* color injected via inline style */
}

/* ─── SEARCH ─── */
.ciq-faq-page .ciq-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2.5px solid #ccc;
    border-radius: 50px;
    padding: 0 20px;
    max-width: 460px;
    width: 100%;
    gap: 10px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.ciq-faq-page .ciq-search-wrap:focus-within {
    box-shadow: 4px 4px 0 var(--ciq-coral);
    /* border-color injected via inline style */
}
.ciq-faq-page .ciq-search-icon {
    color: #999;
    font-size: 17px;
    flex-shrink: 0;
}
.ciq-faq-page .ciq-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #1c1c1c;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 0;
    width: 100%;
}
.ciq-faq-page .ciq-search-input::placeholder { color: #aaa; font-weight: 400; }

/* ─── HERO ILLUSTRATION ─── */
.ciq-faq-page .ciq-hero-illustration {
    flex-shrink: 0;
    width: 280px;
    padding-bottom: 1rem;
}

/* ─── POPULAR CAROUSEL ─── */
.ciq-faq-page .ciq-today-carousel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ciq-faq-page .ciq-today-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    opacity: 0.5;
    transform: translateX(8px);
    transition: opacity 0.45s, transform 0.45s, border-color 0.45s, box-shadow 0.45s;
    box-shadow: none;
    display: block;
}
.ciq-faq-page .ciq-today-card.active {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    /* border-color injected via inline style */
}

.ciq-faq-page .ciq-today-title {
    color: #1c1c1c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}
.ciq-faq-page .ciq-today-label {
    color: var(--ciq-coral);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

/* ─── BODY LAYOUT ─── */
.ciq-faq-page .ciq-body-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 0;
    padding: 2.5rem 1.5rem 4rem;
    width: 100%;
    align-items: start;
}
.ciq-faq-page .ciq-body-layout.has-sidebar {
    grid-template-columns: 260px 1fr;
}
.ciq-faq-page .ciq-body-layout.no-sidebar {
    grid-template-columns: 1fr;
}

/* ─── SIDEBAR ─── */
.ciq-faq-page .ciq-sidebar {
    position: sticky;
    top: 28px;
    padding-right: 2rem;
    min-width: 0;
}
.ciq-faq-page .ciq-sidebar-section { margin-bottom: 2rem; }

.ciq-faq-page .ciq-sidebar-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    /* border-bottom-color injected via inline style */
}

.ciq-faq-page .ciq-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ciq-faq-page .ciq-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 600;
    color: #4a4a4a;
    text-align: left;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}
.ciq-faq-page .ciq-cat-btn:hover {
    background: rgba(0,0,0,0.04);
    transform: translateX(3px);
    /* color injected via inline style */
}
.ciq-faq-page .ciq-cat-btn.active {
    color: #fff;
    font-weight: 700;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    /* background and border-color injected via inline style */
}

.ciq-faq-page .ciq-cat-count {
    font-size: 11px;
    font-weight: 800;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
}
.ciq-faq-page .ciq-cat-btn.active .ciq-cat-count {
    background: rgba(255,255,255,0.25);
}

/* Most Viewed */
.ciq-faq-page .ciq-most-viewed-item {
    padding: 10px 0;
    border-bottom: 1.5px dashed rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.18s;
}
.ciq-faq-page .ciq-most-viewed-item:last-child { border-bottom: none; }
.ciq-faq-page .ciq-most-viewed-item:hover { transform: translateX(4px); }

.ciq-faq-page .ciq-most-viewed-q {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    line-height: 1.45;
    margin-bottom: 3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.18s;
}
/* hover color injected via inline style */

.ciq-faq-page .ciq-most-viewed-meta {
    font-size: 11.5px;
    color: #999;
    font-weight: 600;
}

/* ─── RESULTS HEADER ─── */
.ciq-faq-page .ciq-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 1.4rem;
    /* border-bottom injected via inline style */
}
.ciq-faq-page .ciq-results-title {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    /* color injected via inline style */
}
.ciq-faq-page .ciq-results-meta {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    background: var(--ciq-cream-dk);
    padding: 3px 12px;
    border-radius: 20px;
}

/* ─── MAIN CONTENT ─── */
.ciq-faq-page .ciq-main-content { min-width: 0; }

/* ─── FAQ LIST ─── */
.ciq-faq-page .ciq-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ─── FAQ ITEMS ─── */
.ciq-faq-page .ciq-faq-item {
    background: #fff;
    border: 2px solid var(--ciq-cream-dk);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.15s;
    width: 100%;
}
.ciq-faq-page .ciq-faq-item.hidden { display: none; }
.ciq-faq-page .ciq-faq-item:hover {
    transform: translateY(-1px);
    /* border-color injected via inline style */
}
.ciq-faq-page .ciq-faq-item.open {
    transform: translateY(-1px);
    /* border-color and box-shadow injected via inline style */
}

.ciq-faq-page .ciq-faq-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px 18px;
    text-align: left;
    font-family: inherit;
    min-width: 0;
    white-space: normal;
}

.ciq-faq-page .ciq-faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ciq-cream-dk);
    font-size: 11px;
    font-weight: 900;
    color: #aaa;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}
.ciq-faq-page .ciq-faq-item.open .ciq-faq-number {
    background: var(--ciq-yellow);
    /* color injected via inline style */
}

.ciq-faq-page .ciq-faq-question {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #1c1c1c;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    white-space: normal;
    /* font-size and color injected via inline style */
}

.ciq-faq-page .ciq-faq-chevron {
    font-size: 20px;
    color: var(--ciq-cream-dk);
    transition: transform 0.3s ease, color 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.ciq-faq-page .ciq-faq-item.open .ciq-faq-chevron {
    transform: rotate(180deg);
    /* color injected via inline style */
}

.ciq-faq-page .ciq-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.ciq-faq-page .ciq-faq-body.open { max-height: 800px; }

.ciq-faq-page .ciq-faq-inner {
    padding: 4px 18px 20px 58px;
    border-top: 2px dashed var(--ciq-cream-dk);
}

.ciq-faq-page .ciq-faq-answer {
    font-size: 14.5px;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 1.75;
    margin-bottom: 14px;
    margin-top: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* font-size injected via inline style */
}

.ciq-faq-page .ciq-faq-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ciq-faq-page .ciq-faq-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    /* color, background, border-color injected via inline style */
}
.ciq-faq-page .ciq-faq-tag:hover { color: #fff; }

/* ─── READ MORE ─── */
.ciq-faq-page .ciq-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ciq-coral);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--ciq-coral-dk);
    box-shadow: 3px 3px 0 var(--ciq-coral-dk);
    transition: background 0.15s, transform 0.12s, box-shadow 0.12s;
}
.ciq-faq-page .ciq-read-more:hover {
    background: var(--ciq-coral-dk);
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--ciq-coral-dk);
}

/* ─── SHOW ALL ─── */
.ciq-faq-page .ciq-show-all-wrap {
    text-align: center;
    margin-top: 1.8rem;
}
.ciq-faq-page .ciq-show-all-wrap.hidden { display: none; }

.ciq-faq-page .ciq-show-all-btn {
    background: var(--ciq-yellow);
    border: 2.5px solid transparent;
    cursor: pointer;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    transition: transform 0.12s, box-shadow 0.12s;
    /* color and border-color injected via inline style */
}
.ciq-faq-page .ciq-show-all-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

/* ─── MOBILE ─── */
@media (max-width: 800px) {
    .ciq-faq-page { overflow-x: hidden; width: 100%; max-width: 100vw; }

    .ciq-faq-page .ciq-body-layout {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 1rem 3rem;
        gap: 24px;
    }

    .ciq-faq-page .ciq-sidebar {
        position: static;
        padding-right: 0;
        margin-bottom: 0;
        order: -1;
        width: 100%;
    }

    .ciq-faq-page .ciq-sidebar-section {
        border: 1px solid var(--ciq-cream-dk);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .ciq-faq-page .ciq-sidebar-title {
        cursor: pointer;
        padding: 12px 14px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--ciq-cream-dk);
        background: #f9f9f9;
        position: relative;
    }
    .ciq-faq-page .ciq-sidebar-title::after {
        content: '▼';
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        transition: transform 0.3s;
    }
    .ciq-faq-page .ciq-sidebar-section.collapsed .ciq-sidebar-title::after {
        transform: translateY(-50%) rotate(-90deg);
    }

    .ciq-faq-page .ciq-sidebar-content {
        max-height: 500px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 8px;
    }
    .ciq-faq-page .ciq-sidebar-section.collapsed .ciq-sidebar-content {
        max-height: 0;
        padding: 0;
    }

    .ciq-faq-page .ciq-hero {
        padding: 2.5rem 1.25rem 0;
    }
    .ciq-faq-page .ciq-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 5rem;
    }
    .ciq-faq-page .ciq-hero-illustration { width: 100%; }
    .ciq-faq-page .ciq-today-carousel {
        flex-direction: row;
        overflow-x: auto;
    }
    .ciq-faq-page .ciq-today-card { min-width: 200px; }

    .ciq-faq-page .ciq-hero h1 {
        font-size: clamp(28px, 8vw, 52px) !important;
        word-break: break-word;
    }

    .ciq-faq-page .ciq-search-wrap { max-width: 100%; }

    .ciq-faq-page .ciq-faq-item { overflow: hidden; }
    .ciq-faq-page .ciq-faq-trigger { padding: 14px 14px; gap: 10px; }
    .ciq-faq-page .ciq-faq-question { font-size: 14px !important; word-break: break-word; overflow-wrap: anywhere; }
    .ciq-faq-page .ciq-faq-inner { padding: 4px 16px 18px 16px; }
    .ciq-faq-page .ciq-faq-answer { font-size: 14px !important; word-break: break-word; overflow-wrap: anywhere; }

    .ciq-faq-page .ciq-show-all-btn { width: 100%; max-width: 320px; }
}
