@import "bourbon";

@mixin roboto {
  font-family: 'Roboto', 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;
  }
}

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

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

#tve_37_set {
  [class*='37_set'] {
    @include clearfix();
    //    .tve_editor_main_content {
    //      max-width: 2200px;
    //      margin-left: 0;
    //      padding: 0 50px;
    //    }
    a {
      color: inherit;
    }
    .tve_p_lb_close {
      @include roboto();
      border-radius: 50%;
      border: 1px solid #2f509d;
      background: #97d4f4;
      color: #fff;
      font-size: 15px;
      line-height: 17px;
      text-decoration: none;
    }
    h2 {
      @include opensans();
      color: #fff;
      font-weight: 600;
      font-size: 34px;
      line-height: 1.765em;
      letter-spacing: normal;
    }
    p {
      @include opensans();
      color: #fff;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.5em;
      margin-bottom: 20px;
    }
    h2 {
      clear: none;
      padding-bottom: 0;
    }
    .bold_text {
      font-weight: 700!important;
    }
  }
}

#tve_37_set {
  @include opensans();
  text-shadow: none;
  article {
    padding-bottom: 0;
  }
  .thrv_contentbox_shortcode {
    margin-top: 0;
    margin-bottom: 0;
    .tve_cb5 {
      border: 0;
      .tve_cb_cnt {
        //padding: 40px 50px;
      }
    }
  }
  .thrv_lead_generation {
    &.thrv_lead_generation_horizontal {
      &.tve_2 {
        button, input[type="text"], input[type="email"] {
          margin-bottom: 0;
        }
      }
      &.tve_2 {
        .tve_lead_generated_inputs_container {
          .tve_lg_input_container {
            &.tve_lg_2 {
              width: 67%;
              &:last-of-type {
                width: 33%;
              }
            }
          }
        }
      }
    }
    &.tve_white {
      button {
        color: #333333;
      }
    }
    button {
      @include roboto();
      border-radius: 0;
      border: 0;
      box-shadow: 0 -2px 0 0 rgba(#000, .19) inset;
      color: $white;
      font-weight: 500;
      font-size: 20px;
      line-height: 30px;
      padding: 12px 10px;
      text-shadow: none;
      &:hover {
        box-shadow: 0 -2px 0 0 rgba(#000, .1) inset;
      }
      &:active {
        box-shadow: 0 -2px 0 0 rgba(#000, .25) inset;
      }
    }
    input[type="text"], input[type="email"] {
      @include roboto();
      border-radius: 0;
      border: 0;
      background: $white;
      color: #666;
      font-size: 18px;
      font-weight: 300;
      height: auto;
      line-height: 28px;
      padding: 12px 20px !important;
      &:hover {
        background: #f2f1f1;
      }
      &:focus {
        box-shadow: 0 0 0 3px rgba(#000, .09);
        background: #fff;
        color: #333;
      }
    }
  }
  .thrv-leads-form-box {
    border: 0;
    background: #fff;
    padding: 10px;
  }
  .thrv-leads-widget {
    background: #fff;
    border: 1px solid #26a9e1;
    h2 {
      line-height: 1.5em;
    }
  }
  .tve-leads-lightbox {
    .tve_p_lb_content {
      background: #fff;
      border-radius: 0;
      border: 1px solid #26a9e1;
      padding: 0 15px;
      .tve_p_lb_inner {
        overflow: visible;
      }
    }
  }
  /*
    autoresponder elements
  */
  .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 {
          &:before {
            border: 3px solid rgba(#000, .09);
            background-clip: padding-box;
            height: 19px;
            width: 19px;
          }
        }
      }
      + label {
        @include roboto();
        color: #fff;
        display: inline-block;
        position: relative;
        font-size: 18px;
        font-weight: 300;
        &:before {
          background-color: #fff;
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 25px;
          margin-right: 10px;
          vertical-align: middle;
          width: 25px;
        }
        &:after {
          @include transition(all .3s);
          background-color: transparent;
          border-radius: 100%;
          content: '';
          height: 7px;
          position: absolute;
          top: 10px;
          left: 9px;
          width: 7px;
        }
      }
    }
  }
  .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 roboto();
          color: #fff;
          cursor: pointer;
          font-size: 18px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            border-radius: 3px;
            background-color: #fff;
            content: '';
            height: 25px;
            position: absolute;
            left: 0;
            top: 0;
            width: 25px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            font-size: 20px;
            font-weight: 600;
            position: absolute;
            top: -2px;
            left: 5px;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label:before {
        border: 3px solid rgba(#000, .09);
        background-clip: padding-box;
        height: 19px;
        width: 19px;
      }
      &:checked + label:after {
        @include transform(scale(1));
        opacity: 1;
      }
    }
  }
}

$color-pallete: 'blue' #4e63d8 #3b4bcc #3d4ebd #3847ca #26a9e1,
'black' #151515 #0f0f0f #000000 #0e0e0e #151515,
'green' #a9d249 #8dc437 #8bb639 #93c73b #a9d249,
'white' #ffffff #ffffff #c4c4c4 #e4e4e4 #ffffff,
'orange' #ffac17 #ff9111 #e58e12 #ff9412 #ffac17,
'purple' #a86fa5 #8c5487 #8a5787 #8a5286 #a86fa5,
'red' #ee4b2d #e83922 #d33b23 #e83922 #ee4b2d,
'teal' #05d89c #03cc7c #04bd7e #03c975 #05d89c;

@each $color in $color-pallete {
  #tve_37_set {
    //    .thrv-leads-screen-filler.tve_#{nth($color, 1)} {
    //      background-color: nth($color, 4);
    //    }
    .tve_cb.tve_cb5.tve_#{nth($color, 1)} {
      background: nth($color, 6);
    }
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      border: 1px solid nth($color, 6);
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      button {
        @include linear-gradient(nth($color, 2), nth($color, 3));
        &:hover {
          background: nth($color, 4);
        }
        &:active {
          background: nth($color, 5);
        }
      }
      input[type="radio"] {
        &:checked + label {
          &:after {
            background-color: nth($color, 2);
          }
        }
      }
      input[type="checkbox"] {
        &:not(:checked),
        &:checked {
          + label {
            &:after {
              color: nth($color, 2);
            }
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 940px) {
  #tve_37_set {
    .thrv_lead_generation {
      &.thrv_lead_generation_horizontal {
        &.tve_2 {
          .tve_lead_generated_inputs_container {
            .tve_lg_input_container {
              &.tve_lg_2 {
                width: 50%;
                &:last-of-type {
                  width: 50%;
                }
              }
            }
          }
        }
      }
    }
  }
}

@import "_responsive";
