@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;

@mixin stripes {
  &:before {
    -webkit-background-size: 100px 100px;
    -moz-background-size: 100px 100px;
    -ms-background-size: 100px 100px;
    background-size: 100px 100px;
    border-bottom: 2px solid #e0e0e0;
    content: '';
    display: block;
    height: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }
}

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

#tve_38_set {
  [class*='38_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 #b0b0b0;
      background: #ffffff;
      color: #000;
      font-size: 15px;
      line-height: 17px;
      text-decoration: none;
    }
    h2 {
      @include roboto();
      color: #272c32;
      font-weight: 500;
      font-size: 36px;
      line-height: 1.765em;
      letter-spacing: normal;
    }
    p {
      @include roboto();
      color: #5b6168;
      font-size: 18px;
      font-weight: 300;
      line-height: 1.5em;
      margin-bottom: 20px;
    }
    h2 {
      clear: none;
      padding-bottom: 0;
    }
    .bold_text {
      font-weight: 700!important;
    }
  }
}

#tve_38_set {
  @include roboto();
  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_white {
    //      button {
    //        color: #fff;
    //        &:hover, &:active {
    //          color: #333;
    //        }
    //      }
    //    }
    button {
      @include roboto();
      border-radius: 0;
      border: 0;
      box-shadow: none;
      color: $white;
      font-weight: 500;
      font-size: 20px;
      line-height: 30px;
      padding: 12px 10px;
      text-shadow: none;
      &:hover {
        box-shadow: 0 3px 0 0 rgba(#000, .2) inset;
      }
      &:active {
        box-shadow: 0 3px 0 0 rgba(#000, .1) inset;
      }
    }
    input[type="text"], input[type="email"] {
      @include roboto();
      border-radius: 0;
      border: 2px solid #dce0e1;
      background: $white;
      box-shadow: 0 2px 2px 0 #dce0e1 inset;
      color: #838e8f;
      font-size: 18px;
      font-weight: 300;
      height: auto;
      line-height: 28px;
      padding: 12px 20px !important;
      &:hover {
        border: 2px solid #c2c8ca;
      }
      &:focus {
        border: 2px solid #7e8b8e;
        background: #fbf8c6;
      }
    }
  }
  .thrv-leads-form-box {
    @include stripes();
    border: 2px solid #e0e0e0;
    background: #fff;
    position: relative;
  }
  .thrv-leads-widget {
    @include stripes();
    border: 2px solid #e0e0e0;
    background: #fff;
    position: relative;
    &:before {
      @include linear-gradient(
              -45deg,
              #2c3955 25%,
              #7f89a0 25%,
              #7f89a0 50%,
              #2c3955 50%,
              #2c3955 75%,
              #7f89a0 75%,
              #7f89a0, $fallback: transparent
      );
    }
  }
  .tve-leads-lightbox {
    .tve_p_lb_content {
      @include stripes();
      border: 2px solid #e0e0e0;
      background: #fff;
      border-radius: 0;
      padding: 0 15px;
      &:before {
        @include linear-gradient(
                -45deg,
                #2c3955 25%,
                #7f89a0 25%,
                #7f89a0 50%,
                #2c3955 50%,
                #2c3955 75%,
                #7f89a0 75%,
                #7f89a0, $fallback: transparent
        );
      }
    }
  }
  /*
    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 {
            background: #fbf8c6;
          }
        }
      }
      + label {
        @include roboto();
        color: #5b6168;
        display: inline-block;
        position: relative;
        font-size: 20px;
        font-weight: 300;
        &:before {
          background-color: #fff;
          border: 2px solid rgba(#516267, .2);
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 22px;
          margin-right: 10px;
          vertical-align: middle;
          width: 22px;
        }
        &:after {
          @include transition(background-color .3s);
          background-color: transparent;
          border-radius: 100%;
          content: '';
          height: 10px;
          position: absolute;
          top: 10px;
          left: 8px;
          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 roboto();
          color: #5b6168;
          cursor: pointer;
          font-size: 20px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            border-radius: 3px;
            background-color: #fff;
            border: 2px solid rgba(#516267, .2);
            content: '';
            height: 22px;
            position: absolute;
            left: 0;
            top: 2px;
            width: 22px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            font-size: 20px;
            font-weight: 600;
            position: absolute;
            top: 0;
            left: 5px;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label {
        &:before {
          background: #fbf8c6;
        }
      }
      &:checked + label:after {
        @include transform(scale(1));
        opacity: 1;
      }
    }
  }
}

$color-pallete: 'blue' #2c3955 #37435e #4b576e #7f89a0,
'black' #0f0f0f #1b1b1b #333333 #8d8e92,
'green' #135f3e #1f6748 #36775b #719f8b,
'white' #999999 #9e9e9e #a8a8a8 #d7d7d7,
'orange' #f26b1d #f37329 #f4813f #f7a373,
'purple' #804f7d #865884 #936990 #ad81aa,
'red' #c32717 #c63223 #cc473a #c97b73,
'teal' #4b6d65 #54746d #66837c #8db5ac;

@each $color in $color-pallete {
  #tve_38_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, 2);
    }
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      // background-color: nth($color, 5);
      &:before {
        @include linear-gradient(
                -45deg,
                nth($color, 2) 25%,
                nth($color, 5) 25%,
                nth($color, 5) 50%,
                nth($color, 2) 50%,
                nth($color, 2) 75%,
                nth($color, 5) 75%,
                nth($color, 5), $fallback: transparent
        );
      }
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      input[type="text"], input[type="email"] {
        &:focus {
          color: nth($color, 2);
        }
      }
      button {
        background: nth($color, 2);
        &:hover {
          background: nth($color, 3);
        }
        &:active {
          background: nth($color, 4);
        }
      }
      input[type="radio"] {
        &:checked + label {
          &:after {
            background-color: nth($color, 2);
          }
        }
      }
      input[type="checkbox"] {
        &:not(:checked),
        &:checked {
          + label {
            &:after {
              color: nth($color, 2);
            }
          }
        }
      }
    }
  }
}


@import "_responsive";
