<?php
// Copyright 1999-2026. WebPros International GmbH. All rights reserved.
?>
<?php echo $this->form; ?>

<script type="text/javascript">
//<![CDATA[
(function () {
    function updateSectionState() {
        var addonsSection = document.getElementById('addonsSection');
        var servicePlanSelect = document.getElementById('planSection-servicePlan');
        if (addonsSection && servicePlanSelect) {
            var isHidden = '0' === servicePlanSelect.value;
            addonsSection.style.display = isHidden ? 'none' : '';
            addonsSection.setAttribute('aria-hidden', String(isHidden));
        }
    }

    Jsw.onReady(function () {
        var servicePlanSelect = document.getElementById('planSection-servicePlan');
        if (servicePlanSelect) {
            servicePlanSelect.setAttribute('aria-controls', 'addonsSection');
            updateSectionState();
            servicePlanSelect.addEventListener('change', updateSectionState);
        }
    });
}());
//]]>
</script>
