 /* setup palette for school */
:root {
    
    /* add some fallbacks */
    --widget-border-size: 2;
    --widget-colour: #0091da;
    --widget-accent: #0161a0;
    --widget-outline: #0192da36;
    --banner-image: url("https://via.placeholder.com/640x360");    
    /* done with fallbacks */
    
    --primary: var(--widget-colour);
    --primary-accent:var(--widget-accent);
    --bs-primary-bg-subtle:var(--widget-subtle) !important;    
}
:root h1, :root h2, :root h3, :root h4, :root h5{
     color: var(--heading-colour)
}
:root .accordion{ 
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem var(--widget-outline); 
    --bs-accordion-active-color: #000 !important;    

} 
.elementcontainer{
    display:flow-root;
}
.form-control:focus, .form-select:focus{ 
    border-color: var(--widget-subtle); 
    box-shadow: 0 0 0 .25rem var(--widget-outline);
    margin-bottom:2px;
} 
.btn:focus-visible { 
    box-shadow: 0 0 0 .25rem var(--widget-outline);
} 
#main .btn-xs{
    font-size:0.8em;
    padding:2px 1em;
    line-height:1em;
}
.banner-image{
    background: linear-gradient(90deg, rgba(255, 255, 255, 100) 0%, rgba(255, 255, 255, 0) 30%), var(--banner-image);
    background-position: center center;
    background-size:cover;
    width:100%;
}

.logo-image{
    width:250px;
    height:100px;
    background: var(--logo-image) no-repeat;
    background-size:contain;
    background-position: center left;
} 

#SchoolPicker .logo-image:after{ /* special version for school picker page */
    display:inline-block;
    max-width:8em;
    width:8em;
    height:2.5em;
    font-weight:800;
    content: "Alumni Benefits Program";
    text-wrap:balance !important;
    line-height:1.2em;
}

.met-logo{
    width: 77px;
    height: 17px;
    background: url(../uploads/00000002/MetLife.png) no-repeat;
    background-size:contain;
    background-position: center left;
    vertical-align: text-bottom;
} 


.sliderlabel{
    display:none;
}

/* hide the asterisk for required, and replace it with a bold caption */
.require, .answer br{
    display:none;
}
.mandatory .elementcaption{
    /* unused font-weight:bold; */
}
.spacer label{ /* make labels 100% width, so that you can float */
    width:100%;
}

/* set the colours for warning text, in-error and valid controls */
.warning{
    color:#8f0000;
    font-size:0.9em;
}

.form-control:focus, .form-select:focus {
    border:1px solid var(--widget);
    box-shadow: 0 0 0 .25rem var(--widget-outline) !important;  
}

