:root {
    --color-darkest-blue: #122134;
    --color-dark-blue: #172940;
    --color-mid-blue: #3587b9;
    --color-light-blue: #63bef2;
    --color-lighter-blue: #9cd3f2;
    --color-light-gray: #f3f3f3;
    --color-darkest-gray: #848484;
    --color-dark-gray: #d5d5d5;
    --color-mid-gray: #e1e0e0;
    --color-warning: #a80000;
    --primary-font: "Montserrat", Arial, sans-serif;
    --rounded-corners: 10px;
    --box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    --section-margin-bottom-mobile: 1.5rem;
    --section-margin-bottom: 4rem;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

main a {
    color: var(--color-mid-blue);
    font-weight: bold;
    text-decoration: none;
}

    main a:hover,
    main a:focus {
        text-decoration: underline;
    }

button,
input[type="submit"] {
    cursor: pointer;
}

body {
    font-family: var(--primary-font);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Header Styles */

.menu-button {
    border: none;
    background-color: inherit;
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-mid-blue);
}

.nav-menu {
    visibility: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 250ms ease-in-out, opacity 250ms ease-in-out;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

    .nav-menu.show-menu {
        visibility: visible;
        max-height: inherit;
        opacity: 1;
    }

.top-bar {
    background-color: var(--color-dark-blue);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    justify-content: center;
    display: flex;
}

    .top-bar ul {
        list-style: none;
        display: none;
    }

    .top-bar li {
        border-right: 1px solid #fff;
    }

        .top-bar li:last-of-type {
            border-right: none;
        }

    .top-bar a {
        color: #fff;
        text-decoration: none;
        padding: 0 0.6rem;
    }

        .top-bar a:hover,
        .top-bar a:focus {
            color: #fff;
            text-decoration: underline;
        }

.header-logo {
    text-align: center;
    padding: 1rem;
}

    .header-logo img {
        width: 294px;
    }

.global-nav {
    background-color: var(--color-light-gray);
}

.global-nav {
    padding: 0.5rem;
}

.school-nav {
    padding: 1rem 0.5rem 0.5rem 0.5rem;
}

    .global-nav a,
    .school-nav a {
        color: #000;
        text-decoration: none;
    }

        .global-nav a:hover,
        .school-nav a:hover {
            text-decoration: underline;
        }

.subhead {
    position: relative;
    background-image: url("../img/subhead.jpg");
    background-size: 100%;
    background-position: center;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: bottom;
}

    .subhead h1 {
        border-radius: var(--rounded-corners) var(--rounded-corners) 0 0;
        background-color: #fff;
        margin: 0;
        align-self: end;
        padding: 0.5rem 0.5rem 0 0.5rem;
        font-size: 0.85rem;
        font-weight: 400;
        line-height: 1.7rem;
        text-transform: uppercase;
        text-align: center;
    }

        .subhead h1 span {
            font-size: clamp(1rem, 2.2rem, 6.2vw);
            font-weight: 300;
            text-transform: none;
            display: block;
        }
.page-heading {
    font-weight: normal;
    color: var(--color-dark-blue);
    text-align: center;
}
/* Content Styles */

.site-main__inner {
    max-width: 1190px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.required {
    color: var(--color-warning);
    font-weight: bold;
}

.site-main {
    background-color: #f3f3f3;
}

.intro h2 {
    background-color: var(--color-mid-blue);
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    border-radius: var(--rounded-corners);
    padding: 1.3rem;
    margin: 0 auto -1rem auto;
    width: 90%;
    z-index: 100;
    position: relative;
    display: block;
}

.intro__content {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    padding: 1rem 2rem;
}

    .intro__content ol {
        list-style: none;
        counter-reset: item;
        padding: 0;
    }

    .intro__content li {
        counter-increment: item;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
    }

        .intro__content li:before {
            margin-right: 10px;
            content: counter(item);
            background-color: var(--color-mid-blue);
            color: #fff;
            font-weight: bold;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            display: inline-block;
            flex: 0 0 40px;
        }

.form-section,
.aside-section {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    margin-bottom: var(--section-margin-bottom-mobile);
}

    .form-section .section-head,
    .aside-section .section-head {
        text-align: center;
        font-weight: 200;
        padding: 0.5rem 1rem;
    }

    .form-section .section-head {
        background-color: var(--color-dark-blue);
        color: #fff;
    }

    .aside-section .section-head {
        background-color: var(--color-dark-gray);
    }

.form-section__inner,
.aside-section__inner {
    padding: 1.5rem 1rem;
}

/* Form styles */

.form-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 1rem;
}

.form-item {
    margin-bottom: 1.5rem;
}

.form-option-block {
    margin: 5px 0;
}

.form-label {
    display: block;
}

input {
    border-radius: 5px;
    border: 1px solid var(--color-darkest-gray);
    font-size: 1.1rem;
}

    select,
    input[type="text"],
    input[type="email"],
    input[type="date"] {
        min-width: 275px;
        height: 40px;
        border-radius: 5px;
        border: 1px solid var(--color-darkest-gray);
    }

div.error-message {
    color: var(--color-warning);
    font-weight: 600;
    padding-top: .5rem;
}

.button-wrapper {
    text-align: center;
    margin-bottom: var(--section-margin-bottom-mobile);
}

.button {
    background-color: var(--color-dark-blue);
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: var(--rounded-corners);
    transition: background-color 0.15s;
    border: 0;
}

    .button:hover {
        background-color: var(--color-mid-blue);
    }

.thank-you-button-wrapper {
    margin: var(--section-margin-bottom) 0;
    text-align: center;
}

a.thank-you-button {
    font-weight: normal;
}

.conditional {
    display: none;
    /*color: red;
    background-color: var(--color-light-gray);
    margin: 2rem 0;
    padding: 1rem;*/
}

.show-conditional {
    display: block;
}

/* Footer Styles */

.site-footer {
    background-color: var(--color-dark-blue);
    color: #fff;
}

.copy-bar {
    background-color: var(--color-darkest-blue);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.pipe {
    padding: 0 0.5rem;
}

@media (min-width: 500px) {
    .intro h2 {
        font-size: 1.5rem;
    }

    .intro__content ol {
        font-size: 1.15rem;
    }
}

@media (min-width: 700px) {
    .header-logo {
        padding: 2rem 1rem;
    }

    .form-section .section-head,
    .aside-section .section-head {
        border-radius: var(--rounded-corners) var(--rounded-corners) 0 0;
    }

    .form-section,
    .aside-section,
    .intro__content {
        border-radius: var(--rounded-corners);
    }

    .site-header ul {
        display: flex;
    }

    .top-bar ul {
        display: inherit;
    }

    .subhead {
        height: 292px;
    }

        .subhead h1 {
            padding: 0.8rem 2rem 0 2rem;
        }

    .site-main__inner {
        padding: 2rem 1.5rem;
    }

    .form-section,
    .aside-section,
    .button-wrapper {
        margin-bottom: var(--section-margin-bottom);
    }

    .intro {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
    }

        .intro h2,
        .intro__content {
            grid-row: 1 / 2;
        }

        .intro h2 {
            text-align: right;
            margin: 0;
            width: inherit;
            z-index: 100;
            position: relative;
            grid-column: 1 / 4;
            align-self: center;
        }

    .intro__content {
        grid-column: 3 / -1;
        padding-left: 25%;
    }

    .form-section__inner,
    .aside-section__inner {
        padding: 1.5rem 2rem;
    }
}

@media (min-width: 780px) {
    .col-group {
        display: flex;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

@media (min-width: 830px) {
    .intro h2 {
        font-size: 2.2rem;
        line-height: 2.8rem;
    }

        .intro h2 span {
            display: block;
        }
}

@media (min-width: 1100px) {
    .menu-button {
        display: none;
    }

    .nav-menu {
        visibility: visible;
        max-height: inherit;
        opacity: 1;
        padding: 0.5rem 0;
        flex-direction: row;
        gap: 2.3rem;
    }
}

/* Footer */
.middot {
    padding: 0 0.4rem;
}

.social a:last-of-type {
    padding: 0 0 0 10px;
}

.email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.global-footer {
    background-color: $color__dark-blue;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1px 20px 0px 20px;
}

.global-footer,
.copy-bar {
    font-size: 0.9em;
}

.footer-logo {
    width: 150px;
    margin: 0 auto;
}

.global-footer-col {
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}

    .global-footer-col:last-of-type {
        border-bottom: none;
    }

    .global-footer-col .address-block {
        text-align: center;
        padding: 0 0 15px 0;
    }

        .global-footer-col .address-block span {
            display: block;
        }

        .global-footer-col .address-block:last-of-type {
            padding: 0;
        }

    .global-footer-col ul {
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .global-footer-col li {
        padding: 5px 0;
    }

    .global-footer-col a,
    .copy-bar a {
        color: #fff;
        text-decoration: none;
    }

        .global-footer-col a:hover,
        .copy-bar a:hover {
            text-decoration: underline;
        }

.copy-bar {
    background-color: #122134;
    color: #fff;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.copyright {
    display: flex;
    flex-direction: column;
}

span.pipe {
    margin: 0 10px;
    display: none;
}

@media only screen and (min-width: 670px) {
    .global-footer {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .global-footer-col {
        flex-grow: 1;
        padding: 20px 15px;
    }

        .global-footer-col:nth-child(4) {
            border-bottom: none;
        }

        .global-footer-col:first-of-type {
            flex-grow: 3;
        }

        .global-footer-col .address-block,
        .global-footer-col ul {
            text-align: left;
        }

    .copy-bar {
        flex-direction: row;
        justify-content: space-between;
    }

    .copyright {
        flex-direction: row;
    }

    span.pipe {
        display: block;
    }
}

@media only screen and (min-width: 802px) {
    .global-footer-col:last-of-type ul {
        text-align: center;
    }

    .global-footer-col:nth-child(4) {
        border-bottom: 1px solid #ccc;
    }
}

@media only screen and (min-width: 1126px) {
    .global-footer-col,
    .global-footer-col:nth-child(4) {
        border-bottom: none;
    }

        .global-footer-col:last-of-type ul {
            text-align: left;
        }
}
