@import "bourbon";

@mixin raleway {
  font-family: 'Raleway', sans-serif;
}

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

@mixin clearfix {
  &:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }
}
@font-face {
  font-family: 'tve-leads-five-set-icons';
  src: url('fonts/five_set/five_set_icons.eot?-o8i8n4');
  src: url('fonts/five_set/five_set_icons.eot?#iefix-o8i8n4') format('embedded-opentype'),
  url('fonts/five_set/five_set_icons.woff?-o8i8n4') format('woff'),
  url('fonts/five_set/five_set_icons.ttf?-o8i8n4') format('truetype'),
  url('fonts/five_set/five_set_icons.svg?-o8i8n4#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="five-set-icon"], [class*=" five-set-icon"] {
  color: inherit;
  font-family: 'tve-leads-five-set-icons' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.five-set-icon-lock:before {
  content: "\e600";
}

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

[class*='five_set'] {
  @include clearfix();
  &.tve_gray_bg {
    background: #ddd;
  }
}

#tve_five_set {
  @include opensans();
  text-shadow: none;
  a {
    color: inherit;
  }
  article {
    padding-bottom: 0;
  }
  h1 {
    @include opensans();
    color: #3f3f3f;
    font-weight: 700;
    font-size: 30px;
    line-height: 35px;
    letter-spacing: normal;
  }
  h6 {
    @include opensans();
    color: #3f3f3f;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: normal;
  }
  p {
    @include opensans();
    color: #3f3f3f;
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    letter-spacing: normal;
    margin-bottom: 20px;
    padding-bottom: 0;
    &.bold_text {
      font-weight: 700;
    }
  }
  .bold_text {
    font-weight: 700;
  }
  ol.thrv_wrapper {
    @include opensans();
    counter-reset: ol-counter;
    font-size: 15px;
    list-style-type: none;
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 0;
    padding-bottom: 0;
    li {
      color: #3f3f3f;
      font-size: inherit;
      font-weight: 300;
      &.bold_text {
        font-weight: 700;
      }
    }
    > li {
      line-height: 28px;
      padding-left: 30px !important;
      position: relative;
      &:before {
        @include raleway();
        border-radius: 50%;
        background: #dd5b4e;
        color: #fff;
        content: counter(ol-counter) !important;
        counter-increment: ol-counter;
        display: block;
        height: 21px;
        line-height: 20px;
        font-size: 12px;
        font-weight: 700;
        min-width: 21px;
        position: absolute;
        left: 0;
        top: 5px;
        text-align: center;
      }
    }
  }

  #tve_editor {
    ul.thrv_wrapper {
      li {
        margin-bottom: 30px;
      }
    }
  }
  ul.thrv_wrapper {
    font-size: 18px;
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-bottom: 0;
    li {
      @include opensans();
      color: #3f3f3f;
      font-size: inherit;
      font-weight: 300;
      list-style-type: none;
      line-height: 20px;
      padding-left: 20px;
      position: relative;
      &.bold_text {
        font-weight: 700;
      }
      &:before {
        @include transform(rotate(0deg));
        content: '\f101';
        color: #4aa3df;
        font-family: 'tve-leads-five-set-icons';
        font-size: 20px;
        line-height: 20px;
        position: absolute;
        left: 0;
        top: 0;
      }
    }
  }
  .thrv_lead_generation {
    &.thrv_lead_generation_vertical {
      input[type="text"], input[type="email"] {
        background: #fff;
        margin-bottom: 15px;
        padding: 23px 10px!important;
      }
      button {
        margin-bottom: 0;
        padding: 24px 10px;
      }
    }
    &.thrv_lead_generation_horizontal {
      input[type='text'], input[type="email"] {
        background: #fff;
        line-height: 15px;
        margin-bottom: 0;
        padding: 17px 10px !important;
      }
      button {
        margin-bottom: 0;
        padding: 16px 10px;
      }
    }
    button {
      box-shadow: none;
      border-radius: 4px;
      @include opensans();
      text-shadow: none;
      font-weight: 700;
      font-size: 12px;
      word-wrap: break-word;
    }
    input[type='text'], input[type="email"] {
      border-radius: 4px;
      box-shadow: inset -1px 3px 3px -2px #d6d6d6;
      @include opensans();
      border: 1px solid #cccccc;
      color: $black;
      font-weight: 300;
      font-size: 12px;
      font-style: italic;
      height: auto;
      &:focus, &:active {
        box-shadow: 0 0 2px 0 rgba($black, .25);
        font-style: normal;
      }
    }
  }
  .tve_cb5 {
    border: 0;
  }
  .tve_cb6 {
    border: 0;
    position: relative;
  }
  .tve_ts1 {
    background: #f4f4f4;
    border: 0;
    padding: 30px 25px 25px 25px;
    width: 100%;
    .tve_ts_t {
      p {
        color: #000;
        font-style: italic;
      }
    }
    .tve_ts_ql {
      display: none;
    }
    .tve_ts_o {
      background: transparent;
      height: auto;
      margin-top: 25px;
      position: static;
      > span {
        @include raleway();
        color: #898989;
        font-size: 12px;
        > b {
          font-size: 14px;
        }
      }
      img {
        border-radius: 3px;
        border: 0;
        max-height: 40px;
        max-width: 40px;
      }
    }
  }
  .img_style_lifted_style1 {
    .tve_image_frame {
      box-shadow: 2px 0 4px 0 rgba($black, .4);
      position: relative;
      &:after {
        background-image: url('images/set5_img_shadow.png');
        background-size: 100%;
        background-repeat: no-repeat;
        content: '';
        display: block;
        height: 12px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -12px;
      }
      .tve_image {
        box-shadow: none;
      }
    }
  }
  .thrv_bullets_shortcode {
    .tve_ul {
      &.tve_ul1 {
        font-size: 15px;
        list-style-type: none;
        margin-bottom: 0;
        margin-left: 0;
        padding-left: 0;
        padding-bottom: 0;
        li {
          @include opensans();
          color: #3f3f3f;
          font-weight: 300;
          font-size: inherit;
          list-style-image: none !important;
          list-style-type: none;
          line-height: 20px;
          margin-bottom: 20px;
          position: relative;
          padding-left: 30px;
          &.bold_text {
            font-weight: 700;
          }
          &:before {
            @include transform(rotate(0deg));
            content: '\f058' !important;
            font-family: 'tve-leads-five-set-icons';
            font-size: 20px;
            line-height: 20px;
            position: absolute;
            top: 0;
            left: 0;
          }
        }
      }
    }
  }
  //post footer
  .thrv-leads-form-box {
    border-radius: 3px;
    border: 0;
    .tve_cb6 {
      border-radius: 3px;
      &.tve_white {
        background: #f4f4f4;
      }
    }
    .thrv_contentbox_shortcode {
      margin-bottom: 0;
    }
    .thrv_lead_generation_horizontal {
      &.tve_2 {
        .tve_lg_2 {
          width: 57%;
          &:last-of-type {
            width: 43%;
          }
        }
      }
      input[type="text"], input[type="email"] {
        line-height: 15px;
        padding: 14px 10px !important;
      }
      button {
        @include raleway();
        padding: 14px 10px;
      }
    }
  }
  //slide in
  .thrv-leads-slide-in {
    border-radius: 3px;
    border: 0;
    background: #fff;
    max-width: 420px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    .tve_cb6 {
      &:after {
        @include transform(rotate(45deg));
        background: inherit;
        content: '';
        display: block;
        height: 20px;
        margin: 0 auto;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -10px;
        width: 20px;
      }
    }
    ul.thrv_wrapper {
      margin-top: 0;
      margin-left: 10px;
    }
    .tve_cb6 {
      .tve_cb_cnt {
        padding: 20px 25px;
      }
    }
    .thrv_lead_generation_vertical {
      input[type="text"], input[type="email"] {
        margin-bottom: 25px;
      }
      button {
        font-size: 18px;
        padding: 19px 10px;
      }
    }
    .tve-leads-close {
      background: #69bd43;
      border: 1px solid #fff;
      color: #fff;
      position: absolute;
      top: 5px;
      right: 5px;
      &:hover {
        @include transform(none);
      }
      &:after {
        background: inherit;
        content: '';
        display: block;
        height: 100px;
        position: absolute;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-30%, -75%) rotate(45deg);
        -webkit-transform: translate(-30%, -75%) rotate(45deg);
        -moz-transform: translate(-30%, -75%) rotate(45deg);
        transform: translate(-30%, -75%) rotate(45deg);
        width: 100px;
        z-index: -1;
      }
    }
  }
  //widget
  .thrv-leads-widget {
    border-radius: 3px;
    border: 0;
    padding: 30px;
    .tve_btn {
      min-width: 100%;
    }
    .thrv_contentbox_shortcode {
      margin-top: 0;
      margin-bottom: 0;
    }
    .tve_cb_top_radius {
      .tve_cb5 {
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
      }
    }
    .tve_cb_bottom_radius {
      .tve_cb5 {
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
      }
    }
    .tve_cb5 {
      .tve_cb_cnt {
        padding: 30px 20px;
      }
    }
  }
  .tve-leads-lightbox {
    .tve_p_lb_close {
      background: transparent;
      border: 1px solid #7f7f7f;
      color: #7f7f7f;
      font-size: 16px;
      line-height: 18px;
      top: 15px;
      right: 15px;
    }
    //lightbox v2
    &.tve_five_set_v2 {
      .thrv_lead_generation {
        &.thrv_lead_generation_horizontal {
          input[type='text'], input[type="email"] {
            padding: 23px 10px !important;
          }
          button {
            font-size: 18px;
            padding: 17px 10px 18px;
          }
          &.tve_2 {
            .tve_lg_2 {
              width: 57%;
              &:last-of-type {
                width: 43%;
              }
            }
          }
        }
      }
      .tve_p_lb_content {
        border-radius: 0;
        background: #f4f4f4;
        max-width: 1170px;
        .tve_p_lb_control {
          padding: 40px 25px;
        }
      }
      .tve_cb5 {
        border-radius: 3px;
        .tve_cb_cnt {
          padding: 25px;
        }
      }
    }
    //lightbox v1
    &.tve_five_set_v1 {
      .tve_p_lb_content {
        border-radius: 3px;
        max-width: 1090px;
        padding: 0 !important;
        .tve_cb5_round {
          .tve_cb5 {
            border-radius: 3px;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
          }
        }
        .thrv_columns {
          overflow: visible;
        }
        .thrv_contentbox_shortcode {
          margin-top: 0;
          margin-bottom: 0;
          .tve_cb5 {
            .tve_cb_cnt {
              padding: 40px;
            }
          }
        }
        .tve_p_lb_control {
          padding: 15px 0;
        }
      }
    }
  }
  //ribbon
  .thrv-ribbon {
    box-shadow: 2px 0 4px 0 rgba($black, .2);
    p {
      position: relative;
      z-index: 1;
    }
    .tve-ribbon-close {
      border-color: #3f3f3f;
      color: #3f3f3f;
    }
    .tve-ribbon-content {
      max-width: 1170px;
    }
    .thrv_lead_generation {
      &.thrv_lead_generation_horizontal {
        input[type='text'], input[type="email"] {
          line-height: 15px;
          padding: 14px 10px !important;
        }
        button {
          padding: 13px 10px;
        }
        &.tve_2 {
          .tve_lg_2 {
            width: 62%;
            &:last-of-type {
              width: 38%;
            }
          }
        }
      }
    }
  }
}

