.hk-field {
    position: relative;
    text-align: left;
}

.hk-field input,
.hk-field textarea,
.hk-field select {
    width: 100%;
    box-sizing: border-box;
    height: 56px;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.hk-field textarea {
    height: auto;
    min-height: 104px;
    padding: 15px 16px;
    resize: vertical;
    line-height: 1.55;
}

.hk-field select {
    cursor: pointer;
    padding-right: 42px;
}

.hk-field label {
    position: absolute;
    left: 13px;
    top: 28px;
    transform: translateY(-50%);
    padding: 0 6px;
    background: #fff;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: top .18s ease, font-size .18s ease, color .18s ease;
}

.hk-field textarea ~ label {
    top: 24px;
}

.hk-field input:focus,
.hk-field textarea:focus,
.hk-field select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}

.hk-field input:not(:placeholder-shown) ~ label,
.hk-field textarea:not(:placeholder-shown) ~ label,
.hk-field input:focus ~ label,
.hk-field textarea:focus ~ label,
.hk-field select ~ label {
    top: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.hk-field input[type="date"] ~ label,
.hk-field input[type="time"] ~ label {
    top: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.hk-field input:focus ~ label,
.hk-field textarea:focus ~ label,
.hk-field select:focus ~ label {
    color: #dc2626;
}

.hk-field .hk-chev {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}

.hk-field .hk-err {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 4px;
}

.hk-field.hk-invalid input,
.hk-field.hk-invalid textarea,
.hk-field.hk-invalid select {
    border-color: #fca5a5;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .07);
}

.hk-field-file label.hk-file-label {
    position: static;
    transform: none;
    display: block;
    background: none;
    padding: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    pointer-events: auto;
}

.hk-field-file input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    font-size: 14px;
    color: #64748b;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.hk-field-file input[type="file"]:hover {
    border-color: #fca5a5;
    background: #fef2f2;
}
