@import "bourbon";

@mixin sourcesans {
  font-family: 'Source Sans Pro', sans-serif;
}

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

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

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

#tve_30_set {
  [class*='30_set'] {
    @include clearfix();
    //    .tve_editor_main_content {
    //      max-width: 2200px;
    //      margin-left: 0;
    //      padding: 0 50px;
    //    }
    a {
      color: inherit;
    }
    .tve_p_lb_close {
      @include sourcesans();
      border-radius: 50%;
      border: 1px solid #fff;
      background: #4a407f;
      color: #fff;
      font-size: 15px;
      line-height: 17px;
      text-decoration: none;
    }
    h2 {
      @include sourcesans();
      color: #fff;
      font-weight: 600;
      font-size: 30px;
      line-height: 1.111em;
      letter-spacing: normal;
    }
    p {
      @include sourcesans();
      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_30_set {
  @include sourcesans();
  text-shadow: none;
  article {
    padding-bottom: 0;
  }
  .thrv_contentbox_shortcode {
    margin-top: 0;
    margin-bottom: 0;
  }
  .thrv_lead_generation {
    &.thrv_lead_generation_vertical {
      input[type="text"], input[type="email"] {
        margin-bottom: 15px;
      }
    }
    &.tve_white {
      .tve_submit_container.tve_lg_submit {
        button {
          color: #666;
          &:active {
            color: #fff;
          }
        }
      }
    }
    .tve_submit_container.tve_lg_submit {
      button {
        @include sourcesans();
        border-radius: 5px;
        box-shadow: none;
        color: $white;
        font-weight: 600;
        font-size: 22px;
        line-height: 30px;
        padding: 11px 10px;
        text-shadow: none;
        &:active {
          border: 1px solid #fff;
          background: transparent;
        }
      }
    }
    .tve_lg_input_container.tve_lg_input {
      input[type="text"], input[type="email"] {
        @include sourcesans();
        border-radius: 0;
        border: 0;
        background: rgba(#000, .2);
        color: #fff;
        font-size: 22px;
        font-weight: 300;
        height: auto;
        line-height: 28px;
        padding: 13px 20px !important;
        &:hover {
          box-shadow: 0 3px 0 0 rgba(#fff, .3);
        }
        &:focus {
          box-shadow: 0 3px 0 0 rgba(#fff, .3);
          background: rgba(#000, .4);
        }
      }
    }
  }
  .thrv-leads-form-box {
    border: 0;
  }
  .thrv-leads-widget {
    background: #5d509f;
    border: 0;
  }
  .tve-leads-lightbox {
    .tve_p_lb_content {
      background: #5d509f;
      border-radius: 0;
      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%;
      + label {
        @include sourcesans();
        color: #ccc;
        display: inline-block;
        position: relative;
        font-size: 17px;
        font-weight: 300;
        &:before {
          background-color: #fff;
          border-radius: 100%;
          box-shadow: 0 0 0 1px rgba(#000, .02);
          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: 8px;
          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 sourcesans();
          color: #ccc;
          cursor: pointer;
          font-size: 17px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            box-shadow: 0 0 0 1px rgba(#000, .02);
            border-radius: 3px;
            background-color: #fff;
            content: '';
            height: 22px;
            position: absolute;
            left: 0;
            top: 0;
            width: 22px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            font-size: 20px;
            font-weight: 600;
            position: absolute;
            top: -3px;
            left: 5px;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label:after {
        @include transform(scale(1));
        opacity: 1;
      }
    }
  }
}

$color-pallete:
'blue' #2a3873 #243062 #2a3873,
'black' #222323 #1d1e1e #373839,
'green' #a3a730 #8b8e23 #d8d7ab,
'white' #ffffff #d9d9d9 #ffffff,
'orange' #d6472e #b63c27 #d6472e,
'purple' #4a407f #3f366c #5d509f,
'red' #ba2222 #9e1d1d #ba2222,
'teal' #00806f #006d5e #9fcac4;

@each $color in $color-pallete {
  #tve_30_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, 4);
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      button {
        border: 1px solid nth($color, 2);
        background: nth($color, 2);
        &:hover {
          border: 1px solid nth($color, 3);
          background: nth($color, 3);
        }
      }
      input[type="radio"] {
        &:checked + label {
          &:after {
            background-color: nth($color, 3);
          }
        }
      }
      input[type="checkbox"] {
        &:not(:checked),
        &:checked {
          + label {
            &:after {
              color: nth($color, 3);
            }
          }
        }
      }
    }
  }
}

@font-face {
  font-family: 'tve-leads-30-set-icons';
  src: url('fonts/30_set/30_set_icons.eot?-o8i8n4');
  src: url('fonts/30_set/30_set_icons.eot?#iefix-o8i8n4') format('embedded-opentype'),
  url('fonts/30_set/30_set_icons.woff?-o8i8n4') format('woff'),
  url('fonts/30_set/30_set_icons.ttf?-o8i8n4') format('truetype'),
  url('fonts/30_set/30_set_icons.svg?-o8i8n4#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="set-30"], [class*=" set-30"] {
  color: inherit;
  font-family: 'tve-leads-30-set-icons' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.set-30-icon-mail:before {
  content: "\f642";
}

@media only screen and (max-width: 940px) {
  #tve_30_set {
    .tve_cb5 {
      margin: 0!important;
    }
  }
}

@import "_responsive";
