/* -----------------------------------------
GLOBAL ECAP STYLES
----------------------------------------- */

div.fool-ecap footer .textwidget {
  border-top: none;
  padding-top: 0;
  color: #666;
}
div.fool-ecap p {
  text-align: left;
  font-size: 1em;
  line-height: 1.3em;
  color: #222;
}
div.fool-ecap p.smalltext,
div.fool-ecap p.small {
  clear: left;
  font-size: 0.8em;
  line-height: 1.2em;
  color: #222;
}
div.fool-ecap form {
  position: relative;
  text-align: center;
  margin: 1em;
}
div.fool-ecap form input[type="email"]::placeholder {
  color: #777;
}
div.fool-ecap form input[type="checkbox"],
div.fool-ecap form input[type="email"] {
  border: 1px solid #cacaca;
  box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.1);
}
div.fool-ecap form input[type="email"] {
  border-radius: 5px;
}
/* Checkbox on ecaps */
div.fool-ecap form input[type="checkbox"].accept-terms-checkbox {
  float: left;
  background: #fff;
  color: #c30;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s linear;
}
input[type="checkbox"]:checked {
  background-color: #339933;
}
input[type="checkbox"]:focus {
  outline: 0 none;
  box-shadow: none;
}
p.ecap-disclaimer {
  margin-left: 24px;
  font-size: 0.9em;
  color: #444;
}
/* Button */
div.fool-ecap .button {
  background: #cc3300;
  font-size: 1.2em;
  font-weight: 700;
}
div.fool-ecap .button:hover {
  background: #e73c03;
  color: #ffe;
  position: relative;
  top: 1px;
  left: 1px;
}
div.fool-ecap a.button {
  font-weight: 700;
}
.button.radius,
.radius {
  border-radius: 5px;
}

/* Error/Success Messages */
div.fool-ecap .ecap-error {
  background: #fff url(images/icon-stop.svg) 10px 40% no-repeat;
  border: 2px solid #c30;
  display: none;
  margin-bottom: 1em;
}
div.fool-ecap .ecap-error p {
  margin: 20px 20px 20px 55px;
  color: #c30;
}
div.fool-ecap .ecap-success {
  border: 2px solid;
  display: none;
  padding: 20px;
  margin-bottom: 1em;
}
div.fool-ecap .ecap-success > *:last-child {
  margin-bottom: 0;
}
div.fool-ecap .ecap-success,
div.fool-ecap .ecap-success p {
  font-size: 1.1em;
  background: #fff;
  color: #393;
}
/*-------------------------------------------
VANILLA (SIDEBAR)
--------------------------------------------*/
.fool-ecap-type-vanilla {
  margin: 0;
  border: 1px solid #ccc;
  background: #b5dfe5;
}
.fool-ecap-type-vanilla form {
  margin: 1.5rem 1.5rem 3rem;
}
.fool-ecap-type-vanilla input::placeholder {
  color: #777;
}
input:focus::placeholder {
  opacity: 0;
}
.fool-ecap-type-vanilla h3 {
  text-align: center;
  margin: 0 0.6em 0.8em;
  font-weight: bold;
  padding: 0.7em 0.5em;
  color: #222;
  letter-spacing: -0.03em;
  font-size: 1.8em;
}
aside section .fool-ecap-type-vanilla h3 {
  text-transform: none;
  line-height: 1.2;
}
.fool-ecap-type-vanilla p {
  color: #000;
  line-height: 1.2em;
}
.fool-ecap-type-vanilla input[type="submit"] {
  border-radius: 5px;
  background: #e03920;
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  border: none;
  margin: 0.5rem 0 2rem;
  width: 100%;
  transition: background-color 0.5s ease;
}
.fool-ecap-type-vanilla input[type="submit"]:hover {
  background: #bd1d07;
}
.fool-ecap-type-vanilla .small {
  font-size: 0.7em;
  line-height: 1.3em;
  color: #666;
}
.fool-ecap-type-vanilla .disclaimer-toggle {
  text-align: center;
  font-size: 0.8em;
  font-weight: bold;
}
.fool-ecap-type-vanilla .ecap-disclaimer a {
  font-weight: bold;
}

/*-------------------------------------------
VANILLA (IN-ARTICLE)
--------------------------------------------*/
.single article .fool-ecap-type-vanilla {
  padding: 2rem;
  margin: 1rem 0 2rem;
}

.single article .fool-ecap-type-vanilla h3 {
  background: transparent;
}

