Now add the Deep Analysis results container after the D3 chart container:


Edit

                <!-- Saved Responses -->
                <?php if (!empty($savedResponses)): ?>

Deep Analysis

                                <button class="btn" style="background:rgba(255,255,255,0.2);color:white;border:1px solid rgba(255,255,255,0.3);" onclick="document.getElementById('deep-analysis-container').style.display='none'">Close</button>

                <?php if (!empty($savedResponses)): ?>