/* Modal */
.info_cta {
    background-color: lightgrey;
    border: 1px solid lightgrey;
    border-radius: 50%;
    color: #000;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 1em;
    padding: 8px;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    float: right;
}
.info_cta:hover {
    background-color: lightgrey;
    color: slategrey;
    text-decoration: none;
}

.modaloverlay {
    background: rgba(0, 0, 0, 0.8);
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    z-index: -1;
    display: none;
}
.modaloverlay:target {
    display: block;
    opacity: 1;
    pointer-events: auto;
    z-index: 99999;
}
.modaloverlay .modal {
    background-color: white;
    height: 100%;
    position: relative;
    margin: 0 auto;
    padding: 3em;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 60em) {
    .modaloverlay .modal {
        height: 75%;
        margin: 5% auto;
        max-height: 57em;
        max-width: 66em;
        width: 85%;
    }
}
.modaloverlay .modal > iframe, .modaloverlay .modal > div {
    border: none;
    width: 100%;
    height: 100%;
}
.modaloverlay .close {
    background-color: lightgrey;
    color: #000;
    font-size: 24px;
    padding: 6px 12px;
    position: absolute;
    right: 10px;
    text-align: center;
    text-decoration: none;
    top: 10px;
    z-index: 1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}


/* Form */
.candidate_data_form {
    margin-bottom: 100px;
}
.candidate_data__slide {
    position: relative;
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 100%;
    width: 100%;
    min-height: calc(40vh - 80px);
    align-items: center;
}
.candidate_data__slide.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}
.candidate_data__slide .error {
    display: none;
}
.candidate_data__slide .error.show {
    display: block;
}
a.btn.is-disabled {
    color: #949494;
    cursor: not-allowed;
    border-color: #c9c9c9;
    background: #e0e0e0;
}
button.btn-primary.is-hidden {
    display: none;
}
.btn.btn-outline {
    border: 1px solid #232a68;
    background: #232a68;
    padding: 10px 20px 9px;
    font-size: 1em;
    font-family: "Montserrat",sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffde17;
    border-radius: 50px;
    cursor: pointer;
}
.btn.btn-outline:hover{
    color: #fff;
}
.btn.btn-outline.is-hidden {
    display: none;
}

/* Progress bar */
.step-nav {
    background: #e8e8e8;
    color: #000;
    padding: 10px 16px;
    height: 70px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;    
}
@media screen and (max-width: 779px){
    .step-nav {
        flex-direction: column;
        height: 120px;
    }
}
/* .step-counter {
    text-align: center;
    padding-bottom: 10px;
    font-size: 18px;
}
@media screen and (min-width: 780px){
    .step-counter {
        text-align: left;
        padding-bottom: 0;
        max-width: 400px;
        flex: 0 1 100%;
    }
} */
.step-counter {
    text-align: center;
    padding-bottom: 10px;
    font-size: 18px;
    font-family: "Roboto Slab",serif;
    color: #242b68;
}
@media screen and (min-width: 780px){
    .step-counter {
        text-align: left;
        padding-bottom: 0;
        max-width: 400px;
        flex: 0 1 100%;
        width: 50%;
    }
}
@media screen and (max-width: 779px){
    .step-counter {
        width: 100%;
    }
}
.step-counter-value {
    display: flex;
    min-height: 22px;
}
.step-counter-bar {
    width: 100%;
    height: 10px;
    /* background: #bfbfbf; */
    border-radius: 20px;
    margin-top: 5px;
    position: relative;
}
.step-counter-bar.active {
    background: #232a68;
}
.step-counter-bar span {
    position: absolute;
    top: 0;
    left: 0;
    height: 10px;
    background: #544df9;
    border-radius: 20px;
    transition: width 0.3s ease 0s;
}
.step-buttons {
    text-align: center;
}
@media screen and (min-width: 780px){
    .step-buttons {
        max-width: 400px;
        flex: 0 1 100%;
        text-align: right;
        width: 50%;
    }
}
@media screen and (max-width: 779px){
    .step-buttons {
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }

}

.form-item {
    width: 100%;
}
.form-item label {
    display: block;
    padding-bottom: 50px;
    color: #242b68;
    font-family: "Roboto Slab",serif;
}
span.counter {
    display: inline-block;
    font-weight: 700;
    font-size: 1.3em;
}
span.label {
    font-size: 1.7em;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
}


