:root {
    --white: #fff;
    --black: #000;
    --grey-100: #f2f2f2;
    --grey-200: #d2d2d2;
    --grey-300: #d3d5e1;
    --grey-500: #8e8e8e;
    --grey-700: #657595;
    --grey-900: #40445e;
    --red: #ba0b00;
    --navyBlue: #00163b;
    --sapphire: #122eb1;
    --java: #16d0c5;
    --niagara: #0ab0a7;
    --titan: #e5eaff;
    --sand: #f6eaa9;
    --font-default: "Barlow", sans-serif;
    --font-heading: "Big Shoulders Display", sans-serif;
    --font-alt: "Big Shoulders Text", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    font-size: 62.5%;
}

body {
    background: var(--white);
    color: var(--navyBlue);
    font-family: var(--font-default);
    font-size: 1.8rem;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p {
    margin: 0 0 2rem;
    color: var(--grey-900);
}

a {
    color: var(--sapphire);
}

h1 {
    margin: 2rem 0;
    font-family: var(--font-heading);
    font-size: 5.2rem;
    line-height: 1;
    text-transform: uppercase;

    @media (min-width: 712px) {
        font-size: 8rem;
    }
}

h2 {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    line-height: 1;
    font-weight: 400;
    margin: 0 0 2rem;
}

label,
legend {
    display: block;
    color: var(--grey-900);
    font-weight: 600;
}

input {
    padding: 1rem;
    border: 1px solid var(--grey-900);
}

fieldset {
    border: 0;
    padding: 0;
    margin: 4rem 0 2rem;
}

    fieldset legend {
        margin-bottom: 2rem;
    }

    fieldset label {
        margin-bottom: 2rem;
        font-weight: 400;
        display: flex;
        align-items: center;
    }

    fieldset input[type="radio"] {
        margin-right: 1.2rem;
        width: 2.4rem;
        height: 2.4rem;
    }

.form-control.form-control--checkbox:not(:last-of-type) {
    margin-bottom: -1rem;
}

.form-control--checkbox input[type="checkbox"] {
    margin-right: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
}

.form-control--checkbox label {
    font-weight: 400;
    display: flex;
    align-items: center;
}

    .form-control--checkbox label a {
        display: inline-block;
        margin: 0 0.5rem;
    }

hr {
    border: 0;
    border-top: 1px solid var(--grey-300);
    margin: 4rem 0;
}

.infobox {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 6.4rem;
    margin: 2rem 0 0;
    padding: 1.2rem 4rem 1.2rem 6.5rem;
    background: var(--titan);
    font-weight: 600;
}

    .infobox:before {
        content: "";
        display: block;
        width: 4.4rem;
        height: 4.4rem;
        background-color: var(--white);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none' viewBox='0 0 24 25'%3E%3Cpath fill='%2300163B' fill-rule='evenodd' d='M13 5.817h-2v2h2v-2Zm-1.5 4H10v1h1.5v9H14v-1h-1.5v-9h-1Z' clip-rule='evenodd'/%3E%3C/svg%3E");
        background-position: 50% 50%;
        background-repeat: no-repeat;
        border-radius: 50%;
        position: absolute;
        left: 1rem;
        top: 1rem;
    }

    .infobox.warning {
        background: var(--sand);
    }

        .infobox.warning:before {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none' viewBox='0 0 24 25'%3E%3Cpath fill='%23DD9415' fill-rule='evenodd' d='M13 4.81665H12V15.8167H13V4.81665ZM13.5 17.8167H11.5V19.8167H13.5V17.8167Z' clip-rule='evenodd'/%3E%3C/svg%3E");
        }

.form-control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 4rem 0;
}

    .form-control p {
        margin: 0;
    }

.error {
    display: none;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--red);
}

.error--standalone {
    margin: -2rem 0 4rem;
}

.error.show {
    display: block;
}

.form-control.invalid .error {
    display: block;
}

.form-control.invalid input {
    border-color: var(--red);
}

