.openImg {
    width: 100%;
    position: relative;
}


.openImg img {
    width: 100%;
    filter: brightness(85%);
}


.openImg h1 {

    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--contrast);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 3rem;
}


@media  screen and (orientation:portrait) {
    .openImg img {
        display: none;
    }


    .openImg {
        height: 50vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url("../images/contact/main.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 30%;
    }


    .openImg h1 {
        position: relative;
        transform: translateX(0);
        left: 0;

    }
}

#segment1 {
    width: 70%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 33.33% 33.33% 33.33%;

}



#segment1 a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    transition: 0.3s ease-in;
    text-align: center;
}



#segment1 a svg {
    width: auto;
    height: auto;
    padding: 0 3rem;
    transition: 0.3s ease-in;
    fill: var(--secondary);
}



#segment1 a:hover {
    transition: 0.3s ease-in;
    color: var(--main);
}


#segment1 a:hover > svg {
    fill: var(--main);
    transition: 0.3s ease-in;
}






@media  screen and (orientation:portrait) {

    #segment1 {
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #segment1 a {
        margin-top: 2rem;
    }


    #segment1 a svg {
        padding: 0 5rem;
    }















}

.form-container {
    margin-top: 2rem;
    width: 100%;
    background-color: var(--main);
    display: flex;
    justify-content: center;
}


form {
    width: 70%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    color: var(--contrast);
    align-items: first baseline;
}

label {
    font-size: 1.3rem;
    font-weight: bold;
}

input, textarea {
    color: var(--contrast);
    background-color: transparent;
    border: none;
    border-bottom: 0.1rem solid var(--contrast);
    outline: none;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.3rem;
    width: 100%;

}


input:focus-within {
    background-color: transparent;
    border: none;
    border-bottom: 0.2rem solid var(--contrast);
}




textarea {
    transition: 0.3s ease-in;
    height: 1.3rem;
}

textarea:focus-within {
    height: 13rem;
    border-bottom: 0.2rem solid var(--contrast);

    transition: 0.3s ease-in;
}





button {
    font-size: 1.5rem;
    margin-top: 1rem;
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    border: 0.15rem solid var(--contrast);
    color: var(--contrast);
    transition: 0.5s ease-in-out;
    cursor: pointer;
    margin-bottom: 1.5rem;
}



button:hover {
    color: var(--main);
    background-color: var(--contrast);
    transition: 0.5s ease-in-out;

}


input[type=checkbox] {
    background-color: var(--contrast);
    width: 1.5rem;
    height: 1.5rem;
    display: inline;
    transform: translateY(0.25rem);
}







@media screen and (orientation:portrait) {
    form {
        width: 90%;
    }
}




@keyframes disappear {
    0% {
        display: block;
        opacity: 100%;
    }

    90% {
        display: block;
        opacity: 100%;
    }

    99% {
        display: block;
        opacity: 0%;
        transform: scale(100%);

    }

    100% {
        display: none;
        opacity: 0%;
        transform: scale(0%);

    }
}



.success {
    position: fixed;
    top: 2rem;
    z-index: 110;
    text-align: center;
    background-color: greenyellow;
    color: black;
    font-size: 1.7rem;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    font-weight: bold;
    animation: disappear 10s forwards;
    right: 40%;
}



.fail {
    position: fixed;
    top: 2rem;
    z-index: 110;
    text-align: center;
    background-color: red;
    color: black;
    font-size: 1.7rem;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    font-weight: bold;
    animation: disappear 10s forwards;
    right: 40%;

}



label a {
    color: var(--contrast);
}