/* FAQ Page Styles */

.faq-hero {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: var(--light-bg-color);
}

.faq-hero h1 {
    font-size: var(--font-size-heading-1);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.faq-subtitle {
    font-size: var(--font-size-large);
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
}

.faq-content {
    padding: 3rem 2rem 4rem;
}

/* Jump links */
.faq-jump {
    max-width: 860px;
    margin: 0 auto 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-jump ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-jump li {
    margin: 0.35rem 0;
}

.faq-jump a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.5;
}

.faq-jump a:hover,
.faq-jump a:focus {
    text-decoration: underline;
}

/* Question cards */
.faq-item {
    max-width: 860px;
    margin: 0 auto 2rem;
    padding: 1.75rem 2rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    scroll-margin-top: 100px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    line-height: 1.35;
    color: var(--primary-color);
}

.faq-answer {
    margin: 0 0 1rem;
    color: var(--text-color);
    line-height: 1.65;
}

.faq-answer:last-child {
    margin-bottom: 0;
}

.faq-note {
    margin: 1rem 0 0;
    padding: 0.9rem 1.1rem;
    border-left: 4px solid var(--accent-color, #f0a500);
    background: var(--light-bg-color);
    border-radius: 0 8px 8px 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Methodology block shown under the coverage table */
.faq-method {
    margin: 1.75rem 0 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    background: var(--light-bg-color);
}

.faq-method-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--primary-color);
}

.faq-method-item + .faq-method-item {
    margin-top: 1.1rem;
}

.faq-method-heading {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
}

.faq-method-text {
    margin: 0;
    color: var(--text-color);
    line-height: 1.65;
}

.faq-method-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-color);
    line-height: 1.65;
}

.faq-method-list li + li {
    margin-top: 0.5rem;
}

/* Support note shown under the coverage table */
.faq-support-note {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-left: 4px solid var(--primary-color);
    background: var(--light-bg-color);
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

/* Positive note about how reliable the listed spots are */
.faq-trust-note {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-left: 4px solid var(--success-color, #2e7d32);
    background: var(--light-bg-color);
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

/* Restore purchase screenshot */
.faq-image-wrap {
    margin: 0 0 1rem;
    text-align: center;
}

.faq-image-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 720px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Refund links */
.faq-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.faq-store-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.faq-store-link:hover,
.faq-store-link:focus {
    opacity: 0.9;
    text-decoration: underline;
}

.faq-support-note a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Coverage table ===== */
.handipark-coverage-wrapper {
    max-width: 100%;
    margin: 1.5rem auto 0;
}

.handipark-table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.handipark-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9375rem;
}

.handipark-table caption {
    text-align: left;
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
}

.handipark-table caption .caption-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.handipark-table caption .caption-sub {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
    margin-top: 0.25rem;
}

.handipark-table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
    padding: 0.875rem 1.25rem;
    border-bottom: 2px solid #e2e8f0;
    vertical-align: top;
}

.handipark-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.handipark-table tbody tr:last-child td {
    border-bottom: none;
}

.handipark-table tbody tr:hover {
    background-color: #f8fafc;
    transition: background-color 0.15s ease-in-out;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

.badge-primary {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-success {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-accent {
    background-color: #f1f5f9;
    color: #475569;
}

.stat-number {
    font-weight: 700;
    color: #0f172a;
}

.table-footer-note {
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    background-color: #fafafa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* High contrast adjustments */
body.high-contrast .faq-item,
body.high-contrast .faq-jump,
body.high-contrast .faq-method {
    border-width: 2px;
}

body.high-contrast .faq-store-link {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

body.high-contrast .handipark-table th,
body.high-contrast .handipark-table td {
    border-color: #000;
}

body.high-contrast .handipark-table tbody tr:hover {
    background-color: #fff;
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 3rem 1rem 1.5rem;
    }

    .faq-content {
        padding: 2rem 1rem 3rem;
    }

    .faq-item {
        padding: 1.25rem 1.25rem;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .faq-image-wrap img {
        max-height: 520px;
    }
}
