form {
    display: none;
    position: fixed;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
}

.form_panel {
    position: relative;
    width: 50vw;
    height: 90%;
    background-color: rgba(234, 241, 250, 1);
    border-radius: 10px;
    padding: 2%;
}

.close_btn {
    position: absolute;
    color: #555;
    font-size: 1.2em;
    top: 2%;
    right: 3%;
    cursor: pointer;
}

label {
    width: 80%;
    margin-bottom: 1%;
}

input {
    width: 80%;
    padding: 1%;
    margin-bottom: 3%;
    border-radius: 4px;
    border: none;
    border-bottom: 3px solid #ddd;
    transition: background-color 0.3s;
}

input:hover {
    background-color: rgba(251,241,228,1);
}

input:focus {
    outline: 2px solid #eee;
}

select {
    width: 80%;
    padding: 1%;
    margin-bottom: 3%;
    border-radius: 2px;
    border: none;
    border-bottom: 3px solid #ddd;
    transition: background-color 0.3s;
}

select:hover {
    background-color: rgba(251,241,228,1);
}

select:focus {
    outline: solid #eee;
}

textarea {
    width: 80%;
    margin-bottom: 3%;
    padding: 1%;
    border-radius: 2px;
    resize: none;
    height: auto;
    border: none;
    border-bottom: 3px solid #ddd;
    transition: background-color 0.2s;
}

textarea:hover {
    background-color: rgba(251,241,228,1);
}

textarea:focus {
    outline: solid #eee;
}

input[type=submit], input[type=button] {
    padding: 2%;
    border: 3px solid #ddd;
    border-radius: 5px;
    background-color: #eee;
    transition: background-color 0.2s;
}

input[type=submit]:hover, input[type=button]:hover {
    background-color: #ddd;
}

input[type=submit]:disabled {
    background-color: #eee;
    color: #ddd;
}

.formFadeIn {
    animation: 0.2s ease-in 0.2s forwards formFadeIn;
}

.formFadeOut {
    animation: 1s ease-in 1s forwards formFadeOut;
}

.sent_message:after {
    content: 'Query Submitted';
    font-weight: bold;
}

.sent_fade {
    animation: 3s ease-in-out forwards successAnim;
}

.success_popup {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 30;
    background-color: rgba(0, 0, 0, 0.6);
}

.show_success {
    display: flex;
}

.success_box {
    width: fit-content;
    padding: 2%;
    background-color: rgba(234, 241, 250, 1);
    border-radius: 10px;
    color: #333;
    font-weight: 600;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        z-index: 20;
    }
    to {
        opacity: 1;
        z-index: 20;
    }
}


@keyframes formFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes successAnim {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}