/* PTP FAQ Accordion — front-end styles
   Vanilla CSS, no framework dependency. */

.ptp-faq-section {
    margin: 48px 0 32px;
    padding-top: 40px;
    border-top: 2px solid #e8e8e8;
    clear: both;
}

.ptp-faq-heading {
    font-size: 1.35em;
    margin: 0 0 20px;
    font-weight: 700;
}

.ptp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Individual item ─────────────────────────────────────────────────────── */

.ptp-faq-item {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

/* ── Question button ─────────────────────────────────────────────────────── */

.ptp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1em;
    font-weight: 600;
    color: inherit;
    gap: 16px;
    line-height: 1.4;
    transition: background 0.15s ease;
}

.ptp-faq-question:hover,
.ptp-faq-question:focus-visible {
    background: #f7f7f7;
    outline: none;
}

.ptp-faq-question:focus-visible {
    box-shadow: inset 0 0 0 2px #2271b1;
}

.ptp-faq-question[aria-expanded="true"] {
    background: #f7f7f7;
    border-bottom: 1px solid #e2e2e2;
}

.ptp-faq-q-text {
    flex: 1;
}

/* ── Plus/minus toggle icon ──────────────────────────────────────────────── */

.ptp-faq-icon {
    flex-shrink: 0;
    position: relative;
    width: 18px;
    height: 18px;
}

.ptp-faq-icon::before,
.ptp-faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* horizontal bar */
.ptp-faq-icon::before {
    width: 12px;
    height: 2px;
    top: 8px;
    left: 3px;
}

/* vertical bar — hides on open */
.ptp-faq-icon::after {
    width: 2px;
    height: 12px;
    top: 3px;
    left: 8px;
}

.ptp-faq-question[aria-expanded="true"] .ptp-faq-icon::after {
    transform: scaleY(0);
    opacity: 0;
}

/* ── Answer panel ────────────────────────────────────────────────────────── */

.ptp-faq-answer {
    padding: 0 20px;
    font-size: 0.97em;
    line-height: 1.65;
}

/* [hidden] overridden when open */
.ptp-faq-answer:not([hidden]) {
    padding: 14px 20px 18px;
}

.ptp-faq-answer p {
    margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .ptp-faq-question {
        padding: 14px 16px;
    }
    .ptp-faq-answer:not([hidden]) {
        padding: 12px 16px 16px;
    }
}
