@media screen and (max-width: 799px) {

    /* Layout Resets */
    body,
    html,
    .container,
    .container-fluid,
    .actfl-test-container {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Stack main layout columns but preserve col-6 for button rows */
    .col-lg-5,
    .col-md-6,
    .col-lg-7,
    .col-sm-12,
    .col-12,
    .col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
        clear: both !important;
    }




    /* Jane Image Height Adjustment */
    img[src*="jane.png"] {
        height: 200px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Alert Recording Alignment & Spacing */
    #statusMessageArea {
        margin-bottom: 3rem !important;
        /* Spacing below the block */
    }

    .alert-recording {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        height: 100% !important;
        min-height: 40px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        /* Fix for "too high up" - Flex align-items: center handles verticals */
    }

    /* Ensure the span inside alert-recording behaves */
    .alert-recording span {
        display: inline-block !important;
        /* or block to accept centering */
    }

    /* REMOVE BLOCK STYLING ON MOBILE */
    .mobile-no-box {
        display: contents !important;
    }
}

/* Global Helpers (User Requested) */
.density_medium {
    margin-bottom: 0.3rem !important;
}

#btnNext {
    margin-right: 0 !important;
}