@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =====================================================================
   KIDDIES KINGDOM — FAQ PAGE REDESIGN
   Scoped under .kk-faq. Two-column accordion + live search.
   Brand palette = purple->cyan gradient + navy/cyan accents
   (matches contact-us page & showroom). No yellow.
   ===================================================================== */

.kk-faq {
    --kk-grad: linear-gradient(45deg, rgb(101, 35, 95) 0%, rgb(0, 164, 195) 100%);
    --kk-purple: #65235f;
    --kk-cyan: #00a4c3;
    --kk-navy: #023b58;
    --kk-ink: #111111;
    --kk-body: #545454;
    --kk-muted: #9a9a9a;
    --kk-line: #e5e5e5;
    --kk-bg-soft: #f4f8fa;
    --kk-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;

    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    color: var(--kk-ink);
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* ---------- header ---------- */
.kk-faq-head {
    text-align: center;
    margin-bottom: 30px;
}

.kk-faq-eyebrow {
    display: inline-block;
    width: 46px;
    height: 4px;
    border-radius: 2px;
    background: var(--kk-grad);
    margin: 0 0 22px;
}

.kk-faq-title {
    font-family: var(--kk-head);
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.8px;
    margin: 0 0 14px;
    color: var(--kk-ink);
}

.kk-faq-intro {
    font-size: 15px;
    font-weight: 300;
    color: var(--kk-body);
    max-width: 79%;
    margin: 0 auto;
    line-height: 1.7;
}
.kk-faq-intro p { margin: 0 0 6px; }

/* ---------- search ---------- */
.kk-faq-search {
    position: relative;
    max-width: 540px;
    margin: 0 auto 38px;
}

.kk-faq-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kk-muted);
    pointer-events: none;
}

.kk-faq-search input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--kk-line);
    border-radius: 999px;
    background: #fff;
    padding: 0 22px 0 52px;
    font-family: var(--kk-head);
    font-size: 15px;
    color: var(--kk-ink);
    box-shadow: 0 6px 20px rgba(2, 59, 88, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.kk-faq-search input::placeholder { color: var(--kk-muted); }
.kk-faq-search input:focus {
    outline: none;
    border-color: var(--kk-cyan);
    box-shadow: 0 6px 24px rgba(0, 164, 195, 0.18);
}

/* clear (x) button */
.kk-faq-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--kk-bg-soft);
    color: var(--kk-body);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}
.kk-faq-search.has-value .kk-faq-search-clear { display: inline-flex; }
.kk-faq-search-clear:hover { background: var(--kk-cyan); color: #fff; }

/* ---------- two-column grid ---------- */
.kk-faq-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px 20px;
}

.kk-faq-item {
    border: 1px solid var(--kk-line);
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.kk-faq-item:hover { border-color: #cfd8dc; }
.kk-faq-item.is-open {
    border-color: var(--kk-cyan);
    box-shadow: 0 10px 30px rgba(2, 59, 88, 0.08);
}
.kk-faq-item.is-hidden { display: none; }

/* ---------- question button ---------- */
.kk-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--kk-head);
    color: var(--kk-ink);
}
.kk-faq-q:focus-visible {
    outline: 2px solid var(--kk-cyan);
    outline-offset: -2px;
}

.kk-faq-num {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    min-width: 20px;
    line-height: 1.5;
    background: var(--kk-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kk-faq-q-text {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.2px;
    color: var(--kk-ink);
}
.kk-faq-item.is-open .kk-faq-q-text { color: var(--kk-navy); }

/* chevron in a soft circle */
.kk-faq-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--kk-bg-soft);
    color: var(--kk-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, background 0.25s ease, color 0.25s ease;
}
.kk-faq-icon svg { display: block; }
.kk-faq-item.is-open .kk-faq-icon {
    background: var(--kk-grad);
    color: #fff;
    transform: rotate(180deg);
}

/* ---------- answer panel ---------- */
.kk-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
/* long answers: cap height (set inline by JS) and scroll inside the panel */
.kk-faq-a--scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
}
.kk-faq-a--scroll::-webkit-scrollbar { width: 8px; }
.kk-faq-a--scroll::-webkit-scrollbar-track { background: transparent; }
.kk-faq-a--scroll::-webkit-scrollbar-thumb {
    background: #cdd8dd;
    border-radius: 8px;
}
.kk-faq-a--scroll:hover::-webkit-scrollbar-thumb { background: #b3c2c8; }
.kk-faq-a-inner {
    padding: 0 22px 24px 58px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--kk-body);
}
.kk-faq-a-inner p { margin: 0 0 12px; }
.kk-faq-a-inner p:last-child { margin-bottom: 0; }
.kk-faq-a-inner a {
    color: var(--kk-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--kk-cyan);
    transition: color 0.15s ease;
}
.kk-faq-a-inner a:hover { color: var(--kk-cyan); }
.kk-faq-a-inner ul,
.kk-faq-a-inner ol { margin: 0 0 12px; padding-left: 20px; }
.kk-faq-a-inner li { margin-bottom: 6px; }

/* buttons inside answers -> dark pill CTA (matches showroom .kk-shr-cta--dark) */
.kk-faq-a-inner .btn,
.kk-faq-a-inner .button,
.kk-faq-a-inner .exclusive,
.kk-faq-a-inner a.btn-primary,
.kk-faq-a-inner a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 22px;
    margin: 4px 0;
    background: var(--kk-ink);
    color: #fff !important;
    font-family: var(--kk-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    border: 0;
    border-radius: 3px;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.kk-faq-a-inner .btn:hover,
.kk-faq-a-inner .button:hover,
.kk-faq-a-inner .exclusive:hover,
.kk-faq-a-inner a.btn-primary:hover,
.kk-faq-a-inner a.button:hover {
    background: #000;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
/* answers sometimes wrap the label in an inline-styled <span> — force it white */
.kk-faq-a-inner .btn span,
.kk-faq-a-inner .button span,
.kk-faq-a-inner .exclusive span,
.kk-faq-a-inner a.btn-primary span,
.kk-faq-a-inner a.button span {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* ---------- no results ---------- */
.kk-faq-noresults {
    display: none;
    text-align: center;
    color: var(--kk-muted);
    font-size: 15px;
    padding: 40px 0;
}
.kk-faq-noresults.is-visible { display: block; }
.kk-faq-noresults strong { color: var(--kk-navy); }

/* ---------- related (chips to other help pages) ---------- */
.kk-faq-related {
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid var(--kk-line);
    text-align: center;
}
.kk-faq-related-label {
    display: block;
    font-family: var(--kk-head);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--kk-muted);
    margin-bottom: 16px;
}
.kk-faq-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.kk-faq-chip {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--kk-line);
    background: #fff;
    font-family: var(--kk-head);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--kk-navy) !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.kk-faq-chip:hover {
    border-color: var(--kk-ink);
    background: var(--kk-ink);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
    .kk-faq { padding: 32px 16px 60px; }
    .kk-faq-title { font-size: 30px; }
    .kk-faq-items { grid-template-columns: 1fr; gap: 12px; }
    .kk-faq-q { padding: 14px 14px; gap: 1px; }
    .kk-faq-q-text { font-size: 14px; }
    .kk-faq-a-inner { padding: 0 16px 20px 16px; }
    .kk-faq-icon { width: 30px; height: 30px; }
    .kk-faq-search input { height: 52px; }
    .kk-faq-a-inner{ font-size: 13.5px;}
    .kk-faq-intro { max-width: 100%; font-size: 14px; line-height: 1.6;}
}
