/***********************************************************************
 *  Basic setup
 **********************************************************************/
 * {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

html {
    background-color: #000217;
    color: #FFFFFF;
    font-family: "Montserrat";
    font-size: 12px;
    font-weight: bold;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

:root {
    --red: #f9302b;
}

/***********************************************************************
 *  Header
 **********************************************************************/
.logo {
    margin-top: 98px;
    margin-left: 140px;
    width: 49.99px;
    height: 56px;
}

.cancel {
    float: right;
    margin-top: 99px; 
    margin-right: 140px;
    width: 34px;
    height: 34px;
}

h1,
h2 {
    font-weight: bold;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
}

h1 {
    font-size: 86px;
}

h2 {
    color: #85879F;
    font-size: 26px;
    margin-top: 20px;
}

/***********************************************************************
 *  Form
 **********************************************************************/
form {
    width: 35%;
    margin: 60px auto 20px;
    text-align: center;
}

input[type=submit] {
    display: inline-block;
    padding: 18px 75px;
    color: white; 
    font-size: 17px;
    font-weight: 600;
    background-color: var(--red);
    border: 3px solid var(--red);
    border-radius: 0px 32px;  
    margin-top: 36px;
    margin-bottom: 24px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;   
    transition: box-shadow 0.5s;
}

input[type=submit]:hover, 
input[type=submit]:active {
    box-shadow: 0px 0px 20px var(--red);
}

.name,
.email {
    background-color: #0C0E22;
    border: 0px;
    width: 100%;
    height: 56px;
    margin-top: 16px;
    margin-bottom: 25px;
    color: #FFFFFF;
    font-size: 18px;
    font-family: "Montserrat";
    text-align: left;
    padding: 0px 20px;
    outline: none;
}

.email {
    border-radius: 0px 32px 0px 0px; 
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;   
}

select:invalid,
select option[value=""] {
  color: #85879F;
}

.form--p {
    color: #85879F;
    text-transform: uppercase;
    text-align: left;
}

.name:-webkit-autofill,
.name:-webkit-autofill:focus,
.name:-webkit-autofill:active,
.name:-webkit-autofill:hover,
.name:-webkit-autofill:link,
.email:-webkit-autofill:focus,
.email:-webkit-autofill:active,
.message:-webkit-autofill:focus {
    transition-delay: 99999999s;
}

.message {
    background-color: #0C0E22;
    border: 0px;
    width: 100%;
    height: 171px;
    min-height: 171px;
    margin-top: 16px;
    border-radius: 0px 0px 0px 74px; 
    color: #FFFFFF;
    font-size: 18px;
    font-family: "Montserrat";
    resize: vertical;
    text-align: left;
    padding: 15px 20px 50px;
    outline: none;
}

.agree {
    font-weight: 400;
    color: #85879F;
    padding-bottom: 20px;
}

.agree--a {
    font-weight: bold;
    color: #85879F;
}

.flexbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    justify-content: space-between;
}

.flexbox div {
    width: 46%;
}

/***********************************************************************
 *  Media Query
 **********************************************************************/
@media only screen and (max-width: 1700px) {
    form {
        max-width: 660px;
        width: unset;
    }
}

@media only screen and (max-width: 1200px) {
    .logo {
        margin-left: 60px;
    }

    .cancel {
        margin-right: 60px;
    }
}

@media only screen and (max-width: 1100px) {
    .logo {
        margin-top: 33px;
    }

    .cancel {
        margin-top: 46px;
        width: 27px;
        height: 27px;
    }

    h1 {
        font-size: 70px;
        margin-top: 20px;
    }

    input[type=submit]{
        padding: 16px 65px;
    }
}

@media only screen and (max-width: 880px) {
    .logo {
        margin-left: 32px;
        width: 42.46px;
        height: 48px;
    }

    .cancel {
        margin-right: 32px;
        width: 22px;
        height: 22px;
    }
}

@media only screen and (max-width: 700px) {
    h1 {
        font-size: 55px;
        margin-top: 30px;
    }

    h2 {
        font-size: 24px;
    }

    .name,
    .email {
        height: 50px;
        margin-top: 10px;
        margin-bottom: 20px;
        font-size: 16px;
    }

    .form--p,
    .agree {
        font-size: 10px;
    }

    .email, 
    .message {
        border-radius: 0px;
    }

    .message {
        margin-top: 10px;
        padding: 15px;
        font-size: 16px;
    }

    form {
        margin-top: 40px;
        max-width: 85%;
    }

    input[type=submit]{
        padding: 15px 60px;
        font-size: 16px;
    }
}

@media only screen and (max-width: 560px) {
    .flexbox div {
        width: 100%;
    }

    .name,
    .email {
        height: 48px;
        font-size: 15px;
        padding: 0 15px;
    }

    .message {
        width: 100%;
        height: 120px;
        min-height: 120px;
        font-size: 15px;
    }

    input[type=submit]{
        padding: 14px 55px;
        font-size: 15px;
    }
}

@media only screen and (max-width: 470px) {
    h1 {
        font-size: 37px;
    }

    h2 {
        font-size: 20px;
        margin-top: 10px;
    }
}

@media only screen and (max-width: 430px) {
    .logo {
        height: 40px;
        width: 35.38px;
    }

    .cancel {
        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-width: 350px) {
    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 18px;
    }
}

@media only screen and (max-height: 1400px) and (min-height: 1300px) and (max-width: 1100px) and (min-width: 800px){
    h1 {
        margin-top: 170px;
    }
}

@media only screen and (max-height: 1100px) and (min-height: 1000px) and (max-width: 800px) and (min-width: 700px){
    h1 {
        margin-top: 80px;
    }
}