/* SELECT2 */
.select2-container {
    width: 100% !important;
    margin-bottom: 20px !important;
}
.select2-container .select2-selection--single {
    height: 72px !important;
    background-color: #fff !important;
    border-radius: 0 !important;
    border-color: #e4e4e4 !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 26px 60px 26px 40px !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1em !important;
    font-family: "Montserrat",sans-serif !important;
    text-transform: uppercase;
}

.select2-container--default .select2-results>.select2-results__options{
    max-height: 300px !important;
}
@media screen and (max-width: 779px){
    .select2-container .select2-selection--single .select2-selection__rendered {
        max-width: 290px;
        padding: 32px 10px 32px 40px !important
    }
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 72px !important;
    width: 60px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 7px 7px 0 7px !important;
    border-color: #544cf9 transparent transparent transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: #000 !important;
}
.select2-dropdown {
    border-radius: 0 !important;
    border-right: 1px solid #efefef !important;
    border-left: 1px solid #efefef !important;
    border-bottom: none !important;
}
.select2-results__option {
    padding: 20px 40px !important;
    border-bottom: 1px solid #efefef !important;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f7f7f7 !important;
    color: #333 !important;
}

.field-item input:focus,
.field-item select:focus {
    outline:none;
}

span.select2-selection.select2-selection--single {
    outline: none;
}

/* RESULTS NOTE */
.candidate_data__return {
    text-align: center;
}
.candidate_data__return h3 {
    font-size: 2em;
    padding-bottom: 30px;
}
button.btn-results {
    font-size: 1.5em !important;
    padding: 22px 40px !important;
    margin-top: 30px;
    color: #ffde17 !important;
}

/* RESULTS PAGE */
aside.candidate_results_sidebar {
    padding-right: 60px;
}
.candidate_call-to-action_section {
    border-top: 1px solid #e2e2e2;
    margin-top: 20px;
    padding-top: 40px;
}
.cta_item {
    padding-bottom: 40px;
}
.cta_item__image {
    padding: 0 0 20px;
}
.cta_item__image img {
    max-width: 100%;
}
.cta_title {
    font-size: 1.3rem;
    padding-bottom: 1rem;
    font-family: "Roboto Slab",serif;
    color: #242b68;
}
.cta_content {
    line-height: 1.5;
}
span.cta_link a {
    color: inherit;
    font-weight: 700;
}
.candidate_starover {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e2e2;
}
a.btn.btn-primary {
    width: 100%;
    text-align: center;
    display: inline-block;
    font-family: "Roboto Slab",serif;
    color: #000;
    border: 1px solid #979797;
    background: #d8d8d8;
    padding: 16px 10px;
}
.candidate_submitted_data li {
    list-style: none;
    position: relative;
    font-size: 1.1em;
    margin-bottom: 1rem !important;
}
.candidate_submitted_data li li {
    font-size: 1em;
    margin-top: 1rem !important;
}
.candidate_submitted_data li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 15px;
    height: 10px;
    border-left: 2px solid #666;
    border-bottom: 2px solid #666;
}
.candidate_submitted_data ul ul {
    margin-bottom: 0 !important;
    margin-top: 8px;
}

.summary_boxes {
    display: flex;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 20px;
}
.box-item {
    flex: 1;
    justify-content: center;
    align-content: center;
    text-align: center;
    background: #f2f2f2;
    margin-right: 10px;
    margin-left: 10px;
    min-height: 100px;
    flex-direction: column;
    position: relative;
}

.box_item__content {
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    width: 100%;
}
.box-item__value {
    font-weight: 700;
    font-size: 1.5em;
}
.graph_item_container {
    padding: 40px;
    background: #f2f2f2;
    margin-bottom: 20px;
    position: relative;
    display: block;
    width: calc(100% - 0px);
}
.graph__title {
    position: relative;
}
.graph__title h3 {
    line-height: 1.3;
    padding-right: 40px;
}
.graph__title a.info_cta {
    position: absolute;
    top: -10px;
    right: 0;
}
.graph__description {
    margin-bottom: 40px;
}
article.candidate_results_share {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid #e2e2e2;
    margin-bottom: 80px;
}
.candidate_results_share a.btn.btn-primary {
    width: auto;
    padding: 16px 40px;
}
span.minus {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #544cf9 transparent transparent transparent;
}
span.plus {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #544cf9 transparent;
}

