/*
   HELP.CSS - Help & FAQ Page
   Page-specific styles only
 */

.help-section {
    padding: 4rem 0;
    background: var(--off-white);
}

.help-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-light);
}

.help-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.help-topics a {
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.help-topics a:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.help-group {
    max-width: 860px;
    margin: 0 auto 3rem;
    scroll-margin-top: 170px;
}

.help-group h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.help-group h2 i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.help-item {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.help-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
}

.help-item summary::-webkit-details-marker {
    display: none;
}

.help-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary-blue);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.help-item[open] summary::after {
    transform: rotate(180deg);
}

.help-item summary:hover {
    color: var(--primary-blue);
}

.help-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

.help-answer p {
    margin-bottom: 0.75rem;
}

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

.help-answer ul,
.help-answer ol {
    margin: 0 0 0.75rem 1.25rem;
}

.help-answer a {
    color: var(--primary-blue);
}

.help-answer table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 0.75rem;
    font-size: 0.95em;
}

.help-answer th,
.help-answer td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--medium-gray);
    text-align: left;
}

.help-answer th {
    color: var(--text-dark);
    font-weight: 600;
}

.help-contact {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    text-align: center;
}

.help-contact h2 {
    margin-bottom: 0.75rem;
}

.help-contact p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.help-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Phones keep the desktop layout, scaled down: topics on one row, questions on one line,
   both contact buttons side by side */
@media (max-width: 768px) {
    .help-section {
        padding: 2rem 0;
    }

    .help-intro {
        font-size: 0.72rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .help-topics {
        flex-wrap: nowrap;
        justify-content: safe center;
        gap: 0.3rem;
        margin: 0 -1rem 2rem;
        padding: 0 1rem 0.25rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .help-topics::-webkit-scrollbar {
        display: none;
    }

    .help-topics a {
        flex-shrink: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.66rem;
        white-space: nowrap;
    }

    /* Short labels on phones so all topics fit on one row */
    .help-topics .topic-extra {
        display: none;
    }

    .help-group {
        margin-bottom: 2rem;
    }

    .help-group h2 {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }

    .help-item {
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }

    .help-item summary {
        padding: 0.75rem 0.9rem;
        font-size: 0.78rem;
    }

    .help-item summary::after {
        font-size: 0.65rem;
    }

    .help-answer {
        padding: 0 0.9rem 0.9rem;
        font-size: 0.78rem;
    }

    .help-answer th,
    .help-answer td {
        padding: 0.4rem 0.5rem;
    }

    .help-contact {
        padding: 1.5rem 1rem;
    }

    .help-contact h2 {
        font-size: 1.3rem;
    }

    .help-contact p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .help-contact-buttons {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .help-contact-buttons .btn-primary,
    .help-contact-buttons .btn-outline {
        width: auto;
        margin: 0;
        padding: 0.55rem 0.9rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }
}
