:root {
    --primary-color: #63a1f1;
    --secondary-color: #4696e5;
    --accent-color: #a5b4fc;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}
/* Custom floating labels */
.custom-form-floating {
    position: relative;
    margin-top: 0px;
    margin-bottom: 3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-form-floating input, 
.custom-form-floating select, 
.custom-form-floating textarea {
    width: 100%;
    padding: 8px 3px;
    border: 2px solid #e5e7eb7b;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s;
}
.custom-form-floating input:hover, 
.custom-form-floating select:hover, 
.custom-form-floating textarea:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Move the label when input is hovered */
.custom-form-floating input:hover ~ label,
.custom-form-floating select:hover ~ label,
.custom-form-floating textarea:hover ~ label {
    transform: translateY(-4px); /* Move label higher */
}

.custom-form-floating input:focus,
.custom-form-floating textarea:focus,
.custom-form-floating select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-form-floating label {
    position: absolute;
    top: 10px;
    left: 15px;
    color: #6b7280;
    transition: all 0.2s;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.51);
    padding: 0 5px;
    font-size: 14px;
}



.custom-form-floating input:focus ~ label,
.custom-form-floating input:not(:placeholder-shown) ~ label,
.custom-form-floating textarea:focus ~ label,
.custom-form-floating textarea:not(:placeholder-shown) ~ label,
.custom-form-floating select:focus ~ label,
.custom-form-floating select:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px){
    .custom-form-floating label {
     font-size: 12px;
    }
    .custom-form-floating input:focus ~ label,
    .custom-form-floating input:not(:placeholder-shown) ~ label {
        font-size: 11px;
    }
 }

.custom-form-floating-2 {
    position: relative;
}

.custom-form-floating-2 input,
.custom-form-floating-2 textarea,
.custom-form-floating-2 select {
    width: 100%;
    padding: 6px 2px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s;
}

.custom-form-floating-2 label {
    position: absolute;
    top: -10px; /* Langsung naik dari awal */
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    background-color: transparent;
    padding: 0 1px;
    pointer-events: none;
    transition: all 0.2s ease;
}