@import "bourbon";
@mixin opensans {
  font-family: 'Open Sans', sans-serif;
}
@mixin allan {
  font-family: 'Allan', cursive;
}

@mixin clearfix {
  &:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }
}
$white: #fff;
$black: #000;

[class*='gr_five_set'] {
  &.tve_gray_bg {
    background-image: none;
    background: #c2c2c2;
  }
}
#tve_gr_five_set {
  [class*='gr_five_set'] {
    @include clearfix();
    a {
      color: #e44623;
      text-decoration: underline;
      &:hover {
        text-decoration: none;
      }
    }
    h1 {
      @include allan();
      color: #fff;
      font-weight: 700;
      font-size: 75px;
      font-style: italic;
      line-height: 1.2em;
      letter-spacing: normal;
      margin-bottom: 40px;
    }
    h2 {
      @include allan();
      color: #fff;
      font-weight: 700;
      font-size: 75px;
      font-style: italic;
      line-height: 1.067em;
      letter-spacing: normal;
      margin-bottom: 40px;
    }
    h3 {
      @include allan();
      color: #e44623;
      font-weight: 400;
      font-size: 60px;
      font-style: italic;
      line-height: 1.167em;
      letter-spacing: normal;
      margin-bottom: 40px;
    }
    h4 {
      @include allan();
      color: #fff;
      font-weight: 400;
      font-size: 50px;
      font-style: italic;
      line-height: 1.1em;
      letter-spacing: normal;
      margin-bottom: 30px;
    }
    h5 {
      @include allan();
      color: #e44623;
      font-weight: 400;
      font-size: 40px;
      font-style: italic;
      line-height: 1.375em;
      letter-spacing: normal;
      margin-bottom: 30px;
    }
    h6 {
      @include allan();
      color: #fff;
      font-weight: 400;
      font-size: 35px;
      font-style: italic;
      line-height: 1.371em;
      letter-spacing: normal;
      margin-bottom: 30px;
    }
    p {
      @include opensans();
      color: #fff;
      font-size: 22px;
      font-weight: 400;
      line-height: 1.636em;
      margin-bottom: 40px;
      &.bold_text {
        font-weight: 700;
      }
    }
    blockquote {
      @include opensans();
      background: transparent;
      border: 0;
      color: #fff;
      font-style: normal;
      font-size: 22px;
      font-weight: 300;
      line-height: 1.636em;
      padding-left: 90px;
      position: relative;
      &:before {
        content: '\0201D';
        color: #ffffff;
        display: block;
        font-size: 120px;
        font-weight: 700;
        font-family: 'Georgia';
        line-height: 120px;
        position: absolute;
        left: 0;
        top: -10px;
      }
    }
    ol.thrv_wrapper {
      counter-reset: ol-counter;
      list-style-type: none;
      li {
        @include opensans();
        color: #fff;
        font-size: 22px;
        font-weight: 300;
        line-height: 35px;
        &:before {
          color: #e44623;
          content: counter(ol-counter) '.' !important;
          counter-increment: ol-counter;
          padding-right: 15px;
        }
        &.bold_text {
          font-weight: 700;
        }
      }
    }
    ul.thrv_wrapper {
      list-style-type: none;
      li {
        @include opensans();
        color: #fff;
        font-size: 22px;
        font-weight: 300;
        line-height: 35px;
        &:before {
          content: '\02218';
          color: #e44623;
          padding-right: 15px;
        }
        &.bold_text {
          font-weight: 700;
        }
      }
    }
  }
}
.tve-leads-greedy-ribbon {
  overflow: hidden;
}
#tve_gr_five_set {
  @include opensans();
  text-shadow: none;
  position: relative;
  article {
    padding-bottom: 0;
  }
  .gr-close-button {
    @include transform(translateX(-50%));
    cursor: pointer;
    margin: 0 auto;
    position: absolute;
    bottom: 20px;
    left: 50%;
  }
  .thrv-greedy-ribbon {
    background: #363636;
    border-style: solid;
    border-width: 0!important;
    padding-top: 15vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    &:before {
      @include transform(rotate(83deg) scale(10) translateY(0) translateX(-7%));;
      border-color: inherit;
      border-style: solid;
      border-width: 200px;
      content: '';
      display: block;
      height: 0;
      position: absolute;
      left: 0;
      bottom: 0;
      transform-origin: left bottom;
      width: 0;
    }
  }
  .tve-greedy-ribbon-content {
    @include clearfix();
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .thrv_button_shortcode {
    .tve_btn3.tve_btn {
      border-radius: 0;
      box-shadow: 2px 0 4px 0 rgba(#000, .19);
      &:hover {
        .tve_btnLink {
          text-shadow: 1px 1px 1px rgba(#000, .75);
        }
      }
      .tve_btnLink {
        color: #fff;
        text-shadow: none;
        > span {
          color: inherit;
        }
      }
      &.tve_white {
        .tve_btnLink {
          color: #363636;
        }
      }
      &.tve_normalBtn {
        font-size: 26px;
        font-weight: 700;
        line-height: 40px !important;
        .tve_btnLink {
          padding: 20px 10px;
        }
      }
    }
  }
  .thrv_content_container_shortcode {
    position: relative;
    z-index: 1;
  }
  .thrv_lead_generation {
    .thrv_lead_generation_container {
      .tve_lead_generated_inputs_container {
        .thrv_icon.thrv_wrapper {
          top: 40%;
        }
      }
    }
    &.tve_white {
      button {
        color: #363636;
      }
    }
    button {
      @include opensans();
      border-radius: 0;
      border: 0;
      box-shadow: 2px 0 4px 0 rgba(#000, .19);
      color: #fff;
      font-weight: 700;
      font-size: 26px;
      line-height: 40px;
      padding: 20px 10px;
      text-shadow: none;
      &:hover {
        text-shadow: 1px 1px 1px rgba(#000, .75);
      }
    }
    input[type="text"], input[type="email"] {
      @include opensans();
      border-radius: 0;
      border: 1px solid #acacac;
      box-shadow: 2px 0 4px 0 rgba(#000, .19);
      background: #fff;
      color: #333333;
      font-size: 22px;
      font-weight: 400;
      height: auto;
      line-height: 34px;
      margin-bottom: 20px;
      padding: 22px 20px!important;
      &:hover {
        background: #dedede;
        color: #666666;
      }
      &:focus {
        box-shadow: 2px 0 4px 0 rgba(#000, .19), 0 0 6px 0 rgba(#000, .56);
        color: #333;
      }
    }
  }
  /*
    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 {
          &:after {
            background: #fff;
          }
        }
      }
      + label {
        @include opensans();
        color: #fff;
        display: inline-block;
        position: relative;
        font-size: 22px;
        font-weight: 300;
        &:before {
          background-color: transparent;
          border: 1px solid #fff;
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 18px;
          margin-right: 10px;
          position: relative;
          top: -2px;
          vertical-align: middle;
          width: 18px;
        }
        &:after {
          @include transition(background-color .3s);
          background-color: transparent;
          border-radius: 100%;
          content: '';
          height: 10px;
          position: absolute;
          top: 11px;
          left: 5px;
          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: 22px;
          font-weight: 300;
          position: relative;
          padding-left: 35px;
          &:before {
            border-radius: 2px;
            background-color: transparent;
            border: 1px solid #fff;
            content: '';
            height: 18px;
            position: absolute;
            left: 0;
            top: 7px;
            width: 18px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            font-size: 20px;
            font-weight: 600;
            position: absolute;
            top: 3px;
            left: 3px;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label:after {
        @include transform(scale(1));
        color: #4b4b4b;
        opacity: 1;
      }
      &:checked + label:before {
        background: #fff;
      }
    }
  }
  .tve_lg_dropdown {
    position: relative;
    select {
      @include appearance(none);
      @include opensans();
      background-color: #fff;
      border: 1px solid #acacac;
      box-shadow: 2px 0 4px 0 rgba(#000, .19);
      color: #666666;
      border-radius: 0;
      cursor: pointer;
      display: inline-block;
      font-size: 24px;
      font-weight: 400;
      line-height: 33px;
      height: 80px;
      margin: 0;
      outline: none;
      padding-right: 40px!important;
      option {
        color: #5e5e5e;
        font-size: 22px;
        font-weight: 300;
      }
      &:hover {
        background: #dedede;
      }
    }
    .tve_sc_icon {
      margin-right: 20px;
    }
    &:after {
      border: 1px solid #acacac;
      border-radius: 50%;
      color: #acacac;
      content: "\02228";
      display: block;
      font-size: 18px;
      font-weight: 700;
      height: 22px;
      line-height: 22px;
      pointer-events: none;
      position: absolute;
      top: 28px;
      right: 20px;
      text-align: center;
      width: 22px;
    }
  }
}
$color-pallete:
'blue' #2984af #166990 #0a8dcb #166990 #2984af,
'black' #4f4f4f #656565 #4d4d4d #656565 #4f4f4f,
'green' #7eaf29 #63940f #7ab90f #63940f #7eaf29,
'white' #d8d8d8 #bebebe #d8d8d8 #bebebe #fff,
'orange' #df751e #ba5808 #e17e2c #ba5808 #df751e,
'purple' #9e2bb8 #85239b #aa1fca #85239b #9e2bb8,
'red' #ed4721 #cd2903 #ef2d00 #a8351a #ed4721,
'teal' #66c0a2 #379f7c #25bb89 #379f7c #66c0a2;

@each $color in $color-pallete {
  #tve_gr_five_set {
    .thrv-greedy-ribbon.tve_#{nth($color, 1)} {
      border-color: nth($color, 5);
    }
    .thrv_icon.thrv_wrapper {
      span.tve_sc_icon.tve_#{nth($color, 1)} {
        color: nth($color, 6);
      }
    }
    .thrv_button_shortcode {
      .tve_btn3.tve_#{nth($color, 1)} {
        background: nth($color, 2);
        &:hover {
          background: nth($color, 3);
        }
        &:active {
          background: nth($color, 4);
        }
      }
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      button {
        background: nth($color, 2);
        &:hover {
          background: nth($color, 3);
        }
        &:active {
          background: nth($color, 4);
        }
      }
    }
  }
}
@font-face {
  font-family: 'tve-leads-gr-five-set-icons';
  src: url('fonts/gr_four_set/gr_four_set_icons.eot?o8i8n4');
  src: url('fonts/gr_four_set/gr_four_set_icons.eot?#iefixo8i8n4') format('embedded-opentype'),
  url('fonts/gr_four_set/gr_four_set_icons.woff?o8i8n4') format('woff'),
  url('fonts/gr_four_set/gr_four_set_icons.ttf?o8i8n4') format('truetype'),
  url('fonts/gr_four_set/gr_four_set_icons.svg?o8i8n4#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}
[class^="gr-five-set"], [class*=" gr-five-set"] {
  color: inherit;
  font-family: 'tve-leads-gr-five-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;
}
.gr-five-set-close:before {
  content: "\e900";
}
@media only screen and (max-width: 800px) {
  #tve_gr_five_set {
    .thrv-greedy-ribbon {
      padding: 50px 20px 20px;
    }
    .thrv_lead_generation {
      input[type="text"], input[type="email"] {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 5px;
        padding: 10px!important;
      }
      button {
        font-size: 20px;
        line-height: 25px;
        padding: 10px;
      }
    }
    .thrv_button_shortcode {
      margin-top: 0;
      margin-bottom: 0;
      .tve_btn3.tve_btn.tve_normalBtn {
        font-size: 20px;
        line-height: 25px!important;
        .tve_btnLink {
          padding: 10px;
        }
      }
    }
    .gr-close-button {
      bottom: 40px;
      .tve_sc_icon {
        font-size: 30px!important;
      }
    }
  }
}
@media only screen and (max-width: 500px) {
  #tve_gr_five_set {
    h2, p {
      margin-bottom: 15px!important;
    }
    p {
      font-size: 15px!important;
    }
    .gr-close-button {
      bottom: 10px;
    }
  }
}
@media only screen and (max-height: 700px) {
  #tve_gr_five_set {
    h2, p {
      margin-bottom: 15px!important;
    }
    .gr-close-button {
      bottom: 10px;
      .tve_sc_icon {
        font-size: 30px!important;
        padding: 5px;
      }
    }
  }
}
@media only screen and (max-height: 600px) {
  #tve_gr_five_set {
    h2 {
      font-size: 30px!important;
    }
    .thrv_lead_generation {
      input[type="text"], input[type="email"] {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 5px;
        padding: 10px!important;
      }
      button {
        font-size: 20px;
        line-height: 25px;
        padding: 10px;
      }
    }
    .thrv_button_shortcode {
      .tve_btn3.tve_btn.tve_normalBtn {
        font-size: 20px;
        line-height: 25px!important;
        .tve_btnLink {
          padding: 10px;
        }
      }
    }
  }
}

@import "_responsive";
