/**
 * FAQs Accordion - Frontend Styles
 * Strict Brand Colors: #F9AD1B (Gold) & #344C36 (Dark Green)
 * Theme Reset: Prevents theme primary button colors or styling from bleeding in.
 */

.tm-faqs-section {
    background-color: #344C36 !important;
    padding: 80px 20px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #FFFFFF !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Typography Font Assignments for FAQs */
.tm-faqs-heading,
.tm-faq-trigger,
.tm-faq-q-text,
.tm-faqs-subtitle,
.tm-faq-filter-btn,
.tm-faq-icon {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.tm-faq-answer,
.tm-faq-answer p,
.tm-faq-answer-inner {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.tm-faqs-section *,
.tm-faqs-section *::before,
.tm-faqs-section *::after {
    box-sizing: border-box !important;
}

.tm-faqs-container {
    max-width: 860px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Header */
.tm-faqs-header {
    text-align: center !important;
    margin-bottom: 42px !important;
}

.tm-faqs-subtitle {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 12px !important;
}

.tm-faqs-title {
    margin: 0 !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px !important;
}

.tm-faqs-title-white {
    color: #FFFFFF !important;
}

.tm-faqs-title-gold {
    color: #F9AD1B !important;
    font-style: italic !important;
    font-weight: 500 !important;
    margin-left: 6px !important;
}

/* Accordion List */
.tm-faqs-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Individual Accordion Item Container */
.tm-faqs-section .tm-faq-item,
.tm-faq-item {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background 0.28s ease, transform 0.2s ease, box-shadow 0.28s ease !important;
}

.tm-faqs-section .tm-faq-item:not(.tm-faq-active):hover,
.tm-faq-item:not(.tm-faq-active):hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ==========================================================================
   BUTTON RESETS (Kills all WordPress theme button colors & styles)
   ========================================================================== */
.tm-faqs-section button,
.tm-faqs-section button.tm-faq-trigger,
.tm-faqs-section .tm-faq-item button,
.tm-faqs-section .tm-faq-item .tm-faq-trigger,
.tm-faq-item button.tm-faq-trigger,
.tm-faq-trigger {
    all: unset !important;
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    transform: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: inherit !important;
    padding: 22px 28px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    color: #FFFFFF !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: padding 0.25s ease, color 0.25s ease !important;
}

.tm-faqs-section button:hover,
.tm-faqs-section button:focus,
.tm-faqs-section button:active,
.tm-faqs-section button:focus-visible,
.tm-faqs-section button.tm-faq-trigger:hover,
.tm-faqs-section button.tm-faq-trigger:focus,
.tm-faqs-section button.tm-faq-trigger:active,
.tm-faqs-section button.tm-faq-trigger:focus-visible,
.tm-faq-trigger:hover,
.tm-faq-trigger:focus,
.tm-faq-trigger:active,
.tm-faq-trigger:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Inactive Question & Icon */
.tm-faqs-section .tm-faq-item:not(.tm-faq-active) .tm-faq-trigger {
    color: #FFFFFF !important;
    background: transparent !important;
}

.tm-faqs-section .tm-faq-item:not(.tm-faq-active) .tm-faq-question {
    color: #FFFFFF !important;
}

.tm-faqs-section .tm-faq-item:not(.tm-faq-active) .tm-faq-icon,
.tm-faqs-section .tm-faq-item:not(.tm-faq-active) .tm-faq-icon span {
    color: #FFFFFF !important;
}

.tm-faq-question {
    font-size: 18.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tm-faq-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 1 !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    background: transparent !important;
}

.tm-faq-icon .tm-icon-minus {
    display: none !important;
}

.tm-faq-icon .tm-icon-plus {
    display: inline-block !important;
}

/* Content & Answer */
.tm-faq-content {
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tm-faq-answer {
    padding: 0 28px 22px 28px !important;
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    background: transparent !important;
}

.tm-faq-answer p {
    margin: 0 0 10px 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.tm-faq-answer p:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   ACTIVE / EXPANDED STATE (Strict Brand #F9AD1B Gold Card)
   Guarantees zero theme button color bleed
   ========================================================================== */
.tm-faqs-section .tm-faq-item.tm-faq-active,
.tm-faq-item.tm-faq-active {
    background: #F9AD1B !important;
    background-color: #F9AD1B !important;
    border-color: #F9AD1B !important;
    box-shadow: 0 10px 25px rgba(249, 173, 27, 0.25) !important;
}

.tm-faqs-section .tm-faq-item.tm-faq-active button,
.tm-faqs-section .tm-faq-item.tm-faq-active button.tm-faq-trigger,
.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-trigger,
.tm-faq-item.tm-faq-active .tm-faq-trigger,
.tm-faq-item.tm-faq-active .tm-faq-trigger:hover,
.tm-faq-item.tm-faq-active .tm-faq-trigger:focus,
.tm-faq-item.tm-faq-active .tm-faq-trigger:active,
.tm-faq-item.tm-faq-active .tm-faq-trigger:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #1A251B !important;
    padding: 22px 28px 12px 28px !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-question,
.tm-faq-item.tm-faq-active .tm-faq-question {
    color: #1A251B !important;
    font-weight: 700 !important;
}

.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-icon,
.tm-faq-item.tm-faq-active .tm-faq-icon,
.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-icon span,
.tm-faq-item.tm-faq-active .tm-faq-icon span {
    color: #1A251B !important;
    background: transparent !important;
}

.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-icon .tm-icon-plus,
.tm-faq-item.tm-faq-active .tm-faq-icon .tm-icon-plus {
    display: none !important;
}

.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-icon .tm-icon-minus,
.tm-faq-item.tm-faq-active .tm-faq-icon .tm-icon-minus {
    display: inline-block !important;
    font-weight: 500 !important;
    font-size: 28px !important;
}

.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-content,
.tm-faq-item.tm-faq-active .tm-faq-content {
    background: transparent !important;
    background-color: transparent !important;
}

.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-answer,
.tm-faq-item.tm-faq-active .tm-faq-answer,
.tm-faqs-section .tm-faq-item.tm-faq-active .tm-faq-answer p,
.tm-faq-item.tm-faq-active .tm-faq-answer p {
    color: #263328 !important;
    font-weight: 500 !important;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .tm-faqs-section {
        padding: 50px 16px !important;
    }

    .tm-faqs-title {
        font-size: 30px !important;
    }

    .tm-faqs-section button.tm-faq-trigger,
    .tm-faq-trigger {
        padding: 18px 20px !important;
    }

    .tm-faqs-section .tm-faq-item.tm-faq-active button.tm-faq-trigger,
    .tm-faq-item.tm-faq-active .tm-faq-trigger {
        padding: 18px 20px 10px 20px !important;
    }

    .tm-faq-question {
        font-size: 16.5px !important;
    }

    .tm-faq-answer {
        padding: 0 20px 18px 20px !important;
        font-size: 14.5px !important;
    }
}
