﻿dialog:not([open]) {
    display: none;
    z-index: 0;
}

dialog {
    width: 90%;
    margin-top: 2rem;
    padding-top: 3rem;
    background-color: hsl(0 0% 82.7 / 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    border: 1px solid hsl(0 2.4% 75.1%);
}

.modalContact {
    background-color: hsl(0 0% 82.7 / 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px;
    padding: 2rem;
    margin: 2.5rem auto 2rem auto;
}

@media(max-width: 380px){
    .modalContact {
        margin-top: 14rem;
    }
}

.contactForm {
    /*padding: 1rem;*/
    background-color: whitesmoke;
    border-radius: 10px 10px;
    border: 5px dotted black;
    position: relative;
}

.contactForm__close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid hsl(331 84% 35%);
    color:  hsl(331 84% 35%);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 3%;
    top: 2%;
}

    .contactForm__close:hover {
        background-color: hsl(331 84% 35%);
        color: white;
    }

.contactForm__Title {
    text-align: center;
    font-size: 2rem;
    margin: 3rem auto 2rem auto
}

.contactForm__status {
    margin: 2rem;
}

.contactForm__fields {
    width: 80%;
    min-width:10rem;
    max-width: 60rem;
}

.contactForm__field {
    margin: 0.1rem;
    width: 100%;
}

textarea {
    height: 10rem;
}
.contactForm__info {
    font-size: 0.8rem;
    font-weight: lighter;    
}
