@import "bourbon";

@mixin opensans {
  font-family: 'Open Sans', sans-serif;
}

@mixin georgia {
  font-family: 'Georgia', serif;
}

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

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

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

#tve_52_set {
  [class*='52_set'] {
    a {
      color: inherit;
    }
    h2 {
      @include georgia();
      color: #333333;
      font-weight: 400;
      font-size: 40px;
      line-height: 1.3em;
    }
    h3 {
      @include georgia();
      color: #e60000;
      font-weight: 400;
      font-size: 35px;
      line-height: 1.2em;
      letter-spacing: normal;
    }
    h4 {
      @include georgia();
      color: #3f3f3f;
      font-weight: 400;
      font-size: 30px;
      line-height: 1.2em;
      letter-spacing: normal;
    }
    h5 {
      @include georgia();
      color: #e60000;
      font-size: 26px;
      font-weight: 400;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    h6 {
      @include georgia();
      color: #e60000;
      font-size: 24px;
      font-weight: 400;
      line-height: 1.5em;
      letter-spacing: normal;
    }
    p {
      @include opensans();
      color: #3f3f3f;
      font-weight: 400;
      font-size: 25px;
      letter-spacing: normal;
      line-height: 1.5em;
      margin-bottom: 20px;
    }
    h2, h3, h4, h5, h6 {
      clear: none;
      padding-bottom: 0;
    }
  }
  #tve_editor .thrv_wrapper > .tve_sep {
    margin-top: 0;
  }
}

