@import "bourbon";

@mixin comfortaa {
  font-family: 'Comfortaa', cursive;
}

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

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

[class*='47_set'] {
  @include clearfix();
  &.tve_gray_bg {
    background-image: none;
    background: #c2c2c2;
  }
}

#tve_47_set {
  [class*='47_set'] {
    a {
      color: inherit;
    }
    h2 {
      @include comfortaa();
      color: #333333;
      font-weight: 300;
      font-size: 32px;
      line-height: 1.3em;
      letter-spacing: normal;
      .bold_text {
        color: #f35000;
      }
    }
    h3 {
      @include comfortaa();
      color: #f35000;
      font-weight: 400;
      font-size: 28px;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    h4 {
      @include comfortaa();
      color: #fff;
      font-weight: 400;
      font-size: 24px;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    h5 {
      @include comfortaa();
      color: #ff6d25;
      font-size: 22px;
      font-weight: 400;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    h6 {
      @include comfortaa();
      color: #ff6d25;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    p {
      @include comfortaa();
      color: #fff;
      font-weight: 400;
      font-size: 20px;
      letter-spacing: normal;
      line-height: 1.5em;
      margin-bottom: 20px;
    }
    h2, h3, h4, h5, h6 {
      clear: none;
      padding-bottom: 0;
    }
  }
}

#tve_47_set {
  @include comfortaa();
  text-shadow: none;
  [class*='47_set'] {
    .tve_p_lb_close {
      @include comfortaa();
      border: 2px solid #fff;
      background: #222222;
      box-shadow: 0 1px 1px 0 rgba(#000, .3);
      color: #fff;
      font-size: 12px;
      top: -10px;
      right: -10px;
    }
    .tve-screen-filler-close {
      top: 20px;
      right: 20px;
    }
    .tve-form-close {
      top: -10px;
      right: -10px;
    }
    .tve-screen-filler-close, .tve-form-close {
      @include comfortaa();
      border-radius: 50%;
      border: 2px solid #fff;
      background: #222222;
      box-shadow: 0 1px 1px 0 rgba(#000, .3);
      color: #fff;
      cursor: pointer;
      display: block;
      font-size: 12px;
      font-weight: 300;
      height: 23px;
      line-height: 23px;
      position: absolute;
      text-align: center;
      text-decoration: none;
      width: 23px;
      z-index: 100;
    }
  }
  .tve-leads-lightbox {
    .tve_p_lb_background .tve_p_lb_content {
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 0 8px 0 rgba(#000, .14);
      max-width: 750px;
      padding-left: 0 !important;
    }
    .tve_p_lb_inner {
      padding: 0;
    }
    #tve_editor {
      .tve_p_lb_control {
        padding: 20px 40px 20px 0;
      }
    }
  }
  .thrv-leads-form-box {
    box-shadow: 0 0 8px 0 rgba(#000, .14);
    border-radius: 10px;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    padding: 20px 40px 20px 0;
  }
  .thrv-leads-screen-filler {
    .tve_editor_main_content {
      max-width: 1080px;
    }
  }
  article {
    padding-bottom: 0;
  }
  .thrv_contentbox_shortcode {
    margin-top: 0;
    margin-bottom: 0;
  }
  .thrv_button_shortcode {
    margin-bottom: 0;
  }
  .tve_btn.tve_btn1 {
    @include comfortaa();
    border-radius: 9px;
    border: 1px solid;
    box-shadow: none;
    font-weight: 400;
    &.tve_normalBtn {
      .tve_btnLink {
        font-size: 22px;
        line-height: 25px;
        padding: 9px 20px;
      }
    }
    .tve_btnLink {
      color: #fff;
      text-shadow: none;
      > span {
        color: inherit;
      }
    }
    &.tve_white {
      a.tve_btnLink {
        span {
          color: #333333;
        }
      }
    }
    &.tve_black {
      a.tve_btnLink {
        span {
          color: #c3ebff;
        }
      }
    }
  }
  .thrv_lead_generation {
    &.tve_white {
      button {
        color: #333;
      }
    }
    &.tve_black {
      button {
        color: #c3ebff;
      }
    }
    button {
      @include comfortaa();
      border-radius: 9px;
      border: 1px solid;
      color: #fff;
      font-weight: 400;
      font-size: 22px;
      line-height: 27px;
      padding: 8px 10px;
      text-shadow: none;
    }
    input[type="text"], input[type="email"]{
      @include comfortaa();
      border-radius: 9px;
      box-shadow: 0 0 5px 0 rgba(#000, .22) inset;
      border: none;
      background: #f8f8f8;
      color: #5d5d5d;
      font-size: 20px;
      font-weight: 300;
      height: auto;
      line-height: 23px;
      margin-bottom: 12px;
      padding: 9px 20px !important;
      &:hover {
        border: none;
        background: #e8e8e8;
        color: #333;
      }
      &:focus {
        border: 0;
        background: #fff;
        box-shadow: 0 0 5px 0 rgba(#000, .22) inset, 0 0 0 1px rgba(#000, .2) inset;
        color: #333;
      }
    }
  }
  .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 comfortaa();
        color: #fff;
        display: inline-block;
        position: relative;
        font-size: 18px;
        font-weight: 300;
        &:before {
          background-color: transparent;
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 20px;
          margin-right: 10px;
          vertical-align: middle;
          position: relative;
          top: -2px;
          width: 20px;
        }
        &: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 comfortaa();
          color: #fff;
          cursor: pointer;
          font-size: 18px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            background-color: transparent;
            content: '';
            height: 20px;
            position: absolute;
            left: 0;
            top: 2px;
            width: 20px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            font-size: 15px;
            font-weight: 600;
            position: absolute;
            top: 2px;
            left: 5px;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label:after {
        @include transform(scale(1));
        opacity: 1;
      }
    }
  }
  .tve_lg_dropdown {
    position: relative;
    select {
      @include appearance(none);
      @include comfortaa();
      background-color: #fff;
      border: none;
      box-shadow: 0 0 5px 0 rgba(#000, .22) inset;
      color: #5e5e5e;
      border-radius: 9px;
      cursor: pointer;
      display: inline-block;
      font-size: 20px;
      font-weight: 300;
      height: 45px;
      margin: 0;
      padding-right: 40px!important;
      outline: none;
      option {
        color: #5e5e5e;
        font-size: 18px;
        font-weight: 300;
      }
      &:hover {
        background-color: #e8e8e8;
      }
    }
    .tve_sc_icon {
      margin-right: 20px;
    }
    &:after {
      background: transparent;
      border-radius: 100px;
      border: 1px solid #a3a3a3;
      color: #a3a3a3;
      content: "\022C1";
      font-size: 17px;
      height: 20px;
      line-height: 20px;
      pointer-events: none;
      position: absolute;
      top: 12px;
      right: 15px;
      text-align: center;
      width: 20px;
    }
  }
}

$color-pallete:
'blue' #1381b8 #185c86 #1481b8 #1e6490 #1a6e9f #419ac6 rgba(#fff, .1),
'black' #5a5a5a #393939 #5f5f5f #474747 #434343 #5a5a5a #8bcbeb,
'green' #5b9c10 #328618 #5b9c10 #338818 #3a8b17 #5b9c10 rgba(#fff, .1),
'white' #f5f4f4 #d4d4d4 #f5f4f4 #d4d4d4 #f7f7f7 #fff #cccccc,
'orange' #ffeb16 #dacd05 #f3df05 #d7b605 #eeda05 #ffeb16 rgba(#fff, .1),
'purple' #7e2e9e #70068a #8235a3 #7e1797 #7f1b99 #7e2e9e rgba(#fff, .1),
'red' #a31818 #861818 #a72222 #961d1d #991e1e #a31818 rgba(#fff, .1),
'teal' #2e9c9e #068a89 #2cafb0 #189392 #1a9393 #2e9c9e rgba(#fff, .1);

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

@import "_responsive";

@media only screen and (max-width: 940px) {
  #tve_47_set .tve-leads-lightbox #tve_editor .tve_p_lb_control {
    padding: 0 0 0 15px;
  }
  #tve_47_set .thrv-leads-screen-filler .tve_editor_main_content {
    padding: 20px;
  }
  #tve_47_set .thrv-leads-form-box {
    padding: 10px;
  }
  #tve_47_set {
    .tve_oth {
      .tve_image_caption {
        margin-top: 10px!important;
        margin-bottom: 10px!important;
      }
    }
  }
}