@import "bourbon";

@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*='36_set'] {
  &.tve_gray_bg {
    background-image: none;
    background: #c2c2c2;
  }
}

#tve_36_set {
  [class*='36_set'] {
    @include clearfix();
    //    .tve_editor_main_content {
    //      max-width: 2200px;
    //      margin-left: 0;
    //      padding: 0 50px;
    //    }
    a {
      color: inherit;
    }
    .tve_p_lb_close {
      @include opensans();
      border-radius: 50%;
      border: 0;
      background: #525e74;
      color: #fff;
      font-size: 15px;
      line-height: 17px;
      text-decoration: none;
    }
    h2 {
      @include opensans();
      color: #fff;
      font-weight: 600;
      font-size: 32px;
      line-height: 1.111em;
      letter-spacing: normal;
    }
    p {
      @include opensans();
      color: #fff;
      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_36_set {
  @include opensans();
  text-shadow: none;
  article {
    padding-bottom: 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%;
              }
            }
          }
        }
      }
    }
    &.tve_white {
      button {
        color: #333333;
      }
    }
    button {
      @include opensans();
      border-radius: 0;
      border: 0;
      box-shadow: 0 -1px 1px 0 rgba(#000, .3) inset;
      color: $white;
      font-weight: 600;
      font-size: 20px;
      line-height: 30px;
      padding: 13px 10px;
      text-shadow: none;
    }
    input[type="text"], input[type="email"] {
      @include opensans();
      border-radius: 0;
      border: 1px solid #303744;
      background: #303744;
      color: #fff;
      font-size: 18px;
      font-weight: 300;
      height: auto;
      line-height: 28px;
      padding: 13px 20px !important;
      &:hover {
        border: 1px solid rgba(#c6c6c6, .4);
      }
      &:focus {
        border: 1px solid #303744;
        box-shadow: 0 -1px 0 0 rgba(#000, .71) inset;
      }
    }
  }
  .thrv-leads-form-box {
    border: 0;
    background: #fff;
    border-radius: 5px;
  }
  .thrv-leads-widget {
    background: #525e74;
    border: 0;
    border-radius: 5px;
  }
  .tve-leads-lightbox {
    .tve_p_lb_content {
      background: #525e74;
      border-radius: 5px;
      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 {
            background: #303744;
          }
        }
      }
      + label {
        @include opensans();
        color: #fff;
        display: inline-block;
        position: relative;
        font-size: 16px;
        font-weight: 300;
        &:before {
          background-color: #fff;
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 22px;
          margin-right: 10px;
          position: relative;
          top: -2px;
          vertical-align: middle;
          width: 22px;
        }
        &:after {
          @include transition(background-color .3s);
          background-color: transparent;
          border-radius: 100%;
          content: '';
          height: 10px;
          position: absolute;
          top: 6px;
          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 opensans();
          color: #fff;
          cursor: pointer;
          font-size: 16px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            background-color: #fff;
            content: '';
            height: 22px;
            position: absolute;
            left: 0;
            top: 0;
            width: 22px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            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 {
        background: #303744;
      }
      &:checked + label:after {
        @include transform(scale(1));
        opacity: 1;
      }
    }
  }
}

$color-pallete:
'blue' #62afdd #4a95d1 #6cb9e1 #418bcd #5c9dbf #3776ae #525e74,
'black' #191919 #131313 #202020 #0c0c0c #181818 #0e0e0e #191919,
'green' #59ab62 #438f4a #62b66c #3b8541 #539b5c #327137 #59ab62,
'white' #e3e3e3 #d9d9d9 #f5f5f5 #c8c8c8 #c4c4c4 #b6b6b6 #e3e3e3,
'orange' #c8ac40 #b69130 #cfb646 #af862a #b09b3c #957224 #c8ac40,
'purple' #9f83b9 #7f63a3 #ab90c2 #73579a #927ba5 #624a83 #9f83b9,
'red' #f67461 #f45849 #f8806a #f24d40 #d36d5a #ce4236 #f67461,
'teal' #48abb2 #368f99 #4fb6bc #2f858f #439ba0 #28717a #48abb2;

@each $color in $color-pallete {
  #tve_36_set {
    //    .thrv-leads-screen-filler.tve_#{nth($color, 1)} {
    //      background-color: nth($color, 4);
    //    }
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      background: nth($color, 8);
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      input[type="text"], input[type="email"] {
        &:focus {
          color: nth($color, 2);
        }
      }
      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, 6), nth($color, 7));
        }
      }
      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_36_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";
