@import "bourbon";

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

@mixin robotoslab {
  font-family: 'Roboto Slab', sans-serif;
}
$white: #fff;
$black: #000;

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

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

#tve_46_set {
  [class*='46_set'] {
    a {
      color: inherit;
    }
    h2 {
      @include lato();
      color: #000000;
      font-weight: 300;
      font-size: 32px;
      line-height: 1.3em;
      letter-spacing: normal;
      .bold_text {
        color: #1580ba;
      }
    }
    h3 {
      @include lato();
      color: #1580ba;
      font-weight: 400;
      font-size: 28px;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    h4 {
      @include lato();
      color: #666666;
      font-weight: 400;
      font-size: 24px;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    h5 {
      @include lato();
      color: #1580ba;
      font-size: 22px;
      font-weight: 400;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    h6 {
      @include lato();
      color: #1580ba;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    p {
      @include robotoslab();
      color: #5e5e5e;
      font-weight: 300;
      font-size: 20px;
      letter-spacing: normal;
      line-height: 1.5em;
      margin-bottom: 20px;
    }
    h2, h3, h4, h5, h6 {
      clear: none;
      padding-bottom: 0;
    }
  }
}

#tve_46_set {
  @include lato();
  text-shadow: none;
  [class*='46_set'] {
    .tve_p_lb_close {
      @include lato();
      border: none;
      background: transparent;
      color: #1580ba;
      font-size: 20px;
      top: 15px;
      right: 15px;
    }
    .tve-screen-filler-close, .tve-form-close {
      @include lato();
      border-radius: 50%;
      border: none;
      background: transparent;
      color: #1580ba;
      cursor: pointer;
      display: block;
      font-size: 20px;
      font-weight: 300;
      height: 23px;
      line-height: 18px;
      position: absolute;
      top: 20px;
      right: 20px;
      text-align: center;
      text-decoration: none;
      width: 23px;
      z-index: 100;
    }
  }
  .tve-leads-lightbox {
    .tve_p_lb_background .tve_p_lb_content {
      background-repeat: no-repeat;
      background-position: top left;
      background-size: auto!important;
      background-color: #fff;
      border-radius: 0;
      box-shadow: 5px 5px 5px 0 rgba(#000, .14);
      max-width: 750px;
    }
    .tve_p_lb_inner {
      padding: 0;
    }
    #tve_editor {
      .tve_p_lb_control {
        padding: 20px 50px;
      }
    }
  }
  .thrv-leads-form-box {
    box-shadow: 5px 5px 5px 0 rgba(#000, .14);
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    padding: 20px 50px;
  }
  .thrv-leads-screen-filler {
    .tve_editor_main_content {
      max-width: 1080px;
    }
  }
  article {
    padding-bottom: 0;
  }
  .tve_image {
    position: relative;
    z-index: 1;
  }
  .thrv_contentbox_shortcode {
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
  .thrv_content_container_shortcode {
    margin-bottom: 0;
  }
  .tve_content_inner {
    position: relative;
  }
  .tve_btn.tve_btn1 {
    @include robotoslab();
    border-radius: 0;
    box-shadow: none;
    font-weight: 400;
    &:hover {
      box-shadow: 0 0 5px 0 rgba(#000, .13) inset;
    }
    &:active {
      box-shadow: none;
    }
    &.tve_normalBtn {
      .tve_btnLink {
        font-size: 20px;
        line-height: 20px;
        padding: 13px 20px;
      }
    }
    .tve_btnLink {
      color: #fff;
      text-shadow: none;
      > span {
        color: inherit;
      }
    }
    &.tve_white {
      border: 1px solid #dbdbdb;
    }
    &.tve_white, &.tve_orange {
      a.tve_btnLink {
        text-shadow: none;
        span {
          color: #333333;
        }
      }
    }
  }
  .thrv_lead_generation {
    &.tve_white {
      button {
        border: 1px solid #dbdbdb;
      }
    }
    &.tve_white, &.tve_orange {
      button {
        color: #333;
        &:hover, &:active {
          color: #333;
        }
      }
    }
    button {
      @include robotoslab();
      border-radius: 0;
      color: #fff;
      font-weight: 400;
      font-size: 22px;
      line-height: 30px;
      padding: 8px 10px;
      text-shadow: none;
    }
    input[type="text"], input[type="email"] {
      @include robotoslab();
      border-radius: 0;
      box-shadow: none;
      border: 1px solid #e1e1e1;
      background: #f8f8f8;
      color: #333;
      font-size: 20px;
      font-weight: 300;
      height: auto;
      line-height: 22px;
      margin-bottom: 11px;
      padding: 9px 20px !important;
      &:hover {
        border: 1px solid #e1e1e1;
        background: #fff;
      }
      &:focus {
        border: 1px solid #a4a4a4;
        background: #fff;
      }
    }
  }
  .tve_lg_radio_wrapper {
    display: inline-block;
    position: relative;
    padding: 5px 20px 5px 0;
    input[type="radio"] {
      cursor: pointer;
      height: 100%;
      margin: 0;
      padding: 0;
      opacity: 0;
      position: absolute;
      left: 0;
      top: 0;
      z-index: 5;
      width: 100%;
      &:checked {
        + label {
          &:after {
            background: #7f7f7f;
          }
        }
      }
      + label {
        @include robotoslab();
        color: #5e5e5e;
        display: inline-block;
        position: relative;
        font-size: 18px;
        font-weight: 300;
        &:before {
          border: 1px solid #a7a7a7;
          background-color: transparent;
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 20px;
          margin-right: 10px;
          vertical-align: middle;
          position: relative;
          top: -2px;
          width: 20px;
        }
        &:after {
          @include transition(background-color .3s);
          background-color: transparent;
          border-radius: 100%;
          content: '';
          height: 10px;
          position: absolute;
          top: 7px;
          left: 6px;
          width: 10px;
        }
      }
    }
  }
  .tve_lg_checkbox_wrapper {
    display: inline-block;
    position: relative;
    padding: 5px 20px 5px 0;
    width: auto;
    input[type="checkbox"] {
      &:not(:checked), &:checked {
        position: absolute;
        visibility: hidden;
        + label {
          @include robotoslab();
          color: #5e5e5e;
          cursor: pointer;
          font-size: 18px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            border: 1px solid #a3a3a3;
            background-color: transparent;
            border-radius: 1px;
            content: '';
            height: 20px;
            position: absolute;
            left: 0;
            top: 4px;
            width: 20px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            position: absolute;
            top: 4px;
            left: 5px;
          }
        }
      }
      &:checked {
        + label {
          &:before {
            background: #7f7f7f;
            border: 1px solid #7f7f7f;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label:after {
        @include transform(scale(1));
        opacity: 1;
      }
    }
  }
  .tve_lg_dropdown {
    position: relative;
    select {
      @include appearance(none);
      @include robotoslab();
      background-color: #f8f8f8;
      border: 1px solid #e1e1e1;
      color: #5e5e5e;
      border-radius: 0;
      cursor: pointer;
      display: inline-block;
      font-size: 20px;
      font-weight: 300;
      line-height: 23px;
      height: 46px;
      margin: 0;
      padding-right: 40px!important;
      outline: none;
      option {
        color: #5e5e5e;
        font-size: 18px;
        font-weight: 300;
      }
      &:focus {
        border: 1px solid #e1e1e1;
        background: #f8f8f8;
      }
      &:hover {
        border: 1px solid #e1e1e1;
        background: #fff;
      }
    }
    .tve_sc_icon {
      margin-right: 20px;
    }
    &:after {
      background: transparent;
      border-radius: 100px;
      border: 1px solid #a3a3a3;
      color: #a3a3a3;
      content: "\022C1";
      font-size: 17px;
      height: 20px;
      line-height: 20px;
      pointer-events: none;
      position: absolute;
      top: 14px;
      right: 20px;
      text-align: center;
      width: 20px;
    }
  }
}

$color-pallete:
'blue' #1580ba #1e88c1 #1580ba,
'black' #434343 #535353 #434343,
'green' #26971b #339f27 #26971b,
'white' #eaeaea #dfdfdf #fff,
'orange' #f6d600 #ffdf08 #f6d600,
'purple' #752190 #822d9e #752190,
'red' #971b1b #9d2c2c #971b1b,
'teal' #0098aa #00a5b9 #0098aa;

@each $color in $color-pallete {
  #tve_46_set {
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      background: nth($color, 4);
    }
    .thrv-leads-screen-filler.tve_#{nth($color, 1)} {
      background: nth($color, 4);
    }
    .tve_btn.tve_btn1.tve_#{nth($color, 1)} {
      background: nth($color, 2);
      &:hover {
        background: nth($color, 3);
      }
      &:active {
        background: nth($color, 3);
      }
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      button {
        background: nth($color, 2);
        &:hover {
          background: nth($color, 3);
        }
        &:active {
          background: nth($color, 3);
        }
      }
    }
  }
}

@import "_responsive";

@media only screen and (max-width: 940px) {
  #tve_46_set .tve-leads-lightbox #tve_editor .tve_p_lb_control {
    padding: 20px;
  }
  #tve_46_set .thrv-leads-screen-filler .tve_editor_main_content {
    padding: 20px;
  }
  #tve_46_set .thrv-leads-form-box {
    padding: 10px;
  }
}