
.form-group {
    position: relative;
    margin: 20px 0;
}

.form-select {
    position: relative;
    margin: 20px 0;
}

.form-select select {
    width: 100%;
    padding: 12px 8px;
    font-size: 16px;
    border: 1px solid black;
    border-radius: 4px;
    outline: none;
    user-select: none;
    cursor: pointer;
}

.form-group input {
    width: 100%;
    padding: 12px 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    user-select: none;
}

.form-group input:not(:placeholder-shown) {
    border-color: black;
}

.form-group input:focus {
    border-color: #3742fa;
    color: #3742fa;
}

.form-group label {
    position: absolute;
    left: 10px;
    top: 12px;
    color: #777;
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease all;
    user-select: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: black;
    background: #fff;
    padding: 0 4px;
}

.form-group input:focus+label {
    color: #3742fa;;
}

.form-select label {
    position: absolute;
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: black;
    background: #fff;
    padding: 0 4px;
}