/* ============================================================================================== */
/* Base typography                                                                                */
/* ============================================================================================== */

/* Loadouts ------------------------------------------------------------------------------------- */

@font-face {font-family: nunito; font-weight: normal; font-style: normal; src: url('../fonts/Nunito/Nunito-Regular.ttf');}
@font-face {font-family: nunito; font-weight: normal; font-style: italic; src: url('../fonts/Nunito/Nunito-Italic.ttf');}
@font-face {font-family: nunito; font-weight: bold; font-style: normal; src: url('../fonts/Nunito/Nunito-Bold.ttf');}
@font-face {font-family: nunito; font-weight: bold; font-style: italic; src: url('../fonts/Nunito/Nunito-BoldItalic.ttf');}
@font-face {font-family: eb-garamond; font-weight: normal; font-style: normal; src: url('../fonts/EB Garamond/EBGaramond-Regular.ttf');}
@font-face {font-family: eb-garamond; font-weight: normal; font-style: italic; src: url('../fonts/EB Garamond/EBGaramond-Italic.ttf');}
@font-face {font-family: eb-garamond; font-weight: bold; font-style: normal; src: url('../fonts/EB Garamond/EBGaramond-Bold.ttf');}
@font-face {font-family: eb-garamond; font-weight: bold; font-style: italic; src: url('../fonts/EB Garamond/EBGaramond-BoldItalic.ttf');}

html {}

body {
    font-family: nunito;
    color: #252a2a;
}

/* Headings ------------------------------------------------------------------------------------- */

h2, h3 {
    font-family: nunito;
    font-size: 2.4em;
    font-size: 2.4rem;
}

/* Buttons -------------------------------------------------------------------------------------- */

a, .menu a:hover, a.menu:hover {
    color: #fd5943 !important;
}

a.button, .button {
    padding: 15px;
    font-family: nunito;
    box-shadow: none;
}

    a.button:hover, .button:hover {
        background-color: #2e2e2e !important;
        opacity: 1;
    }

    a.button.button--primary, .button.button--primary {
        min-width: 200px;
        background: #fd5943 !important;
    }

        a.button.button--primary:hover, .button.button--primary:hover {
            background: #2e2e2e !important;
        }

        a.button.button--primary:after, .button.button--primary:after {
            content: '\0203a';
        }
        
        .button--back2 {
            color: #2a2e2e !important;
            min-width: 200px !important;
        }
             .button--back2:hover {
                color: #fff !important;
            }
            a.button.button--back2:before {
                content: '\02039';
                margin-right: 5px;
                opacity: 0.75;
            }
        
    a.button.button--back, .button.button--back {
        min-width: 0;
        padding: 5px 23px;
        border-radius: 999px;
    }
   
        a.button.button--back:hover, .button.button--back:hover {
            color: #ffffff !important;
        }

        a.button.button--back:before, .button.button--back:before {
            content: '\02039';
        }

/* ============================================================================================== */
/* Layouts                                                                                        */
/* ============================================================================================== */

body {
    background-color: #f4f4f4;
}

::-moz-selection {
  background: #fd5943;
  color: #ffffff;
}
::selection {
  background: #fd5943;
  color: #ffffff;
}

/* Header --------------------------------------------------------------------------------------- */

#header {
    position: relative;
}

    .header__logo-link {
        left: 0;
        width: 100px;
        height: 60px;
        z-index: 1;
        background: url(../img/jcl.png) no-repeat center;
        background-size: contain;
    }
    .header__logo-link:hover {
        background-color: initial;
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

.sidebar__illustration-edit {
    font-size: 0;
    color: transparent;
}

.sidebar__illustration {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    -webkit-mask-image: url(../img/blob.svg);
    -webkit-mask-size: 80vw;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 40% 50%;
    filter: brightness(0.9);
}

.sidebar__copy {
    position: absolute;
    bottom: 60px;
    padding-right: 60px;
}

    .sidebar__copy:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 25%;
        height: 1px;
        background: #ffffff;
        opacity: 0.25;
    }

    .sidebar__copy .view__title {
        width: 100%;
        margin: 0 0 15px;
        font-size: 2.4em;
        line-height: 1.0;
        text-align: left;
    }

    .sidebar__copy .view__desc {
        margin: 0 0 30px;
        opacity: 1;
        text-align: left;
    }

/* Panels --------------------------------------------------------------------------------------- */

#view {
    padding: 0;
}

.view__side {
    text-align: center;
}

    #view > .row {
        margin-bottom: 0;
    }

.partitioning {
    height: 100%;
    overflow: auto;
    padding: 60px;
}

    .partitioning.partitioning--sidebar {
        background-color: #fd5943;
        color: #ffffff;
    }

    .partitioning.partitioning--content {}

