.elementor-kit-59474{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-color-dc088f7:#4054B2;--e-global-color-4a6c9029:#23A455;--e-global-color-bc4a368:#000;--e-global-color-68498a83:#FFF;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-59474 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS */postcode redirect <script>
  document.addEventListener("DOMContentLoaded", function () {
    const form = document.getElementById("postcode-form");
    if (form) {
      form.addEventListener("submit", function (event) {
        event.preventDefault();

        let input = document.getElementById("postcode-autocomplete").value.trim().toUpperCase();
        if (!input) {
          alert("Please enter a postcode.");
          return;
        }

        const cleaned = input.replace(/s+/g, "");
        const match = cleaned.match(/^([A-Z]{1,2}[0-9]{1,2}[A-Z]?)/);
        if (!match) {
          alert("Please enter a valid UK postcode.");
          return;
        }

        const postcodePart = match[1];
        const redirectUrl = `https://www.bluestonehire.co.uk/product/skip-hire-in-${postcodePart}/`;
        window.location.href = redirectUrl;
      });
    }
  });
</script>/* End custom CSS */