.form-control .inerror:focus, .form-select.inerror:focus {
    box-shadow: 0 0 0 .25rem #dc354547 !important;  
}
.form-control.inerror, .form-control.inerror:focus{
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat:no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-select.inerror, .form-select.inerror:focus{
    border-color: #dc3545; 
    padding-right: 4.125rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat:no-repeat;
    background-position: right .75rem center, center right 2.25rem;
    background-size: 16px 12px, calc(.75em + .375rem) calc(.75em + .375rem);
}
/*
.form-control.valid{
    border-color: #198754;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-select.valid{
    border-color: #198754;
    padding-right: 4.125rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"),
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat:no-repeat;
    background-position: right .75rem center, center right 2.25rem;
    background-size: 16px 12px, calc(.75em + .375rem) calc(.75em + .375rem);
}

.optional .form-control.valid{
    background-image:none;
    border-color:rgb(222, 226, 230);
}*/

/* style radio buttons */
input[type="radio"] { /* hides the real control, the label is clickable */
    position: absolute;
    left: -99999px;
}
.productField input[type="radio"] + label{
    border: 2px solid rgba(0, 0, 0, 0);
    padding: 5px;
}
.productField { /* allows answers to float side by side */
    float: left;
    display: flex;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
}
.checkbox .productField:first-of-type{ /* set checkboxes to have the checkbox class to override the floats */
    max-width: unset;
    width:auto;
    /* padding-right:5px; */
} 

input[type="radio"] + label::before, input[type="checkbox"] + label::before { /* draws a grey circle for unselected radio*/
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-right: .5em;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 200px;
    vertical-align: middle;
    cursor: pointer;
}
input:checked + label::before { /* puts a tick in the selected item */
    content: '';
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="20px" height="20px" viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve"><style type="text/css">.st0{fill:%23FFFFFF;}</style><g><path class="st0" d="M16.8,2.5l-9.3,9.3L3.2,7.6C3,7.3,2.6,7.3,2.3,7.6L0.2,9.7c-0.2,0.2-0.2,0.6,0,0.9l4.3,4.3L7,17.5 c0.2,0.2,0.6,0.2,0.9,0l2.6-2.6l9.3-9.3c0.2-0.2,0.2-0.6,0-0.9l-2.2-2.2C17.4,2.3,17,2.3,16.8,2.5z"/></g></svg>') center no-repeat;
    display: inline-block;
    background-color: var(--primary);
    border: none;
}

input[type="radio"] + label:hover::before,
input[type="checkbox"] + labelhover::before,
input[type="radio"] + label:focus::before,
input[type="checkbox"] + labelfocus::before,
input[type="checkbox"] + label:hover::before { /* adds hover to the radio */
    border: var(--widget-border-size) solid var(--primary);
}

/* handle jQuery widgets */
.ui-slider-horizontal { /* default bar scale and position (with extended right hand edge */
    height: .3em;
    border:none;
    margin:1em;
    border-right:1em var(--bs-border-color) solid;
    width:calc(100% - 1em); /* allows the right hand edge to extend beyond margin*/
}

.ui-slider-range { /* selected bar */
    background: var(--primary);
    border-radius:0;
}
.ui-slider-range:before { /* extend the selected bar to account for the margin of 1em on the slider*/
    background: var(--primary);
    content:'';
    display:block;
    height:.3em;
    margin-left:-1em;
    font-size: 1.5em;
    border-radius: 3px 0 0 3px
}

.ui-slider .ui-slider-handle { /* position the slider handle */
    border: 1px solid var(--primary);
    background: var(--primary);
    width: 2em;
    height: 2em;
    border-radius:40px;
    top: -0.9em;
    margin-left: -1em;
    border:var(--widget-border-size) solid var(--primary);
}

/* sort buttons */
#main .btn-primary, #main .buttonState{
    background:var(--primary);
    border-color:var(--primary);
}
#main .buttonState{ /* should be slightly transparent unless active */
 color:rgba(255,255,255,0.6);
}   
#main .btn-primary:hover, #main .buttonState.active, #main .buttonState:hover{
    background:var(--primary-accent);
    border-color:var(--primary-accent);
    color:white;
}
#main .btn-primary a{
    text-decoration:none;
    color:white;
}
#main .buttonState.active{
    font-weight:600;
}
/* extend to allow button state stretch */
.bs-stretch .strm-bs-group-2{
    width:50%;
    margin-right:1px;
    text-align:center;
}
.bs-stretch .strm-bs-group-3{
    width:34%;
    margin-right:1px;
    text-align:center;
}
.bs-stretch .strm-bs-group-4{
    width:25%;
    margin-right:1px;
    text-align:center;
}
.bs-stretch .strm-bs-group-6{
    width:17%;
    margin-right:1px;
    text-align:center;
}
.bs-stretch .strm-bs-group-7{
    width:15%;
    margin-right:1px;
    text-align:center;
}
.productField .buttonState:last-of-type {
    margin-right:0;
}

/* format accordion content */
.accordion-body h2{
    font-size:1rem;
}
/* format placeholders */
.form-control::placeholder {    /* Chrome, Firefox, Opera, Safari 10.1+ */
    opacity: 0.3 !important;
}
.form-control:-ms-input-placeholder,  /* IE 10-11 */ 
.form-control::-ms-input-placeholder  /* Edge */ {
    color: #cdcecf !important;
}


/* add some grids for split elements */
@media (min-width: 768px) {
    .label-col-md-6, .label-col-md-9,
    .label-col-lg-6, .label-col-lg-9{
        display:flex;
    }
    .label-col-md-6 .elementcaption, .label-col-md-9 .elementcaption,
    .label-col-lg-6 .elementcaption, .label-col-lg-9 .elementcaption{
        flex: 1 1 auto;
        padding-right: calc(var(--bs-gutter-x)* .5);
        margin-top: var(--bs-gutter-y);
        font-weight: normal;
    }
    .label-col-md-6 .answer, .label-col-md-9 .answer,
    .label-col-lg-6 .answer, .label-col-lg-9 .answer{
        flex: 1 1 auto;
        padding-left: calc(var(--bs-gutter-x)* 0.75); /* this makes it line up with other elements conventionally gridded */
        margin-top: var(--bs-gutter-y);
    }
    .label-col-md-6 .elementcaption, .label-col-md-6 .answer{
        max-width: 100%;
        width:50%;
    } 
    .label-col-md-9 .elementcaption{ 
        max-width: 100%;
        width: 75%;
    }
    .label-col-md-9 .answer{ 
        max-width: 100%;
        width: 25%;
    }
    .md-shaded-panel{
        background:var(--bs-primary-bg-subtle);
        border-radius:0.3em;
        border:2px solid var(--widget-outline);
    }
}
@media (min-width: 992px) {
    .label-col-lg-6 .elementcaption, .label-col-lg-6 .answer{
        max-width: 100%;
        width:50%;
    } 
    .label-col-lg-9 .elementcaption{ 
        max-width: 100%;
        width: 75%;
    }
    .label-col-lg-9 .answer{ 
        max-width: 100%;
        width: 25%;
    }
}

