<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.parentNode.insertBefore(closeButton, meetingsContainer);
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;
padding-top: 30px;
display: none !important;
width: 100%;
background-color: #fff;
max-width: 800px;
}
.close-popup {
display: none;
cursor: pointer;
}
body:has(.show-popup) .close-popup {
background-color: #fff !important;
border: none !important;
position: fixed;
top: 10px;
right: 10px;
z-index: 999999999;
display: none;
font-size: 30px;
display: block;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
}
</style>