.path-frontpage .lp-hero-webform {
  --hero-parallax-height: clamp(667px, 100vh, 920px);
}

.path-frontpage .lp-hero-webform .container {
  margin-top: 35px;
}

@media (min-width: 992px) {
  .path-frontpage.verisure-se:not(.user-logged-in):not(.fixed-header) .layout-container > header .wrapper-header .site-header div.region-header {
    padding-top: 12px;
  }

  .path-frontpage.verisure-se:not(.user-logged-in):not(.fixed-header) .layout-container > main {
      padding: 0;
  }
  
  .path-frontpage.verisure-se:not(.user-logged-in):not(.fixed-header) .layout-container > header .wrapper-header .site-header div.region-header .menu--secondary-menu ul.menu li.menu-item a {
    color: #fff;
  }

}


.lp-hero-webform {
   --hero-parallax-height: clamp(520px, 75vh, 820px);
  height: var(--hero-parallax-height);
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-inline: auto;
  isolation: isolate;
  contain: paint;
}



.lp-hero-webform > div:first-of-type {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-hero-webform > div:first-of-type > img {
  position: absolute;
  inset: -10% 0 0 0;
  width: 100%;
  height: 110% !important;
  object-fit: cover;

  transform: translate3d(0,20px,0);
  will-change: transform;

  backface-visibility: hidden;
}

.lp-hero-webform .container {
  height: auto;
  max-width: 1430px;
  position: absolute;
  left: 15px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.lp-hero-webform .container .left-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-hero-webform .container .right-column {
  display: flex;
  justify-content: center;
}

.lp-hero-webform.parallax-hero.form-clean .webform-submission-form {
  max-width: 320px;
  margin: auto;
  color: #fff;
  position: relative;
  margin-top: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.lp-hero-webform.parallax-hero.form-clean .webform-submission-form * {
  margin-top: 0;
  margin-bottom: 0;
}

.lp-hero-webform.parallax-hero.form-clean form input[type='text'],
.lp-hero-webform.parallax-hero.form-clean form input[type='tel'] {
  background-color: transparent;
  text-align: left;
  border: none;
  box-shadow: none;
  border-radius: 0 !important;
  position: relative;
  color: #fff !important;
  font-size: 18px;
  letter-spacing: .025em;
}

.lp-hero-webform.parallax-hero.form-clean .form-item-phone {
  position: relative;
}

.lp-hero-webform.parallax-hero.form-clean .form-item-phone:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 15px;
  top: 40px;
  left: 0;
  z-index: 0;
  border: 2px solid #fff;
  border-top: none;
  border-radius: 15px;
  clip-path: inset(8px 0 0);
}

.lp-hero-webform.parallax-hero.form-clean .form-submit {
  margin: 0 auto;
  border-radius: 50px;
  background-color: #fff;
  border: none;
  color: #262626;
  padding: 0 20px;
  margin-top: 15px;
  height: 30px;
  line-height: 30px;
  position: absolute;
  right: 10px;
  /*top: 10px;*/
  bottom: 10px;
  margin: 0;
}


.lp-hero-webform.parallax-hero.form-clean .form-submit:hover {
  background-color: #262626 !important;
  color: #fff !important;
  border: none !important;
}

.lp-hero-webform.parallax-hero.form-clean form input[type='text']::-webkit-input-placeholder,
.lp-hero-webform.parallax-hero.form-clean form input[type='tel']::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #fff !important;
  text-align: left;
}

.lp-hero-webform.parallax-hero.form-clean form input[type='text']::-moz-placeholder,
.lp-hero-webform.parallax-hero.form-clean form input[type='tel']::-moz-placeholder {
  /* Firefox 19+ */
  color: #fff;
  text-align: left;
}
    
.lp-hero-webform.parallax-hero.form-clean .form-item.messages-box.message-notice .messages-inner-wrapper {
  font-size: 15px;
  margin-bottom: 30px;
  padding: 0 15px;
  line-height: 1.5;
}

.lp-hero-webform.parallax-hero.form-clean .form-item.messages-box .messages-inner-wrapper {
  background: transparent;
  color: white;
  font-size: 12px;
  padding: 0 30px;
  text-align: center;
  /*position: absolute;
  bottom: 0;*/
  font-weight: 600;
  margin: 0;
  width: 100%;
}


.lp-hero-webform.parallax-hero form input:-webkit-autofill,
.lp-hero-webform.parallax-hero form input:-webkit-autofill:hover,
.lp-hero-webform.parallax-hero form input:-webkit-autofill:focus,
.lp-hero-webform.parallax-hero form textarea:-webkit-autofill,
.lp-hero-webform.parallax-hero form textarea:-webkit-autofill:hover,
.lp-hero-webform.parallax-hero form textarea:-webkit-autofill:focus,
.lp-hero-webform.parallax-hero form select:-webkit-autofill,
.lp-hero-webform.parallax-hero form select:-webkit-autofill:hover,
.lp-hero-webform.parallax-hero form select:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
}
    
