#contact-form-wrapper{
    display: flex;
    flex-direction: column;
    visibility: hidden;
    z-index: 500;
    position: fixed;
    left: 50vw;
    top: 15vh;
    max-height: 80vh;
    transform: translateX(-50%);
    background-color: white;
    border: 4px solid white;
    width: 80vw;
    max-width: 800px;
    box-sizing: border-box;
    padding: 4rem 0 2rem;
    justify-content: center;
    border-radius: 40px;
    border: 2px solid black;
    outline: 10px solid white;
}

@media (max-width: 800px) {
    #contact-form-wrapper{
        top: 5vh;
    }
}

#contact-form-wrapper h2{
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

#contact-form{
    width: 100%;
    overflow: scroll;
    scroll-margin-top: 0;
}

#contact-form > *{
    display: block;
    margin: auto;
    width: 80%;
    font-family: Comfortaa;
    font-size: var(--fs-100);
}

#contact-form>input:last-child{
    height: auto;
    max-width: 300px;
    padding: 1rem 0.5rem;
}

#contact-form input, #contact-form textarea{
    box-sizing: border-box;
    background-color: white;
    border: 2px solid black;
    border-radius: 20px;
}

#contact-form input{
    min-height: var(--fs-300);
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
    padding: 0.2rem 1rem;
    color: black;
}

#contact-form textarea{
    margin-top: 0.8rem;
    margin-bottom: 3rem;
    height: 10rem;
    resize: none;
    padding: 0.2rem;
}

.period-wrapper{
    align-items: center;
}

@media (max-width: 400px) {
    .period-wrapper{
        flex-direction: column;
        align-items: start;
    }
    .period-wrapper > input{
        width: 100%;
        box-sizing: border-box;
    }
}

#bt-form-close{
    position: absolute;
    padding: 0;
    margin: 0;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    aspect-ratio: 1;
    border: 2px solid black;
    border-radius: 50%;
    color: black;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
#bt-form-close svg{
    height: 1.5rem;
    aspect-ratio: 1;
}

#error-button-wrapper, #loading-wrapper{
    display: none;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
}

#loading-wrapper img{
    width: 25%;
    display: block;
    margin: 0 auto;
}
#loading-wrapper p{
    text-align: center;
}

.form-error-button{
    font-family: Comfortaa;
    text-align: center;
    display: block;
    margin: 1.5rem auto;
    padding: 1rem 0;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid black;
    border-radius: 20px;
    background-color: white;
    color: black;
    width: 60%;
}

#form-background{
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    z-index: 101;
}