@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

.contact-form {
    position: relative;
    min-height: 100vh;
    z-index: 0;
    background-image: url("MEC.jpg");
    background-position: 25% 25%;
    height: 70vh;
    padding: 30px;
    justify-content: center;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
}

.container {
    max-width: 800px;
    margin-top: 0 auto;
}

.contact-form h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    font-family: 'poppins';
}

.contact-form h2 {
    line-height: 40px;
    margin-bottom: 5px;
    font-size: 30px;
    font-weight: 500;
    color: #007bff;
    text-align: center;
}

.contact-form .main {
    position: relative;
    display: flex;
    margin: 30px 0;
}

.content {
    flex-basis: 50%;
    padding: 3em 3em;
    background: #fff;
    box-shadow: 2px 9px 49px -17px rgba(156, 39, 148, 0.1);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.form-img {
    flex-basis: 50%;
    background: #f0f4f8;
    background-size: cover;
    padding: 40px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    align-items: center;
    display: grid;
}

.form-img img {
    max-width: 100%;
}

.btn,
button,
input {
    border-radius: 35px;
}

.btn:hover,
button:hover {
    color: #007bff;
    transition: 0.5s ease;
}

.contact-form form {
    margin: 30px 0;
}

.contact-form input,
textarea {
    outline: none;
    margin-bottom: 15px;
    font-stretch: 16px;
    color: #999;
    padding: 14px 20px;
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    border: none;
    background: #fcfcfc;
    transition: 0.3s ease;
}

.contact-form input:focus {
    background: transparent;
    border: 1px solid #007bff;
}

.contact-form button {
    font-size: 18px;
    color: #fff;
    width: 100%;
    background: #007bff;
    font-weight: 600;
    transition: 0.3s ease;
    padding: 14px 15px;
    border: 1px solid #007bff;

}

body,
h1,
h2,
h3,
p,
ul,
li,
form {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    background-image: url("MEC.jpg");
    background-position: 25% 25%;
    height: 70vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 20px;
    padding-left: 50px;
    padding-right: 30px;
    padding-top: 50px;
}

nav {
    flex: 1;
    text-align: right;
}

nav ul {
    display: inline-block;
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-right: 70px;
}

nav ul li a {
    text-decoration: none;
    font-size: 20px;
    color: white;
    font-family: sans-serif;
}

nav ul li button {
    font-size: 20px;
    color: white;
    outline: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: sans-serif;
}

nav ul li button:hover {
    color: aqua;
}

nav ul li a:hover {
    color: aqua;
}

section {
    padding: 40px 0;
}

.hero {

    background-size: 20% 50%;
    color: #007bff;
    text-align: center;
    /* Altura fixa */
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.textos {
    color: #007bff;
}

/* ====================== Responsive Design ========================== */
@media (max-width: 430px) and (max-height: 893px) {
    body {
        background-image: url("MEC.jpg");
        width: 100%;
        height: 210%;
        overflow: hidden;
    }

    nav ul li {
        display: inline-block;
        margin-right: 20px;
    }

    nav ul li a {
        font-size: 12px;
    }

    nav ul li button {
        font-size: 12px;

    }

    .contact-form .main {
        flex-direction: row;
    }

    .contact-form form {
        margin-top: 20px;
        margin-bottom: 10px;

    }

    .form-img {
        border-radius: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        order: 2;
        width: 150px;
        /* Defina o tamanho desejado em pixels ou outra unidade de medida */
        height: auto;
    }

    .content {
        order: 1;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
}

@media (max-width: 490px) and (max-height: 975px) {
    body {
        width: 100%;
        height: 210%;
        overflow: hidden;
    }

    nav ul li {
        display: inline-block;
        margin-right: 20px;
    }

    nav ul li a {
        font-size: 12px;
    }

    nav ul li button {
        font-size: 12px;

    }

    .contact-form .main {
        flex-direction: row;
    }

    .contact-form form {
        margin-top: 20px;
        margin-bottom: 10px;

    }

    .form-img {
        border-radius: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        order: 2;
        width: 150px;
        /* Defina o tamanho desejado em pixels ou outra unidade de medida */
        height: auto;
    }

    .content {
        order: 1;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
}