.ekr-contact-form__hp{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;opacity:0;}
.ekr-contact-form label{display:block;margin:10px 0 6px;font-weight:600;}
.ekr-contact-form input[type="text"],
.ekr-contact-form input[type="email"],
.ekr-contact-form textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #e5e5e5;border-radius:4px;}
.ekr-contact-form textarea{min-height:110px;resize:vertical;}
.ekr-contact-form .hint{display:block;margin-top:6px;color:#777;font-size:12px;}
.ekr-contact-form .actions{margin-top:16px;}
/* ========= Base form polish ========= */
.ekr-contact-form .field{margin-bottom:14px;}
.ekr-contact-form label{display:block;margin:10px 0 6px;font-weight:600;color:#444;}
.ekr-contact-form input[type="text"],
.ekr-contact-form input[type="email"],
.ekr-contact-form textarea{
    width:100%;
    box-sizing:border-box;
    padding:12px 12px;
    border:1px solid #e5e5e5;
    border-radius:6px;
    background:#fff;
    outline:none;
    transition:border-color .15s, box-shadow .15s;
}
.ekr-contact-form textarea{min-height:140px;resize:vertical;}
.ekr-contact-form input:focus,
.ekr-contact-form textarea:focus{
    border-color:#b8b8b8;
    box-shadow:0 0 0 3px rgba(0,0,0,.06);
}
.ekr-contact-form .hint{display:block;margin-top:8px;color:#777;font-size:12px;}

/* ========= Upload widget ========= */
.ekr-upload{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 10px;
    border:1px dashed #d8d8d8;
    border-radius:8px;
    background:#fafafa;
    transition:background .15s, border-color .15s, box-shadow .15s;
}

.ekr-upload.is-dragover{
    background:#fff;
    border-color:#b8b8b8;
    box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.ekr-upload__input{
    /* hide native file input but keep accessible */
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

.ekr-upload__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:38px;
    padding:0 14px;
    border:1px solid #cfcfcf;
    border-radius:6px;
    background:#fff;
    color:#333;
    font-weight:600;
    cursor:pointer;
    user-select:none;
    transition:background .15s, border-color .15s, box-shadow .15s;
}
.ekr-upload__btn:hover{
    background:#f4f4f4;
    border-color:#bdbdbd;
}
.ekr-upload__btn:active{
    transform:translateY(1px);
}

.ekr-upload__name{
    flex:1;
    min-width:0;
    font-size:13px;
    color:#444;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.ekr-upload__name.is-empty{color:#888;}
.ekr-upload__name.is-selected{color:#111;}

.ekr-upload__clear{
    width:34px;
    height:34px;
    border-radius:8px;
    border:1px solid transparent;
    background:transparent;
    color:#888;
    cursor:pointer;
    display:none; /* default hidden */
    transition:background .15s, color .15s, border-color .15s;
}
.ekr-upload__clear:hover{
    background:#fff;
    border-color:#e1e1e1;
    color:#333;
}

.ekr-upload.has-file .ekr-upload__clear{display:inline-flex;align-items:center;justify-content:center;}

/* ========= Dropzone Multi-Upload Widget ========= */
.ekr-dropzone{
    border:1px dashed #d8d8d8;
    border-radius:8px;
    background:#fafafa;
    transition:background .15s, border-color .15s, box-shadow .15s;
    padding:20px;
    margin-bottom:10px;
}

.ekr-dropzone.dz-clickable{
    cursor:pointer;
}

.ekr-dropzone.dz-clickable:hover,
.ekr-dropzone.dz-drag-hover{
    background:#fff;
    border-color:#b8b8b8;
    box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.ekr-dropzone .dz-message{
    text-align:center;
    color:#777;
    font-size:14px;
}

.ekr-dropzone .dz-message .dz-message-content strong{
    display:block;
    color:#333;
    margin-bottom:5px;
    font-size:16px;
}

.ekr-dropzone .dz-preview{
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:8px;
    padding:10px;
    margin:10px 0;
    position:relative;
    width:200px;
    display:inline-block;
    vertical-align:top;
    margin-right:10px;
}

.ekr-dropzone .dz-image{
    width:100%;
    height:150px;
    border-radius:4px;
    overflow:hidden;
    background:#f0f0f0;
    margin-bottom:10px;
}

.ekr-dropzone .dz-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ekr-dropzone .dz-details{
    padding:0 5px;
}

.ekr-dropzone .dz-filename{
    color:#333;
    font-size:12px;
    font-weight:600;
    word-wrap:break-word;
    white-space:normal;
    line-height:1.3;
    max-height:40px;
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.ekr-dropzone .dz-size{
    color:#777;
    font-size:11px;
    margin-top:3px;
}

.ekr-dropzone .dz-progress{
    height:5px;
    background:#f0f0f0;
    border-radius:3px;
    margin:10px 0;
    overflow:hidden;
}

.ekr-dropzone .dz-upload{
    height:100%;
    background:#3498db;
    border-radius:3px;
    transition:width .2s ease;
}

.ekr-dropzone .dz-error-message{
    color:#e74c3c;
    font-size:11px;
    margin-top:5px;
    display:none;
}

.ekr-dropzone .dz-error .dz-error-message{
    display:block;
}

.ekr-dropzone .dz-remove{
    background:#e74c3c;
    color:#fff;
    border:none;
    border-radius:4px;
    padding:5px 10px;
    font-size:11px;
    cursor:pointer;
    margin-top:10px;
    display:inline-block;
    text-decoration:none;
    transition:background .15s;
    clear:both;
}

.ekr-dropzone .dz-remove:hover{
    background:#c0392b;
}

/* Hide duplicate remove buttons */
.ekr-dropzone .dz-remove + .dz-remove{
    display:none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ekr-dropzone .dz-preview{
        width:100%;
        margin-right:0;
    }
}
