@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template:
        "header header header" 75px
        "aside main side" 1fr
        "footer footer footer" 35px / 12% 1fr 12%;

    background-image: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/sistema_super_salones/elrecurso/bg_5_mejora.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*--------------------------HEADER--------------------------------*/

header {
    grid-area: header;
    background: #003377;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 30px;
}

.logo {
    width: 290px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 100%;
}

/*---------------------------MAIN--------------------------------*/

main {
    grid-area: main;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container_form {
    width: 55%;
    padding: 35px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0px 5px 16px 4px rgba(0, 0, 0, 0.251);
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 27px;
}

h2 {
    color: #000;
    text-align: center;
    font-size: 27px;
    font-weight: bolder;
}

input {
    width: 80%;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #afafaf;
    border-radius: 8px;
    outline: none;
}

button {
    width: 80%;
    padding: 10px;
    color: #fff;
    background: rgb(20, 90, 238);
    background: linear-gradient(
        212deg,
        rgba(20, 90, 238, 1) 0%,
        rgba(20, 155, 255, 1) 100%
    );
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    font-weight: bolder;
    transition: all 0.2s;
    cursor: pointer;
}

button:hover {
    transform: scale(1.04);
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.309);
}

textarea {
    border: 1px solid #afafaf;
    width: 80%;
    border-radius: 8px;
    min-height: 100px;
    resize: none;
    outline: none;
    padding: 10px;
    font-size: 17px;
}

/*--------------------------FOOTER--------------------------------*/

footer {
    grid-area: footer;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    background: #003377;
}

p span {
    color: #3dd2ff;
}

/*-----------------------MEDIAS QUERY-----------------------------*/

@media screen and (max-width: 1120px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 8% 1fr 8%;
    }
}

@media screen and (max-width: 1008px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    .container_form {
        width: 55%;
    }
}

@media screen and (max-width: 940px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    .container_form {
        width: 65%;
    }
}

@media screen and (max-width: 800px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    .container_form {
        width: 80%;
    }
}

@media screen and (max-width: 670px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    .container_form {
        width: 90%;
    }
}

@media screen and (max-width: 670px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    .container_form {
        width: 90%;
    }

    input {
        width: 90%;
    }

    button {
        width: 90%;
    }

    textarea {
        width: 90%;
    }
}

@media screen and (max-width: 400px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    header {
        justify-content: center;
    }

    .container_form {
        width: 95%;
    }

    input {
        width: 100%;
    }

    button {
        width: 100%;
    }

    textarea {
        width: 100%;
    }
}

@media screen and (max-width: 340px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    .container_form {
        width: 100%;
    }
}

@media screen and (max-width: 280px) {
    body {
        display: grid;
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 5% 1fr 5%;
    }

    .container_form {
        width: 100%;
        padding: 20px;
    }
}