/* ============================================================
   FAQ страница — стилове
   Използва --mainRed от assets/css/app.css
   ============================================================ */

/* ── Навигация с категории ── */
.faq_cats_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}
.faq_cat_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 14px 12px;
    width: 130px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.faq_cat_card:hover {
    border-color: var(--mainRed);
    box-shadow: 0 2px 8px rgba(213,31,34,0.15);
    color: var(--mainRed);
}
.faq_cat_icon { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.faq_cat_name { font-size: 12px; font-weight: bold; line-height: 1.3; }

/* ── Секция по категория ── */
.faq_section { margin-bottom: 36px; }
.faq_section_heading {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid var(--mainRed);
    padding-bottom: 8px;
    margin-bottom: 12px;
    color: #222;
}
.faq_section_heading .faq_cat_icon { font-size: 22px; vertical-align: middle; }

/* ── Акордион с <details>/<summary> ── */
.faq_accordion { list-style: none; padding: 0; margin: 0; }
.faq_accordion li { border-bottom: 1px solid #ddd; }
.faq_accordion summary {
    padding: 14px 36px 14px 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    position: relative;
    list-style: none;
    user-select: none;
    background: #f7f7f7;
    transition: background 0.2s;
}
.faq_accordion summary::-webkit-details-marker { display: none; }
.faq_accordion summary:hover { background: #f5e8e8; }
.faq_accordion summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    color: var(--mainRed);
}
.faq_accordion details[open] summary { background: #f5e8e8; }
.faq_accordion details[open] summary::after { content: '−'; }
.faq_accordion .faq_answer { padding: 14px 16px 18px; background: #fff; line-height: 1.6; }

/* ── Форма "Задай въпрос" ── */
.faq_ask_section {
    margin-top: 40px;
    padding: 24px 28px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.faq_ask_section h2 { margin: 0 0 20px; font-size: 20px; }
.faq_field { margin-bottom: 16px; }
.faq_field label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 6px; color: #333; }
.faq_field input[type="text"],
.faq_field input[type="email"],
.faq_field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s;
}
.faq_field input:focus,
.faq_field textarea:focus {
    border-color: var(--mainRed);
    outline: none;
}
.faq_field textarea { resize: vertical; min-height: 100px; }
.faq_submit_btn {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: var(--mainRed);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.faq_submit_btn:hover { background: #b01a1d; }

/* ── Съобщения ── */
.faq_success {
    padding: 12px 16px;
    background: #e6f4ea;
    border: 1px solid #a8d5b5;
    border-radius: 4px;
    color: #2d6a4f;
    margin-bottom: 16px;
}
.faq_error {
    padding: 12px 16px;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: 4px;
    color: #c0392b;
    margin-bottom: 16px;
}