/* style the bene and medi boxes to break them up vertically */
.bene:before{
    content:'';
    width:100%;
    background: var(--primary);
    height:2px;
    margin: calc(var(--bs-gutter-x)* .5);
}

.shaded-bars .bs-stretch{
    padding:1em;
    background:var(--bs-primary-bg-subtle);
}
.medi:after{
    display:none;
}
.medi, .shaded-bg{
    background: var(--bs-primary-bg-subtle)
}

/* Medical questions should get prefixed with a styled number */
.QNumber{
    font-weight:bold;
}
.QNumber:after{
    content:".";
}
.QSubSection{
    font-weight:bold;
    margin-left:1em;
}
.QSubSection:after{
    content:":";    
}

/* style valiidators to support normal size font */
.warning-as-body-font-size .warning{
    font-size: var(--bs-body-font-size);
}
.warning-as-box .warning{
    background:var(--bs-danger-bg-subtle);
    width:100%;    
    font-size: var(--bs-body-font-size);       
    padding: 1rem;
    margin-bottom: var(--bs-alert-margin-bottom);
    border:1px solid #f2aeb5;
    border-radius: 0.375rem;
}
.warning-as-box a{
    color: inherit;
}
a.no-underline{
    text-decoration:none;
}

/* mute small items in labels and float to the right */
label small{
    font-size:0.8em;
    opacity:0.4;
    float:right;
}
/* mute slider labels */
.slider_limits{
    margin-top:1em;
    opacity:0.4;
}
/* prefix AD slider labels with dollar signs */
.slider_limits span:before{
    content:"$";
}

/* style the footer nav */
nav{
    border-top:3px solid var(--primary);
    height:3px;
    padding-top:1em; 
}

.checkbox{
    --form-control-color: var(--primary);
    /* line-height: 0.9; */
    display: inline-block;
} 
.checkbox .questionprompt, .checkbox .productField{
    max-width: calc(100% - 2em);
    display: inline-block;
}

.checkbox input{
    webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1.5px solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    margin-right:10px;
    margin-top: 0.3em;
}
.checkbox input:checked::before {
    transform: scale(1);
}
.checkbox input::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
    background-color: CanvasText;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.text-accent{
    color:var(--primary);
}

.leaf-total{
    position: absolute;
    right: 3em;
    text-align: right;
}
.card-date{
    text-transform:uppercase;
    opacity:0.5;
    font-size:0.8em;
    margin-bottom:0;
}

ol li, ul li{
    margin:0 0 1em ;
}

/* progress bar */
.strm-progress-bar{
    display: block;
    height: 5px;
    border: 1px solid var(--primary);
    border-radius:2px;
    margin-bottom: 0.6em;
    margin-top: -4px;
}
.strm-progress-marker{
    display: block;
    height: 4px;
    background: var(--primary);
    width:0;
}

.loader{
    width: 48px;
    height: 48px;
    border: 5px solid;
    border-color: var(--primary) transparent;
    border-radius: 50%;
    display: inline-block;
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
}
.big-checkboxes .checkbox input{
    width: 2.25em;
    height: 2.25em;
    border: 2px solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-.55em);
    margin-right:10px;
    margin-top: .3em;
}

.big-checkboxes .checkbox input::before {
    box-shadow: inset 6em 6em var(--primary);
    width: 1.5em;
    height:1.5em;
}

.bulleted-list-item .none:before{
    content: ""; 
    background:var(--primary);
    display:inline-block;
    width:0.5em;
    height:0.5em;
    border-radius:50%;
    margin:5px 0.5em 2px 0;
}

.bulleted-list-item{
    margin:0.2em 1em;
    text-indent:-0.5em;
}

.inline-list{
    display:inline-block;
    padding:0 1px;
}


 @keyframes rotation {
    0% { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
 }
  
  
@media (max-width: 576px) {
    /* specific instruction for xs devices */
    .btn-primary, .btn-secondary{width:100%;}
    .met-logo{width:90px;}
    .logo-image{width: 240px!important;}
    footer .text-muted{font-size:12px;}
    footer .bi{font-size:18px;}

    #SchoolPicker .logo-image{
        max-width:8em !important;
        width:8em !important;
    }
}
