.myForm {
    width: 50%;
    max-width: 512px;
    background-color: #0F172A;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    display: flex; 
    overflow: hidden;
    transition: height .4s ease-in-out;
}

.myForm .page {
    min-width: 100%;
    transition: .4s ease-in-out;
    z-index: 10;
}

.myForm .pg-1 {
    transform: translateX(-100%);
}

.myForm .pg-2 {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 0;
}

.actionBtn  {
    background: linear-gradient(90deg, #788FBF 0%, #9781CC 100%);
}

.prevrow {
    scale: -1 1;
}

label span.imp {
    position: relative;
}

label span.imp::after {
    content: '*';
    position: absolute;
    top: -.1em;
    left: .1em;
    color: #e03131;
    opacity: .7;
    font-weight: 900;
    font-size: 1.4em;
}