hubspotv3

<script>
document.addEventListener('DOMContentLoaded', function() {
    const hubspotLink = document.querySelector('a[href="#hubspot"]');
    if (hubspotLink) {
        hubspotLink.addEventListener('click', function(e) {
            e.preventDefault();
            const meetingsContainer = document.querySelector('.hs-form-frame');
            if (meetingsContainer) {
                meetingsContainer.classList.add('show-popup');
            }
        });
    }
    
    const meetingsContainer = document.querySelector('.hs-form-frame');
    if (meetingsContainer) {
        const closeButton = document.createElement('span');
        closeButton.className = 'close-popup';
        closeButton.textContent = '×';
        meetingsContainer.insertBefore(closeButton, meetingsContainer.firstChild);
        
        closeButton.addEventListener('click', function() {
            meetingsContainer.classList.remove('show-popup');
        });
    }
});
</script>

<style>
.show-popup.hs-form-frame {
    display: block !important;
}

.hs-form-frame {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    display: none !important;
    width: 100%;
    background-color: #fff;
    max-width: 800px;
}
.close-popup {
    position: absolute;
    top: 50px;
    right: 0px;
    cursor: pointer;
    background-color: #000;
    border: none;
    font-size: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    z-index: 10;
    color: #fff;
}
  body:has(.show-popup):after {
    content: "";
    background-color: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}
</style>

 

Buy me a coffee