.contact-popup {
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 90%;
    width: 95%;
    max-width: 600px;   
    box-sizing: border-box;
    overflow: hidden;
}

.contact-header {
    border: 1px solid var(--color-borders);
    color: white;
    padding: 15px;
    margin: -10px -10px 10px -10px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px 10px 0px 0px;

    min-height: 125px;
    max-height: 200px;
    background-color: var(--color-contact-header);
}

.contact-header p {
    margin: 0;
    font-size: var(--font-small);
}

.contact-popup h2 {
    margin: 0 0 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex: 1;
    height: calc(100% - 175px);
}


.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    resize: none;
    flex: 0;
}


.contact-form textarea {
    flex: 1;
    height: auto;
    max-height: 100%;
    overflow-y: auto;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}


#popupEmailSent {
    padding: 0px;
    margin-bottom: 10px;
    color: white;
    background:
        radial-gradient(circle at 100% 100%, #b741ee, transparent 100%),
        radial-gradient(circle at 10% 10%, #39b3ff, transparent 100%);
    background-color: #fff;
}

.popup-email-sent {
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 90px;
    width: 300px;
    border: none;

}

#popupEmailSent button {
    position: static;
    margin: 0px auto;
    display: block;
    margin-bottom: 10px;
}


/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .contact-popup {
        width: 95%;
        height: 90%;
        max-height: 95%;
        margin-top: -5px;
    }

    .contact-form {
        height: calc(100% - 200px);
    }

}