@import "bourbon";

@mixin opensans {
  font-family: 'Open Sans', sans-serif;
}

@mixin lato {
  font-family: 'Lato', sans-serif;
}

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

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

[class*='nine_set'] {
  @include clearfix();
  &.tve_gray_bg {
    background-image: none;
    background: #c2c2c2;
  }
}

body {
  #tve_nine_set {
    a {
      color: inherit;
    }
    h2 {
      @include lato();
      color: #fff;
      font-weight: 300;
      font-size: 55px;
      line-height: 60px;
      letter-spacing: normal;
      .bold_text {
        font-weight: 400;
      }
    }
    p {
      @include opensans();
      color: #fff;
      font-size: 20px;
      font-weight: 300;
      line-height: 34px;
      letter-spacing: normal;
      margin-bottom: 20px;
      .bold_text {
        font-weight: 400;
      }
    }
    h2 {
      clear: none;
      padding-bottom: 0;
    }
  }
}

#tve_nine_set {
  @include opensans();
  text-shadow: none;
  article {
    padding-bottom: 0;
  }
  .thrv_button_shortcode {
    margin-top: 0;
    margin-bottom: 0;
  }
  .tve_btn.tve_btn1 {
    border-radius: 3px;
    box-shadow: 3px 5px 5px 0 rgba(#000, .3);
    @include opensans();
    border-top: 0;
    color: $white;
    font-weight: 600;
    &.tve_bigBtn {
      a {
        font-size: 32px;
        padding: 29px 36px;
      }
    }
    .tve_btnLink {
      text-shadow: none;
    }
    &.tve_white {
      a {
        span {
          color: #333333;
        }
      }
    }
  }
  .set_nine_option {
    position: absolute;
    right: 0;
    top: 30px;
  }
  .thrv_lead_generation {
    &.tve_white {
      button {
        color: #363636;
      }
    }
    &.thrv_lead_generation_horizontal {
      input[type="text"], button, input[type="email"] {
        margin-bottom: 0;
      }
      &.tve_2 {
        .tve_lg_2 {
          width: 64%;
          &:last-of-type {
            width: 36%;
          }
        }
      }
    }
    button {
      border-radius: 3px;
      @include opensans();
      text-shadow: none;
      box-shadow: 3px 5px 5px 0 rgba(#000, .3);
      border-top: 0;
      color: $white;
      font-weight: 600;
      font-size: 32px;
      line-height: 36px;
      padding: 26px 10px;
    }
    input[type="text"], input[type="email"] {
      border-radius: 3px;
      @include opensans();
      box-shadow: none;
      border: 2px solid #fff;
      background: $white;
      color: #666;
      font-size: 20px;
      font-weight: 400;
      height: auto;
      line-height: 1.5em;
      padding: 27px 20px !important;
      &:active {
        box-shadow: 0 0 0 2px #344859;
        color: #000000;
      }
    }
  }
  .tve_cb5 {
    border: 0 !important;
  }
  //post footer
  .thrv-leads-form-box {
    //    border: 0;+
  }
  //multistep
  [class*='tve_nine_set_vms'] {
    .tve_p_lb_close {
      border: 0;
      background: rgba(#000000, .18);
      color: #43b8c9;
      top: 15px;
      right: 15px;
    }
    #tve-p-scroller {
      overflow: visible;
      padding: 0;
    }
    .thrv_contentbox_shortcode {
      margin-top: 0;
      margin-bottom: 0;
    }
    .tve_twc {
      position: relative;
    }
    &.tve-leads-lightbox {
      .tve_p_lb_content {
        border-radius: 0;
        max-width: 1040px;
      }
    }
  }
}

$color-pallete: 'blue' #4f83b8 #3b75b0 #6e99c4 #3e576b #bfdbf7,
'black' #393939 #222222 #5b5b5b #222222 #cacaca,
'green' #2aa07a #12956b #4fb091 #12956b #b2dacd,
'white' #ffffff #b6b7b8 #d0d0d0 #b6b7b8 #d0d0d0,
'orange' #f2b05a #e3a047 #f4be77 #e3a047 #f7e5cc,
'purple' #8c9bb4 #798aa5 #a4b0c4 #798aa5 #cad5e6,
'red' #e97a6d #da685b #ed9186 #da685b #f6c7c1,
'teal' #56bfcf #41b0c1 #74cad7 #43b8c9 #cef4fa;

@each $color in $color-pallete {
  #tve_nine_set {
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      background: nth($color, 2);
    }
    .tve_cb5.tve_#{nth($color, 1)} {
      background: nth($color, 5);
    }
    .tve_btn.tve_btn1.tve_#{nth($color, 1)} {
      @include linear-gradient(nth($color, 2) 0%, nth($color, 3) 100%);
      &:hover {
        @include linear-gradient(nth($color, 3) 0%, nth($color, 2) 100%);
      }
      &:active {
        background: nth($color, 4);
      }
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      input[type='text'], input[type="email"] {
        &:hover {
          border: 2px solid nth($color, 2);
        }
        &:active, &:focus {
          border: 2px solid nth($color, 6);
          background: nth($color, 6);
        }
      }
      button {
        @include linear-gradient(nth($color, 2) 0%, nth($color, 3) 100%);
        &:hover {
          @include linear-gradient(nth($color, 3) 0%, nth($color, 2) 100%);
        }
        &:active {
          background: nth($color, 4);
        }
      }
    }
  }
}

@import "_responsive";

@media only screen and (max-width: 1080px) {
  #tve_nine_set {
    [class*='tve_nine_set_vms'] {
      h2 {
        line-height: 35px;
      }
    }
  }
}

@media only screen and (max-width: 774px) {
  #tve_nine_set {
    [class*='tve_nine_set_vms'] {
      .set_nine_option {
        display: none;
      }
      .thrv_button_shortcode {
        margin-bottom: 10px;
      }
      .tve_oth {
        .tve_image_caption {
          max-width: 100px;
        }
      }
    }
  }
}
