/* Unified FAQ Styles — matches .mini-faq design on index.html / location pages */

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.faq-item:hover {
    border-color: rgba(255, 107, 44, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
    gap: 1rem;
}

.faq-question:hover {
    background: transparent;
}

.faq-question h3,
.faq-question h4,
.faq-question-text,
.faq-question {
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin: 0;
    line-height: 1.4;
}

.faq-question h3,
.faq-question h4 {
    margin: 0;
}

/* Icon — bare + that rotates to X. No circle wrapper. */
.faq-icon {
    width: 18px;
    height: 18px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--orange);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: 50% 50%;
    box-sizing: content-box;
    line-height: 0;
}

.faq-icon svg,
.faq-question > svg {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: 50% 50%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-sizing: content-box;
    overflow: visible;
}

/* Rotate the plus into an X when active. Rotate the SVG itself so wrapper
   and SVG don't double-rotate (cancelling each other out). Covers:
   (1) <div class="faq-icon"><svg>…</svg></div>   (faq.html)
   (2) <svg class="faq-icon">…</svg>              (gift-cards.html / groups.html)
   (3) <button class="faq-question"><svg>…</svg></button>  (bare svg fallback) */
.faq-item.active .faq-icon > svg,
.faq-item.active svg.faq-icon,
.faq-item.active .faq-question > svg {
    transform: rotate(45deg);
    color: var(--orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-answer-content,
.faq-answer > p {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

.faq-answer-content strong {
    color: var(--white);
}

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

@media (prefers-reduced-motion: reduce) {
    .faq-answer {
        transition: none;
    }

    .faq-icon,
    .faq-icon svg,
    .faq-question > svg {
        transition: none;
    }
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.25rem;
    }

    .faq-question h3,
    .faq-question h4,
    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-answer-content,
    .faq-answer > p {
        padding: 0 1.25rem 1.25rem;
    }
}
