
.floating-label {
    position: relative;
    margin-bottom: 20px;
}

.floating-label label span {
    background-color: var(--input-bg, white);
    padding: 0 4px;
}

.floating-label input {
    width: 100%;
    padding: 12px 10px; /* Add padding to prevent overlap */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.floating-label label {
    position: absolute;
    top: 12px; /* Adjust to align with input padding */
    left: 10px;
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    transition: 0.2s ease all;
    background: white; /* Add background to cover input border */
    padding: 5px 5px !important; /* Add padding to create space around text */
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -13px; /* Float above the input box */
    left: 10px;
    font-size: 12px;
    color: #333;
    background: white;
}
.floating-label .is-invalid-label{
    background: none;
}
.floating-label input:focus + label.is-invalid-label,
.floating-label input:not(:placeholder-shown) + label.is-invalid-label {
    background: white;
}