.lp-hero-webform-headings:after{
  content: '';
  border-top: 1px solid #fff;
  display: block;
  margin: 16px auto 0;
  width: 100px;
}

.lp-hero-webform.lp-hero .select-propertytype .cta-buttons-propertytype .cta-button-property a img {
  width: 20px !important;
  height: 20px !important;
}


.lp-hero.lp-hero-webform .select-propertytype .cta-buttons-propertytype .cta-button-property:hover {
  background-color: #262626 !important;
  transition: all .2s ease;
}

.lp-hero .select-propertytype .cta-buttons-propertytype .cta-button-property:hover a {
  color: #fff !important;
}

.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-business:hover a img.white,
.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-apartment:hover a img.white,
.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-house:hover a img.white,
.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-summerhouse:hover a img.white {
  display: block !important;
}

.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-business:hover a img.black,
.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-apartment:hover a img.black,
.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-house:hover a img.black,
.lp-hero .select-propertytype .cta-buttons-propertytype #cta-button-summerhouse:hover a img.black {
  display: none;
}

.lp-hero-webform::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ljusa bilder → mörk overlay */

.hero-overlay-dark::before {
  background: rgba(0,0,0,0.25);
}

/* mörka bilder → ljus overlay */

.hero-overlay-light::before {
  background: rgba(255,255,255,0.25);
}

/* ingen overlay */

.hero-overlay-none::before {
  background: transparent;
}

    

@media (max-width: 991px) {
  .lp-hero-webform {
    --hero-parallax-height: clamp(520px, 100vh, 820px);
  }
  .lp-hero-webform > div:first-of-type > img {
    inset: 0;
    height: 100% !important;
    transform: translate3d(0, 0, 0) !important;
  }
  
  .lp-hero-webform .container .row {
    justify-content: center !important;
  }
 
  
  .lp-hero-webform  .container .left-column h2 {
    text-align: center;
    max-width: 510px;
  }
  
  .lp-hero .cta-buttons-propertytype {
    margin: 0 auto;
    gap: 10px;
  }

  .lp-hero-webform .headings h3 {
    padding: 0 20px;
  }

  .lp-hero-webform.lp-hero .select-propertytype .cta-buttons-propertytype .cta-button-property {
    margin: 0 !important;
  }

  .lp-hero-webform .container {
    justify-content: center !important;
    bottom: 20px !important;
    transform: unset;
    top: unset !important;
  }
  
  .lp-hero-webform .lp-hero-webform-headings.campaign .campaign-message {
    left: 50% !important;
    top: -20px !important;
    transform: translateX(-50%);
  }
  
  .lp-hero-webform .lp-hero-webform-headings.campaign h2 {
      margin-top: 1rem !important;
  }
}

@media (max-width: 480px) {
  
  .path-frontpage .lp-hero-webform {
    --hero-parallax-height: clamp(667px, 120vh, 820px);
  }
  
 .lp-hero-webform {
   --hero-parallax-height: clamp(667px, 120vh, 820px);
  }
  
  @supports (height: 100svh) {
    .path-frontpage .lp-hero-webform {
     /* --hero-parallax-height: clamp(667px, 130svh, 920px);*/
      --hero-parallax-height: clamp(667px, 125svh, 820px);
    }
    .lp-hero-webform {
      --hero-parallax-height: clamp(667px, 120svh, 820px);
    }
  }
  
  .lp-hero-webform .container .row {
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .lp-hero-webform.parallax-hero .cta-buttons-propertytype {
    max-width: 350px;
  }
  
  .lp-hero-webform.lp-hero .select-propertytype .cta-buttons-propertytype .cta-button-property {
    height: 60px !important;
  }
  
  
  .lp-hero-webform .select-propertytype .cta-buttons-propertytype .cta-button-property a {
    width: 125px !important;
    height: 60px !important;
  }
  
  .lp-hero-webform.parallax-hero.form-clean form .form-item {
    margin: .5rem 0 0;
  }
  
  .lp-hero-webform.parallax-hero.form-clean form .form-item.messages-box {
    margin: 0;
  }
  
  .lp-hero-webform.parallax-hero.form-clean .webform-submission-form {
    max-width: 300px;
  }

}



@media (max-width: 375px) and (max-height: 600px) {
  .path-frontpage .lp-hero-webform {
    --hero-parallax-height: clamp(667px, 140vh, 920px);
  }
  
  .lp-hero-webform {
     --hero-parallax-height: clamp(667px, 140vh, 820px);
  }
  
  @supports (height: 100svh) {
    .path-frontpage .lp-hero-webform {
      --hero-parallax-height: clamp(667px, 150svh, 920px);
  }
    .lp-hero-webform {
      --hero-parallax-height: clamp(667px, 140svh, 820px);
    }
  }
}
  