//border gradient 1 gradient 2 gradient 1 hover gradient 2 hover
$color-pallete: 'blue' #388ec8 #5cace2 #4393c9 #4c99ce #3280b4 #4c99ce #4c99ce,
'black' #252525 #595959 #3f3f3f #3b3b3b #212121 #3b3b3b #3b3b3b,
'green' #54a430 #78c456 #5faa3d #65ad45 #4c942c #65ad45 #69bd43,
'white' #e1e1e1 #ffffff #e5e5e5 #e4e4e4 #cacaca #f2f2f2 #f2f2f2,
'orange' #eb6108 #ff7c26 #e5620d #ed7121 #d35707 #ed7121 #ed7121,
'purple' #9468ad #b690cd #9c76b3 #9f77b5 #855e9c #9f77b5 #9f77b5,
'red' #c84d41 #e06c60 #c75246 #ce5f54 #b4453b #ce5f54 #dd5b4e,
'teal' #006666 #1a8586 #006b6c #1a7575 #005c5c #1a7575 #1a7575;

@each $color in $color-pallete {
  #tve_five_set {
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      background: nth($color, 3);
    }
    .tve_ul1.tve_#{nth($color, 1)} {
      li {
        &:before {
          color: nth($color, 8);
        }
      }
    }
    .tve_ts1.tve_#{nth($color, 1)} {
      .tve_ts_o {
        > span {
          > b {
            color: nth($color, 7);
          }
        }
      }
    }
    .tve_cb5.tve_#{nth($color, 1)} {
      background: nth($color, 3);
    }
    .tve_cb6.tve_#{nth($color, 1)} {
      background: nth($color, 8);
    }
    .thrv-ribbon.tve_#{nth($color, 1)} {
      @include linear-gradient(nth($color, 3) 0%, nth($color, 7) 100%);
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      input[type='text'], input[type="email"] {
        &:hover {
          border: 1px solid nth($color, 3);
        }
      }
      button {
        @include linear-gradient(nth($color, 3) 0%, nth($color, 4) 100%);
        border: 1px solid nth($color, 2);
        &:hover {
          @include linear-gradient(nth($color, 5) 0%, nth($color, 6) 100%);
        }
        &:active, &:focus {
          @include linear-gradient(nth($color, 6) 0%, nth($color, 5) 100%);
        }
      }
    }
  }
}

@import "_responsive";

@media only screen and (max-width: 1080px) {
  body {
    #tve_five_set {
      .tve-ribbon-content {
        .thrv_lead_generation.thrv_lead_generation_horizontal {
          &.tve_2 {
            .tve_lg_2 {
              width: 50%;
              &:last-of-type {
                width: 50%;
              }
            }
          }
        }
      }
    }
  }
}
@media only screen and (max-width: 940px) {
  #tve_five_set {
    .tve_five_set_v1 {
      .tve_image_caption {
        max-width: 150px;
        margin-bottom: 20px !important;
      }
    }
  }
}