*,
*::before,
*::after {
  box-sizing: border-box;
}

html{
    margin-top: 80px;
}

#contact .container{
    min-height: 90vh;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
    padding-top: 30px;
}

#contact .section-title{
    margin:0 auto;
    text-align: center;
}

#contact .text-area{
    margin-bottom: 0;
}

#contact .text-area a{
    color: gray;
}

#contact .text-area a:hover{
    color: orange;
}

#contact .section-form{    
    margin: 0;
    padding: 0;
    width: 100%;
}

#contact .section-form form{
    background-color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0;
}

#contact .section-form form .input-container{
    margin: 0;
    margin-bottom: 20px;
}

#contact .section-form input,
#contact .section-form select,
#contact .section-form textarea{
    border: 1px solid lightgray;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    box-sizing: border-box;
    color: gray;
}

#contact .section-form textarea{
    resize: vertical;
    height: 20vh;
}

#contact .section-form .form-submit{
    text-align: center;
}

#contact .section-form .form-submit p{
    text-align: left;
    font-size: 1.8rem;
}

#contact .section-form input[type=submit]{
    cursor: pointer;
    border: none;
    width: 40%;
    color: orange;
    background-color: white;
    border: 2px solid orange;
    font-weight: 400;
    margin-top: 30px;
    padding: 10px;
    transform: scale(1);
    transition: .3s ease;
    transition-property: transform background-color color;
    font-size: 3rem;
}

#contact .section-form input[type=submit]:hover{
    background-color: orange;
    color: white;
    transform: scale(1.2);
}

#contact .section-form option{
    font-size: 2rem;
    font-weight: 300;
}

#contact .section-form .form-error input,
#contact .section-form .form-error select,
#contact .section-form .form-error textarea{
    border: 2px crimson solid;
}

#contact .section-form .form-error::after{
    content: 'This field is required.';
    font-size: 1em;
    font-weight: 400;
    color: crimson;
    width: 100%;
    text-align: right;
    display: block;
}

#contact .section-form .email.form-error::after{
    content: 'This field is required. Email addresses must be valid and contain no spaces.';
}

#contact .section-form .message-sent{
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#contact .section-form .message-sent h1{
    font-size: 4em;
}

/* Media Query - TABLET - */

@media only screen and (min-width: 768px){

    html{
        margin-top: 100px;
    }

    #header .header.page{
        border: none;
    }

    #contact .section-title{
        margin-left: 0;
        margin-bottom: 30px;
        color: white;
    }

    .text-area{
        margin: 0 auto;
        max-width: 600px;
        border-radius: 0px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        border: none;
    }

    .text-area p{
        font-size: 2rem;
        line-height: 3rem;
    }

    #contact{
        /*background-image: linear-gradient(0deg, orange, rgb(255, 196, 0));*/
        background-image: url(../images/bg-cloud.jpg);
        background-size: cover;
        background-position: center;
        padding: 50px;
    }

    #contact .container{
        width: 100%;
        align-content: center;
    }

    #contact .section-form{
        padding: 50px;
        min-height: 80vh;
    }

    #contact .section-form form{
        margin: 0 auto;
        max-width: 600px;
        border-radius: 0px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

}

/* END of Media Query - TABLET - */



/* Media Query - DESKTOP - */

@media only screen and (min-width: 1200px){

    html{
        margin-top: 80px;
    }

    #header{
        border: none;
        background-color: white;
    }

    #header .brand-logo img{
        height: 80px;
    }

    #header .nav ul li{
        color: black;
    }

    #header .nav ul li a{
        color: black;
    }

    #header .nav ul li:last-child{
        display: block;
    }

    .section-title{
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }

}

/* End of Media Query - DESKTOP - */