/* ========================================= */
/* FAQ SPECIFIC STYLES                       */
/* ========================================= */

.faq-wrapper { padding: 120px 20px 100px; max-width: 800px; margin: 0 auto; width: 100%; min-height: 100vh; position: relative; z-index: 2; }
.faq-container { margin-top: 50px; display: flex; flex-direction: column; gap: 15px; }

/* --- AMBIENT BACKGROUND ORBS --- */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; will-change: transform; }
.orb-1 { width: 500px; height: 500px; background: var(--gold-accent); top: -10%; left: -10%; animation: floatOrb 20s ease-in-out infinite alternate; }
.orb-2 { width: 400px; height: 400px; background: #E8C372; bottom: -20%; right: -10%; animation: floatOrb 25s ease-in-out infinite alternate-reverse; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.1); } }

/* Accordion Cards */
.faq-item { background: rgba(255, 255, 255, 0.85); border: 1px solid var(--border-color); border-radius: 15px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); opacity: 0; transform: translateY(30px); }
.faq-item.active { background: #FFFFFF; border-color: var(--gold-accent); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1); }
.faq-q { padding: 25px 30px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--primary-dark); font-weight: bold; user-select: none; }
.faq-icon { color: var(--gold-accent); font-size: 1.2rem; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-a { height: 0; padding: 0 30px; opacity: 0; color: #555; overflow: hidden; font-size: 1.05rem; line-height: 1.7; }
.faq-a p { padding-bottom: 25px; }
.faq-author { font-size: 0.85rem; color: #999; font-style: italic; display: block; margin-top: 10px; }

/* The Floating Ask Button */
.floating-ask-btn { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: white; border: none; border-radius: 50px; padding: 15px 25px; font-family: 'Lato', sans-serif; font-weight: bold; font-size: 1rem; box-shadow: 0 10px 30px rgba(197, 90, 55, 0.4); cursor: pointer; z-index: 99; display: flex; align-items: center; gap: 10px; transition: transform 0.3s ease; }
.floating-ask-btn:hover { transform: translateY(-5px); background: var(--primary-dark); }

/* --- ENHANCED CENTERED MODALS --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 9999; display: none; 
    align-items: center !important; /* FIX: Forces centering on all devices */
    justify-content: center; padding: 20px; 
}
.modal-content {
    background: var(--bg-color); width: 100%; max-width: 450px; padding: 40px 30px;
    border-radius: 20px; position: relative; opacity: 0; transform: scale(0.95);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); text-align: left;
}
.modal-close { position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--primary); }
.modal-title { font-family: 'Playfair Display', serif; color: var(--primary-dark); font-size: 2rem; margin-bottom: 10px; text-align: center; }
.modal-sub { color: #666; margin-bottom: 25px; font-size: 0.95rem; text-align: center; }

/* --- PREMIUM INPUT STYLES --- */
.input-group { margin-bottom: 20px; }
.input-styled { width: 100%; padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; color: #333; transition: border 0.3s; font-family: 'Lato', sans-serif; }
.input-styled:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(197, 90, 55, 0.1); }
.textarea-styled { width: 100%; padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; color: #333; transition: border 0.3s; font-family: 'Lato', sans-serif; resize: vertical; min-height: 120px; }
.textarea-styled:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(197, 90, 55, 0.1); }

@media (max-width: 768px) {
    .ambient-orb { opacity: 0.2; }
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
}

/* Bollywood theme refresh */
.faq-wrapper {
    max-width: 1040px;
    padding-top: 112px;
}
.faq-wrapper::before {
    content: "FAQ";
    position: fixed;
    inset: 6vh auto auto 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(9rem, 24vw, 19rem);
    color: rgba(212,175,55,0.035);
    letter-spacing: 14px;
    pointer-events: none;
    z-index: -1;
}
.faq-wrapper > .text-center {
    width: min(820px, 100%);
    margin: 0 auto 32px;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(212,175,55,0.28);
    background:
        linear-gradient(135deg, rgba(229,9,20,0.16), transparent 45%),
        rgba(8,8,10,0.72);
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.section-title {
    font-size: clamp(3.2rem, 9vw, 6.2rem) !important;
    line-height: 0.9;
    margin-bottom: 10px;
}
.section-title,
.modal-title {
    font-family: var(--font-heading) !important;
    color: var(--gold) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.faq-container {
    display: grid;
    gap: 14px;
    counter-reset: faq;
}
.faq-item {
    counter-increment: faq;
    background:
        linear-gradient(90deg, rgba(229,9,20,0.1), transparent 38%),
        rgba(14,14,16,0.9) !important;
    border: 1px solid rgba(212,175,55,0.28) !important;
    border-radius: 0 !important;
    color: var(--text-main);
    box-shadow: 0 18px 44px rgba(0,0,0,0.24);
}
.faq-item.active {
    background: rgba(20,14,14,0.95) !important;
    border-color: var(--gold) !important;
}
.faq-q {
    font-family: var(--font-body) !important;
    color: var(--ivory) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 18px;
}
.faq-q::before {
    content: counter(faq, decimal-leading-zero);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    min-width: 38px;
}
.faq-a {
    color: var(--text-muted) !important;
    background: rgba(0,0,0,0.26);
    border-top: 1px solid rgba(212,175,55,0.14);
}
.floating-ask-btn,
.btn.primary {
    background: var(--neon-red) !important;
    border-radius: 0 !important;
    font-family: var(--font-heading) !important;
    letter-spacing: 2px;
}
.modal-content {
    background: #101012 !important;
    border: 1px solid var(--gold);
    border-radius: 0 !important;
    color: var(--text-main);
}
.modal-sub { color: var(--text-muted) !important; }

@media (max-width: 640px) {
    .faq-wrapper {
        padding: 86px 12px 96px;
    }
    .faq-wrapper > .text-center {
        padding: 24px 14px;
    }
    .faq-q {
        padding: 18px 14px;
        font-size: 1rem;
        align-items: flex-start;
    }
    .faq-q::before {
        font-size: 1.15rem;
        min-width: 30px;
    }
    .faq-a {
        padding: 0 16px;
        font-size: 0.96rem;
    }
    .floating-ask-btn {
        right: 14px;
        bottom: 14px;
        padding: 12px 16px;
    }
}
