/* ==========================================================================
   FAQ Snippet — Collapsible FAQ List
   ========================================================================== */

.pfq-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Heading & Description */
.pfq-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.pfq-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* FAQ List */
.pfq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Single FAQ Item — card style */
.pfq-item {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 24px 28px;
    border: none;
}

/* Header / Question Button */
.pfq-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 20px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
}

.pfq-item-header:focus,
.pfq-item-header:active,
.pfq-item-header:focus-visible {
    outline: none;
    background: none !important;
    box-shadow: none;
}
.pfq-item-header:hover{
    background: none !important;
}

/* Question Text */
.pfq-item-question {
    font-size: 17px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.5;
    flex: 1;
    padding-top: 4px;
}

/* Toggle Icon — SVG has its own circle border and colors */
.pfq-item-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Arrow — rotated for open/closed state */
.pfq-icon-arrow {
    width: 38px;
    height: 38px;
    display: block;
    /* Closed = arrow pointing down */
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Open = arrow pointing up (natural orientation) */
.pfq-item--open .pfq-icon-arrow {
    transform: rotate(0deg);
}

/* Answer Body — smooth grid height animation */
.pfq-item-body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease;
}

.pfq-item:not(.pfq-item--open) .pfq-item-body {
    grid-template-rows: 0fr;
}

.pfq-item-body-inner {
    overflow: hidden;
    padding-top: 12px;
}

.pfq-item-answer {
    font-size: 15px;
    font-weight: 400;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .pfq-wrapper {
        padding: 16px 0;
    }

    .pfq-heading {
        font-size: 22px;
    }

    .pfq-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .pfq-list {
        gap: 10px;
    }

    .pfq-item {
        padding: 18px 20px;
        border-radius: 6px;
    }

    .pfq-item-header {
        gap: 14px;
    }

    .pfq-item-question {
        font-size: 15px;
    }

    .pfq-item-icon {
        width: 34px;
        height: 34px;
    }

    .pfq-icon-arrow {
        width: 34px;
        height: 34px;
    }

    .pfq-item-answer {
        font-size: 14px;
    }
}