.subtitle {
    margin: 0;
    font-family: var(--font-default);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.button-text-icon {
    position: relative;
    display: inline-block;
    background: none;
    color: var(--navyBlue);
    text-decoration: none;
    border: 0;
    padding: 1.2rem 0;
    font-family: var(--font-alt);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

p + .button-text-icon {
    margin-top: 4rem;
}

.button-text-icon:after {
    content: "";
    display: block;
    width: 4.4rem;
    height: 4.4rem;
    background-color: var(--java);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none' viewBox='0 0 24 25'%3E%3Cpath fill='%2300163B' fill-rule='evenodd' d='m11.995 19.817-.707-.707 5.793-5.793H5v-1h12.082l-5.794-5.793.707-.707 6.294 6.293.707.706v.001l.004.004-.707.707-.004-.004-6.294 6.293Z' clip-rule='evenodd'/%3E%3C/svg%3E%0A");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    right: -5.4rem;
    top: 0;
}

.button {
    position: relative;
    display: block;
    max-width: 30rem;
    text-align: center;
    padding: 1rem 4.8rem 1rem 2.4rem;
    background: var(--java);
    color: var(--navyBlue);
    border: 0;
    border-radius: 2.4rem;
    font-family: var(--font-alt);
    font-size: 1.8rem;
    line-height: 1.33;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

    .button:after {
        content: "";
        display: block;
        width: 2.4rem;
        height: 2.5rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none' viewBox='0 0 24 25'%3E%3Cpath fill='%2300163B' fill-rule='evenodd' d='m11.995 19.817-.707-.707 5.793-5.793H5v-1h12.082l-5.794-5.793.707-.707 6.294 6.293.707.706v.001l.004.004-.707.707-.004-.004-6.294 6.293Z' clip-rule='evenodd'/%3E%3C/svg%3E%0A");
        background-position: 50% 50%;
        background-repeat: no-repeat;
        border-radius: 50%;
        position: absolute;
        right: 1.4rem;
        top: 0.8rem;
    }

    .button[data-submitting="true"] {
        padding-left: 4.8rem;
        padding-right: 2.4rem;
    }

        .button[data-submitting="true"]:after {
            width: 24px;
            height: 24px;
            left: 1.4rem;
            right: auto;
            background: conic-gradient(from 0deg at 50% 50%, rgba(0, 22, 59, 0) 0deg, #00163B 360deg);
            border-radius: 12px;
            animation: spin 1s linear infinite;
        }

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


.pill-button--white,
.pill-button--java {
    display: block;
    max-width: 30rem;
    text-align: center;
    padding: 1rem 2.4rem;
    background: var(--white);
    color: var(--navyBlue);
    border-radius: 2.4rem;
    font-family: var(--font-alt);
    font-size: 1.8rem;
    line-height: 1.33;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}

.pill-button--java {
    background: var(--java);
}

    .pill-button--java:hover {
        background: var(--niagara);
    }

.back-button {
    position: relative;
    background: none;
    border: 0;
    font-family: var(--font-alt);
    font-size: 1.8rem;
    line-height: 1.33;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    padding: 0.5rem 1rem 0.5rem 3.2rem;
}

    .back-button:after {
        content: "";
        display: block;
        width: 2.4rem;
        height: 2.5rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' fill='none' viewBox='0 0 24 25'%3E%3Cpath fill='%2300163B' fill-rule='evenodd' d='M12.0046 5.81665L12.7117 6.52376L6.91879 12.3167H19V13.3167H6.91807L12.7117 19.1103L12.0046 19.8174L5.71133 13.5241L5.71075 13.5247L5.00364 12.8176L5.00422 12.817L5 12.8128L5.70711 12.1057L5.71133 12.1099L12.0046 5.81665Z' clip-rule='evenodd'/%3E%3C/svg%3E%0A");
        background-position: 50% 50%;
        background-repeat: no-repeat;
        position: absolute;
        left: 0rem;
        top: 0.4rem;
    }

    .back-button + hr {
        margin: 2rem 0 4rem;
    }

.section {
    margin: 0 auto;
    padding: 0 2rem;
    max-width: 140rem;

    @media (min-width: 712px) {
        padding: 0 4rem;
    }
}

.section-inner {
    @media (min-width: 712px) {
        border-left: 1px solid var(--grey-300);
        border-right: 1px solid var(--grey-300);
    }
}

.header {
    border-bottom: 1px solid var(--grey-300);
}

.logo {
    display: block;
    margin: -0.5rem auto -1.2rem;
    width: 7rem;
    background: var(--white);
    border: 0.5rem solid var(--white);
}

.intro {
    padding: 8rem 0 4rem;

    @media (min-width: 712px) {
        padding: 12rem 4rem;
    }

    @media (min-width: 980px) {
        display: flex;
        gap: 10rem;
    }

    @media (min-width: 1200px) {
        padding: 12rem;
    }
}

.intro__content {
    max-width: 80rem;
}

    .intro__content p:last-of-type {
        @media (min-width: 980px) {
            margin-bottom: 0;
        }
    }

    .intro__content ul,
    .intro__content ol {
        margin: 0 0 2rem;
        padding: 0 0 0 2.2rem;
    }

.intro__register {
    padding: 4rem 2rem;
    background: var(--grey-900);
    color: var(--white);
    flex: 0 0 34rem;

    @media (min-width: 712px) {
        padding: 4rem;
    }
}

    .intro__register p {
        color: var(--white);
        margin: 0 0 3rem;
    }

.form {
    max-width: 68rem;
    margin: -2rem auto 0;
    padding: 2rem 0 0;

    @media (min-width: 712px) {
        padding: 2rem 4rem 8rem;
    }
}

.contact-footer {
    position: relative;
    background: var(--grey-700);
    color: var(--white);
}

    .contact-footer:before {
        content: "";
        display: block;
        width: 1px;
        height: 4rem;
        background-color: var(--white);
        position: absolute;
        top: 0;
        left: 50%;
    }

    .contact-footer p {
        color: var(--white);
        font-size: 1.4rem;
        margin: 0 0 1rem;
    }

    .contact-footer a {
        color: var(--white);
        font-weight: 600;
    }

    .contact-footer h3 {
        font-family: var(--font-alt);
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1.33;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin: 0;
    }

.contact-footer__content {
    min-height: 30rem;
    padding: 8rem 0 2rem;
}

@media (min-width: 712px) {
    .contact-footer__content {
        padding: 8rem 4rem 2rem;
    }
}

@media (min-width: 1200px) {
    .contact-footer__content {
        padding: 8rem 12rem 4rem;
    }
}

@media (min-width: 712px) {
    .contact-footer__columns {
        display: flex;
    }
}

.contact-footer__column {
    margin: 0 0 4rem;
}

@media (min-width: 712px) {
    .contact-footer__column {
        flex: 1 1 25%;
    }

    .contact-footer__column--social {
        flex-basis: 50%;
    }
}

.contact-footer__column-text {
    margin: 1rem 0 0;
}

@media (min-width: 712px) {
    .contact-footer__column-text {
        padding-right: 1.6rem;
        border-top: 1px solid var(--white);
        padding-top: 2rem;
        margin-top: 2rem;
    }
}

.social-links {
    list-style-type: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
}

    .social-links li {
        margin: 0 1rem 0 0;
    }

@media (min-width: 712px) {
    .social-links li {
        margin: 0 2rem 0 0;
    }
}

.social-links li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.4rem;
    height: 4.4rem;
    background-color: var(--white);
    border-radius: 50%;
    outline: 0;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

    .social-links li a:focus-visible {
        border-color: var(--navyBlue);
        box-shadow: 0 0 0.4rem var(--white);
    }

    .social-links li a:hover {
        background: var(--java);
        border-color: var(--java);
        box-shadow: none;
    }

    .social-links li a svg {
        width: 2.4rem;
    }

    .social-links li a path {
        fill: var(--navyBlue);
    }

.footer a,
.footer span {
    font-size: 1.4rem;
    color: var(--navyBlue);
    font-weight: 600;
    text-decoration: none;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: "";
    margin: 2rem 0;
}

@media (min-width: 712px) {
    .footer ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4rem;
        margin: 1rem 0;
    }
}

.footer li {
    margin: 1rem 0;
}

.footer a:hover {
    text-decoration: underline;
}

.footer h3 {
    font-family: var(--font-alt);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.footer nav {
    border-bottom: 1px solid var(--grey-300);
}

    .footer nav:last-of-type {
        border-bottom: 0;
    }

.footer__content {
    padding: 4rem 0 2rem;
}

@media (min-width: 712px) {
    .footer__content {
        padding: 4rem 4rem 2rem;
    }
}

@media (min-width: 1200px) {
    .footer__content {
        padding: 4rem 12rem 2rem;
    }
}

.validation-summary-errors {
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--red);
}
