/* Container & Variables */
.fx-faq-wrapper {
    --theme-color: #D50000;
    --bg-body: #f7f7f7;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-second: #071339;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    
    font-family: inherit;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-body);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.fx-faq-wrapper * {
    box-sizing: border-box;
}

/* Hero Section */
.fx-faq-hero {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
}

.fx-faq-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(213,0,0,0.05) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.fx-faq-hero h1, 
.fx-faq-hero p {
    position: relative;
    z-index: 2;
}

.fx-faq-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-second);
}

.fx-faq-brand {
    color: var(--theme-color);
}

.fx-faq-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0;
}

/* Intro Section */
.fx-faq-intro {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    text-align: center;
    border-right: 4px solid var(--theme-color);
}

.fx-faq-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

/* FAQ Accordion List */
.fx-faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.fx-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fx-faq-item[open] {
    border-color: var(--theme-color);
    box-shadow: 0 4px 12px rgba(213, 0, 0, 0.08);
}

/* Summary / Question */
.fx-faq-question {
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-second);
    cursor: pointer;
    list-style: none; /* Hide default marker */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.fx-faq-question::-webkit-details-marker {
    display: none; /* Hide default marker in Safari */
}

.fx-faq-question:hover {
    color: var(--theme-color);
}

/* Custom Arrow Icon */
.fx-faq-question::after {
    content: "▼";
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 15px;
}

.fx-faq-item[open] .fx-faq-question::after {
    transform: rotate(180deg);
    color: var(--theme-color);
}

.fx-faq-item[open] .fx-faq-question {
    color: var(--theme-color);
    border-bottom: 1px dashed var(--border-color);
}

/* Answer Content */
.fx-faq-answer {
    padding: 20px;
    color: var(--text-muted);
    font-size: 1rem;
    background-color: rgba(247, 247, 247, 0.5);
}

.fx-faq-answer p {
    margin: 0;
}

/* Closing Note */
.fx-faq-closing {
    text-align: center;
}

.fx-faq-brand-note {
    background: rgba(213, 0, 0, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--theme-color);
    font-weight: bold;
    display: inline-block;
    margin: 0;
}
