@import "bourbon";

@mixin roboto {
  font-family: 'Roboto', sans-serif;
}

@mixin robotoslab {
  font-family: 'Roboto Slab', sans-serif;
}

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

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

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

#tve_35_set {
  [class*='35_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%;
      background: #a37db7;
      border: 0;
      color: #fff;
      font-size: 15px;
      line-height: 17px;
      text-decoration: none;
      top: 10px;
      right: 10px;
    }
    h2 {
      @include robotoslab();
      color: #fff;
      font-weight: 400;
      font-size: 32px;
      line-height: 1.111em;
      letter-spacing: normal;
    }
    p {
      @include robotoslab();
      color: #fff;
      font-size: 20px;
      font-weight: 300;
      line-height: 1.5em;
      margin-bottom: 20px;
      text-shadow: none;
    }
    h2 {
      clear: none;
      padding-bottom: 0;
    }
    .bold_text {
      font-weight: 700 !important;
    }
  }
}

#tve_35_set {
  @include roboto();
  text-shadow: none;
  article {
    padding-bottom: 0;
  }
  .thrv_contentbox_shortcode {
    margin-top: 0;
    margin-bottom: 0;
    .tve_cb5 {
      border: 0;
    }
  }
  .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%;
              }
            }
          }
        }
      }
    }
    button {
      @include roboto();
      border-radius: 5px;
      border: 0;
      box-shadow: 0 -1px 1px 0 rgba(#000, .3) inset;
      color: $white;
      font-weight: 500;
      font-size: 20px;
      line-height: 30px;
      padding: 12px 10px;
      text-shadow: none;
    }
    input[type="text"], input[type="email"] {
      @include roboto();
      border-radius: 5px;
      border: 0;
      box-shadow: 0 1px 5px 0 rgba(#000, .2) inset;
      color: #666;
      font-size: 18px;
      font-weight: 300;
      height: auto;
      line-height: 28px;
      padding: 13px 20px !important;
      &:focus {
        color: #333;
      }
    }
  }
  .thrv-leads-form-box {
    border: 0;
    background: #efefef;
  }
  .thrv-leads-widget {
    border-top: 7px solid #a37db7;
    background: #efefef;
  }
  .tve-leads-lightbox {
    .tve_p_lb_content {
      border-top: 7px solid #a37db7;
      background: #efefef;
      padding: 0 15px;
      border-radius: 0;
      .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 {
            box-shadow: none;
          }
          &:after {
            border: 2px solid #fff;
          }
        }
      }
      + label {
        @include roboto();
        color: #666666;
        display: inline-block;
        position: relative;
        font-size: 16px;
        font-weight: 300;
        &:before {
          background-color: #fff;
          border: 1px solid rgba(#000, .2);
          box-shadow: 0 1px 0 0 rgba(#000, .15);
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 20px;
          margin-right: 10px;
          position: relative;
          top: -2px;
          vertical-align: middle;
          width: 20px;
        }
        &:after {
          @include transition(background-color .3s);
          background-color: transparent;
          border-radius: 100%;
          content: '';
          height: 8px;
          position: absolute;
          top: 3px;
          left: 5px;
          width: 8px;
        }
      }
    }
  }
  .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: #666666;
          cursor: pointer;
          font-size: 16px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            background-color: #fff;
            border: 1px solid rgba(#000, .2);
            box-shadow: 0 1px 0 0 rgba(#000, .15);
            content: '';
            height: 20px;
            position: absolute;
            left: 0;
            top: 0;
            width: 20px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            color: #fff;
            font-size: 18px;
            font-weight: 600;
            position: absolute;
            top: -2px;
            left: 4px;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label:before {
        box-shadow: none;
      }
      &:checked + label:after {
        @include transform(scale(1));
        opacity: 1;
      }
    }
  }
}

$color-pallete: 'blue' #4a60ac #384891 #5169b6 #313f86 #4a60ac #94a0ca #69759f,
'black' #2b2b2b #212121 #303030 #1d1d1d #2b2b2b #838383 #585858,
'green' #40a489 #308667 #46b096 #2a7b5b #3bbb93 #8fc6b7 #649b8c,
'white' #999999 #828282 #aaaaaa #717171 #999999 #c0c0c0 #949494,
'orange' #f1ae44 #ed9434 #f3b94b #eb8a2d #f1ae44 #f0cb91 #c5a066,
'purple' #b08fc1 #966cad #ba9cc9 #8c5ea5 #a37db7 #ddd4e2 #d2c9d6,
'red' #f06747 #ec4d35 #f2714e #ea442f #f06747 #f0a493 #c47967,
'teal' #40a7b3 #308b9b #46b3bd #2a8091 #40a7b3 #8fc7ce #649ca3;

@each $color in $color-pallete {
  #tve_35_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-top: 7px solid nth($color, 6);
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      input[type="text"], input[type="email"] {
        background: nth($color, 7);
        &:hover {
          background: nth($color, 8);
        }
        &:focus {
          box-shadow: 0 1px 5px 0 rgba(#000, .2) inset, 0 -3px 0 0 rgba(nth($color, 6), .52);
          background: nth($color, 7);
        }
      }
      button {
        @include linear-gradient(nth($color, 2), nth($color, 3));
        &:hover {
          @include linear-gradient(nth($color, 4), nth($color, 5));
        }
        &:active {
          @include linear-gradient(nth($color, 5), nth($color, 4));
        }
      }
      input[type="radio"] {
        &:checked + label {
          &:before {
            background-color: nth($color, 6);
            border: 1px solid nth($color, 6);
          }
        }
      }
      input[type="checkbox"] {
        &:checked {
          + label {
            &:before {
              background: nth($color, 6);
              border: 1px solid nth($color, 6);
            }
          }
        }
      }
    }
  }
}

@import "_responsive";
