@import "bourbon";

@mixin roboto {
  font-family: 'Roboto', sans-serif;
}

@mixin clearfix {
  &:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }
}

$white: #fff;
$black: #000;

[class*='twelve_set'] {
  &.tve_gray_bg {
    background-image: none;
    background: #c2c2c2;
  }
}

body {
  #tve_twelve_set {
    [class*='twelve_set'] {
      @include clearfix();
      a {
        color: inherit;
      }
      h2 {
        @include roboto();
        color: #272f32;
        font-weight: 300;
        font-size: 48px;
        line-height: 60px;
        letter-spacing: normal;
        .bold_text {
          color: #dc4539;
          font-weight: 500;
        }
      }
      h4 {
        @include roboto();
        color: #667b81;
        font-size: 36px;
        font-weight: 500;
        line-height: 40px;
        letter-spacing: normal;
      }
      h5 {
        @include roboto();
        color: #667b81;
        font-size: 24px;
        font-weight: 500;
        line-height: 30px;
        letter-spacing: normal;
      }
      h6 {
        @include roboto();
        color: #333;
        font-size: 22px;
        font-weight: 300;
        line-height: 30px;
        letter-spacing: normal;
      }
      p {
        @include roboto();
        color: #666666;
        font-size: 18px;
        font-weight: 300;
        line-height: 24px;
        letter-spacing: normal;
        margin-bottom: 20px;
      }
      h2, h4, h5, h6 {
        clear: none;
        padding-bottom: 0;
      }
    }
  }
}

#tve_twelve_set {
  @include roboto();
  text-shadow: none;
  article {
    padding-bottom: 0;
  }
  .thrv_contentbox_shortcode {
    margin-top: 0;
  }
  .tve_cb5 {
    &:before {
      @include transform(rotate(45deg));
      background: inherit;
      content: '';
      display: block;
      height: 25px;
      margin: 0 auto;
      position: absolute;
      left: 0;
      right: 0;
      bottom: -12px;
      width: 25px;
    }
  }
  .tve_btn.tve_btn7 {
    border-radius: 5px;
    @include roboto();
    border: 0;
    color: $white;
    font-weight: 500;
    &.tve_normalBtn {
      a {
        font-size: 18px;
        line-height: 19px;
        padding: 14px 20px;
      }
    }
    .tve_btnLink {
      text-shadow: none;
    }
    &.tve_white {
      a {
        span {
          color: #333;
        }
      }
      &:hover, &:active {
        a {
          span {
            color: #333;
          }
        }
      }
    }
  }
  .thrv_lead_generation {
    &.tve_white {
      button {
        color: #333;
        &:hover, &:active {
          color: #333;
        }
      }
    }
    button {
      border-radius: 5px;
      @include roboto();
      text-shadow: none;
      border: 0;
      color: $white;
      font-weight: 500;
      font-size: 24px;
      line-height: 25px;
      padding: 22px 10px;
    }
    input[type="text"], input[type="email"] {
      border-radius: 5px;
      @include roboto();
      box-shadow: 0 3px 4px -3px rgba(#000, .4) inset;
      background: $white;
      color: #666;
      font-size: 18px;
      font-weight: 400;
      height: auto;
      line-height: 26px;
      margin-bottom: 10px;
      padding: 19px 20px !important;
      &:active {
        background: #fffde3;
      }
    }
  }
  //post footer
  .thrv-leads-form-box {
    border-radius: 15px;
    border: 0;
    overflow: hidden;
  }
  //multistep
  [class*='tve_twelve_set_vms'] {
    .tve_p_lb_close {
      border: none;
      background: #667b81;
      color: #bad2d9;
      top: 15px;
      right: 15px;
    }
    #tve-p-scroller {
      overflow: visible;
      padding: 0;
    }
    &.tve-leads-lightbox {
      .tve_p_lb_content {
        border-radius: 15px;
        max-width: 1060px;
        overflow: hidden;
      }
    }
  }
}

$color-pallete: 'blue' #667b81 #85959a #57696e #516267 #bad2d9 #667b81,
'black' #333333 #5c5c5c #2b2b2b #1f1f1f #797979 #333333,
'green' #589856 #79ad78 #4b8149 #426f40 #a7d7a6 #589856,
'white' #e7e7e7 #d6d6d6 #bfbfbf #a7a6a6 #d6d6d6 #fff,
'orange' #f26e50 #f58b73 #ce5e44 #bb553e #f4b0a1 #f26e50,
'purple' #686680 #868599 #59576d #545266 #afaecb #686680,
'red' #da3745 #e15f6a #ba2f3b #a72934 #e2a9ae #da3745,
'teal' #5ea7a7 #7eb9b9 #508e8e #487e7e #b5dada #5ea7a7;

@each $color in $color-pallete {
  #tve_twelve_set {
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      background: nth($color, 7);
    }
    .tve_cb5.tve_#{nth($color, 1)} {
      background: nth($color, 6);
    }
    .tve_btn.tve_btn7.tve_#{nth($color, 1)} {
      box-shadow: 0 3px 0 0 nth($color, 5);
      background: nth($color, 2);
      &:hover {
        background: nth($color, 3);
      }
      &:active {
        background: nth($color, 4);
      }
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      input[type="text"], input[type="email"] {
        border: 2px solid rgba(nth($color, 5), .2);
        &:hover {
          border: 2px solid rgba(nth($color, 5), .35);
        }
        &:active {
          border: 2px solid rgba(nth($color, 5), .74);
        }
      }
      button {
        box-shadow: 0 3px 0 0 nth($color, 5);
        background: nth($color, 2);
        &:hover {
          background: nth($color, 3);
        }
        &:active {
          background: nth($color, 4);
        }
      }
    }
  }
}

@import "_responsive";

@media only screen and (max-width: 1080px) {
  #tve_twelve_set {
    h2 {
      margin-top: 0 !important;
      margin-bottom: 20px !important;
    }
  }
}

@media only screen and (max-width: 940px) {
  body {
    #tve_twelve_set {
      [class*="tve_twelve_set_vms"] {
        .tve_p_lb_close {
          top: 5px;
          right: 5px;
        }
      }
      h2 {
        line-height: 1.2em;
      }
    }
  }
}