/*-------------------------------------------
MODAL
--------------------------------------------*/
#ecapModal.main-ecap {
  margin: 1em auto;
  width: 80%;
  padding: 2em;
  position: fixed;
  left: 10%;
  top: 5rem;
  border: 5px solid rgba(0, 0, 0, 0.8);
}
@media screen and (max-width: 767px) {
  #ecapModal.main-ecap {
    width: 100%;
    left: 0;
  }
  #ecapModal.main-ecap h2 {
    font-size: 2em;
  }
  #ecapModal.main-ecap .ecap-form .button {
    font-size: 1.2em;
  }
}

#ecapModal.main-ecap:before {
  content: "                                   ";
  position: absolute;
  z-index: -1;
  background: url(images/elvis-bg.svg) no-repeat;
  transform: rotate(-30deg);
  background-size: 470px;
  background-clip: initial;
  width: 470px;
  height: 470px;
  top: -50px;
  left: -50px;
}
.main-ecap {
  border: 1px solid #eee;
  margin-right: 0;
  padding-bottom: 1em;
  border-radius: 5px;
  margin-bottom: 1.5em;
  margin-left: 1.5em;
  padding: 1em;
  background: white;
  overflow: hidden;
}
.main-ecap .image-container {
  height: 150px;
  width: 150px;
  border: 3px solid white;
  box-shadow: 0px 0px 5px 0px rgba(2, 66, 105, 0.3);
  transform: rotate(-25deg);
  background: #888;
  position: absolute;
  top: 45px;
  left: -100px;
  z-index: 9999;
  position: fixed;
}
.main-ecap .image-container img {
  position: absolute;
  z-index: 999999;
  border: 1px solid #c30;
}
.main-ecap h3 {
  text-align: center;
  font-size: 2.8em;
  font-weight: 700;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  animation-duration: 1.5s;
  animation-delay: 1s;
  animation-iteration-count: 1;
}
.main-ecap h2 span {
  color: #c30;
}
.main-ecap p {
  font-size: 1.2em;
}
.main-ecap p.small {
  margin-left: 0;
  color: #aaa;
  font-size: 0.8em;
  font-style: italic;
  clear: both;
}
.main-ecap p.small a {
  color: #369;
}
.main-ecap .ecap-form {
  margin-top: 2em;
  margin-bottom: 1.5em;
  text-align: center;
}
.main-ecap .ecap-form input::placeholder {
  color: #777;
}
.main-ecap .ecap-form input:not(.button) {
  font-size: 1.5em;
  padding: 0.5em;
  border-color: rgba(0, 0, 0, 0.4);
}
.main-ecap .ecap-form .button {
  background: #c30;
  font-size: 1.8em;
  padding: 1em 2em;
  width: 100%;
  border-radius: 5px;
  font-weight: bold;
  animation-duration: 1.5s;
  animation-delay: 3s;
  animation-iteration-count: 1;
}

