.form-section {
    position: fixed;
    height: 100vh;
    width: 100%;
    z-index: 15;
    display: none;
    box-shadow: 400px 0 200px 0 rgba(0, 0, 0, 0.6) inset,
    -400px 0 200px rgba(0, 0, 0, 0.6) inset;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


.open {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in 500ms forwards;
}

.close {
    animation: fade-out 500ms forwards;
}

::placeholder {
    color: rgb(44, 44, 159);
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgb(44, 44, 159);
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgb(44, 44, 159);
}

.form-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: auto;
    /* border: 1px solid white; */
}

.close-btn {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

.form {
    width: 80%;
    margin: auto;
}

.form input, .form .textarea {
    display: block;
    color: rgb(44, 44, 159);
    padding: .85rem 0 .85rem .85rem;
    font-size: 1.2rem;
    border: 2px solid rgb(44, 44, 159);
    border-radius: 10px;
    outline: transparent;
    width: 100%;
    margin-bottom: 1.5rem;
}

.form .textarea {
    resize: none;
    min-height: 200px;
}

.name-age__wrapper {
    display: grid;
    grid-template-columns: 65% 30%;
    gap: 5%;
}

.submit-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.submit-btn {
    background-color: rgb(44, 44, 159);
    color: #fff;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 1em 3em;
    border-radius: 10px;
    cursor: pointer;
}

.note {
    display: inline-block;
    color: #fff;
    font-weight: 400;
    font-size: .85rem;
}

@media (max-width: 500px) {
    .close-btn {
        position: static;
        margin-bottom: .8rem;
    }

    .submit-btn {
        margin-bottom: .8rem;
    }

    .submit-area {
        display: block;
    }
}