#view .view__top {
    overflow: hidden;
    margin: 0 0 15px;
    white-space: nowrap;
}

    #view .view__top > * {
        display: inline-block;
        vertical-align: middle;
    }

    .view__top-sep {
        width: 1px;
        height: 23px;
        margin: 0 15px 0 8px;
        background-color: #d4e0e0;
    }

#view .view__footer {
    margin-top: 23px;
    margin-bottom: 15px;
    font-size: 0.7em;
    font-size: 0.7rem;
    opacity: 0.5;
    cursor: default;
}

/* ============================================================================================== */
/* Vendors resets                                                                                 */
/* ============================================================================================== */

/* Materialize CSS ------------------------------------------------------------------------------ */

.input-field,
.range-field {
    position: relative;
}

.input-field label,
.range-field label {
    font-family: nunito;
}

@media (min-width: 992px){
    
    .input-container .col-md-6:last-child label {
        padding: 10px 10px 10px 10px;
    }   

}
/* ============================================================================================== */
/* Forms                                                                                          */
/* ============================================================================================== */

#view .view__main {
    border: 0 solid #e0e5e5;
    border-width: 3px 0;
    padding: 30px 0 0;
}

.view__desc {
    margin: 0;
}

.view__actions {
    margin: 15px 0 30px;
}

/* Side-by-side layout -------------------------------------------------------------------------- */

