body,
html {
    margin: 0;
    padding: 0;
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 16px;
}

main {
    position: relative;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    background-color: #111;
    width: 100%;
}

header nav {
    position: relative;
    width: 100%;
    /* max-width: calc(1024px - 2rem); */
    /* height: calc(30vw - 1rem); */
    padding-bottom: 26%;

    background-image: url(../img/ev5-banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

header nav p {
    position: absolute;
    display: inline-block;
    margin: 0.5rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

header nav img {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 10%;
    max-width: 300px;
}

header nav ul {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    margin: 0;
}

header nav ul li {
    list-style: none;
    margin: 0 0.5rem;
}

header nav ul li a {
    padding: 1rem;
    background-color: rgb(0 0 0 /0.5);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

section {
    position: relative;
    margin: 0 auto;
    width: calc(100% - 2rem);
    max-width: calc(800px - 2rem);
    padding: 0 1rem;
}

section h1 {
    font-size: 2rem;
}

section div {
    padding: 0 1rem;
}

/* section div:nth-of-type(1) {
    border-bottom: solid 2px #aaa;
} */

section div.thanks {
    padding: 2rem;
    border-bottom: none;
    text-align: center;
}

section div.thanks h1 {
    font-size: 3rem;
}

section form {
    /* padding: 1rem; */
}

section form .g-recaptcha {
    margin-left: auto;
}

section form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    width: calc(100% - (1rem + 2px));
    font-size: 1rem;
    font-weight: 700;
}

section form input,
section form select {
    padding: 0.5rem;
    width: calc(100% - (1rem + 2px));
    font-size: 1rem;
    border-radius: 0;
    border: solid 1px #aaa;
}

section form span {
    color: #e63d3d;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

section form > span {
    margin-top: 2rem;
}

section form p {
    margin: 2rem 0;
    text-align: justify;
}

section form .newsletter {
    margin: 1rem 0;
    padding: 0;
    position: relative;
    border: none;
}

section form .newsletter input[type="checkbox"] {
    /* display: none; */
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
}

section form .newsletter label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;

    cursor: pointer;
}

section form .newsletter label span {
    text-align: justify;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
    color: #333;
    width: calc(100% - (30px + 0.5rem));
}

section form .newsletter label:before {
    content: "";
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    border: solid 1px #aaa;
}

section form .newsletter input:checked + label:before {
    background-image: url(../img/check.png);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #333;
    border-color: #333;
}

section form .submit {
    display: flex;
    margin: 1.5rem 0 2rem;
    padding: 0;
    justify-content: space-between;
    border: none;
    width: 100%;
}

/* section form .submit > div {
    padding: 1rem;
    border: none;
    background: #eee;
} */

section form .submit button {
    padding: 1rem 2rem;
    cursor: pointer;
    border-radius: 0;
    border: none;
    background-color: #111;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
}

section div.thanks form .submit button {
    margin: 0 auto;
}
