/* Fuse File Upload field (WPForms): dashed drop box with thumbnails (Hawaii request form look); document fields add a visible prompt. */
.wpforms-container .fuse-file-drop {
    position: relative !important;
    width: 100%;
}

.wpforms-container .fuse-file-drop__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0;
}

.wpforms-container .fuse-file-drop__zone {
    display: flex !important;
    min-height: 50px;
    margin: 0 !important;
    padding: 12px !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #bdbdbd !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #6b6b6b;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wpforms-container .fuse-file-drop__zone:hover,
.wpforms-container .fuse-file-drop.is-dragging .fuse-file-drop__zone {
    border-color: var(--color-accent, #e30b2e) !important;
    background: #fff7f8 !important;
    color: var(--color-accent, #e30b2e);
}

.wpforms-container .fuse-file-drop__input:focus-visible + .fuse-file-drop__zone {
    outline: 2px solid var(--color-accent, #e30b2e);
    outline-offset: 2px;
}

.wpforms-container .fuse-file-drop.is-full .fuse-file-drop__zone {
    display: none !important;
}

.wpforms-container .fuse-file-drop__icon {
    flex: 0 0 auto;
}

/* The drop box shows only the icon (screen readers hear the text). */
.wpforms-container .fuse-file-drop__text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* Document fields: visible prompt and allowed types/size, one file per row (long names such as resumes). */
.wpforms-container .fuse-file-drop--files .fuse-file-drop__zone {
    min-height: 64px;
    padding: 14px 16px !important;
    text-align: left;
}

.wpforms-container .fuse-file-drop--files .fuse-file-drop__text {
    position: static !important;
    display: flex;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    flex-direction: column;
    gap: 2px;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal !important;
}

.wpforms-container .fuse-file-drop--files .fuse-file-drop__zone:hover .fuse-file-drop__text,
.wpforms-container .fuse-file-drop--files.is-dragging .fuse-file-drop__text {
    color: inherit;
}

.wpforms-container .fuse-file-drop__hint {
    color: #6b6b6b;
    font-size: 12px;
}

.wpforms-container .fuse-file-drop--files .fuse-file-drop__item {
    width: 100%;
}

.wpforms-container .fuse-file-drop__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wpforms-container .fuse-file-drop.has-files .fuse-file-drop__list {
    margin-top: 10px !important;
}

.wpforms-container .fuse-file-drop__item {
    position: relative;
    display: flex;
    width: calc(33.333% - 7px);
    min-width: 0;
    margin: 0 !important;
    padding: 6px !important;
    align-items: center;
    gap: 8px;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #fff !important;
}

.wpforms-container .fuse-file-drop__item::before {
    display: none !important;
    content: none !important;
}

.wpforms-container .fuse-file-drop__thumb {
    display: flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    object-fit: cover;
    background: var(--color-gray-light, #f7f7f7);
    color: #6b6b6b;
    font-size: 10px;
    font-weight: 700;
}

.wpforms-container .fuse-file-drop__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #333;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpforms-container .fuse-file-drop__remove {
    display: flex !important;
    flex: 0 0 24px;
    width: 24px !important;
    height: 24px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #555 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer;
}

.wpforms-container .fuse-file-drop__remove:hover,
.wpforms-container .fuse-file-drop__remove:focus-visible {
    background: var(--color-accent, #e30b2e) !important;
    color: #fff !important;
}

.wpforms-container .fuse-file-drop__message {
    margin: 8px 0 0 !important;
    color: var(--color-accent, #e30b2e);
    font-size: 13px;
    line-height: 1.3;
}

.wpforms-container .fuse-file-drop__message[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .wpforms-container .fuse-file-drop__item {
        width: 100%;
    }
}
