:root {
    --primary-red: #ff0000;
    --deep-black: #0a0a0a;
    --pure-white: #ffffff;
}

/* 1. Modal Hidden State (Fix) */
.modal {
    display: none; /* Load par hide rahega */
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 2. Modal Active State */
.modal.reveal {
    display: flex !important;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: absolute;
    inset: 0;
}

/* 3. Modal Box & Scroll Fix */
.modal-content.industrial-style {
    background: var(--deep-black);
    color: var(--pure-white);
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 85vh; /* Screen se bahar nahi jayega */
    position: relative;
    border: 1px solid rgba(255, 0, 0, 0.3);
    overflow: hidden; /* Main container ko fix rakhega */
    animation: modalSlide 0.4s ease;
}

/* Sidebar */
.modal-sidebar {
    background: var(--primary-red);
    padding: 40px 15px;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 5px;
}

/* Scrollable Area Fix */
.modal-main-wrapper {
    flex: 1;
    overflow-y: auto; /* Scroll sirf yahan hoga */
    display: flex;
    flex-direction: column;
    background: var(--deep-black);
}

.modal-main {
    padding: 40px;
}

/* Heading Animation */
.modal-header-v3 h3 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
    margin-bottom: 40px;
}

.modal-header-v3 h3:hover {
    letter-spacing: 6px;
    color: var(--primary-red);
}

.modal-header-v3 h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--primary-red);
    transition: 0.4s ease;
}

.modal-header-v3 h3:hover::after {
    width: 100%;
}

/* FAQ Item Styling */
.faq-item-popup {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.faq-q {
    color: var(--primary-red);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

/* Scrollbar Style */
.modal-main-wrapper::-webkit-scrollbar { width: 5px; }
.modal-main-wrapper::-webkit-scrollbar-thumb { background: var(--primary-red); }

/* Animations */
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content.industrial-style { flex-direction: column; }
    .modal-sidebar {
        writing-mode: horizontal-tb;
        transform: none;
        width: 100%;
        padding: 15px;
    }
    .modal-main { padding: 25px; }
    .modal-header-v3 h3 { font-size: 1.5rem; }
}