

    /* Make submit button full-width on mobile */
    @media (max-width: 767px) {
        .add-site-submit-button {
            width: 100% !important;
        }

        /* Ensure footer is visible by adding extra padding at bottom */
        section.sitenear-my-sites div.my-sites.sidebar-sec.sitenear-add-site-sidebar {
            padding: 0 0 120px 0 !important;
        }
    }

    @media  screen and (max-width: 992px) {
        #addSitePopup2{
        top:25vh!important;
        }

        #addSitePopup4{
            top:30vh!important;
        }
    }

    #addSitePopup1{
        top:35vh;
    }


    #addSitePopup2{
        top:55vh;
    }

    /* Add these CSS rules to fix the positioning */
    .ajax_report {
        clear: both;  /* Clear the float from image grid */
        position: relative;
        margin-top: 20px;  /* Add space after the image grid */
        width: 100%;
    }

    #submit-progress-container {
        clear: both;
        position: relative;
        width: 100%;
        margin: 20px 0;  /* Add vertical spacing */
    }

    /* Ensure the image grid stays properly contained */
    .add-new-photos {
        clear: both;
        overflow: hidden;  /* Contain floating children */
        margin-bottom: 20px;  /* Add space before the progress area */
    }

    /* Success message styling */
    .ajax_report .alert {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    /* Ensure proper spacing for the submit button */
    .btn-grp1 {
        clear: both;
        margin-top: 20px;
    }

    .sitenear-add-site-sidebar {
        max-width: 100%;
    }
    
    .sitenear-add-site-sidebar input[type="text"],
    .sitenear-add-site-sidebar textarea,
    .sitenear-add-site-sidebar .sceditor-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Better spacing */
    .sitenear-add-site-sidebar p {
        margin-bottom: 15px;
    }
    
    /* Improve button layout */
    .btn-grp1 {
        border-top: 1px solid #eee;
    }
    
    /* Fix BBCode editor iframe */
    .sceditor-container iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Remove any hardcoded widths from the editor */
    .sitenear-bbcode-editor > div {
        width: 100% !important;
        max-width: 100% !important;
    }
