/* CCS Tab FAQs widget — matches the reference screenshot design.
   Color values here are sensible defaults; the widget's Style tab controls
   override these via higher-specificity inline rules Elementor generates. */

.ccs-tf { max-width: 900px; margin: 0 auto; }

/* ---- Search bar ---- */
.ccs-tf-search { position: relative; max-width: 640px; margin: 0 auto 24px; }
.ccs-tf-search-icon {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: #9CA3AF; pointer-events: none;
}
.ccs-tf-search-input {
    width: 100%; box-sizing: border-box; padding: 14px 20px 14px 48px;
    font-family: 'Inter', -apple-system, sans-serif; font-size: 15px;
    color: #152a46; background: #FFFFFF; border: 1px solid #E5E7EB;
    border-radius: 9999px; outline: none; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ccs-tf-search-input:focus { border-color: #b4cbe7; box-shadow: 0 0 0 4px rgba(180,203,231,0.15); }
.ccs-tf-search-input::placeholder { color: #9CA3AF; }

/* ---- Tabs ---- */
.ccs-tf-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.ccs-tf-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    font-family: 'Inter', -apple-system, sans-serif; font-size: 14px; font-weight: 600;
    background: #FFFFFF; color: #152a46; border: none; border-radius: 9999px;
    cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all 0.2s ease;
    user-select: none; -webkit-tap-highlight-color: transparent;
}
.ccs-tf-tab:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.ccs-tf-tab:focus-visible, .ccs-tf-question:focus-visible { outline: 2px solid #b4cbe7; outline-offset: 2px; }
.ccs-tf-tab.active { background: #152a46; color: #FFFFFF; }
.ccs-tf-count {
    font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 9999px;
    background: #e8eef5; color: #152a46;
}
.ccs-tf-tab.active .ccs-tf-count { background: rgba(255,255,255,0.2); color: #FFFFFF; }

/* ---- FAQ list / accordion ---- */
.ccs-tf-list { display: flex; flex-direction: column; gap: 12px; }
.ccs-tf-item {
    background: #FFFFFF; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden; transition: box-shadow 0.2s ease;
}
.ccs-tf-item.ccs-tf-open { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ccs-tf-question {
    width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 24px; background: transparent; border: none; text-align: left; cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif; font-size: 16px; font-weight: 600; color: #152a46;
    user-select: none; -webkit-tap-highlight-color: transparent;
}
/* Harden question rows against theme/Elementor global [role=button] / :hover / :focus paint */
.ccs-tf .ccs-tf-question,
.ccs-tf .ccs-tf-question:hover,
.ccs-tf .ccs-tf-question:focus,
.ccs-tf .ccs-tf-question:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: normal;
}
.ccs-tf-chevron { flex-shrink: 0; color: #7a9ec4; transition: transform 0.2s ease; }
.ccs-tf-item.ccs-tf-open .ccs-tf-chevron { transform: rotate(180deg); }
.ccs-tf-answer { display: none; padding: 0 24px 20px; }
.ccs-tf-item.ccs-tf-open .ccs-tf-answer { display: block; }
.ccs-tf-answer p { margin: 0 0 12px; font-family: 'EB Garamond', Georgia, serif; font-size: 16px; color: #6B7280; line-height: 1.7; }
.ccs-tf-answer p:last-child { margin-bottom: 0; }
.ccs-tf-answer a { color: #7a9ec4; text-decoration: underline; transition: color 0.2s ease; }
.ccs-tf-answer a:hover { color: #152a46; }
.ccs-tf-answer ul, .ccs-tf-answer ol { margin: 0 0 12px; padding-left: 20px; color: #6B7280; }
.ccs-tf-answer strong { color: #152a46; }

.ccs-tf-empty {
    text-align: center; padding: 32px; font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px; color: #9CA3AF;
}

@media (max-width: 600px) {
    .ccs-tf-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .ccs-tf-tab { flex-shrink: 0; }
}
