#modal-kit-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    transition: opacity 0.3s;
}

#modal-kit-overlay.active {
    display: flex;
    opacity: 1;
}

#modal-kit-sidebar h2 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 80px;
}

#modal-kit-sidebar {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    width: 350px;
    max-width: 90vw;
    height: 100%;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.77, 0, .18, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

#modal-kit-overlay.active #modal-kit-sidebar {
    transform: translateX(0);
}

#modal-kit-sidebar .modal-logo {
    max-width: 80%;
    margin-inline: auto;
}

#modal-kit-sidebar .formkit-field {
    max-width: 100% !important;
}

#modal-kit-sidebar .formkit-input {
    /* max-width: 80% !important; */
    /* border: Solid 2px red !important; */
}

/* Close X icon styles */
#modal-kit-close {
    /* position: absolute;
    top: 36px;
    right: 18px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    line-height: 1;
    transition: color 0.2s; */

    position: absolute;
    top: 36px;
    right: 18px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    color: #fff;
}

#modal-kit-close:hover {
    color: #ff5252;
}

@media (max-width: 600px) {
    #modal-kit-sidebar {
        width: 80vw;
        max-width: 80vw;
        height: 100vh;
        border-radius: 0;
        padding: 2rem 1rem;
        margin-left: 20vw;

    }

    #modal-kit-overlay {
        justify-content: center;
        align-items: center;
    }

    #modal-kit-close {
        top: 50px;
    }
}