.form-section{
    font: 1.5em "Caveat";
    margin-top: 4em;
    margin-bottom: 4em;
    
    /* margin-bottom: 3em; */
}



.main-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1 1 auto;
}

.contacts-info {
    background-color: rgb(0,0,0,0.2); ;
    margin-top: 4em;
    padding-top:0.5em;
    padding-bottom:0.5em;
    display: inline-block;
    justify-content: center;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1em;
}

.socials li {
    display: inline-block;
    margin-right:0.5em ;
}

.socials li li {
    
        display: none;
        position: absolute;
        top: 10.7em;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 0.5em;
        border-radius: 0.3em;
        color: white;
        font-size: 1.2em;
        white-space: nowrap;
    
}

.socials li:hover li {
    display: inline-block;
}

.socials li a {
    
    display: block;
    width: 1.5em;
    font-size:2.5em;
    line-height: 1.5em;
    aspect-ratio: 1/1;
    text-align: center;
    align-content: center;
    border-radius: 50%;
    color: #fff;
}



.socials li a :hover {
    display: block;
    aspect-ratio: 1/1;
    text-align: center;
    align-content: center;
    background: #fff;
    border-radius: 50%;
    color: #31718C;
    
}

h2 {
    margin-bottom: 1em;
    color: #fff;
}

.form-section{
    display: flex;
    justify-content: center;
}

form {
    width: 70ch;
    background-color: rgb(0,0,0,0.3);
    border-radius: 0.3em;
    padding: 2em 2.5em;
    box-shadow: 0 0 0.5em 0 rgb(0,0,0,0.1);
    font-size: 1.1em;
}

fieldset {
    padding: 1em 2em 2em 2em;
    border: 2px solid #DDD;
    border-radius: 0.3em;
    margin-bottom: 2em;
   
}

fieldset legend {
    padding: 0 1em;
    margin-left: -1em;
    /* font-weight: bold; */
    opacity: 0.7;
}

textarea,
input[type="text"],
input[type="email"],
input[type="submit"] {
    display: block;
    width: 100%;
    color: #fff;
    border: none;
    padding: 0.3em 0;
    outline: none;
    /* font-size: 1.5em; */
    background-color: rgb(255,255,255,0.5) ;

    &::placeholder {
        color: transparent;
    }
}

textarea,
input[type="text"],
input[type="email"]
 {
    font-family: "Caveat";
    border-bottom: 2px solid #DDD;
    padding-top: 0.7em;
    font-size: 1.2em;
    line-height: 1;
    
    &:focus {
        border-color: #31718C;
    }
}


input[type="submit"] {
    cursor: pointer;
    font-family: "Caveat";
    font-weight: bold;
    color:#fff;
    border-radius: 0.3em;
    margin-top: 2em;
    font-size: 1.2em;
}

input[type="submit"]:focus,
input[type="submit"]:hover {
    /* background: #31718C; */
    background: rgb(0,0,0,0.3) ;
    color: #fff;
}

.field {
    display: flex;
    flex-direction: column;
    padding: 0.25em 0;
    position: relative;
}

.field label {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition:
        translate 0.3s ease-in-out,
        opacity 0.3s ease-in-out
    ;
    opacity: 0.7;
}

.field .helper {
    display: block;
    color:#fff;
    font-style: italic;
    opacity: 0.8;
    line-height: 1;
    padding: 0.3em 0;
}

.field:has(input:focus) label {
    color: white;
    opacity: 1;
}

.field:has(input:placeholder-shown) label {
    translate: 0 1.2em;
}


@media(max-width:650px){
    form{
        width: 100vw;
        margin: 0 auto;
    }

    .socials li:hover li {
        display: none;
    }
}

@media (max-width: 820px) {
    .socials li li {
        top: 16.3em
    }
}
