:root {
    --white: #fff;
    --bg-off-white:  #FFF5EC;
    --green: #00A443;
    --green-dark: #00402A;
    --black: #000;
}

* {
    box-sizing: border-box;
    font-family: "Lato", sans-serif, serif;
    transition: all 0.3s ease;
}
html, body {
    overflow-x: hidden;
    margin: 0;
}
h1, h2, h3, .form-input label {
    color: var(--green-dark);
    margin: 0;
    font-weight: 800;
}
strong, .tc-body h2, .tc-body ol > li:before, .tc-body > ol:first-of-type > li {
    font-weight: 800;
}
h1 {
    font-size: 60px;
    line-height: 72px;
}
p, span, label, li {
    font-size: 22px;
    line-height: 32px;
    margin: 0;
    font-weight: 400;
}


/*header*/
header {
    background: var(--green);
    box-shadow: 0 3px 4px 3px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 120px;
    padding-right: 120px;
    height: 140px;
    gap: 5px;
}
header img {
    margin-top: 20px;
    margin-bottom: 20px;
}
.sp-logo {
    height: 86px;
    margin-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.rfl-logo {
    height: calc(100% - 40px);
    border-left: 1px solid var(--white);
    padding-left: 20px;
}
section a {
    color: var(--black);
    font-size: 20px;
    line-height: 32px;
    text-underline-offset: 3px
}

/*banner*/
.banner {
    display: flex;
    justify-content: space-between;
    height: 510px;
    background-color: var(--bg-off-white);
    padding-left: 120px;
    gap: 30px;
}
.banner h1 {
    align-self: center;
}
.banner img {
    height: 650px;
    width: auto;
}

/*body*/
.runners-need-logo {
    margin-left: -10px;
    margin-bottom: 30px;
    height: 100px;
}
.homepage-body {
    padding: 120px 360px 120px 240px;
}
.homepage-body h2 {
    font-size: 42px;
    line-height: 50px;
    margin-top: 55px;
    margin-bottom: 40px;
}
/*form*/
form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}
label {
    display: flex;
    gap: 24px;
    align-items: center;
}
.custom-tick input {
    appearance: none;
    margin: 0;
    padding: 0;
    width: 42px;
    height: 42px;
    border: 1px solid var(--green-dark);
    display: grid;
    place-content: center;
}
.custom-tick input[type="checkbox"]:checked::before {
    transform: scale(1);
}
.custom-tick input:before {
    content: "";
    width: 24px;
    height: 24px;
    transform: scale(0);
    transform-origin: center;
    transition: 120ms transform ease-in-out;
    background-color: var(--green);
}
.form-col-2 {
    display: flex;
    gap: 25px;
}
.form-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-input label {
    color: var(--green-dark);
    font-size: 28px;
    line-height: 56px;
}
.form-input input {
    width: 100%;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 300;
    border: 1px solid var(--green-dark);
}
.form-buttons-cnt {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.submit-button, .clear-button {
    padding: 12px 24px;
    border-radius: 4px;
    border: 1px solid var(--green-dark);
    font-size: 20px;
    line-height: 32px;
}
.submit-button {
    background-color: var(--green-dark);
    color: var(--white);
    cursor: pointer;
}
.submit-button:hover {
    background-color: var(--white);
    color: var(--green-dark);
}

.clear-button {
    background-color: var(--white);
    color: var(--green-dark);
    text-decoration: none;
}
.clear-button:hover {
    background-color: var(--green-dark);
    color: #fff;
}

/*thanks page*/
.thanks-body {
    padding: 120px;
    display: flex;
    gap: 50px;
    align-items: center;
}
.thanks-body img {
    width: 45%;
    height: fit-content;
}
.thanks-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 55%;
}

/*terms & conditions page*/
.tc-banner {
    background-color: var(--bg-off-white);
    padding: 100px 120px;
}
.tc-body {
    padding: 80px 360px 80px 240px;
}
.tc-body h2 {
    color: var(--black);
    font-size: 22px;
    line-height: 32px;
}
/* First ul at the top */
.tc-body ul {
    padding-left: 0;
    list-style-type: none;
}
/* Ol numbering */
.tc-body ol {
    list-style: none;
    counter-reset: cupcake;
    padding-left: 0;
}
.tc-body ol > li {
    counter-increment: cupcake;
}
.tc-body ol > li:before {
    content: counters(cupcake, ".") ". ";
}
.tc-body > ol > li {
    margin: 30px 0;
}
/* Format as (a), (b), (c), etc for the third-level ordered lists */
.tc-body ol ol ol {
    counter-reset: subcupcake;
}
.tc-body ol ol ol > li {
    counter-increment: subcupcake;
}
.tc-body ol ol ol > li:before {
    content: "(" counter(subcupcake, lower-alpha) ") ";
}


