/* Mega Menu Style */
.body{
  letter-spacing:0:
}
.mega-menu-branch.active {
    opacity: 1;
    visibility: visible;
    transition: .3s ease;
    -webkit-transform: scale(1,1);
    transform: scale(1,1);
    pointer-events: auto;
}
.mega-menu-branch {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 80px;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: scale(1,.8);
    transform: scale(1,.8);
    -webkit-transform-origin: center top;
    transform-origin: center top;
    pointer-events: none;
  background:#fff;
  padding: 20px 10% 142px;
  /*box-shadow: 0px 15px 10px -15px #111; */
  min-height: 535px !important;
}

#megaMenuContainer .mega-menu-branch{
  background: transparent;
  top: 58px;
   min-height: initial !important;
  position: fixed !important;
  padding-bottom:0;
}
#megaMenuContainer.staticHeader .mega-menu-branch{position: absolute !important;}
#megaMenuContainer .menu-main-content .row-fluid .span3

{
  border-left: 1px solid #E7E7E7;
  padding: 0 20px;
}
#megaMenuContainer .menu-main-content .row-fluid,
#megaMenuContainer .menu-main-content .divider
{display: flex; height: 100%;}
#megaMenuContainer .menu-main-content .divider{width:1px; background: #E7E7E7;}
#megaMenuContainer .menu-main-content .row-fluid .span3:first-child
{
  border-left: 0;
}

#megaMenuContainer .menu-main-content
{
  max-width: 980px;
    background: #fff;
    border: 1px solid #E7E7E7;
    border-radius: 5px;
    padding: 30px 0;
} 
.mega-menu-branch h3 {
    font-size: 23px;
    font-weight: 600;
      line-height: 30px;
    margin-bottom: 30px;
}
.mega-menu-branch h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 28px;
  text-transform: uppercase;
}
.mega-menu-branch ul {
    padding: 0px;
    list-style: none;
    margin-top: 10px;
    margin-bottom: 30px;
}
.mega-menu-branch ul li a {
    font-size: 16px;
    color: #5b6a81;
      font-family: 'Source Sans Pro', sans-serif;
}
.mega-menu-branch .hs-menu-wrapper.hs-menu-flow-vertical > ul li a {
    padding: 0px;
    font-size: 20px;
}
.mega-menu-branch .hs-menu-wrapper.hs-menu-flow-vertical > ul li a:hover{
  color:#5b6a81 !important;
}
.menu-form {
    padding-top: 8%;
}
.menu-form .hubspot-link__container{
  display:none;
}
.menu-form span {
    color: #808080;
}
.mega-menu-branch .menu-form h4 {
    font-size: 16px;
    color: #5b6a81;
}
.mega-menu-branch .submitted-message {
    color: #000;
    opacity: 0.9;
}
.mega-menu-branch .row-fluid .megamenu-close{
  display: none;
  cursor: pointer;
  font-size: 20px;
  color: #5b6a81;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 22px;
  font-weight: 700;
}
.mega-menu-branch .row-fluid .megamenu-close i{
  padding-right: 10px;
}
.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children.mega-menuized ul.hs-menu-children-wrapper{
  display: none !Important;
}
li.hs-menu-item.hs-menu-depth-1.hs-item-has-children.mega-menuized .downarrow {
      position: absolute;
    color: #fff;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #fff;
    display: none;
    left: 0;
    right: 0;
    margin: 0 auto;
    /* width: 20px; */
    /* height: 3px; */
    text-align: center;
    width: 1px;
  z-index: 9999;
}

li.hs-menu-item.hs-menu-depth-1.hs-item-has-children.mega-menuized:hover .downarrow,
li.hs-menu-item.hs-menu-depth-1.hs-item-has-children.mega-menuized .downarrow.active
{
  display: inline-block;
}
.mega-menu-branch .hs-menu-wrapper.hs-menu-flow-vertical > ul li a,
.mega-menu-branch h4
{
  font-size: 16px;
}

.mega-menu-branch {
      padding: 20px 5% 60px;
  }
   .mega-menu-branch .one-line-form form .hs-button.primary {
      position: relative;
      border-top-left-radius: 30px;
      border-bottom-left-radius: 30px;
      right: 0px;
     float:none;
  }
   .mega-menu-branch .one-line-form form input.hs-input {
      border-top-right-radius: 30px;
      border-bottom-right-radius: 30px;
  }

@media (max-width: 767px) {
  .mega-menu-branch .row-fluid .megamenu-close{display: block;}
  #megaMenuContainer .menu-main-content{padding: 30px;}
  #megaMenuContainer .mega-menu-branch{background: #fff;}
  /*#megaMenuContainer .mega-menu-branch{position: absolute !important;}*/
}
@media only screen 
and (min-device-width : 768px) 
  and (max-device-width : 1024px)  { 
  #megaMenuContainer .mega-menu-branch{top: 72px;}
}
@media(min-width: 768px){
  #megaMenuContainer .mega-menu-items{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 15px;
  }
  .span12.widget-span.widget-type-cell.mega-menu-items>.row-fluid-wrapper.row-depth-2 {
      /* flex: 1 1 0; */
      flex: 1 1 0;
      /* width: 0; */
      /* text-align: center; */
      border-left: 1px solid #eee;
      padding: 0 20px;
  }
  .span12.widget-span.widget-type-cell.mega-menu-items>.row-fluid-wrapper.row-depth-2:first-child{
    border-left: 0;
  }
}

@media(max-width: 991px) and(min-width: 768px){
  .span12.widget-span.widget-type-cell.mega-menu-items>.row-fluid-wrapper.row-depth-2 {padding: 0 8px;}
  .mega-menu-branch .hs-menu-wrapper.hs-menu-flow-vertical>ul li a, .mega-menu-branch h4 {
    font-size: 14px;
}
}
.new-headers li.hs-menu-item.hs-menu-depth-1.hs-item-has-children.mega-menuized .downarrow{  top:50px;}

@media only screen 
and (min-device-width : 768px) 
  and (max-device-width : 1024px)  { 
.new-headers .mega-menu-branch {    top: 50px !important;}
}
@media(max-width: 767px){
.new-headers .control-button { right: 45px; top: 8px; }
}
/* Mega Menu */