@font-face {
    font-family:"Gill Sans Light";
    src:url("https://www.thomas-sanderson.co.uk/resources/nap-calculator/assets/fonts/GillSans-Light.woff") format("woff");
    font-style:normal;font-weight:300;
}

@font-face {
    font-family:"Gill Sans";
    src:,url("https://www.thomas-sanderson.co.uk/resources/nap-calculator/assets/fonts/GillSans.woff") format("woff");
    font-style:normal;font-weight:400;
}

@font-face {
    font-family:"Gill Sans SemiBold";
    src:url("https://www.thomas-sanderson.co.uk/resources/nap-calculator/assets/fonts/GillSans-SemiBold.woff") format("woff");
    font-style:normal;font-weight:600;
}

body {
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    width: 100%;
}

form {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    display: inline-flex;
    flex-wrap: wrap;
}

@media only screen and (max-width: 800px) {
    form {
        flex-direction: column;
    }
    label, input {
        width: 100%;
    }
}

label {
    display: block;
    margin-bottom: 10px;
    color: #0B0B0C;
    font-size: 18px;
    font-family: Gill Sans;
    font-weight: 400;
    line-height: 28px;
    word-wrap: break-word;
}

input[type="number"] {
    width: 100%;
    padding: 20px 30px;
    margin-bottom: 15px;
    color: #0B0B0C;
    border: 0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Gill Sans;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
}


input[type=number]::-webkit-inner-spin-button,
      input[type=number]::-webkit-outer-spin-button {
        opacity: 1;
      }

      input[type=number]::-webkit-outer-spin-button, 
      input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: inner-spin-button !important;
        width: 30px;
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        padding: 2px;
      }

.field-wrapper {
    width: 28%;
}

@media only screen and (max-width: 800px) {
    .field-wrapper {
        width: 100%;
    }
}

#resultContainer {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

button {
    background-color: #c4ff71;
    color: #0B0B0C;
    font-size: 16px;
    font-family: Gill Sans;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 20px 80px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


#resultContainer {
    width: 100%;
    background: #9FB4B7;
    margin: 0 auto;
}

#resultContainer button {
    max-width: 750px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.button-content-wrap {
    padding: 0px 40px;
    display: flex;
    align-content: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    background: #9FB4B7;
}

.result-message {
    overflow: hidden;
    height: 40vh;
    padding: 100px 40px;
    display: flex;
    align-content: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    background: url('https://www.thomas-sanderson.co.uk/resources/nap-calculator/assets/img/result-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.result-message h2 {
    padding: 30px 60px;
    font-size: 32px;
    background: #ffffff;
    text-align: center;
    line-height: 1.7em;
}
@media only screen and (max-width: 800px) {

    .result-message {
        height: fit-content
    }
    
    .result-message h2 {
        padding: 30px 30px;
        font-size: 25px;
        line-height: 1.4em;
    }
}

.result-content {
    overflow: hidden;
    padding: 100px 40px;
    display: flex;
    align-content: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    background: #9FB4B7;
}

.content-block {
    max-width: 750px;
    margin: 0 auto;
    gap: 30px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    flex-direction: column;
}

.content-block h2 {
    text-align: left;
    font-size: 40px;
}

@media only screen and (max-width: 800px) {
    .content-block h2 {
        font-size: 25px;
    }
}

.side-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.side-block img {
    width: 200px;
}

.content-details {
    width: 60%;
}

@media only screen and (max-width: 800px) {
    .side-block {
        flex-wrap: wrap;
    }
    .side-block img {
        width: 100%;
    }
    .content-details {
        width: 100%;
    }
}

.result {
    display: none;
}
.content {
    margin-top: 20px;
}

.hero-wrapper {
    display: flex;
    padding: 100px 40px;
    align-content: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    background: url('https://www.thomas-sanderson.co.uk/resources/nap-calculator/assets/img/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

@media only screen and (max-width: 800px) {
    .hero-wrapper {
        height: fit-content;
    }
}

.hero {
    max-width: 750px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.hero-block{
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 0px;
    display: flex;
}

.hero-block h2 {
    align-self: stretch; 
    color: #0B0B0C; 
    font-size: 20px; 
    font-family: Gill Sans;
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    word-wrap: break-word;
}

.hero-block p {
    align-self: stretch; 
    color: #0B0B0C; 
    font-size: 16px; 
    font-family: Gill Sans; 
    font-weight: 400; 
    line-height: 28px; 
    word-wrap: break-word;
}

.hero-block form {
    margin-top: 30px;
    align-self: stretch; 
    justify-content: flex-start; 
    align-items: center; 
    gap: 40px;
    display: inline-flex;
}

.footer {
    height: 100%; 
    display: flex;
    min-height: 20vh;
    padding: 50px 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: #9FB4B7;
} 


h1 {
    color: #0B0B0C;
    font-size: 40px;
    font-family: Gill Sans;
    font-weight: 400;
    letter-spacing: 8px;
    word-wrap: break-word;
}

p {
    color: #0B0B0C;
    font-size: 16px;
    font-family: Gill Sans;
    font-weight: 400;
    line-height: 28px;
    word-wrap: break-word;
}

h2 {
    color: #0B0B0C;
    font-size: 20px;
    font-family: Gill Sans;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    word-wrap: break-word;
}

.small-h2 {
    font-size: 16px;
}

ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style-type: none;
    padding-inline-start: 0px;
}

.footer__share h2 {
    text-align: center;
    padding-bottom: 10px;
}
