/* ===== FAQ Page — Premium Theme ===== */
/* All selectors are scoped under faq- prefixes so they never collide with
   your base.html or other app styles. */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-container-narrow {
    max-width: 640px;
}

.faq-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    padding: 72px 0 56px;
    text-align: center;
}

.faq-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 auto;
}

.faq-add-btn {
    display: inline-block;
    margin-top: 28px;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.faq-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35);
}

.faq-body {
    background: #f8fafc;
    padding: 56px 0 80px;
}

.faq-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}

.faq-category-block {
    margin-bottom: 40px;
}

.faq-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    border-left: 4px solid #38bdf8;
    padding-left: 12px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: #38bdf8;
    transition: transform 0.25s ease;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
    color: #475569;
    line-height: 1.65;
    font-size: 0.95rem;
}

.faq-item.faq-open .faq-answer {
    max-height: 600px;
    padding: 0 22px 20px;
}

.faq-admin-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.faq-admin-actions a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.faq-admin-actions a.faq-delete-link {
    color: #dc2626;
}

.faq-admin-actions a:hover {
    text-decoration: underline;
}

/* ===== Form pages (add/edit/delete) ===== */

.faq-form-section {
    background: #f8fafc;
    padding: 64px 0;
    min-height: 60vh;
}

.faq-alert {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.faq-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
}

.faq-form-group {
    margin-bottom: 20px;
}

.faq-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.faq-form-control,
.faq-form-group input,
.faq-form-group select,
.faq-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
}

.faq-form-control:focus,
.faq-form-group input:focus,
.faq-form-group select:focus,
.faq-form-group textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.faq-help-text {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 4px;
}

.faq-field-error {
    color: #dc2626;
    font-size: 0.82rem;
    margin: 4px 0 0;
}

.faq-form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.faq-cancel-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.faq-cancel-link:hover {
    text-decoration: underline;
}

.faq-delete-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    cursor: pointer;
}

.faq-delete-preview {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
    color: #7c2d12;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
    .faq-title { font-size: 1.8rem; }
    .faq-hero { padding: 56px 0 40px; }
    .faq-form { padding: 22px; }
}
