.gform-footer:has(input[type="submit"]){
position:relative;
background: #007BC4;
width: fit-content;
border: 1px solid #007BC4;
}
.gform-footer:has(input[type="submit"])::before {
background-color: #fff;
transition: 0.3s ease-out;
top: 0; bottom: 0; left: 0; 
height: 100%; width: 0%;
}
.gform-footer:has(input[type="submit"]):hover {
color: rgb(255 255 255);
transition: 0.2s 0.1s;
}
.gform-footer:has(input[type="submit"]):hover::before {
width: 100%;
}
.gform-footer:has(input[type="submit"])::before,
.gform-footer:has(input[type="submit"])::after {
position: absolute;
content: "";
}
.gform-footer input[type="submit"]:hover{
color: #007BC4 !important;
}
.gform-footer input[type="submit"] {
background-color: transparent !important;
z-index: 1;
}