*{
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #00648E;
    min-height: 100vh;
}

a {
    color: #00354B;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
}

main {
    width: 100%;
    position: relative;
}

.top50 {
    margin-top: 50px;
}

.bot20 {
    margin-bottom: 20px;
}



/* Section 1 */

#formSection {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
}

#formSection h1{
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    width: 100%;
    color: #fff;
}

#formSection h2{
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    color: #fff;
    width: 85%;
}

#locationForm{
    background-color: #fff;
    padding: 30px 0 30px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    gap: 20px;
    margin-top: 25px;
    border-radius: 15px;
}

#selects{
    width: 100%;
    gap: 20px;
}

#selects, #inputs, #paraInputs {
    display: flex;
    align-items: center;
    justify-content: center;
}

#selects {
    flex-direction: column;
}

#container, #paraContainer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

#inputs, #paraInputs{
    gap: 20px;
}

#formSection h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px;
    color: #00354B;
}

select {
    border: thin solid #ccc;
    border-radius: 4px;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5em;
    padding: 0.5em 3.5em 0.5em 1.5em;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    appearance: none;

    background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

select:focus {
    background-image:
    linear-gradient(45deg, gray 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, gray 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em,
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  outline: 0;
}


#locationForm button {
    padding: 12px 60px;
    background-color: #00648E;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

#locationForm button:hover {
    background-color: #005072;
    transition: background-color linear 200ms;
}

#results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#results h1{
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    width: 100%;
    color: #fff;
}

#empresasContainer {
    background-color: #fff;
    padding: 30px 0 30px;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    gap: 20px;
    margin-top: 25px;
    border-radius: 15px;
}

#empresasContainer img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

#empresasContainer p, #empresasContainer h2, #empresasContainer a {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-align: left;
    width: 100%;
    color: #00648E;
    margin: 3px 0;
}

#empresasContainer a{
    width: auto;
}

#empresasContainer h2 {
    font-weight: 600;
    font-size: 22px;
}

.empresaList {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.empresas {
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.separador {
    height: 2px;
    width: 100%;
    background-color: #ccc;
    border-radius: 50px;
    margin: 15px 0;
}

.contentEmpresa {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 100px;
}

@media (max-width: 780px) {
    #selects {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        width: 90%;
        position: relative;
    }

    #container{
        width: 100%;
    }

    #inputs{
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    #selects select {
        width: 100%;
    }

    #locationForm button {
        width: 100%;
    }
}