/* ============================================
   CHITRALI NATURALS FAQs - Stylesheet
   Version: 1.3.0  (black, white + golden #E8AF45)
   Gold replaces all previous green spots
   ============================================ */

.chitrali-qa-wrapper {
    --qa-brand: #E8AF45;        /* golden (section headers, accents) */
    --qa-brand-dark: #c8901f;   /* darker gold for small text on white */
    --qa-accent: #E8AF45;       /* golden accents */
    --qa-accent-soft: #fdf5e3;  /* very light gold wash */
    --qa-brand-light: #f7f7f7;  /* soft gray wash */
    --qa-ink: #1a1a1a;          /* near-black text */
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.chitrali-qa-wrapper * {
    box-sizing: border-box;
}

/* Header */
.chitrali-qa-wrapper .qa-header {
    text-align: center;
    margin-bottom: 28px;
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #E8AF45;
}

.chitrali-qa-wrapper .qa-header h2 {
    color: #1a1a1a;
    font-size: 30px;
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-weight: 700;
}

.chitrali-qa-wrapper .qa-header p {
    color: #888888;
    font-size: 15px;
    margin: 0;
}

/* Search box */
.chitrali-qa-wrapper .qa-search-box {
    margin: 0 0 22px 0;
    position: relative;
}

.chitrali-qa-wrapper .qa-search-box input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 16px;
    border: 2px solid #dddddd;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.chitrali-qa-wrapper .qa-search-box input:focus {
    outline: none;
    border-color: #E8AF45;
    box-shadow: 0 0 0 3px rgba(232, 175, 69, 0.22);
}

.chitrali-qa-wrapper .qa-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.45;
    font-size: 18px;
}

/* Results info */
.chitrali-qa-wrapper .qa-results-info {
    padding: 12px 18px;
    background: #fdf5e3;
    color: #8a6410;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #E8AF45;
    display: none;
}

.chitrali-qa-wrapper .qa-results-info.show {
    display: block;
}

/* Tabs */
.chitrali-qa-wrapper .qa-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chitrali-qa-wrapper .qa-tab-btn {
    padding: 9px 17px;
    border: 2px solid #dddddd;
    background: #ffffff;
    color: #444444;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1;
}

.chitrali-qa-wrapper .qa-tab-btn:hover {
    border-color: #E8AF45;
    background: #fdf5e3;
    color: #8a6410;
}

.chitrali-qa-wrapper .qa-tab-btn.active {
    background: #E8AF45;
    color: #1a1a1a;
    border-color: #E8AF45;
}

/* Accordion */
.chitrali-qa-wrapper .qa-accordion {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.chitrali-qa-wrapper .qa-item {
    border-bottom: 1px solid #eeeeee;
    display: block;
}

.chitrali-qa-wrapper .qa-item.hidden,
.chitrali-qa-wrapper .qa-section-header.hidden {
    display: none;
}

.chitrali-qa-wrapper .qa-item:last-child {
    border-bottom: none;
}

/* Question header */
.chitrali-qa-wrapper .qa-question {
    padding: 17px 20px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.chitrali-qa-wrapper .qa-question:hover {
    background: #fafafa;
}

.chitrali-qa-wrapper .qa-item.expanded .qa-question {
    background: #fdf5e3;
}

.chitrali-qa-wrapper .qa-question-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #2a2a2a;
    line-height: 1.45;
}

.chitrali-qa-wrapper .qa-item.expanded .qa-question-text {
    color: #1a1a1a;
}

.chitrali-qa-wrapper .qa-question-text .qa-num {
    color: #c8901f;
    font-weight: 700;
    margin-right: 4px;
}

.chitrali-qa-wrapper .qa-toggle-icon {
    color: #E8AF45;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
    margin-top: 0;
}

.chitrali-qa-wrapper .qa-item.expanded .qa-toggle-icon {
    transform: rotate(45deg);
}

/* Answer */
.chitrali-qa-wrapper .qa-answer {
    max-height: 0;
    overflow: hidden;
    background: #fdf5e3;
    transition: max-height 0.35s ease;
}

.chitrali-qa-wrapper .qa-item.expanded .qa-answer {
    max-height: 1200px;
}

.chitrali-qa-wrapper .qa-answer-text {
    padding: 4px 20px 20px 20px;
    color: #555555;
    line-height: 1.7;
    font-size: 14px;
}

/* Section header */
.chitrali-qa-wrapper .qa-section-header {
    background: #E8AF45;
    color: #1a1a1a;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* Empty state */
.chitrali-qa-wrapper .qa-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: none;
}

.chitrali-qa-wrapper .qa-empty-state.show {
    display: block;
}

.chitrali-qa-wrapper .qa-empty-state-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.chitrali-qa-wrapper .qa-empty-state h3 {
    color: #222222;
    margin: 0 0 8px 0;
    font-size: 18px;
}

.chitrali-qa-wrapper .qa-empty-state p {
    color: #999999;
    font-size: 14px;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chitrali-qa-wrapper {
        padding: 12px;
    }

    .chitrali-qa-wrapper .qa-header {
        padding: 22px 20px;
    }

    .chitrali-qa-wrapper .qa-header h2 {
        font-size: 24px;
    }

    .chitrali-qa-wrapper .qa-header p {
        font-size: 14px;
    }

    .chitrali-qa-wrapper .qa-tabs {
        gap: 6px;
        padding: 10px;
    }

    .chitrali-qa-wrapper .qa-tab-btn {
        padding: 8px 13px;
        font-size: 13px;
    }

    .chitrali-qa-wrapper .qa-question {
        padding: 14px;
    }

    .chitrali-qa-wrapper .qa-question-text {
        font-size: 14px;
    }

    .chitrali-qa-wrapper .qa-answer-text {
        padding: 4px 14px 14px 14px;
        font-size: 13px;
    }
}

/* Print */
@media print {
    .chitrali-qa-wrapper .qa-search-box,
    .chitrali-qa-wrapper .qa-tabs,
    .chitrali-qa-wrapper .qa-results-info {
        display: none !important;
    }

    .chitrali-qa-wrapper .qa-item {
        display: block !important;
        break-inside: avoid;
    }

    .chitrali-qa-wrapper .qa-answer {
        max-height: none !important;
    }

    .chitrali-qa-wrapper .qa-toggle-icon {
        display: none;
    }
}

/* Clickable links inside answers (e.g. lab test report) */
.qa-answer-text a {
    color: var(--qa-accent, #E8AF45);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word;
}
.qa-answer-text a:hover {
    opacity: .85;
}
