
.fec-decision-tree {
  padding: 2rem;
  margin: 0 auto;

  font-family: Montserrat,sans-serif;

  background: #fff;
}
  .fec-decision-tree.confetti {
    background-image: url('https://familyenterprise.ca/wp-content/uploads/2022/05/Confetti-4s-1535px.svg');
    background-size: contain;
  }
  .fec-decision-tree footer {
    position: relative;
  }

  #fec-decision-tree-article {
    display: none;

    position: fixed;
    top: 5%;
    left: 50%;
    bottom: 5%;
    z-index: 10001;

    width: 50vw;
    margin-left: -25vw;

    background-color: #fff;
    box-shadow: 0 0 50px rgb(0 0 0 / 25%);
  }
    #fec-decision-tree-article > .close {
      position: absolute;
      right: 2rem;
      top: 1rem;

      cursor: pointer;
    }
    #fec-decision-tree-article > .content {
      height: 100%;
      padding: 2rem;

      overflow-y: scroll;
    }

  #fec-decision-tree-underlay {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;

    background-color: rgba( 0, 0, 0, 0.25 );
  }
    #fec-decision-tree-underlay.loading:before {
      content: '';

      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 10001;

      width: 80px;
      height: 80px;
      margin-top: -40px;
      margin-left: -40px;

      background-image: url(/wp-content/plugins/fex-decision-tree/assets/loading.svg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: 80%;

      color: #fff;
      background-color: #fff;
      border-radius: 40px;
    }

    #fec-decision-tree-underlay.article-showing {
      z-index: 10000;
    }


  body.admin-bar .fec-decision-tree { top: 32px; }

  .fec-decision-tree-inner {
    max-width: 1170px;
    margin: 0 auto;

    position: relative;
  }


  .fec-decision-tree header {
    display: none;

    position: relative;
    margin: 0 0 1rem;
  }
    .fec-decision-tree header .close {
      display: none;

      cursor: pointer;
    }

    .fec-a-form-close {
      position: absolute;
      right: 10px;
      top: 10px;
      width: 30px;
      height: 30px;

      text-align: center;
      line-height: 30px;

      cursor: pointer;
    }

  .fec-decision-tree header .fec-a-tagline {
    margin-top: 1.5em;
    font-size: 1.4em;
    line-height: 1.25em;
  }
    .fec-a-logo img {
      display: block;
      min-width: 150px;
      max-width: 250px;
      width: 50%;
    }

  .fec-a-result-ctr,
  .fec-a-question-ctr {
    position: relative;
  }

  .fec-a-question-ctr {
    max-width: 450px;
    margin: 0 auto;
  }

  ul.fec-a-results,
  ul.fec-a-questions {
    margin: 0;
    padding: 0;
  }
    ul.fec-a-questions > br { display: none; }

    li.fec-a-question {
      display: none;

      font-size: 1.2em;
      line-height: 1.5em;

      padding: 2.5rem 0 0;

      background-color: #fff;
    }
      li.fec-a-question p:empty { display: none; }

    li.fec-a-result {
      display: none;
      padding-left: 0;

      font-size: 1.4em;
      line-height: 1.5em;
    }
      li.fec-a-result:before ,li.fec-a-question:before { display: none; }

      li.fec-a-result > .fec-a-result-content-ctr {
        padding: 60px 50px 40px;
        margin-bottom: 20px;

        color: #fff;
        background: #D3450D;
      }
        .fec-a-result-content {
          width: 80%;
          float: left;
        }
        .fec-a-result-content-complete {
          position: absolute;
          right: 50px;

          width: 20%;

          text-align: center;
        }
          .fec-a-result a.fec-a-complete-alt:hover {
            color: #ccc;
            border-color: #ccc;
          }
          .fec-a-result a.fec-a-complete-alt {
            display: inline-block;
            margin-top: 12px;

            font-size: 18px;

            color: #fff;
            border-color: #fff;
          }

        li.fec-a-result .fec-a-result-content > p { color: #fff; }
        li.fec-a-result .fec-a-result-content > p:empty { display: none; }
        li.fec-a-result > .fec-a-result-alternate > p:empty { display: none; }

        li.fec-a-result .fec-a-result-content li { color: #fff; }
        li.fec-a-result .fec-a-result-content li:before { color: #fff; }

      li.fec-a-result > .fec-a-result-alternate,
      li.fec-a-result > .fec-a-result-links-ctr {
        float: left;
        width: 49%;
      }
        li.fec-a-result > .fec-a-result-alternate { margin-right: 2%; }


      li.fec-a-result > .fec-a-result-alternate {
        padding: 30px 25px 10px;

        color: #000;
        background: #edeeef;
        border: 6px solid #edeeef;
      }
        li.fec-a-result > .fec-a-result-alternate > p {
          color: #000;
        }

        li.fec-a-result .fec-a-result-alternate-link {
          font-size: 16px;
          text-align: right;
        }
        li.fec-a-result > .fec-a-result-alternate a {
          text-transform: uppercase;

          color: #D3450D;

          cursor: pointer;
        }

      li.fec-a-result > .fec-a-result-links-ctr {
        padding: 30px 25px 10px;

        border: 6px solid #edeeef;
        background: #fff;
      }
        ul.fec-a-result-links {
          margin: 0;
          padding: 0;

          list-style: none;
        }

          li.fec-a-result-link:before { display: none; }
          li.fec-a-result-link {
            display: inline-block;
            width: 32%;

            font-weight: 500;
            text-align: center;

            list-style: none;
            vertical-align: top;
          }

            .fec-a-result-link-icon {
              font-size: 34px;
              margin: 20px 0 10px;
            }

      .fec-a-controls {
        position: absolute;
        top: 50%;
        left: -1rem;
	margin-top: -50px;
      }

      .fec-a-controls > a {
        display: block;
        float: right;

        font-weight: 600;
        text-align: center;
        text-transform: uppercase;

        cursor: pointer;
      }

      .fec-decision-tree-open {
        display: inline-block;
        font-family: Montserrat, sans-serif;
      }

      .fec-decision-tree-open > a {
        display: block;

        font-weight: 600;
        text-align: center;
        text-transform: uppercase;

				color: #fff !important;

        cursor: pointer;
      }

        .fec-decision-tree-open > a .fas,
        .fec-a-controls > a .fas {
          display: block;
          margin-bottom: 5px;
        }

        .fec-a-controls a.fec-a-prev {
          width: 100px;
          height: 100px;
          padding-top: 13px;
          margin: 0;

          font-size: 10px;
          line-height: 1.25em;

          color: #D3450D;
          background: transparent;
          border-radius: 50px;
        }

        .fec-decision-tree-open,
        .fec-a-result-content-complete .fec-a-complete,
        .fec-a-controls a.fec-a-next,
        .fec-a-controls a.fec-a-last {
          width: 140px;
          height: 140px;
          padding-top: 35px;

          font-size: 16px;
          line-height: 1.25em;

          color: #fff;
          background: #D3450D;
          border-radius: 70px;

          transition: 0.25s all ease-in;

          overflow: hidden;
        }
          .fec-a-prev .fa-chevron-left:before,
          .fec-a-next .fa-chevron-right:before,
          .fec-a-complete .fa-chevron-right:before,
          .fec-decision-tree-open .fa-chevron-right:before {
            content: "";
            display: block;
            width: 25px;
            height: 12px;

            margin: 0 auto 10px;

            background: url(/wp-content/plugins/fex-decision-tree/assets/img/White-RightArrow.svg) center center no-repeat;
            background-size: contain;
          }
          .fec-a-prev .fa-chevron-left:before {
            width: 40px;
            height: 30px;
            background: url(/wp-content/plugins/fex-decision-tree/assets/img/Orange-LeftArrow.svg) center center no-repeat;
          }
          .fec-a-complete .fa-chevron-right:before {
            background: url(/wp-content/plugins/fex-decision-tree/assets/img/Black-RightArrow.svg) center center no-repeat;
          }
          .fec-a-result-content-complete .fec-a-complete {
            display: inline-block;

            text-align: center;
            text-transform: uppercase;

            color: #333;
            background: #edeeef;

            cursor: pointer;
          }
            .fec-a-result-content-complete .fec-a-complete:hover, 
            .fec-a-result-content-complete .fec-a-complete:focus,
            .fec-a-result-content-complete .fec-a-complete:active, {
              background: #fff;
            }

        .fec-a-controls a.fec-a-next,
          .fec-a-controls a.fec-a-last {
            display: none;
          }

        .fec-a-next.disabled,
        .fec-a-last.disabled {
          opacity: 0.25;
        }

      div.fec-a-title {
        margin-bottom: 1em;
        font-weight: bold;
        text-align: center;
      }
        span.fec-a-title-question {
          display: inline-block;
          width: 25px;

          font-weight: normal;
          margin-right: 10px;
        }

      div.fec-a-article {
        margin: 1rem 0 3rem;
        padding: 0.5rem 1rem;

        font-size: 1rem;

        color: #333;
        background-color: #edeeef;
      }
        div.fec-a-article a {
          display: inline-block;

          line-height: 1.2em;

          color: #333;
        }
        div.fec-a-article a:hover { color: #D3450D; }

      div.fec-a-glossary {
        margin: -0.5rem 0 1rem;

        font-weight: 400;
        font-size: 0.9rem;
        text-align: center;
        text-transform: uppercase;
      }
        div.fec-a-glossary a {
          color: #333;
        }

        a.glossary-link {
          font-weight: inherit !important;
          color: inherit !important;
          cursor: help;
        }

          #fec-dt-glossary-hover {
            position: absolute;

            width: 30vw;
            min-width: 300px;

            padding: 1rem;
            margin-top: 2rem;
            margin-left: -2rem;

            font-size: 0.8rem;

            background: rgb(255, 255, 255);
            box-shadow: 0 0 10px rgb(0 0 0 / 25%);
            border: 1px solid rgb(221, 221, 221);
            border-radius: 1rem;
          }
            #fec-dt-glossary-hover > .content > *:last-child {
              margin-bottom: 0;
            }

      ul.fec-a-options {
        padding: 0;
        margin: 1em 0;

        text-align: center;
      }
        ul.fec-a-options > br { display: none; }

        li.fec-a-option {
          display: inline-block;

          padding-left: 0;
          margin-bottom: 0;

          font-size: 1em;
          line-height: 1.3em;

          cursor: pointer;
        }
        li.fec-a-option:before { display: none; }

        li.fec-a-option input[type="radio"],
        li.fec-a-option input[type="checkbox"] {
          display: inline-block;
          position: relative;
          top: -3px;
        }

        li.fec-a-option button,
        li.fec-a-option a.button,
        li.fec-a-gate button {
          padding: 0.75rem 1.5rem;

          font-size: 1.25rem;

          color: #fff;
          background-color: #E64C0F;
          border: 0;
        }
          li.fec-a-option:nth-child(2) button {
            background-color: #888;
          }


    .fec-a-pagination {
      margin: 0 0 100px;
      padding: 0;

      text-align: center;
    }
      .fec-a-pagination > li {
        display: none;

        width: 50px;
        height: 50px;
        margin-left: 8px;
        padding: 0;

        background: #edeeef;
        border-radius: 6px;
      }
        .fec-a-pagination > li > * { display: none; }
        .fec-a-pagination > li:before { display: none; }
        .fec-a-pagination > li.active {
          display: inline-block;
        }

        .fec-a-pagination > li[data-answer] {
          display: none !important;
        }
        .fec-a-pagination > li[data-answer]:before {
          display: block;
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;

          font-family: "Font Awesome 5 Free";
          font-size: 20px;
          line-height: 50px;

          content: '\f30b';
          color: #555;
          background-color: #edeeef;
          border-radius: 6px;

          cursor: pointer;
        }

        .fec-a-pagination > li.active[data-answer]:hover > .fec-a-title {
          display: block;

          position: absolute;
          top: 70px;
          left: 0;

          width: 300px;
          padding: 1rem 0.5rem;
          margin-left: -125px;

          font-size: 0.8rem;
          font-weight: 500;
          line-height: 1.3rem;

          background: #edeeef;
          border-radius: 6px;
        }
          .fec-a-pagination > li.active[data-answer]:hover > .fec-a-title:before {
            position: absolute;
            top: -15px;
            left: 50%;
            margin-left: -10px;

            content: '\f0d8';

            font-family: "Font Awesome 5 Free";
            font-size: 30px;
            font-weight: bold;

            color: #edeeef;
          }

        .fec-a-pagination > li.active[data-answer="Yes"],
        .fec-a-pagination > li.active[data-answer="No"] {
          display: inline-block !important;
        }
        .fec-a-pagination > li[data-answer="Yes"]:before {
          content: '\f00c';
          color: #fff;
          background-color: #D3450D;
        }
        .fec-a-pagination > li[data-answer="No"]:before {
          content: '\f00d';
          color: #fff;
          background-color: #888;
        }



.fec-a-intro-ctr {
	background: #edeeef;
}
	.fec-a-intro-content {
		padding: 60px 0px 60px 50px;
		position: relative;
	}
		.fec-a-intro-bottom-image {
			position: absolute;
			right: 30px;

			width: 60%;
			margin-top: -2em;
		}

	.fec-a-intro-side {
		position: relative;
		padding: 60px 50px 60px 0;

		text-align: right;
	}
		.fec-a-intro-side-image {
			position: absolute;

			width: 200%;
			margin-top: 3em;
		}


.fec-a-form {
  display: none;

  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;

  width: 340px;
  margin-left: -170px;
  padding: 10px 40px 30px;

  text-align: center;

  background: #edeeef;
}
  .fec-a-form input { width: 100%; }
  .fec-a-form input[type="submit"] {
    padding: 10px 20px;

    font-size: 1em;
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;
    font-weight: 500;

    color: #fff;
    background: #D3450D;
    border: 0;
  }

  .fec-a-form h3 { margin-top: 20px; }

  .fec-a-form .fec-a-form-fields > br { display: none; }
  .fec-a-form .fec-a-form-field { margin-bottom: 0.75em; }


  .fec-a-form .fec-a-form-response {
    display: none;
  }

#fec-a-underlay {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0,0,0,0.25);
}


.fec-inline-slider {
  position: relative;
}
  .fec-inline-slide {
    display: none;
  }
    .fec-inline-slide.shown {
      display: block
    }
    .fec-inline-slide.slick-tab-pane {
      padding: 0 !important;
    }

  .fec-inline-slider-controls > div {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 75px;
    padding-top: 55px;
    margin-top: -28px;

    font-size: 12px;
    text-align: center;
    line-height: 1.25em;
    text-transform: uppercase;

    color: #D3450D;
    background-image: url('/wp-content/plugins/fex-decision-tree/assets/img/Orange-LeftArrow.svg');
    background-repeat: no-repeat;
    background-size: contain;

    cursor: pointer;
  }
    .fec-inline-slider-controls > div.fec-inline-slider-next {
      right: 0; 
      background-image: url('/wp-content/plugins/fex-decision-tree/assets/img/Orange-RightArrow.svg');
    }
    .fec-inline-slider-controls > div.fec-inline-slider-prev { display: none; left: 0; }


.fec-dtree-intro.b012 {
  padding: 0 !important;
}

.fec-dtree-intro .slick-tab-pane p {
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 25px;

  margin-bottom: 17px;
  padding-right: 8%;
}

.fec-a-gate-form br {
  display: none;
}

  .fec-a-gate-form .fec-a-content {
    margin-bottom: 2rem;

    font-size: 1rem;
    line-height: 1.4rem;
  }

  .fec-a-gate-form-row {
    display: flex;
    gap: 2rem;

    margin-bottom: 1rem;
  }

  .fec-a-gate-form-row > div { flex-grow: 1; }
    .fec-a-gate-form-field label {
      display: block;
      margin-bottom: 0;

      font-weight: 600;
      font-size: 0.9rem;
    }

    .fec-a-gate-form-field input, .fec-a-gate-form-field select, .fec-a-gate-form-field textarea {
      width: 100%;
      padding: 0.5rem 0.75rem;

      font-size: 1.2rem;
      line-height: 1.7rem;
    }

    .fec-a-gate-form-field.has-error input, .fec-a-gate-form-field.has-error select, .fec-a-gate-form-field.has-error textarea {
      border-color: #f00;
      border-width: 3px;
    }

@media (max-width:1024px) {
		.fec-a-intro-side-image { width: 110%; }
}
@media (max-width:599px) {
  body.admin-bar .fec-decision-tree { top: 0; }

	.fec-a-intro-content {
    padding: 40px 30px 0;
  }

	.fec-a-intro-side {
    padding: 0;
		text-align: center;
	}
		.fec-a-intro-bottom-image {
      display: none;
    }
		.fec-a-intro-side-image {
			position: static;

			width: 100%;
		}

  li.fec-a-question {
    font-size: 1.2em;
  }

  .fec-decision-tree header {
    margin: 30px 0;
    padding: 0 20px;
  }
  .fec-decision-tree header .fec-a-tagline {
    position: static;
    margin-top: 1em;

    text-align: left;
  }
    ul.fec-a-options {
      margin-left: 0;
      margin-right: 0;
    }

    .fec-a-controls {
      position: relative;
      right: 0;
      bottom: 0;

      margin-top: -2em;
      margin-bottom: 12px;
      padding-right: 30px;
      padding-bottom: 2em;

      background: #edeeef;
    }

  .fec-decision-tree footer {
    position: relative;

    margin-right: 0;
    text-align: center;
  }

  .fec-a-result-content,
  .fec-a-result-content-complete {
    float: none;
    width: 100%;
  }
    .fec-a-result-content-complete { position: static; text-align: center; }

  li.fec-a-result {
    padding: 0 10px;
  }

  li.fec-a-result > .fec-a-result-alternate,
  li.fec-a-result > .fec-a-result-links-ctr {
    float: none;
    width: 100%;
    margin-bottom: 12px;
  }
    li.fec-a-result > .fec-a-result-alternate { margin-right: 0; }
}


@media (min-width: 768px) {
  .fec-dtree-intro .slick-tab-pane > h2, .fec-dtree-intro .slick-tab-pane > hr, .fec-dtree-intro .slick-tab-pane > h3 {
    margin-right: 100px;
    margin-left: 100px;
  }
  .fec-dtree-intro .slick-tab-pane > hr {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .fec-dtree-intro.b012 .tabs-next {
    left: auto;
    right: 113px;

    width: 120px;
    height: 120px;

    text-align: center;

    border-radius: 60px;
    overflow: hidden;

    cursor: pointer;
  }
    .fec-dtree-intro.b012 .tabs-next-inner {
      padding: 0;
      margin: 0;
      justify-content: center;
    }
    .fec-dtree-intro.b012 .tabs-next-text {
      margin: 0;
    }
    .fec-dtree-intro.b012 .tabs-next-arrow {
      display: none;
    }
}
