/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

* {
    --light-teal: #CFDCDE;
    --medium-teal: #3E7E88;
    --dark-teal: #14374C;
    --light-grey: #F1F1F0;
    --grey: #D0CFD0;
}

.scw-ce {
    /*min-width: 1200px;*/
    max-width: none !important;
    position: relative;
}

.sce-forcefield {
    background: rgba(255, 255, 255, 0.5);
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(1px);

    &.active {
        display: flex;
    }

    &:after {
        background: #FFF;
        color: #000;
        content: "Loading...";
        display: block;
        font-size: 14px;
        padding: 4px 12px;
        position: absolute;
        text-transform: uppercase;
        z-index: 1;
        backdrop-filter: blur(1px);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
}

.scw-ce h2 {
    margin: 40px 0 10px;
}

.sce-form {
    color: #000;
    padding: 10px;
}

.sce-form .field {
    display: flex;
    font-size: 14px;
    justify-content: space-around;
    padding: 20px 0;
    position: relative;
    align-items: center;
    text-align: center;
}
.sce-form .field i.fa-xmark {
    color: #F00;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
}
/* hide xmark in first two fields */
.sce-form .field:nth-of-type(1) i.fa-xmark {
    display: none;
}

.sce-form .field.button-row {
    justify-content: center;
}

.sce-form .field select {
    border: var(--grey) 1px solid;
    flex-grow: 2;
    font-size: 14px;
    padding: 8px;
    width: 100%;
}
.sce-form .field select.year-dropdown {
    flex-grow: 1;
    width: 50%;
}
.sce-form .field button {
    background: var(--medium-teal);
    border: none !important;
    border-radius: 0 !important;
    color: #FFF;
    font-size: 14px;
    margin: 0 10px;
    padding: 8px 32px;
}
.sce-form .field button[type=submit] {
    background: var(--dark-teal);
    color: #FFF;
}
.sce-form .field .line {
    background: var(--dark-teal);
    display: inline-block;
    height: 30px;
    margin: 0 15px;
    width: 1px;
}
.sce-form .field .or {
    color: var(--dark-teal);
    font-weight: 700;
    margin: 0 10px;
    text-transform: uppercase;
}

.sce-schools {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    padding: 20px 0;
}

.sce-school {
    background-color: var(--light-grey);
    padding: 10px;
    text-align: center;
    width: calc(25% - 40px);
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.sce-school .field {
    padding: 8px 12px;
}
.sce-school .field.most-cost-effective {
    background-color: var(--light-teal);
    border: var(--medium-teal) 1px solid;
}
.sce-school .field.most-cost-effective:after {
    content: "Most Cost Effective Option";
    color: var(--medium-teal);
    display: block;
    font-size: 12px;
    font-style: italic;
    line-height: 14px;
    margin-top: 5px;
}
.sce-school .field label {
    color: var(--dark-teal);
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 17px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sce-school .field .value {
    color: #000;
    font-size: 15px;
    line-height: 19px;
}
.sce-school .field.most-cost-effective .value {
    color: var(--medium-teal);
}

/* mobile   */
@media (max-width: 768px) {
    .sce-schools {
        flex-direction: row;
    }

    .sce-school {
        width: 100%;
    }

    .sce-form .field {
        border-bottom: var(--grey) 1px solid;
        flex-direction: column;
    }
    .sce-form .field:last-child {
        border-bottom: none;
    }
    .sce-form .field .line {
        display: none;
    }

    .sce-form .field select {
        width: 100%;
    }

    .sce-form .field select.year-dropdown {
        margin-bottom: 10px;
        width: 100%;
    }

    .sce-form .field button {
        margin-bottom: 10px;
        width: 100%;
    }
}