.faq-main {
    background:
        radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.08), transparent 24rem),
        #f7f9fc;
    color: #13213d;
}

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(circle at 92% 10%, rgba(34, 184, 224, 0.22), transparent 22rem),
        linear-gradient(135deg, #062841 0%, #0b2145 52%, #173f82 100%);
    color: #ffffff;
}

.faq-hero::before,
.faq-hero::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.faq-hero::before {
    top: -10rem;
    right: -7rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgba(125, 211, 252, 0.18);
}

.faq-hero::after {
    bottom: -14rem;
    left: -9rem;
    width: 28rem;
    height: 28rem;
    background: rgba(37, 99, 235, 0.16);
}

.faq-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(28rem, 1.12fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.faq-hero-copy {
    max-width: 40rem;
}

.faq-hero .section-kicker,
.faq-content .section-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #5ee4ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.faq-content .section-kicker {
    color: #2563eb;
}

.faq-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 5.2vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.faq-hero-copy > p {
    max-width: 38rem;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.79);
    font-size: clamp(1rem, 1.7vw, 1.16rem);
    line-height: 1.75;
}

.faq-search {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1.5rem 4rem rgba(1, 13, 35, 0.3);
    color: #13213d;
}

.faq-search label {
    display: block;
    margin-bottom: 0.65rem;
    color: #15284a;
    font-size: 0.9rem;
    font-weight: 750;
}

.faq-search-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.7rem;
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    border: 1px solid #cad5e4;
    border-radius: 0.9rem;
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-search-control:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.faq-search-icon {
    position: relative;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid #2563eb;
    border-radius: 50%;
}

.faq-search-icon::after {
    position: absolute;
    right: -0.37rem;
    bottom: -0.22rem;
    width: 0.48rem;
    height: 2px;
    background: #2563eb;
    content: "";
    transform: rotate(-48deg);
    transform-origin: left center;
}

.faq-search-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #13213d;
    font: inherit;
}

.faq-search-control input::placeholder {
    color: #7a879c;
}

.faq-search-control button {
    min-height: 2.9rem;
    padding: 0.65rem 1.15rem;
    border: 0;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #2d6bea, #1851c7);
    box-shadow: 0 0.55rem 1.2rem rgba(37, 99, 235, 0.2);
    color: #ffffff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.faq-search-control button:hover {
    background: linear-gradient(135deg, #245fd8, #123fa7);
}

.faq-search-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
}