.input-field, .range-field {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.radio-field, .checkboxes-field {
    align-items: flex-start;
}

.input-field label, .range-field label {
    width: 150px;
    margin-bottom: 0;
    padding: 10px 15px 10px 0;
    line-height: 1.1;
}
.radio-field label, .checkboxes-field label {
    padding: 15px 15px 15px 0;
}

.input-field label + *, .range-field label + *,
.select2-container {
    width: calc(100% - 150px) !important;
}

.input-field .field-marker, .range-field .field-marker {
    width: 100%;
    padding-left: 155px;
}
    
    .input-field .field-marker.active, .range-field .field-marker.active {
        margin: 0 0 8px;
    }

.field-marker.field-marker--error{
    display: flex;
    flex:none;
    width:max-content;
}

/* Other general structure ---------------------------------------------------------------------- */

.input-field .select-wrapper .caret {
    margin: 10px 0;
}
.input-field input[readonly] {
    height: 38px !important; /* Solves strange height discrepancy */
    color: #a5a7a7;
}
.field-marker {
    color: #a5a7a7;
}

/* Text fields and passwords -------------------------------------------------------------------- */

.input-field input[type="text"],
.input-field input[type="password"] {
    border-color: transparent;
    box-shadow: 0 0 8px #1111;
}

    .input-field  input[type="text"]:not([readonly]):focus,
    .input-field  input[type="password"]:not([readonly]):focus {
        border-bottom-color: #fd5943 !important;
        box-shadow: 0 3px 0 0 #fd5943 !important;
    }

        .input-field input[type="text"]:not([readonly])[style*='255, 192, 192']:focus,
        .input-field input[type="password"]:not([readonly])[style*='255, 192, 192']:focus,
        .input-field input.found-empty[type="text"]:not([readonly]):focus,
        .input-field input.found-empty[type="password"]:not([readonly]):focus {
            box-shadow: 0 3px 0 0 #fd5943, 0 0 3px #ff5252 !important;
        }

    .input-field input[type="text"][readonly],
    .input-field input[type="password"][readonly] {
        box-shadow: none !important;
    }

/* Radio buttons and checkboxes ----------------------------------------------------------------- */

.radiolist-tab, .checkboxlist-tab {
    width: calc(100% - 150px);
    margin: 8px 0;
    padding-top: 0;
    border-top: 0;
}

.input-field input[type="radio"] + label:hover,
.input-field input[type="checkbox"] + label:hover {
    color: #fd5943;
}

.input-field [type="radio"]:not(:checked) + label:hover:before,
.input-field [type="radio"]:not(:checked) + label:hover:after {
    border-color: #fd5943;

}

    .input-field [type="checkbox"]:not(:checked) + label:hover:before,
    .input-field [type="checkbox"]:not(:checked) + label:hover:after {
        background-color: #fd5943;
        border: 0;
    }

.input-field [type="radio"]:checked + label:before,
.input-field [type="radio"]:checked + label:after,
.input-field [type="checkbox"]:checked + label:before,
.input-field [type="checkbox"]:checked + label:after {
    background-color: #fd5943;
}

/* Dropdowns ------------------------------------------------------------------------------------ */

.input-field .select-wrapper input[type="text"].select-dropdown,
.select2-container {
    color: #252a2a;
    box-shadow: 0 0 8px #1111 !important;
}

.input-field .select-wrapper:hover .caret {
    color: #fd5943;
}

.input-field .dropdown-content li:hover > * {
    color: #fd5943;
}

.select2-selection:hover .select2-selection__arrow:before {
    color: #fd5943;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    color: #fd5943 !important;
}

/* Range sliders -------------------------------------------------------------------------------- */

.range-field .slider-value {
    display: block;
    margin: 8px 0;
    padding: 0;
    background-color: transparent;
    opacity: 0.5;
}

.range-field input[type=range]::-webkit-slider-thumb {
    background-color: #fd5943;
}

.range-field input[type=range] + .thumb {
    margin-left: 143px !important;
    background-color: #fd5943;
}

/* Datepicker ----------------------------------------------------------------------------------- */

.ui-datepicker td a:hover {
    background-color: #f0f3f3 !important;
    color: #fd5943 !important;
}

.ui-datepicker td a.ui-state-active {
    background: #fd5943 !important;
    border-radius: 5px;
}


/* ============================================================================================== */
/* Modules                                                                                        */
/* ============================================================================================== */

/* Breadcrumbs ---------------------------------------------------------------------------------- */

.progression {
    position: relative;
    top: 0;
    left: 0;
    width: auto;
}

    .progress-crumb-group {
        display: inline-block;
        background-color: transparent;
    }
    
        .progress-crumb-list {
            width: 23px;
            height: 8px;
            margin-right: 3px;
            background-color: #fd5943;
            border-radius: 8px;
        }
        .progress-crumb-list:last-child {
            margin-right: 0;
        }

            .progress-crumb-selected:first-child:before {
                display: none;
            }

        .progress-crumb-selected {
            opacity: 0.5;
        }

        .progress-crumb-selected ~ .progress-crumb-list {
            background-color: #d4e0e0;
        }

    .progression__message {
        display: inline-block;
        vertical-align: middle;
        margin-right: 15px;
        font-size: 0.9em;
        font-size: 0.9rem;
    }

/* ============================================================================================== */
/* Mobile responsiveness                                                                          */
/* ============================================================================================== */

/* Tablet-sized --------------------------------------------------------------------------------- */

@media (max-width: 991px) {
    
    .partitioning.partitioning--sidebar {
        padding: 30px;
    }

    .sidebar__copy {
        bottom: 30px;
        padding-right: 30px;
    }

}




/* Smartphone-sized ----------------------------------------------------------------------------- */

.sidebar__copy--mobile {
    display: none;
    margin: -8px 0 23px;
    padding: 15px;
    background-color: #dee5e5;
    border-radius: 5px;
}

    .sidebar__copy--mobile .view__title {
        margin-bottom: 8px;
        font-size: 1.5em;
        font-size: 1.5rem;
    }

@media (max-width: 767px) {

    .partitioning {
        height: auto;
    }

        .partitioning.partitioning--sidebar {
            padding: 15px 30px;
        }

        .partitioning.partitioning--content {
            padding: 15px 15px 30px;
        }

    h2, h3 {
        font-size: 1.8em;
        font-size: 1.8rem;
    }
    
    .sidebar__copy {
        display: none;
    }

    .sidebar__copy--mobile {
        display: block;
    }

    .sidebar__illustration {
        width: 60%;
        left: 40%;
    }

}

/* Extremely small devices ---------------------------------------------------------------------- */

@media (max-width: 575px) {

    a.button.button--back, .button.button--back {
        width: auto;
    }

        a.button.button--primary:after, .button.button--primary:after,
        a.button.button--back:before, .button.button--back:before {
            display: inline-block;
        }

    .input-field label, .range-field label {
        width: 100%;
        margin-bottom: 5px;
        padding-bottom: 0;
    }

    .input-field label + *, .range-field label + * {
        width: 100% !important;
    }

        .range-field input[type=range] + .thumb {
            margin-top: 60px;
            margin-left: -7px !important;
        }

    .input-field .field-marker, .range-field .field-marker {
        padding-left: 0;
    }

        .input-field .field-marker.active, .range-field .field-marker.active {
            margin-top: 5px;
        }
        
        .select2-container {
            width: 100% !important;
        }

}

/* Height issue --------------------------------------------------------------------------------- */

@media (max-height: 420px) {

    .sidebar__illustration {
        background: #fd5943 !important;
        -webkit-mask-image: none;
        filter: none;
    }

    .sidebar__copy {
        position: relative;
        bottom: 0;
        padding: 15px 0 1px;
    }

}


/* Customization for JCL --------------------------------------------------------------------------------- */

label[for="lens_FC_SNS_OTH_REL"] .mustfill-mark {
    display: none;
}

input[placeholder="Other Relationship"][style="background-color: rgb(255, 255, 255);"] {
    background-color: rgb(255, 255, 255) !important;
}