.heroBlock {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  overflow: hidden;
}

/* Background Div */
.hero-background {
  position: absolute;
  /* Only need absolute here, remove the redundant 'relative' */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* Ensure the background covers the entire block */
  background-position: center top;
  /* Center the background image */
  background-repeat: no-repeat;
  z-index: 1;
  /* Keep it behind the header */
  filter: brightness(0.5);
}

/* SVG inside the background div */
#movingSvg {
  position: absolute;
  /* Ensure it is free to move */
  top: 0;
  right: 0;
  max-height: 85vh;
  z-index: 4;
  /* Ensure it is above both header and sideMenu */
  pointer-events: none;
}

.heroBlock_Block {
  height: 100%;
  position: relative;
  /* Ensure the content stays in front */
  display: grid;
  grid-template-columns: 2fr 1fr;
  justify-content: center;
  align-items: center;
  gap: 180px;
  width: 100%;
  margin: 150px auto;
}

.hero_form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  max-width: 350px;
  border-radius: 20px;
  border: solid var(--Vit) 3px;
  padding: 35px 30px 0px 30px !important;
}

.hero_form > .wpcf7 {
  max-width: 500px;
  min-width: 245px;
}

.hero_form .wpcf7-submit {
  background-color: var(--Protekta-gray) !important;
}
.hero_form .wpcf7-submit:hover {
background-color: #394357 !important;
}

.hero_form h3 {
  color: var(--Protekta-gray);
  font-family: "Inter";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 28.8px; /* 120% */
  letter-spacing: -0.36px;
  margin: 0;
}

.heroBlock_Column {
  position: relative;
  margin: auto;
  max-width: 1280px;
  height: 100;
  display: flex;
  justify-content: start;
  flex-direction: column;
  z-index: 5;
  margin: auto;
}

.heroBlock_Column h1 {
  margin: 0;
  margin-bottom: 20px;
  width: 100%;
  max-width: 456px;
  color: var(--Protekta-gray);
  font-family: "inter";
  font-size: 64px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  z-index: 1;
}

.heroBlock_Column p {
  margin: 0;
  width: 100%;
  color: var(--Protekta-gray);
  font-family: "inter";
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 33px;
  z-index: 1;
}

.heroBlock_Column .hero_buttons {
  z-index: 1;
}

.heroBlock_Column h1.header_length {
  max-width: 1280px;
}

.hero_buttons {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
  margin-top: 30px;
}

.hero_buttons button {
  padding: 16px 42px;
  justify-content: center;
  align-items: center;
  border-radius: 26px;
  border: none;
  text-align: center;
  font-family: "Inter";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  /* 88.889% */
  letter-spacing: 0.5px;
}

.hero_buttons .hero_first_button {
  background: var(--Protekta-gray);
  color: var(--Vit);
}

.hero_buttons .hero_first_button:hover {
  background: #394357;
}

.hero_buttons .hero_second_button {
  background: transparent;
  border: solid var(--Protekta-gray) 1px;
  color: var(--Svart);
}

.hero_buttons .hero_second_button:hover {
  background: #eaeff8;
}

/* .hero_form > h3 {
  color: var(--Protekta-black);
} */
@media (max-width: 1300px) {
  .heroBlock_Block {
    gap: 70px;
    width: 95%;
    padding-top: 50px;
    margin-bottom: 70px;
  }
  .hero_form {
  }

  .heroBlock_Column h1 {
    font-family: Inter;
    font-size: 33px;
    font-style: normal;
    font-weight: 600;
    line-height: 47px;
  }

  .heroBlock_Column p {
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 31px; /* 172.222% */
    letter-spacing: 0.2px;
  }

  .heroBlock {
    max-height: none;
    height: auto;
  }
}

@media (max-width: 768px) {
  .heroBlock_Block {
    width: 90%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 50px;
    padding-top: 0;
  }
  .heroBlock_Column h1 {
    font-size: 34px;
  }

  .heroBlock_Column p {
    max-width: none;
  }

}
