.overlay form {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    overflow: visible;
}
.popup {
    position: relative;
    display: flex;
    height: 0px;
    width: 100%;
    height: 100%;
    background-color: transparent;
    opacity: 0;
    bottom: 0px;
    left: 0px;
    z-index: 10000;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    grid-row-gap: 5vh;
} 

.overlay .input-wrap {
    flex-direction: row;
    overflow: visible;
    gap: 2vw;
}

.spinner {
    animation: spin .5s linear infinite; /* Spin animation */
    position: absolute;
    opacity: 0;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    transform: translate(-50%, -50%); /* Combine X and Y translations */
    pointer-events: none;
    z-index: 1000
}

.overlay[state="closed"] .popup {
    top: 0px;
    transition: all .3s cubic-bezier(0,.25,.4,1);
    animation-delay: .1s
}

.overlay[state="open"] .popup {
    top: -25px;
    transition: all .5s cubic-bezier(0,.25,.4,1);
    animation-delay: .2s
}

.success {
    display: flex;
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    background-color: black;
    font-family: 'IBM Plex Mono';
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    pointer-events: none;
    opacity: 0;
    text-align: center;
    justify-content: center;
    z-index: 1000;
    white-space: nowrap;
    width: fit-content;
}

.close {
    display: flex;
    position: relative;
    border-radius: 32px;
    border: .75px solid black;
    padding: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.form-legal {
    position: relative;
    display: flex;
    align-self: flex-start;
    font-family: 'IBM Plex Mono';
    color: rgba(0, 0, 0, 0.25);
    font-size: 12px;
    font-weight: 300
}

.overlay {
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0);
    padding: 25vh 15vw;
}

.overlay[state="closed"] {
    pointer-events: none;
}

.overlay[state="open"] {
    pointer-events: auto;
}

.noscroll {
    overflow: hidden
}

.overlay button {
    color: white;
    align-items: center;
    padding: 8px 30px;
    flex-grow: 1
}

.overlay input {
    color: black;
    border: .75px solid black;
    background-color: transparent;
    font-size: 15px;
    font-weight: 300;
    font-family: IBM Plex Mono, sans-serif;
    padding: 10px 20px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.overlay input:focus {
    outline: none;
}

.overlay input::-webkit-input-placeholder {
    font-family: IBM Plex Mono, sans-serif;
    color: rgba(0, 0, 0, 0.25);
    transition: all .2s ease-in-out
}

.overlay input:focus::-webkit-input-placeholder {
    color: transparent;
    transition: all .2s ease-in-out
}

@media screen and (min-width: 1440px) {

}
@media screen and (max-width: 991px) {
    .overlay form {
        flex-direction: column;
        gap: 5vh;
        width: 100%;
        max-width: 400px;
    }

    .overlay .input-wrap {
        flex-direction: column;
    }

    .popup {
        align-items: center;
        width: 100%;
        opacity: 0;
        overflow: visible;
    } 

    .overlay button {
        width: 100%;
        display: flex;
        text-align: center;
        justify-content: center;
        padding: 11px 30px;
        margin: 0;
        font-size: 16px;
        border: none;
        left: .75px
    }

    .form-legal {
        align-self: center;
        margin-top: -30px
    }

    .overlay input {
        text-align: center;
        border-radius: 0px;
        border-bottom: none;
        border: none;
        width: 100%;
        size: 16px;
        pointer-events: none;
        z-index: 1000;
        position: relative;
        left: .75px
    }

    .overlay[state="open"] input {
        pointer-events: all;
    }
    .overlay .input-wrap {
        gap: 0;
    }
    .overlay .input-wrap::after {
        content: '';
        position: absolute;
        width: calc(100% - 1px);
        height: 100%;
        left: .75px;
        border: .75px solid black;
        border-radius: 6px;
    }

    .overlay input:not(:last-child) {
        border-bottom: .75px solid black;
    }

    .overlay input:first-child::after {     
        content: '';
        position: absolute;
        width: calc(100% - 1px);
        height: 1px;
        left: .75px;
        border-bottom: .75px solid red;
        z-index: 100000
    }

    .overlay .input-wrap:nth-child(2) {
        margin-bottom: 5vh
    }

    .overlay {
        max-width: 100vw;
        overflow: hidden;
    }



    /* .overlay form input:first-child {
        border-radius: 6px 6px 0px 0px;
    } */

    .overlay {
        padding: 20vh 5vw
    }

    

/*     .popup {
        opacity: 1
    } 

    .overlay {
        background-color: rgba(255, 255, 255, 1);
    } */
}
@media screen and (max-width: 767px) {

}
@media screen and (max-width: 479px) {
    
}
