form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-top: 32px;
    padding-top: 16px;
    width: 100%;
}

/* Label starts in the middle of the input */
label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Input styling */
input, textarea {
    background: none;
    outline: none;
    border: none;
    border-bottom: 1px solid var(--gray);
    width: 100%;
    padding: 8px 0;
    font-size: 24px;
    font-family: inherit;
    color: white;
    transition: border-bottom 0.3s ease;
}

textarea {
    min-height: 50px;
    resize: vertical;
}


/* On focus, change input border */
input:focus, textarea:focus {
    border-bottom: 1px solid var(--white);
}

/* Button styling */
form button {
    background: none;
    border: none;
    outline: none;

    font-size: 24px;
    color: var(--white);
    font-weight: 500;

    margin-top: 64px;
    padding: 16px 32px;
    border: 1px solid var(--gray);
    border-radius: 999px;

    text-align: center;
    text-wrap: nowrap;
    overflow: hidden;

    transition: all var(--customEase) 0.3s;
}

form button:hover {
    direction: rtl;
    transition: all var(--customEase) 0.3s;
}

form button * {
    transform: translateX(0px);
    transition: all var(--customEase) 0.3s;

    font-family: Aspekta Variable;
    pointer-events: none;
}

form button:hover {
    background-color: var(--white);

    transition: all var(--customEase) 0.3s;
}

form button:hover * {
    color: var(--black);

}

#button-container {
    position: relative;
}

#button-container #overlay {
    position: absolute;
    top: 50%; left: 20%;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    scale: 1.0;

    z-index: 0;

    mix-blend-mode: difference;

    transition: all var(--customEase) 0.3s;

}

#button-container:active #overlay {
    background-color: var(--white);

    transform-origin: center center;

    scale: 200.0;

    transition: all var(--customEase) 0.3s;
}

#button-container:active button * {
    color: var(--white);
}