/* =====================================
   SHOAIBECOM — FAQ PAGE
   (needs css/common.css loaded first;
   the accordion itself is styled in common.css)
===================================== */

/* HERO + SEARCH */

.faq-hero {
    padding-bottom: 80px;
}

.faq-search {
    position: relative;
    max-width: 640px;
    margin-top: 40px;
}

.faq-search input {
    width: 100%;
    padding: 20px 130px 20px 56px;
    border: 1px solid color-mix(in srgb, var(--wine) 22%, transparent);
    background: #fffdfa;
    font-size: 14px;
    color: var(--ink);
    outline: 0;
    border-radius: 0;
    transition: border-color .25s, box-shadow .25s;
    -webkit-appearance: none;
}

.faq-search input::placeholder {
    color: #a59a95;
}

.faq-search input:focus {
    border-color: var(--wine);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--wine-dark) 12%, transparent);
}

.faq-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--wine);
}

.faq-count {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8c817d;
}

/* TABS */

.faq-body {
    padding: 0 0 120px;
}

.faq-tabs {
    position: sticky;
    top: 88px;
    z-index: 20;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 18px 0;
    margin-bottom: 40px;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.faq-tabs::-webkit-scrollbar {
    display: none;
}

.faq-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 1px solid color-mix(in srgb, var(--wine) 22%, transparent);
    border-radius: 30px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: var(--wine);
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}

.faq-tab:hover {
    border-color: var(--wine);
}

.faq-tab.is-active {
    background: var(--wine);
    border-color: var(--wine);
    color: #fff;
}

/* LAYOUT */

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 70px;
    align-items: start;
}

.faq-group {
    margin-bottom: 56px;
    scroll-margin-top: 170px;
}

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

.faq-group-title {
    font: 800 13px var(--display);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--wine);
    margin: 0 0 6px;
}

/* highlight matching words while searching */
.faq-q mark {
    background: var(--rose-mist);
    color: inherit;
    padding: 0 2px;
}

/* EMPTY STATE */

.faq-empty {
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed color-mix(in srgb, var(--wine) 30%, transparent);
}

.faq-empty span {
    font-size: 40px;
    color: var(--wine);
}

.faq-empty h3 {
    font: 800 24px var(--display);
    margin: 10px 0 8px;
}

.faq-empty p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* SIDE HELP CARD */

.faq-aside {
    position: sticky;
    top: 180px;
}

.faq-help {
    position: relative;
    overflow: hidden;
    padding: 36px 32px;
    background: linear-gradient(160deg, var(--wine), var(--wine-dark));
    color: #fff;
}

.faq-help::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -120px;
    bottom: -120px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.faq-help-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--wine);
    font: 800 22px var(--display);
    margin-bottom: 24px;
}

.faq-help h3 {
    font: 800 24px/1.15 var(--display);
    letter-spacing: -.8px;
    margin: 0 0 10px;
}

.faq-help p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--rose-pale);
    margin: 0 0 24px;
}

.faq-help .form-submit {
    width: 100%;
    justify-content: space-between;
}

.faq-help-link {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rose-light);
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .faq-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .faq-hero {
        padding-bottom: 50px;
    }

    .faq-search input {
        padding: 17px 16px 17px 48px;
        font-size: 13px;
    }

    .faq-search-icon {
        left: 16px;
    }

    .faq-count {
        display: none;
    }

    .faq-tabs {
        top: 74px;
        margin-bottom: 30px;
    }

    .faq-body {
        padding-bottom: 80px;
    }

    .faq-group {
        margin-bottom: 40px;
    }

    .faq-help {
        padding: 30px 24px;
    }
}
