/**
 * Custom order file upload — scoped to .entanik-file-upload-group only.
 * Loaded on /custom-order so layout works even without body.entanik-custom-order-page.
 */

.contact-form .form-group.entanik-file-upload-group {
    position: relative;
}

.contact-form .entanik-file-upload-group .entanik-file-upload {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Hide native file control (contact/theme often styles .form-group input with height) */
.contact-form .entanik-file-upload-group input[type="file"],
.contact-form #custom-order-files.entanik-file-upload__input,
#custom_order_form .entanik-file-upload-group input[type="file"] {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.contact-form .entanik-file-upload-group .entanik-file-upload__zone {
    border: 2px dashed #d4d8e0;
    border-radius: 8px;
    background: #f8f9fb;
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form .entanik-file-upload-group .entanik-file-upload__zone:hover,
.contact-form .entanik-file-upload-group .entanik-file-upload__zone:focus-within {
    border-color: var(--color-primary, #3577f0);
    background: #f4f7fe;
}

.contact-form .entanik-file-upload-group .entanik-file-upload__zone.is-filled {
    border-style: solid;
    border-color: #c5d4f5;
    background: #fff;
}

.contact-form .entanik-file-upload-group .entanik-file-upload__zone-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 20px;
    text-align: center;
    width: 100%;
}

.contact-form .entanik-file-upload-group .entanik-file-upload__glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--color-primary, #3577f0);
    background: #fff;
    box-shadow: 0 2px 12px rgba(41, 41, 48, 0.06);
}

.contact-form .entanik-file-upload-group .entanik-file-upload__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
}

.contact-form .entanik-file-upload-group .entanik-file-upload__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 12px 26px;
    min-height: 48px;
    width: auto !important;
    max-width: 100%;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: var(--color-primary, #3577f0);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(53, 119, 240, 0.28);
}

.contact-form .entanik-file-upload-group .entanik-file-upload__placeholder {
    display: block;
    max-width: 320px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.45;
    word-break: break-word;
}

.contact-form .entanik-file-upload-group .entanik-file-upload-group__intro {
    display: block;
    width: 100%;
    margin-bottom: 16px;
}

.contact-form .entanik-file-upload-group .entanik-file-upload-group__title {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-heading, #292930);
}

.contact-form .entanik-file-upload-group .entanik-file-upload-group__hint {
    display: block;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.55;
}