/* -----------------------------------------
   SFR Ecaps
----------------------------------------- */
.sfr-ecap-container {
  margin-top: 20px;
}
body.single-sfrecap,
.single-sfrecap .page-background {
  background: #020d24;
  text-align: center;
}
body.single-sfrecap .row,
.single-sfrecap .page-background .row {
  max-width: 70rem;
}
body.single-sfrecap article {
  background: #fff;
}
body.single-sfrecap article .fool-ecap-type-vanilla {
  margin: 0;
  padding: 0;
}
.single-sfrecap .ajaxLoader {
  right: 18px;
  top: 30px;
}
.single-sfrecap footer {
  padding: 0px;
}
.single-sfrecap footer p,
.single-sfrecap footer ul li,
.single-sfrecap footer ol li {
  color: #777;
}
.single-sfrecap .ecap {
  margin: 0 auto;
  background: transparent;
  border: 0px;
  text-align: left;
}
.single-sfrecap .ecap h3 {
  text-transform: none;
  font-size: 1.2em;
  line-height: 1em;
}
.single-sfrecap .ecap p,
.single-sfrecap .ecap ul li,
.single-sfrecap .ecap ol li {
  font-size: 1em;
  line-height: 1.5em;
}
.single-sfrecap .ecap p.ecap-disclaimer,
.single-sfrecap .ecap ul li.ecap-disclaimer,
.single-sfrecap .ecap ol li.ecap-disclaimer {
  font-size: 0.9em;
  line-height: 1.2em;
}
.single-sfrecap .ecap ul li,
.single-sfrecap .ecap ol li {
  margin-bottom: 1.5em;
}
.single-sfrecap .ecap form {
  border-radius: 5px;
  border: 1px solid #ccc;
  margin: 30px auto;
  padding: 0 20px;
  text-align: center;
  max-width: 500px;
}
.single-sfrecap .ecap form p .button {
  margin: 0 auto;
}
.single-sfrecap .ecap-error {
  max-width: 500px;
  margin: 0 auto;
}
.single-sfrecap .ecap-success {
  background: #393;
  margin: 1em;
  text-align: center;
  padding: 0.5em;
}
.single-sfrecap .ecap-success p {
  font-size: 1.1em;
  margin: 1em auto;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
.single-sfrecap .video-container {
  margin-bottom: 20px;
}
.single-sfrecap div.video-outside {
  margin: 20px auto;
}
.single-sfrecap article {
  padding: 10px 40px 40px;
  background: #fff;
}
.single-sfrecap .ecap-footer {
  background: transparent;
}
.single-sfrecap .ecap-footer .small {
  font-size: 12px;
}
.single-sfrecap .ecap-footer .textwidget {
  margin-top: 20px;
}

.ecap .ecap-below p,
.ecap .ecap-footer p {
  font-size: 0.8em;
}
body.single-sfrecap .ecap h1 {
  margin-top: 20px;
}
/* Apply some different styles to vanilla on ecap pages. */
.single-sfrecap .fool-ecap-type-vanilla {
  background: transparent;
  border: none;
}
.single-sfrecap .fool-ecap-type-vanilla h3 {
  background: transparent;
}

.single-sfrecap .ecap-below {
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 1em;
  font-weight: 300;
  letter-spacing: 0.022em;
}

/****************************
ECAP OVERLAY (Peekaboo)
****************************/
#peekaboo {
  background: #339933 url(images/cap.svg) 50px 0 no-repeat;
  padding: 1em;
  position: fixed;
  z-index: 999999999;
  bottom: 0;
  left: 0;
  width: 100%;
  box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.35);
  display: none;
}
#peekaboo h1 {
  color: #fff;
  font-weight: normal;
  padding-right: 0.5em;
  font-size: 1.3em;
}
#peekaboo h1 span {
  color: #fc3;
  font-weight: bold;
}
#peekaboo p {
  color: #fff;
  padding: 0;
  margin-top: 1em;
  font-size: 1em;
  line-height: 1.2em;
}
#peekaboo input[type="email"] {
  border-radius: 5px 0 0 5px;
  border: none;
}
#peekaboo .button {
  border-radius: 0 5px 5px 0;
  padding: 0.8em;
  background: #fc3;
  font-weight: bold;
  color: #000;
}
#peekaboo .small {
  font-size: 0.8em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}
#peekaboo .small a {
  color: #fc3;
}

#peekaboo-2 {
  background: #cc3300 url(images/cap.svg) 50px 0 no-repeat;
  padding: 0.3em;
  position: fixed;
  z-index: 6;
  top: 4rem;
  left: 0;
  width: 100%;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.15);
  margin-top: -2px;
  text-align: center;
  display: none;
}
#peekaboo-2 h3 {
  color: #fff;
  font-size: 1.2em;
  display: inline-block;
  margin-right: 1em;
  font-weight: normal;
  margin-bottom: 0;
}
#peekaboo-2 img {
  margin: 0;
  padding: 0;
}
#peekaboo-2 a.button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  padding: 0.5em 2em;
  text-transform: uppercase;
  margin-bottom: 0;
}
#peekaboo-2 p {
  color: #fff;
  padding: 0;
  margin: 0;
  font-size: 1em;
  line-height: 1.2em;
}

/* -----------------------------------------
INVESTING STYLE RADIO BUTTONS
----------------------------------------- */
.investing-style-wrapper {
  text-align: left;
  margin-bottom: 2rem;
}

.investing-style-wrapper ul {
  margin-left: -0.8em;
}

.investing-style-wrapper ul li {
  color: #444;
  display: block;
  position: relative;
  float: left;
  width: 100%;
  margin-bottom: 0;
}

.investing-style-wrapper ul li input[type="radio"] {
  position: absolute;
  visibility: hidden;
}

.investing-style-wrapper ul li label {
  display: block;
  position: relative;
  font-weight: 300;
  line-height: 1.2em;
  font-size: 1em;
  padding: 0 0 0 55px;
  margin: 10px auto;
  z-index: 9;
  cursor: pointer;
  transition: all 0.25s linear;
}

.investing-style-wrapper ul li:hover label {
  color: #000;
  font-weight: 900;
}

.investing-style-wrapper ul li .check {
  display: block;
  position: absolute;
  border: 2px solid #888;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 100%;
  height: 25px;
  width: 25px;
  top: 6px;
  left: 20px;
  z-index: 5;
  transition:
    border 0.4s linear,
    background 0.4s linear,
    font-weight 0.4s ease-in-out;
  transition:
    border 0.4s linear,
    background 0.4s linear,
    font-weight 0.4s ease-in-out;
}

