/* ===== FAQ COMPONENT SCOPE ONLY ===== */

.inherited-context {
    font-family: Inter, sans-serif;
    color: hsl(215 25% 15%);
}

/* Layout */

.inherited-context #faq {
    background-color: hsl(210 20% 98%);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.inherited-context .faq-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1400px;
}

.inherited-context .faq-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .inherited-context .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: flex-start;
    }

    .inherited-context .faq-intro {
        position: sticky;
        top: 8rem;
        align-self: flex-start;
    }
}

/* Intro column */

.inherited-context .badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: rgba(21, 34, 176, 0.1);
    color: rgb(21, 34, 176);
}

.inherited-context .faq-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    color: rgb(20, 24, 76);
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.inherited-context .faq-title .highlight {
    color: rgb(21, 34, 176);
}

@media (min-width: 768px) {
    .inherited-context .faq-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .inherited-context .faq-title {
        font-size: 3rem;
        line-height: 1;
    }
}

.inherited-context .faq-subtitle {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: rgba(20, 24, 76, 0.8);
    margin-bottom: 2rem;
}

/* Help box */

.inherited-context .faq-help-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(210 20% 88%);
    background-color: hsl(210 20% 94% / 0.5);
}

.inherited-context .faq-help-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inherited-context .faq-help-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(21, 34, 176, 0.1);
    color: rgb(21, 34, 176);
}

.inherited-context .faq-help-title {
    font-weight: 600;
    color: rgb(20, 24, 76);
    margin: 0;
}

.inherited-context .faq-help-subtitle {
    font-size: 0.875rem;
    color: rgba(20, 24, 76, 0.7);
    margin: 0;
}

.inherited-context .faq-help-text {
    font-size: 0.875rem;
    color: rgba(20, 24, 76, 0.8);
    margin: 0 0 1rem;
}

.inherited-context .faq-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(21, 34, 176);
    text-decoration: none;
}

.inherited-context .faq-help-link:hover {
    text-decoration: underline;
}

/* Accordion base */

.inherited-context .faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card */

.inherited-context .faq-item {
    border-radius: var(--radius, 0.5rem);
    border: 1px solid hsl(210 20% 88%);
    background-color: hsl(0 0% 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.inherited-context .faq-item[data-state="open"] {
    border-color: rgba(21, 34, 176, 0.3);
    box-shadow:
        0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Trigger button */

.inherited-context .faq-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: hsl(215 25% 15%);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.inherited-context .faq-trigger:hover {
    color: hsl(210 75% 25%);
    text-decoration: underline;
}

.inherited-context .faq-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Rotate chevron when open */

.inherited-context .faq-trigger[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

/* Panel (smooth height animation) */

.inherited-context .faq-panel {
    overflow: hidden;
    transition: height 0.25s ease, opacity 0.25s ease;
}

.inherited-context .faq-panel-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgba(20, 24, 76, 0.8);
}

/* Hidden state handled in JS by height + hidden attribute */

/* Small tweaks for mobile */

@media (max-width: 640px) {
    .inherited-context .faq-title {
        font-size: 1.75rem;
    }

    .inherited-context .faq-subtitle {
        font-size: 1rem;
    }
}