@media screen and (min-width: 769px) and (max-width: 1068px) {
    .graph_item_container{
        /* width: calc(100% - 40px); */
        width: 100%;
        padding: 25px 25px 40px 25px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .graph_item_container{
        /* width: calc(100% - 80px); */
        width: 100%;
        padding: 15px 15px 40px 15px;
    }
    .info_cta{
        width: 30px;
        height: 30px;
        padding: 4px;
    }
    .graph__title a.info_cta{
        top: 0;
    }

    .summary_boxes{
        display: block;
    }
    .box-item{
        padding: 10px;
        margin-bottom: 10px;
        min-height: 0;
    }
    .box_item__content{
        position: relative;
        transform: none;
        top: auto;
    }
}
@media screen and (max-width: 480px) {
    .graph_item_container{
        width: 100%;
        padding: 10px 10px 40px 10px;
    }

    .section_canditate_results .row{
        padding: 1.5em 0;
    }
    .page-template-template-calculator-results .row{
        padding: 1.5em 0;
    }
    h2 {
        font-size: 1.8em !important;
    }

    aside.candidate_results_sidebar {
        padding-right: 0;
    }
    .info_cta{
        width: 30px;
        height: 30px;
        padding: 4px;
    }
    .graph__title a.info_cta{
        top: 0;
    }

    .summary_boxes{
        display: block;
    }
    .box-item{
        padding: 10px;
        margin-bottom: 10px;
        min-height: 0;
    }
    .box_item__content{
        position: relative;
        transform: none;
        top: auto;
    }
}

.error.mandatory {
    padding: 30px 0;
    color: #dd0000;
}

.candidate_data__return h2 {
    padding-bottom: 40px;
}

html {
    overflow-x: hidden;
}


.page-template-template-calculator header .hero-image,
.page-template-template-calculator-results header .hero-image{
    height: 520px;
}
@media only screen and (max-width: 1440px){
    .page-template-template-calculator header .hero-image,
    .page-template-template-calculator-results header .hero-image {
        height: 450px;
    }
    .page-template-template-calculator header .hero-overlay,
    .page-template-template-calculator-results header .hero-overlay {
        position: absolute;
        top: 100px;
    }
}
@media only screen and (max-width: 768px) {
    .page-template-template-calculator header .hero-image,
    .page-template-template-calculator-results header .hero-image {
        height: 300px;
    }    
}

@media only screen and (max-width: 768px) {
    .page-template-template-calculator header .page-title h1, 
    .page-template-template-calculator-results header .page-title h1 {
        font-size: 3rem;
        line-height: 3rem;
    }

}

aside .btn.btn-outline {
    display: inline-block;
    padding: 16px 20px 15px;
    text-align: center;
}
.candidate_results_share .btn.btn-outline {
    padding: 16px 30px 15px;
}


/* C3.JS GRID LINES */
.c3-xgrid-line text {
     opacity: 0 !important;
}
.c3-xgrid-line.highlighted text {
    fill: #5554f5 !important;
    font-weight: bold;
}
.c3-xgrid-line line {
    stroke: #5554f5 !important;
    stroke-width: 2 !important;
}

.c3-xgrid-line.mean text{
     opacity: 0 !important;
}

.c3-xgrid-line.mean line{
    stroke: #ffde17 !important;
    stroke-width: 2 !important;
    transform: translate(-2px, 0px);
}

.c3-xgrid-line.median text{
    opacity: 0 !important;
}

.c3-xgrid-line.median line{
    stroke: #fff !important;
    stroke-width: 2 !important;
    transform: translate(2px, 0px);
}

.graph__legends{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    text-align: center;
}

.graph__legend{
    padding: 2px 8px;
    font-size: 11px;
    line-height: 11px;
    display: inline-block;
    text-align: left;
    margin: 0 5px;
    font-weight: 600;
}

.graph__legend span::before{
    content: "";
    width: 30px;
    height: 2px;
    background: #fff;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    top: -2px;
}

.graph__legend--you span::before{
    background-color: #5554f5;
}

.graph__legend--mean span::before{
    background-color: #ffde17;
}

.graph__legend--median span::before{
    
}

@media screen and (max-width: 1024px){
    .section_canditate_results .row:nth-child(2) {
        flex-direction: column-reverse;
    }

    .box-item__value {
        font-size: 1em;
    }
    .graph__legend span::before{
        width: 15px;
        margin: 0 2px;
    }
}