#tve_52_set {
  @include opensans();
  text-shadow: none;
  [class*='52_set'] {
    .tve_p_lb_close {
      @include opensans();
      border: none;
      background: #c9c9cc;
      box-shadow: 1px 1px 0 0 rgba(#000, .3) inset;
      color: #ffffff;
      font-size: 20px;
      font-weight: 400;
      line-height: 20px;
      top: 10px;
      right: 10px;
    }
    .tve-screen-filler-close, .tve-form-close {
      @include opensans();
      border: none;
      background: #c9c9cc;
      border-radius: 50%;
      box-shadow: 1px 1px 0 0 rgba(#000, .3) inset;
      cursor: pointer;
      display: block;
      font-size: 20px;
      font-weight: 400;
      height: 23px;
      line-height: 20px;
      position: absolute;
      top: 10px;
      right: 10px;
      text-align: center;
      text-decoration: none;
      text-shadow: 1px 0 1px rgba(#000, .36);
      width: 23px;
      z-index: 100;
    }
    .tve-form-close {
      color: #ffffff;
    }
    .tve-screen-filler-close {
      color: #fff;
    }
  }
  .tve-leads-lightbox {
    .tve_p_lb_background .tve_p_lb_content {
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0 0 5px 0 rgba(#000, .29);
      max-width: 750px;
      padding: 0 !important;
      overflow: hidden;
    }
    .tve_p_lb_inner {
        padding: 0 50px;
    }
  }
  .thrv-leads-form-box {
    border: 0;
    border-radius: 5px;
    box-shadow: 0 0 5px 0 rgba(#000, .29);
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    padding: 20px 50px;
    overflow: hidden;
  }
  .thrv-leads-screen-filler {
    .tve_editor_main_content {
      max-width: 1080px;
    }
    .thrv_wrapper > .tve_sep1 {
      margin-left: -2500px!important;
      width: 5000px!important;
    }
  }
  article {
    padding-bottom: 0;
  }
  .thrv_contentbox_shortcode {
    margin-top: 0;
    margin-bottom: 0;
    .tve_cb.tve_cb5 {
      border: 0;
      padding: 0 50px;
    }
  }
  .tve_image_caption {
    position: relative;
    z-index: 1;
  }
  .tve_btn.tve_btn5 {
    @include georgia();
    border-radius: 0;
    background: none;
    font-weight: 400;
    text-shadow: none;
    .tve_btn_divider {
      display: none;
    }
    &.tve_normalBtn {
      .tve_sc_icon {
        min-width: 30px;
        margin-right: 0;
      }
      .tve_btnLink {
        font-size: 25px;
        line-height: 30px;
        padding: 15px;
        > span {
          padding-right: 0;
        }
      }
    }
    .tve_btnLink {
      text-shadow: none;
      > span {
        color: inherit;
      }
    }
    &:hover {
      a.tve_btnLink {
        color: #fff;
      }
    }
    &.tve_orange {
      a.tve_btnLink {
        color: #333333;
      }
      &:hover {
        a.tve_btnLink {
          color: #333;
        }
      }
    }
    &.tve_white {
      a.tve_btnLink {
        span {
          color: #4a4a4a;
        }
      }
      &:hover {
        a.tve_btnLink {
          span {
            color: #4a4a4a;
          }
        }
      }
    }
    &.tve_black {
      background: #3c3c3c;
      a.tve_btnLink {
        span {
          color: #fff;
        }
      }
    }
  }
  .thrv_lead_generation {
    &.tve_white {
      .tve_lg_submit {
        button, button:hover {
          color: #4a4a4a;
        }
      }
    }
    &.tve_orange {
      .tve_lg_submit {
        button, button:hover {
          color: #333;
        }
      }
    }
    &.tve_black {
      .tve_lg_submit {
        button {
          background: #3c3c3c;
        }
        button, button:hover {
          color: #fff;
        }
      }
    }
    .tve_lg_submit {
      button {
        @include georgia();
        border-radius: 0;
        background: #fff;
        font-weight: 500;
        font-size: 25px;
        line-height: 30px;
        padding: 15px 10px;
        text-shadow: none;
        &:hover {
          color: #fff;
        }
      }
    }
    input[type="text"], input[type="email"] {
      @include opensans();
      border-radius: 0;
      box-shadow: none;
      border: 1px solid #a3a3a3;
      background: #fff;
      color: #333333;
      font-size: 22px;
      font-weight: 400;
      height: auto;
      line-height: 28px;
      margin-bottom: 15px;
      padding: 15px 20px !important;
      &:hover {
        box-shadow: 0 0 6px 0 rgba(#000, .28) inset;
        color: #3f3f3f;
      }
      &:focus {
        border: 1px solid #626262;
        color: #333333;
      }
    }
  }
  .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 {
          &:after {
            background: #7f7f7f;
          }
        }
      }
      + label {
        @include georgia();
        color: #666666;
        display: inline-block;
        position: relative;
        font-size: 24px;
        font-weight: 400;
        &:before {
          border: 1px solid #a3a3a3;
          background-color: #fff;
          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: 9px;
          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 georgia();
          color: #666666;
          cursor: pointer;
          font-size: 24px;
          font-weight: 400;
          position: relative;
          padding-left: 35px;
          &:before {
            border: 1px solid #a3a3a3;
            background-color: #fff;
            border-radius: 1px;
            content: '';
            height: 20px;
            position: absolute;
            left: 0;
            top: 4px;
            width: 20px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            position: absolute;
            top: 4px;
            left: 5px;
          }
        }
      }
      &:checked {
        + label {
          &:before {
            background: #7f7f7f;
            border: 1px solid #7f7f7f;
          }
        }
      }
      &: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 georgia();
      background-color: #fff;
      border: 1px solid #b2b2b2;
      box-shadow: 0 0 5px 0 rgba(#000, .24) inset;
      color: #5e5e5e;
      border-radius: 7px;
      cursor: pointer;
      display: inline-block;
      font-size: 24px;
      font-weight: 400;
      line-height: 26px;
      height: 70px;
      margin: 0;
      outline: none;
      padding-right: 40px!important;
      option {
        color: #5e5e5e;
        font-size: 24px;
        font-weight: 400;
      }
      &:hover {
        border: 1px solid #cdcdcd;
        background: #fff;
        box-shadow: 0 0 5px 0 rgba(#000, .57) inset;
      }
    }
    .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: 21px;
      pointer-events: none;
      position: absolute;
      top: 25px;
      right: 20px;
      text-align: center;
      width: 20px;
    }
  }
  .tve_sep.tve_sep1 {
    @include linear-gradient(#f5f5f5, transparent, $fallback: transparent);
    border-top: 1px solid #dbdbdb;
    box-shadow: 0 1px 0 0 #fff inset;
    height: 20px;
    margin-top: 0;
  }
  //page sections here
  .tve_editor_main_content, .thrv_page_section .out .in {
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
  }
  .thrv_page_section {
    .out {
      .in {
        &.pddbg {
          .cck {
            margin-left: auto;
            margin-right: auto;
            max-width: 1080px;
          }
        }
      }
    }
    .out {
      color: #5b5b5b;
      /* themes setting max-width: 100% for divs */
      margin-left: -2500px;
      max-width: none;
      width: 6080px;
      .darkSec {
        color: #706f6f;
      }
      .lightSec {
        color: #ffffff;
      }
      .in {
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 20px;
      }
    }
    .pdwbg {
      background-position: center center;
      background-attachment: fixed;
      background-repeat: no-repeat;
      background-size: cover;
    }

    .pddbg {
      background-position: center center;
      background-size: cover;
      background-repeat: no-repeat;
    }
    .pdfbg {
      &.smaller {
        background-size: 100% 100%;
      }
    }
  }
}

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

[class^="set-52"], [class*=" set-52"] {
  color: inherit;
  font-family: 'tve-leads-52-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-52-icon:before {
  content: "\e602";
}

$color-pallete: 'blue' #0d6eb8 #0d6eb8 #0d6eb8 #0d6eb8 #0d6eb8,
'black' #3c3c3c #515151 #515151 #3c3c3c #3c3c3c,
'green' #5a980a #5a980a #5a980a #5a980a #5a980a,
'white' #666666 #dcdcdc #b8b8b8 #fff #f5f5f7,
'orange' #f4c900 #f4c900 #f4c900 #f4c900 #f4c900,
'purple' #782593 #782593 #782593 #782593 #782593,
'red' #b80d0d #b80d0d #b80d0d #b80d0d #b80d0d,
'teal' #47a182 #47a182 #47a182 #47a182 #47a182;

@each $color in $color-pallete {
  #tve_52_set {
    .thrv-leads-form-box.tve_#{nth($color, 1)} {
      background: nth($color, 5);
    }
    .thrv-leads-screen-filler.tve_#{nth($color, 1)} {
      background: nth($color, 5);
    }
    .tve_cb.tve_cb5.tve_#{nth($color, 1)} {
      background: nth($color, 6);
    }
    .tve_btn.tve_btn5.tve_#{nth($color, 1)} {
      border: 1px solid nth($color, 2);
      .tve_btnLink {
        color: nth($color, 2);
      }
      &:hover {
        background: nth($color, 3);
        border: 1px solid nth($color, 4);
      }
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      button {
        border: 1px solid nth($color, 2);
        color: nth($color, 2);
        &:hover {
          background: nth($color, 3);
          border: 1px solid nth($color, 4);
        }
      }
    }
  }
}

