/*
 * FAQ (Content Fragments)
 *
 * Matches the production car-insurance FAQ treatment: green heading, pill
 * filter tabs, and numbered white rows sitting on a light grey panel.
 *
 * Self-contained rather than reusing faqv2's .acc-tab rules, because those
 * live in iffcotokio.site and this component is also dropped on pages whose
 * base clientlib differs. Everything here is namespaced under .faq-cf.
 */

.faq-cf {
    padding: 28px 0 56px;
	font-size:1.75rem;
}

.faq-cf-heading {
    color: #009640;
    font-weight: 700;
    margin: 0 0 4rem;
    text-align: center;
	font-size:3rem;

}

.faq-cf-intro {
    color: #444;
    margin: 0 auto 28px;
    max-width: 760px;
    text-align: center;
}

/* ---- filter tabs ---- */

.faq-cf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.faq-cf-tabs li {
    background: #e9ecef;
    border-radius: 999px;
    color: #333;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.2;
    padding: 11px 26px;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.faq-cf-tabs li:hover {
    background: #dde1e5;
}

.faq-cf-tabs li.active {
    background: #006837;
    color: #fff;
}

.faq-cf-tabs li:focus-visible {
    outline: 2px solid #006837;
    outline-offset: 2px;
}

/* ---- panel + rows ---- */

.faq-cf-panel {
    background: #eef0f2;
    border-radius: 14px;
    margin: 0 auto;
    max-width: 1140px;
    padding: 26px;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.faq-cf-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow .15s ease;
}

.faq-cf-item:last-child {
    margin-bottom: 0;
}

.faq-cf-item[hidden] {
    display: none;
}

.faq-cf-q {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    font-weight: 600;
    gap: 18px;
    margin: 0;
    padding: 22px 26px;
}

.faq-cf-num {
    color: #000;
    flex: 0 0 auto;
    font-size: 15px;
    min-width: 14px;
    text-align: right;
	font-weight: 600;
}

.faq-cf-q-text {
    flex: 1 1 auto;
}

/* ---- Plus / Minus SVG Toggle ---- */
.faq-cf-icon-wrapper {
    flex: 0 0 auto;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-cf-icon-wrapper .icon {
    width: 24px;
    height: 24px;
    fill: #00a959; /* Ensures the green color from your screenshots */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Default State: Show Plus, Hide Minus */
.faq-cf-icon-wrapper .icon-minus {
    display: none;
}

/* Active State: Hide Plus, Show Minus */
.faq-cf-item.active .faq-cf-icon-wrapper .icon-plus {
    display: none;
}

.faq-cf-item.active .faq-cf-icon-wrapper .icon-minus {
    display: block;
}

.faq-cf-q:focus-visible {
    outline: 2px solid #006837;
    outline-offset: -2px;
}

/* ---- answer ---- */

.faq-cf-a {
    display: none;
    padding: 0 26px 22px 58px;
}

.faq-cf-item.active .faq-cf-a {
    display: block;
}

.faq-cf-a p {
    color: #444;
    line-height: 1.7;
    margin: 0 0 14px;
}

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

.faq-cf-a a {
    color: #006837;
    text-decoration: underline;
}

.faq-cf-a ul,
.faq-cf-a ol {
    color: #444;
    line-height: 1.7;
    padding-left: 20px;
}

.faq-cf-a ul li {
    list-style-type: disc;
    color: #000;
}

.faq-cf-a iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    max-width: 100%;
    width: 560px;
}

.faq-cf-viewall {
    margin: 32px 0 0;
    text-align: center;
}

.faq-cf-viewall a {
    background: #006837;
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    padding: 12px 34px;
    text-decoration: none;
}

@media (max-width: 767px) {
    .faq-cf-panel {
        border-radius: 10px;
        padding: 14px;
    }

    .faq-cf-q {
        font-size: 16px;
        gap: 12px;
        padding: 18px 16px;
    }

    .faq-cf-a {
        padding: 0 16px 18px 42px;
    }

    .faq-cf-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .faq-cf-tabs li {
        flex: 0 0 auto;
    }
.faq-cf-heading {
font-size: 2.5rem;
}
}
