/* Enfold File Upload – frontend */
.efu-file-upload{--efu-accent:#666;--efu-accent-dark:#555;--efu-border:#e1e1e1;--efu-muted:#8d8d8d;--efu-surface:#fff;--efu-soft:#f8f8f8;--efu-danger:#c94a4a;--efu-success:#2f8a57;display:block;margin-top:11px;margin-bottom:28px;font-size:14px;line-height:1.5}
.efu-file-upload *{box-sizing:border-box}
.efu-file-upload.form_element{position:relative}


.efu-upload-box{position:relative}
.efu-file-input{position:fixed!important;left:-10000px!important;top:-10000px!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;max-width:1px!important;max-height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.efu-upload-dropzone{display:flex;align-items:center;justify-content:center;gap:15px;min-height:118px;padding:24px 28px;border:1px dashed var(--efu-border);border-radius:3px;background:var(--efu-surface);cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .18s ease}
.efu-upload-dropzone:hover,.efu-upload-dropzone:focus-visible{border-color:var(--efu-accent);background:var(--efu-soft);box-shadow:0 0 0 3px rgba(102,102,102,.08);outline:0}
.efu-upload-dropzone.efu-is-dragover{border-color:var(--efu-accent);background:var(--efu-soft);box-shadow:0 0 0 3px rgba(102,102,102,.10);transform:translateY(-1px)}
.efu-upload-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:var(--efu-soft);color:var(--efu-accent)}
.efu-upload-icon svg{width:26px;height:26px}
.efu-upload-copy{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 7px;color:var(--efu-text)}
.efu-upload-title{font-size:16px;font-weight:600;color:var(--efu-heading)}
.efu-upload-subtitle{font-size:16px;color:var(--efu-muted)}
.efu-upload-browse{color:var(--efu-accent-dark);font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.efu-upload-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:var(--efu-muted);font-size:12px}
.efu-upload-status{min-height:0;margin-top:9px;font-size:13px}
.efu-upload-status:empty{display:none}
.efu-upload-status.efu-status-error{color:var(--efu-danger)}
.efu-upload-status.efu-status-info{color:var(--efu-muted)}
.efu-file-list{display:grid;gap:9px;margin-top:13px}
.efu-file-item{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--efu-border);border-radius:3px;background:var(--efu-surface);box-shadow:0 1px 2px rgba(0,0,0,.03)}
.efu-file-preview{position:relative;width:52px;height:52px;overflow:hidden;border-radius:3px;background:var(--efu-soft);display:grid;place-items:center;color:var(--efu-muted)}
.efu-file-preview img{display:block;width:100%;height:100%;object-fit:cover}
.efu-file-preview iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.efu-file-type{font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--efu-muted)}
.efu-file-info{min-width:0}
.efu-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--efu-heading);font-weight:600;font-size:13px}
.efu-file-size{display:block;margin-top:2px;color:var(--efu-muted);font-size:12px}
.efu-file-remove{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:3px;background:transparent;color:var(--efu-muted);cursor:pointer;font-size:22px;line-height:1;transition:background-color .15s ease,color .15s ease}
.efu-file-remove:hover,.efu-file-remove:focus-visible{background:var(--efu-soft);color:var(--efu-heading);outline:0}
.efu-file-remove span{transform:translateY(-1px)}
.efu-file-item.efu-file-invalid{border-color:#e9b7b7;background:var(--efu-surface)}
.efu-file-error{display:block;margin-top:3px;color:var(--efu-danger);font-size:11px}
@media (max-width:767px){.efu-file-upload{margin-top:20px;margin-bottom:24px}.efu-upload-dropzone{min-height:104px;padding:20px 16px}.efu-upload-meta{display:block}.efu-upload-meta span{display:block}.efu-upload-meta span+span{margin-top:3px}.efu-file-item{grid-template-columns:44px minmax(0,1fr) auto}.efu-file-preview{width:44px;height:44px}.efu-upload-icon{width:42px;height:42px;flex-basis:42px}.efu-upload-icon svg{width:23px;height:23px}}
@media (prefers-reduced-motion:reduce){.efu-upload-dropzone,.efu-file-remove{transition:none}}


/* The Enfold form generator wraps HTML elements in .av-form-text. Remove only
 * that extra layout box for EFU so the actual upload field can participate in
 * Enfold's native form_element_* column flow. */
#top form.avia_ajax_form .av-form-text:has(> .efu-file-upload){display:contents}

/* Native Enfold column classes. These are intentionally scoped to EFU and
 * mirror Enfold's own contact-form geometry, including first_form. */
#top form.avia_ajax_form .efu-file-upload.form_fullwidth{width:100%;float:left;clear:both;margin-left:0}
#top form.avia_ajax_form .efu-file-upload.form_element_half{width:49.5%;float:left;margin-left:1%;clear:none}
#top form.avia_ajax_form .efu-file-upload.form_element_third{width:32.6%;float:left;margin-left:1%;clear:none}
#top form.avia_ajax_form .efu-file-upload.form_element_two_third{width:66.4%;float:left;margin-left:1%;clear:none}
#top form.avia_ajax_form .efu-file-upload.form_element_fourth{width:24.2%;float:left;margin-left:1%;clear:none}
#top form.avia_ajax_form .efu-file-upload.form_element_three_fourth{width:74.8%;float:left;margin-left:1%;clear:none}
#top form.avia_ajax_form .efu-file-upload.first_form{clear:both;margin-left:0}

#top form.avia_ajax_form .efu-file-upload input.efu-file-input{
position:fixed !important;
left:-10000px !important;
top:-10000px !important;
width:1px !important;
height:1px !important;
min-width:1px !important;
min-height:1px !important;
max-width:1px !important;
max-height:1px !important;
pointer-events:none !important;
opacity:0 !important;
}

@media only screen and (max-width:479px){
#top form.avia_ajax_form .efu-file-upload.form_element,
#top form.avia_ajax_form .efu-file-upload.form_element_half,
#top form.avia_ajax_form .efu-file-upload.form_element_third,
#top form.avia_ajax_form .efu-file-upload.form_element_two_third,
#top form.avia_ajax_form .efu-file-upload.form_element_fourth,
#top form.avia_ajax_form .efu-file-upload.form_element_three_fourth{width:100%;clear:both;margin-left:0;margin-right:0;float:none}
}

/* EFU label: visual match to native Enfold contact-form labels.
 * The title is informational and must not open the file picker. */
#top .avia_ajax_form .efu-file-upload > .efu-upload-label{
    display:block !important;
    margin:0 0 7px !important;
    padding:0 !important;
    font-family:inherit !important;
    font-size:18px !important;
    font-weight:600 !important;
    line-height:1.4 !important;
    color:#8d8d8d !important;
    text-transform:none !important;
    letter-spacing:normal !important;
    cursor:default !important;
    pointer-events:none !important;
}
#top .avia_ajax_form .efu-file-upload > .efu-upload-label .required{
    color:var(--efu-accent) !important;
    text-decoration:none !important;
    cursor:default !important;
    pointer-events:none !important;
}