.investing-style-wrapper ul li:hover .check {
  border: 2px solid #000;
  background: #fff;
}

.investing-style-wrapper ul li .check::before {
  display: block;
  position: absolute;
  content: "";
  border-radius: 100%;
  height: 15px;
  width: 15px;
  top: 3px;
  left: 3px;
  margin: auto;
  transition: background 0.25s linear;
  transition: background 0.25s linear;
}

.investing-style-wrapper input[type="radio"]:checked ~ .check {
  border: 2px solid #000;
}

.investing-style-wrapper input[type="radio"]:checked ~ .check::before {
  background: #000;
}

.investing-style-wrapper input[type="radio"]:checked ~ label {
  color: #000;
  font-weight: bold;
}

/* -----------------------------------------
SPONSORED HEADER
----------------------------------------- */
header.sponsored {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

header.sponsored img {
  height: 50px;
}

header.sponsored div {
  font-size: 1em;
  text-transform: uppercase;
  color: #fff;
}

/* -----------------------------------------
UTILITY CLASSES
----------------------------------------- */
/* Used to emphasize (ie. FREE, SALE, etc) */
.red {
  color: #d4581b;
}
.green {
  color: green;
}
.orange {
  color: orange;
}
.text-align-right {
  text-align: right;
}
.text-align-left {
  text-align: left;
}
/* -----------------------------------------
  Reveal Question Styles
----------------------------------------- */
.revealEcapWidget .tmf-question-prompt {
  padding: 20px 0 30px;
}
.revealEcapWidget .tmf-question-prompt .tmf-question {
  text-align: left;
  margin: 0 0 20px;
  padding: 0;
}
.revealEcapWidget .tmf-question-prompt .question-container {
  align-items: center;
  display: flex;
  flex-direction: row;
}
.revealEcapWidget .tmf-question-prompt .question-container .tmf-cta {
  border-radius: 3px;
  color: #333;
  cursor: pointer;
  display: inline-block;
  flex: 1;
  font-size: 22px;
  font-weight: 500;
  height: 50px;
  line-height: 50px;
  padding: 0 15px;
  position: relative;
  text-align: center;
  transition: 0.3s ease;
  width: 210px;
}
.revealEcapWidget .tmf-question-prompt .question-container .tmf-cta:hover {
  box-shadow:
    inset 0 18px 0 0 hsl(0deg 0% 100% / 50%),
    0 1px 1px 0 rgb(0 0 0 / 50%);
}
.revealEcapWidget
  .tmf-question-prompt
  .question-container
  .tmf-cta.left-button {
  margin: 0 20px 0 0;
}
.revealEcapWidget .tmf-question-prompt .question-container .tmf-cta.tmf-silver {
  border: 1px solid #d0c3c3;
  background-color: #d0c3c3;
  background-image: linear-gradient(#e9e9e9, #d0c3c3);
}
.revealEcapWidget .tmf-question-prompt .question-container .tmf-cta.tmf-gold {
  border: 1px solid #dea803;
  background-color: #dea803;
  background-image: linear-gradient(#fcca31, #dea803);
}
/* -----------------------------------------
  Mobile Styles
----------------------------------------- */
@media only screen and (max-width: 767px) {
  .single article .fool-ecap-type-vanilla {
    padding: 1em;
  }

  .single-post .right-sidebar div.fool-ecap {
    /* Hide on article pages, otherwise mobile gets 2 ecap widgets */
    display: none;
  }
  body.single-sfrecap .ecap h1 {
    margin-top: 0px;
  }
  body.single-sfrecap article {
    padding: 10px;
  }
  body.single-sfrecap .ecap-header {
    height: 100px;
  }
  body.single-sfrecap .ecap-header ul.menu {
    text-align: left;
    margin-left: 0;
  }
  body.single-sfrecap .ecap-header ul.menu li {
    line-height: 140px;
    font-size: 12px;
  }
  body.single-sfrecap .ecap-header ul.menu li:first-child {
    padding-left: 0;
    margin-left: 0;
  }
  body.single-sfr {
    padding: 20px;
  }
}
@media only screen and (max-width: 600px) {
  body#ecap-alt div input[type="email"] {
    width: 80%;
  }
}
@media only screen and (max-width: 450px) {
  body#ecap-alt button[type="submit"]#submit,
  body#ecap-alt #ecap-submit {
    font-size: 16px;
    padding: 0.5em 1em;
  }
}
