/* Support page - FAQ accordions + contact form. */

.support-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
}
.support-head h1 {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 800;
}
.support-lead {
    color: var(--ink-muted);
    margin: 0 0 24px;
    max-width: 60ch;
}

.support-block {
    margin-bottom: 40px;
    /* When scrollIntoView lands on the contact section, leave room
       for the sticky header so the heading isn't tucked under it. */
    scroll-margin-top: 80px;
}
#contact-result { scroll-margin-top: 80px; }
.support-block h2 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-muted);
    font-weight: 700;
}

/* ---- FAQ accordion (pure <details>) ---- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    transition: box-shadow 120ms ease, border-color 120ms ease;
}
.faq-item[open] {
    border-color: rgba(0, 106, 68, 0.30);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; }
.faq-item > summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--green);
    line-height: 1;
    transition: transform 200ms ease;
}
.faq-item[open] > summary::after {
    content: '−';
    transform: scale(1.1);
}
.faq-item > p {
    margin: 8px 0 4px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
}
.faq-item a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}
.faq-item a:hover { text-decoration: underline; }

/* ---- Contact form ---- */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.contact-form label > span small {
    color: var(--ink-muted);
    font-weight: 400;
    margin-left: 4px;
}
.contact-form textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: white;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 140px;
}
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 106, 68, 0.15);
}
.contact-form .muted.small {
    color: var(--ink-muted);
    font-size: 12px;
    margin-top: 8px;
}

/* Honeypot - visually hidden but still in the accessibility tree's
   reach if someone disables CSS. The form's aria-hidden plus the
   tabindex=-1 cover keyboard / SR users. */
.contact-honey {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 520px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 16px; }
}