@import "_responsive";
@media only screen and (max-width: 1080px) {
  body {
    #tve_50_set {
      .thrv-leads-screen-filler {
        .tve_editor_main_content {
          padding: 20px;
        }
      }
      .tve-screen-filler-content {
        .thrv_page_section {
          .out {
            width: 100%;
            margin-left: -20px;
            padding-left: 20px;
            padding-right: 20px;
            &.pswr {
              margin-left: 0;
              padding-left: 0;
              padding-right: 0;
              .in.pddbg {
                margin-left: -20px;
                margin-right: -20px;
                padding-left: 20px;
                padding-right: 20px;
                height: 100% !important;
              }
              .in.pdwbg {
                width: auto;
              }
            }
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 940px) {
  #tve_52_set .tve-leads-lightbox #tve_editor .tve_p_lb_control {
    padding: 15px;
  }
  #tve_52_set .thrv-leads-screen-filler .tve_editor_main_content {
    padding: 20px;
  }
  #tve_52_set .thrv_contentbox_shortcode .tve_cb.tve_cb5 {
    margin: -15px -30px 0!important;
    padding: 15px;
  }
  #tve_52_set .tve-leads-lightbox .tve_p_lb_inner {
    padding: 0 15px;
  }
  #tve_52_set .thrv-leads-form-box {
    padding: 15px;
  }
}