.hero {
    display: flex;
    align-items: center;
  position: relative;
  min-height: 642px;
  margin-top: -1px;
}
.hero .row-fluid {
  min-height: calc(396px - 160px);
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;

}

.hero .row-fluid.vcenter {
  align-items: center;
}

/*.hero.hero-mask {
  mask-image: url(https://143239517.fs1.hubspotusercontent-eu1.net/hubfs/143239517/cafca-2024/red-bg.svg);
    webkit-mask-image: url(https://143239517.fs1.hubspotusercontent-eu1.net/hubfs/143239517/cafca-2024/red-bg.svg);
}*/

.hero-button-wrapper {
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  grid-gap: 20px;
}

.hero .button.button--simple {
    letter-spacing: var(--cta-primary-letter-spacing);
    padding: var(--cta-size-regular-padding);
    border-color: #fff;
    color: #fff;
}

.hero .button.button--simple:hover {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #fff;
}



.hero .row-fluid {
  position: relative;
  
}
.hero .cafca-video-wrapper {
  position: absolute;
  bottom: -80px;
  right: 0;
   width: 190px;
  height: 190px; 
}

.hero .cafca-video-wrapper.with-video-link  { 
  
  background: url('https://143239517.fs1.hubspotusercontent-eu1.net/hubfs/143239517/cafca-2024/brand-shape-red.svg');
  background-repeat: no-repeat;
  background-position: bottom;
}

.hero .cafca-video-wrapper.with-video-link:hover  {

  background-image: url('https://143239517.fs1.hubspotusercontent-eu1.net/hubfs/143239517/cafca-2024/brand-shape-hover-2.svg');
}

.hero .cafca-video-wrapper .cafca-logo {
  position: absolute;
  bottom: -50px;
  right: 30px;
    filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.05)) drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.04)) drop-shadow(0px 20px 25px rgba(0, 0, 0, 0.10));

}



.hero .cafca-video-link {
  color: #fff;
  top: 59px;
  position:relative;
  font-size: 16px;
  width: auto; 
  right: 20px;
  float: right;
  font-weight: 500;
}

.hero .cafca-video-link:not(.whole-col-cafca-video-link):after {
  content: "";
  height: 40px;
  width: 1px;
  background: #EE7601;
  position: absolute;
  top: 30px;
  margin: 0 auto;
  right: 0;
    left: 0;
}

.hero .cafca-video-wrapper.with-video-link:hover .cafca-video-link svg path{
  fill: #fff;
}

a.whole-col-cafca-video-link {
    position: absolute !important;
    top: 38px !important;
    width: 100% !important;
    height: 150px;
    left: 0 !important;
    display: block;
}

.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cafca-popup-close {
    color: #fff;
    font-size: 30px;
    background: black;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    float: right;
    bottom: -20px;
    position: relative;
    right: -10px;
    cursor: pointer;
    z-index: 9;
}

.hero .cafca-form-wrapper .form-title {
  display: none;
}

.hero .cafca-form-wrapper {
    padding: 0;
}

.hero .cafca-form-wrapper .hs-form-field {
    margin-bottom: 10px;
}

.hero .legal-consent-container .hs-richtext,
.hero .legal-consent-container .hs-richtext p,
.hero .legal-consent-container .hs-richtext a {
  color:#fff;
}
.hero .cafca-video-wrapper.with-video-link.with-thumb .cafca-video-link {
  top: 20px;
}

.hero .cafca-video-wrapper.with-video-link.with-thumb {
    bottom: -30px;
    right: -72px;
    width: 370px;
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 288px;
    height: 205px
}

.hero .cafca-video-wrapper.with-video-link.with-thumb a.whole-col-cafca-video-link {
    height: 120%;
    left: 0 !important;
    top: 0px !important;
    width: 100% !important;
    z-index: 2;
}

.hero .cafca-video-wrapper.with-video-link.with-thumb .cafca-video-link:not(.whole-col-cafca-video-link):after {
    display:none
}



@media(min-width: 768px) { 
  .hero {
    min-height: 642px;
  }
  .hero .cafca-form-wrapper {
    padding: 0 50px;
  }

}

@media(max-width: 1200px) {
  .hero .cafca-video-wrapper.with-video-link.with-thumb {
      bottom: -30px;
      right: 30px;
      width: 300px;
  }
}

@media(max-width: 767px) {
  .hero-button-wrapper {
    max-width: 480px;
  }
  
  .hero .cafca-video-wrapper.with-video-link {
      position: relative;
      float: right;
  }
  
  .hero .cafca-video-span-wrapper {
    width: 100%;
  }
  
  .hero .cafca-video-wrapper:not(.with-video-link) .cafca-logo {
    bottom: -20px;
  }
  
  .hero {
    padding-top: 70px !important;
  }
  
  .hero ~ .popup-wrapper video {
    max-width: 100%;
    height: auto;
  }
  
  .cafca-popup-close {
    right: 0;
  }
  
  .cafca-form-image {
    margin-top: 50px;
    text-align: center;
  }
  
  .hero .cafca-video-wrapper.with-video-link.with-thumb  {
    margin-bottom: 2em
  }
  
  .hero .cafca-video-wrapper.with-video-link.with-thumb .cafca-logo {
    bottom: -28px; 
  }
  
  .hero .cafca-video-wrapper .cafca-logo.video-thumb {
     position: relative;
     right: 10px;
  }
  
  .hero .cafca-video-wrapper.with-video-link.with-thumb a.whole-col-cafca-video-link {
    height: 100%;
    left: 0 !important;
    top: 0px !important;
    width: 100% !important;
  }
}


{# inline form #}

.hero .cafca-form-wrapper.inline-form {
    margin-bottom: 15px;
}

.hero .cafca-form-wrapper.inline-form form {
    display: flex;
    align-items: top;
    width: 100%;
    gap: 0;
}

.hero .cafca-form-wrapper.inline-form  .hs-form-field {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
}

.hero .cafca-form-wrapper.inline-form .hs_submit.hs-submit input {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 16px 22px 16px 16px;
    border-radius: 0px 35px 35px 0px;
    background-color: var(--cta-tertiary-bg-color-hover);
    border: 2px solid var(--cta-tertiary-bg-color-hover);
}

.hero .cafca-form-wrapper.inline-form .hs_submit.hs-submit input:hover {
    background: #000;
    border-color: #000;
}
.hero .cafca-form-wrapper.inline-form  form label:not(.hs-error-msg) {
    display: none;
}

.hero .cafca-form-wrapper.inline-form form label.hs-error-msg {
    color: #fff;
    font-weight: 400;
    padding-left: 20px;
}

.hero .cafca-form-wrapper.inline-form  .hs-form-field {
    padding: 0px
}

.hero .cafca-form-wrapper.inline-form  .hs-form-field input {
    padding: 16px;
    border-radius: 35px 0 0 35px;
    border: 2px solid #fff !important;
}