.faq-search-status,
.faq-noscript-note {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.faq-clear-search {
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.faq-clear-search:hover {
    text-decoration: underline;
}

.faq-noscript-note {
    margin-top: 0.75rem;
}

.faq-content {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.faq-start {
    margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.faq-section-heading {
    max-width: 45rem;
    margin-bottom: 1.5rem;
}

.faq-section-heading h2,
.faq-results-heading h2,
.faq-help-card h2 {
    margin: 0;
    color: #10213f;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.faq-section-heading p,
.faq-help-card p {
    margin: 0.75rem 0 0;
    color: #5c6b80;
    line-height: 1.7;
}

.faq-start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.faq-start-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 6.4rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.55rem 1.6rem rgba(15, 35, 70, 0.06);
    color: #173564;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease,
        box-shadow 160ms ease;
}

.faq-start-card span:last-child {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 1.2rem;
}

.faq-start-card:hover {
    border-color: #a7c1f4;
    box-shadow: 0 0.9rem 2.2rem rgba(15, 58, 130, 0.1);
    transform: translateY(-2px);
}

.faq-topic-nav {
    position: sticky;
    z-index: 5;
    top: 0;
    margin-bottom: 2.25rem;
    padding: 1rem;
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.7rem 2rem rgba(15, 35, 70, 0.06);
    backdrop-filter: blur(12px);
}

.faq-topic-nav > span {
    display: block;
    margin: 0 0 0.65rem 0.35rem;
    color: #58677c;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.faq-topic-links {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: thin;
}

.faq-topic-links a {
    flex: 0 0 auto;
    padding: 0.58rem 0.82rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #526177;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.faq-topic-links a:hover {
    border-color: #ccd8e8;
    background: #f5f8fc;
    color: #173564;
}

.faq-topic-links a.is-active {
    border-color: #bfd2fa;
    background: #edf4ff;
    color: #1d4ed8;
}

.faq-results-heading {
    margin: 0 0 1.75rem;
}

.faq-category {
    display: grid;
    grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 0.68fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: 2.4rem 0;
    border-top: 1px solid #dce4ef;
    scroll-margin-top: 8rem;
}

.faq-category:first-child {
    border-top: 0;
}

.faq-category-heading {
    align-self: start;
}

.faq-category-kicker {
    display: block;
    margin-bottom: 0.45rem;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.faq-category-heading h2 {
    margin: 0;
    color: #13284b;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.faq-category-count {
    display: inline-block;
    margin-top: 0.7rem;
    color: #7a8798;
    font-size: 0.78rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    overflow: hidden;
    border: 1px solid #dce4ef;
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: 0 0.45rem 1.3rem rgba(15, 35, 70, 0.045);
    scroll-margin-top: 9rem;
}

.faq-item[open] {
    border-color: #b9cef5;
    box-shadow: 0 0.75rem 1.8rem rgba(37, 99, 235, 0.08);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 4.5rem;
    padding: 1rem 1.15rem;
    color: #14294d;
    font-weight: 750;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: #1d4ed8;
}

.faq-item summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: -3px;
}

.faq-item-icon {
    position: relative;
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #edf4ff;
}

.faq-item-icon::before,
.faq-item-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.72rem;
    height: 2px;
    border-radius: 2px;
    background: #2563eb;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform 160ms ease;
}

.faq-item-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    padding: 0 1.15rem 1.25rem;
    border-top: 1px solid #edf1f6;
}

.faq-answer p {
    max-width: 52rem;
    margin: 1rem 0 0;
    color: #526177;
    line-height: 1.72;
}

.faq-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.faq-related-link:hover {
    text-decoration: underline;
}

.faq-no-results {
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px dashed #b9c7d9;
    border-radius: 1.2rem;
    background: #ffffff;
    text-align: center;
}

.faq-no-results h2 {
    margin: 0;
    color: #13284b;
}

.faq-no-results p {
    max-width: 38rem;
    margin: 0.75rem auto 0;
    color: #607087;
    line-height: 1.65;
}

.faq-no-results-actions,
.faq-help-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.faq-help-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid #c7d9f7;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 92% 10%, rgba(56, 189, 248, 0.16), transparent 16rem),
        linear-gradient(135deg, #eef5ff, #ffffff);
    box-shadow: 0 1rem 2.8rem rgba(15, 58, 130, 0.08);
}

.faq-help-card > div:first-child {
    max-width: 48rem;
}

.faq-help-actions {
    flex-wrap: nowrap;
    margin-top: 0;
}

.faq-selection {
    margin: clamp(2.5rem, 6vw, 5rem) 0;
}

.faq-selection-heading {
    max-width: 45rem;
    margin-bottom: 1.35rem;
}

.faq-selection-heading h2 {
    margin: 0;
}

.faq-selection-heading p {
    color: #5c6b80;
    line-height: 1.7;
}

.faq-selection-more {
    margin-top: 1rem;
}

.faq-selection-more a {
    color: #1d4ed8;
    font-weight: 750;
}

.is-hidden,
[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .faq-hero-inner {
        grid-template-columns: 1fr;
    }

    .faq-hero-copy {
        max-width: 44rem;
    }

    .faq-start-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-category {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .faq-help-card {
        grid-template-columns: 1fr;
    }

    .faq-help-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .faq-hero {
        padding-top: 3.4rem;
    }

    .faq-search-control {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .faq-search-control button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .faq-search-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .faq-start-grid {
        grid-template-columns: 1fr;
    }

    .faq-start-card {
        min-height: 5.2rem;
    }

    .faq-topic-nav {
        margin-right: -0.35rem;
        margin-left: -0.35rem;
        border-radius: 0.85rem;
    }

    .faq-category {
        padding: 2rem 0;
    }

    .faq-item summary {
        min-height: 4.25rem;
        padding: 0.95rem;
    }

    .faq-answer {
        padding: 0 0.95rem 1.1rem;
    }

    .faq-help-actions,
    .faq-no-results-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .faq-help-actions .button,
    .faq-no-results-actions .button {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-start-card,
    .faq-item-icon::before,
    .faq-item-icon::after,
    .faq-search-control {
        transition: none;
    }
}
