:root {
    --border: 1px solid rgba(255, 255, 255, 0.25);
    --border-radius: 12px;
    --height: 35px;
}

a {
  all: unset;
  cursor: pointer;
}

#Contact .desktop {
    display: block;
}

#Contact .mobile {
    display: none;
}

#Contact .main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#Contact .contact-form-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#Contact .description-container > h2 {
    font-size: 9rem; 
    text-transform: uppercase; 
    line-height: 9rem; 
    font-weight: 100; 
    color: white;
}

#Contact .description-container > p {
    font-size: 1.5rem;
    line-height: 1.5rem; 
    font-weight: 200; 
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

#Contact .description-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#Contact .button {
    width: fit-content;
    padding: 5px 25px;
    background: white;
    border-radius: 12px;
}

#ContactFormPopUp {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 21;
    transition: opacity .5s ease, blur 1s ease;
}

#ContactFormPopUp[visible="false"] {
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
}

#ContactFormPopUp[visible="true"] {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(6px);
}

#ContactFormPopUp .form-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 30%;
    background: rgba(255, 255, 255, 0.01);
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    overflow: hidden;
}

#ContactFormPopUp .return-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

#ContactFormPopUp .return-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: fit-content;
    height: 45px;
}

#ContactFormPopUp .return-button {
    pointer-events: all;
}

#ContactFormPopUp .return-button > img, p {
    pointer-events: none;
}

#ContactFormPopUp .return-button > img {
    width: 35px;
}

#ContactFormPopUp .return-button > p {
    font-size: 1.2rem;
    font-weight: 200;
    color: white;
}

#ContactFormPopUp .form-container #ContactForm {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
    height: min-content;
}

#ContactFormPopUp #ContactForm > * {
    width: 100%;
}

#ContactFormPopUp #ContactForm > input, textarea {
    height: var(--height);
    background: transparent;
    border: var(--border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 4px 10px;
    margin-bottom: 20px;
    color: white;
    font-weight: 300;
}

#ContactFormPopUp #ContactForm > textarea {
    height: 75px;
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 4px 10px;
    margin-bottom: 20px;
    resize: none;
}

#ContactFormPopUp #ContactForm > label {
    font-size: 0.9rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

#ContactFormPopUp #ContactForm > button {
    align-self: center;
    width: 100%;
    height: var(--height);
    border: none;
    border-radius: var(--border-radius);
    padding: 4px 10px;
    margin-bottom: 10px;
}

#ContactFormPopUp .description {
    align-self: center;
    font-weight: 100;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

#ContactFormPopUp #ThanksFeedback {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    transition: opacity 1s ease;
}

#ContactFormPopUp #ThanksFeedback[thanks="true"] {
    opacity: 1;
    display: flex;
}

#ContactFormPopUp #ThanksFeedback[thanks="false"] {
    opacity: 0;
    display: none;
}

#ContactFormPopUp #ThanksFeedback p {
    font-weight: 100;
    color: white;
}

#ContactFormPopUp #ThanksFeedback > p {
    font-size: 1.25vw;
}

#ContactFormPopUp #ThanksFeedback > .form-feedback-text-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: fit-content;
    gap: 10px;
}

#ContactFormPopUp #ThanksFeedback > div p {
    font-size: 3vw;
}

#ContactFormPopUp #ThanksFeedback > div img {
    width: 48px;
}

#ContactFormPopUp #ThanksFeedback .accepted, .refused {
    display: none;
}

#ContactFormPopUp #ThanksFeedback .button {
    width: fit-content;
    height: min-content;
    background: rgba(255, 255, 255, 1);
    padding: 5px 25px;
    border-radius: 14px;
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    margin-top: 20px;
}

#Footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 20px;
    border-top: var(--border);
}

#Footer > * {
    font-weight: 200;
    color: white;
}

#Footer > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: min-content;
}

@media (max-width: 1024px) {
    #Contact .desktop {
        display: none;
    }

    #Contact .mobile {
        display: block;
    }

    #Contact .main-container {
        gap: 25px;
    }
    #ContactFormPopUp .contact-form-container {
        flex-direction: column-reverse;
        justify-content: end;
        padding: 0 30px;
    }

    #Contact .description-container {
        padding: 0;
        gap: 5px;
    }

    #Contact .description-container > h2 {
        font-size: 10vw; 
        font-weight: 100; 
        line-height: 10vw; 
        text-transform: uppercase; 
        color: white;
    }

    #Contact .description-container > p {
        font-size: 1rem;
        line-height: 1.2rem;
        margin-bottom: 20px;
    }

    #ContactFormPopUp .form-container {
        width: 100%;
        padding: 10px;
    }

    #ContactFormPopUp #ThanksFeedback > p {
        font-size: 4.5vw;
    }

    #ContactFormPopUp #ThanksFeedback > div p {
        font-size: 12vw;
    }

    #ContactFormPopUp #ThanksFeedback > div img {
        width: 42px;
    }

    #ContactFormPopUp #ContactForm > label {
        line-height: 1.05rem;
    }

    #ContactFormPopUp #ContactForm > input, textarea {
        margin-bottom: 10px;
    }

    #Footer {
        flex-direction: column-reverse;
        gap: 10px;
        padding: 10px;
    }

    #Footer > p {
        font-size: .9rem;
        text-align: center;
    }
}