/*footer*/
footer {
    background-color: var(--green);
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px 120px;
}
.tc-footer {
    justify-content: flex-end;
    padding: 30px 120px;
}
footer img {
    height: 500px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
footer h2, footer h3, footer p, footer a, footer span {
    color: var(--white);
    font-weight: 800;
}
footer h2, footer h3 {
    font-size: 60px;
    line-height: 72px;
    margin: 0;
}
.sm-links {
    display: flex;
    gap: 30px;
}
.sm-link {
    display: flex;
    flex-direction: column;
    width: fit-content;
    gap: 15px;
    align-items: center;
}
footer a, footer a:hover {
    text-decoration: none;
    color: var(--white);
}
.sm-link img {
    width: 65px;
    height: 65px;
}
.sm-link:hover {
    gap: 13px;
}
.sm-link:hover img {
    width: 67px;
    height: 67px;
}

@media (max-width: 1200px) {
    header {
        padding-left: 90px;
        padding-right: 90px;
    }

    .banner {
        height: 450px;
        padding-left: 90px;
        gap: 20px;
    }
    h1, footer h2, footer h3 {
        font-size: 50px;
        line-height: 60px;
    }
    .banner img {
       height: 550px;
   }

    .homepage-body {
        padding: 110px 250px 110px 170px;
    }
    .tc-body {
        padding: 70px 250px 70px 170px;
    }
    .thanks-body {
        padding: 110px 90px;
    }

    footer {
        padding: 50px 90px;
    }

    .tc-banner {
        padding: 70px 90px;
    }
    .tc-footer {
        padding: 25px 90px;
    }
}

@media (max-width: 992px) {
    header {
        height: 120px;
        padding-left: 60px;
        padding-right: 60px;
    }
    .sp-logo {
        height: 70px;
    }

    .banner {
        height: 350px;
        padding-left: 60px;
    }
    h1, footer h2, footer h3 {
        font-size: 42px;
        line-height: 50px;
    }
    .banner img {
        height: 400px;
    }

    .homepage-body {
        padding: 100px 170px 100px 120px;
    }
    .tc-body {
        padding: 60px 170px 60px 120px;
    }
    .thanks-body {
        padding: 100px 60px;
    }

    .tc-banner {
        padding: 70px 60px;
    }

    footer {
        padding: 40px 60px;
    }
    .tc-footer {
        padding: 20px 60px;
    }
    footer img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    header {
        height: 100px;
        padding-left: 50px;
        padding-right: 50px;
    }
    .sp-logo {
        height: 60px;
    }

    .banner {
        height: 300px;
        padding-left: 30px;
    }
    .banner img {
        height: 250px;
    }

    .homepage-body {
        padding: 70px 100px 70px 50px;
    }
    .tc-body {
        padding: 50px 100px 50px 50px;
    }
    .thanks-body {
        padding: 80px 50px;
    }

    .runners-need-logo {
        height: 80px;
    }
    .homepage-body h2 {
        font-size: 32px;
        line-height: 38px;
    }

    .tc-banner {
        padding: 70px 50px;
    }

    footer {
        padding: 30px 50px;
        flex-direction: column-reverse;
    }
    .tc-footer {
        padding: 15px 50px;
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    header {
        height: 80px;
        justify-content: center;
        padding-left: 30px;
        padding-right: 30px;
    }
    header img {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .sp-logo {
        height: 55px;
    }
    .rfl-logo {
        height: calc(100% - 30px);
    }

    .banner {
        height: fit-content;
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 20px;
        padding-bottom: 30px;
    }
    .banner img {
        height: 300px;
    }

    .homepage-body {
        padding: 70px 30px;
    }
    .tc-body {
        padding: 50px 30px;
    }

    .form-col-2 {
        flex-direction: column;
    }

    .thanks-body {
        padding: 50px 30px;
        flex-direction: column;
    }
    .thanks-text, .thanks-body img {
        width: 100%;
    }

    .tc-banner {
        padding: 70px 30px;
    }

    footer {
        padding: 40px 30px;
    }
    .tc-footer {
        padding: 20px 30px;
    }
}


@font-face {
    font-family: "Lato";
    src: url("/fonts/Lato-Bold.woff2") format("woff2"), url("/fonts/Lato-Bold.ttf") format("ttf");
    font-display: auto;
    font-style: normal;
    font-weight: 800;
    font-stretch: normal;
}
@font-face {
    font-family: "Lato";
    src: url("/fonts/Lato-Regular.woff2") format("woff2"), url("/fonts/Lato-Regular.ttf") format("ttf");
    font-display: auto;
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
}
@font-face {
    font-family: "Lato";
    src: url("/fonts/Lato-Light.woff2") format("woff2"), url("/fonts/Lato-Light.ttf") format("ttf");
    font-display: auto;
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
}

