.centered-content {
    display: flex;
    align-items: center; /* vycentruje obsah vertikálne */
  }
#section1{
    background-image: url('../images/kontakt.png');
    width: 90%;
    height: 565px;
    margin: auto;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#section1 > div{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -6rem;
}

#section1 h2{
    width: 100%;
    margin: auto;
    text-align: center;
}

/* ---------------- */

#section2{
    width: 90%;
    margin: 2rem auto 7rem auto;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr .7fr;
    column-gap: 2rem;
    align-items: center;
}

.form {
    background: #EFEFEF;
        
    width: 100%;
    height: auto;
    margin-top: 1rem;
    padding: 1rem 0 2rem 0;

    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
}

.required:after {
    content:" *";
    color: red;
    font-weight: 200;
    font-size: 20px;
}

.form_item{
    width: 80%;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
}

.form_item > label{
    color: #92AEB2;
    font-size: 14px;
}

.form_entry {
    padding: .5rem;
    margin-top: .5rem;
    border: none;
    outline: none;
}

.terms_conditions_wrapper{
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 14px;
}
.terms_conditions_chceckbox{
    border: none;
    outline: none;
}
.terms_conditions_link{
    text-decoration: none;
    color: #92AEB2;
    font-weight: bold;
    letter-spacing: 1px;
}
.terms_conditions_link:hover{
    color: #004551;
}

.message{
    height: 150px;
}

.form > .btn{
    cursor: pointer;
}

#contact_wrapper{
    justify-self: center;
}

.one_contact{
    margin: 3rem;
}

.one_contact > h3{
    margin-bottom: 1rem;
    margin: 5px 0px;
}

.one_contact > div {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.one_contact > div > i {
    width: 2.5rem;
    height: 2.5rem; 
    padding: 0.4rem; 
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #92AEB2;
    border-radius: 50%;
    color: white;
    margin-right: .8rem;
}

.one_contact > p{
    margin: 0rem 0 1rem 4rem;
}

@media screen and (max-width: 1005px){

    #section2{
        grid-template-columns: 1fr;
    }
    #contact_wrapper{
        order: -1;
        width: 100%;
        margin-bottom: 3rem;
        display: grid;
        grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) );
        justify-content: center;
        justify-items: center;
    }
    .one_contact{
        width: 250px;
        margin: 1rem;
    }
    .one_contact > h3 i{
        width: 2.5rem;
        height: 2.5rem;
        padding: .4rem;
        font-size: 25px;
    }
    
}

@media screen and (max-width: 600px){

}