<form method="POST" id="hsm-cookie-banner" class="hsm-hidden no-print">
    <div class="govuk-cookie-banner" data-nosnippet role="region" aria-label="Cookies on the Heat Pump Check service">
        <div id="hsm-cookie-message" class="govuk-cookie-banner__message govuk-width-container">
            <div class="govuk-grid-row">
                <div class="govuk-grid-column-two-thirds">
                    <h2 class="govuk-cookie-banner__heading govuk-heading-m">Cookies on the Heat Pump Check service</h2>

                    <div class="govuk-cookie-banner__content">
                        <p class="govuk-body">We use some essential cookies to make this service work.</p>
                        <p class="govuk-body">We’d like to set additional cookies so we can remember your settings, understand how people use the service and make improvements.</p>
                    </div>
                </div>
            </div>

            <div class="govuk-button-group">
                <button id="hsm-btn-cookies-accept" value="accept" type="submit" onclick="onAcceptOptionalCookies()" name="cookies" class="govuk-button" data-module="govuk-button">
                    Accept additional cookies
                </button>
                <button id="hsm-btn-cookies-reject" value="reject" type="submit" onclick="onRevokeOptionalCookies();" name="cookies" class="govuk-button" data-module="govuk-button">
                    Reject additional cookies
                </button>
                <a class="govuk-link" href="/CookiePolicy">View cookies</a>
            </div>
        </div>

        <div id="hsm-cookies-accepted" class="govuk-cookie-banner__message govuk-width-container" hidden>
            <div class="govuk-grid-row">
                <div class="govuk-grid-column-two-thirds">
                    <div class="govuk-cookie-banner__content">
                        <p class="govuk-body">You’ve accepted additional cookies. You can <a class="govuk-link" href="/CookiePolicy">change your cookie settings</a> at any time.</p>
                    </div>
                </div>
            </div>

            <div class="govuk-button-group">
                <a href="#" role="button" draggable="false" class="govuk-button hsm-cookie-message-hide-btn" data-module="govuk-button">
                    Hide this message
                </a>
            </div>
        </div>

        <div id="hsm-cookies-rejected" class="govuk-cookie-banner__message govuk-width-container" hidden>
            <div class="govuk-grid-row">
                <div class="govuk-grid-column-two-thirds">
                    <div class="govuk-cookie-banner__content">
                        <p class="govuk-body">You’ve rejected additional cookies. You can <a class="govuk-link" href="/CookiePolicy">change your cookie settings</a> at any time.</p>
                    </div>
                </div>
            </div>

            <div class="govuk-button-group">
                <a href="#" role="button" draggable="false" class="govuk-button hsm-cookie-message-hide-btn" data-module="govuk-button">
                    Hide this message
                </a>
            </div>
        </div>
    </div>
</form>

<noscript>
    <div class="govuk-cookie-banner" data-nosnippet role="region" aria-label="Cookies on the Heat Pump Check service">
        <div id="hsm-cookie-message" class="govuk-cookie-banner__message govuk-width-container">
            <div class="govuk-grid-row">
                <div class="govuk-grid-column-two-thirds">
                    <h2 class="govuk-cookie-banner__heading govuk-heading-m">Cookies on the Heat Pump Check service</h2>

                    <div class="govuk-cookie-banner__content">
                        <p class="govuk-body">We use some essential cookies to make this service work.</p>
                        <p class="govuk-body">We’d like to set additional cookies so we can remember your settings, understand how people use the service and make improvements.</p>
                    </div>
                </div>
            </div>
            <div class="govuk-button-group">
                <a class="govuk-link" href="/CookiePolicy">View cookies</a>
            </div>
        </div>
    </div>
</noscript>