/* ══════════════════════════════════════════════════════════════
   upload-form.css  –  reusable upload form (see upload-form.js)
   Everything is scoped to .uf (the form container) so no other part of any page is affected.
   Palette taken from styles.css:  navy #110C55 · blue #0059DC · light #C0CCFC
══════════════════════════════════════════════════════════════ */

/* optional: give the page's caption  <div class="text-block intro uf-caption">  to line it up with the card.
   The block takes the whole line (so a wide screen can never put the card beside it);
   the text inside is limited to the card's width and centred like the card. */
.uf-caption {
    width: 100%;
    max-width: none;
    margin: 18px 0 16px;
}

    .uf-caption > p {
        max-width: 880px;
        margin: 0 auto;
    }

.uf {
    width: 100%; /* its own full line inside the flex "content" area, at any screen width */
    margin: 6px 0 70px;
}

    /* styles.css colours every element with a universal rule, so colours are set explicitly here */
    .uf, .uf * {
        box-sizing: border-box;
    }

        /* ── card ─────────────────────────────────────────────────── */
        .uf .uf-card {
            max-width: 880px;
            margin-left: auto;
            margin-right: auto;
            background: #fff;
            border: 3px solid #110C55;
            border-radius: 15px;
            padding: 38px 42px 36px;
            box-shadow: 0 22px 55px rgba(17, 12, 85, .10);
        }

            .uf .uf-card[hidden] {
                display: none;
            }

        .uf .uf-head h2 {
            font-size: 30px;
            font-weight: 700;
            line-height: 1.15;
            color: #110C55;
        }

        .uf .uf-head p {
            margin-top: 10px;
            font-size: 15px;
            line-height: 1.6;
            color: #4a4880;
        }

        /* ── sections ─────────────────────────────────────────────── */
        .uf .uf-section {
            border: 0;
            margin: 30px 0 0;
            padding: 0;
            min-width: 0;
        }

            .uf .uf-section legend {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 0;
                margin-bottom: 18px;
                font-size: 18px;
                font-weight: 700;
                color: #110C55;
            }

                .uf .uf-section legend span {
                    color: #110C55;
                }

                .uf .uf-section legend .num {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 30px;
                    height: 30px;
                    flex: 0 0 30px;
                    border-radius: 50%;
                    background: #0059DC;
                    color: #fff;
                    font-size: 15px;
                    font-weight: 700;
                }

        /* ── fields ───────────────────────────────────────────────── */
        .uf .uf-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px 22px;
        }

        .uf .uf-field label {
            display: block;
            margin-bottom: 7px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: .01em;
            color: #110C55;
        }

            .uf .uf-field label span {
                color: inherit;
            }

        .uf .req {
            color: #D93A3A !important;
            font-weight: 700;
        }

        .uf .opt {
            color: #6a6e8e !important;
            font-weight: 500;
        }

        .uf .uf-field input {
            width: 100%;
            height: 52px;
            padding: 0 16px;
            font-size: 16px;
            font-weight: 500;
            color: #110C55;
            background: #fff;
            border: 2px solid #C0CCFC;
            border-radius: 11px;
            outline: none;
            transition: border-color .15s, box-shadow .15s, background .15s;
        }

        .uf .uf-field input,
        .uf .dropzone {
            scroll-margin-top: 150px;
        }

            .uf .uf-field input::placeholder {
                color: #9aa0c4;
                font-weight: 400;
            }

            .uf .uf-field input:hover {
                border-color: #8fa5f0;
            }

            .uf .uf-field input:focus {
                border-color: #0059DC;
                box-shadow: 0 0 0 4px rgba(0, 89, 220, .16);
            }

            .uf .uf-field input.invalid,
            .uf .uf-field input.invalid:hover {
                border-color: #D93A3A;
                background: #FFF8F8;
            }

                .uf .uf-field input.invalid:focus {
                    box-shadow: 0 0 0 4px rgba(217, 58, 58, .16);
                }

        .uf .field-error {
            margin-top: 7px;
            font-size: 13px;
            line-height: 1.4;
            color: #C62828;
        }

            .uf .field-error:empty {
                display: none;
            }

        /* ── drop zone ────────────────────────────────────────────── */
        .uf .dropzone {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 30px 20px 26px;
            text-align: center;
            background: #F4F7FF;
            border: 2px dashed #0059DC;
            border-radius: 14px;
            cursor: pointer;
            outline: none;
            transition: background .15s, border-color .15s, box-shadow .15s;
        }

            .uf .dropzone:hover,
            .uf .dropzone.drag {
                background: #E7EFFF;
                border-style: solid;
            }

            .uf .dropzone:focus-visible {
                box-shadow: 0 0 0 4px rgba(0, 89, 220, .20);
            }

            .uf .dropzone.invalid {
                border-color: #D93A3A;
                background: #FFF8F8;
            }

            .uf .dropzone[hidden] {
                display: none;
            }

        .uf .dz-title {
            margin-top: 6px;
            font-size: 17px;
            font-weight: 700;
            color: #110C55;
        }

            .uf .dz-title span {
                color: #110C55;
            }

        .uf .dz-sub {
            font-size: 14px;
            color: #4a4880;
        }

            .uf .dz-sub span {
                color: #4a4880;
            }

        .uf .dz-link {
            color: #0059DC !important;
            font-weight: 700;
            text-decoration: underline;
        }

        .uf .dz-hint {
            margin-top: 8px;
            font-size: 12.5px;
            color: #6a6e8e;
        }

        /* ── chosen file ──────────────────────────────────────────── */
        .uf .file-picked {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            background: #F2FBF5;
            border: 2px solid #1E9E4A;
            border-radius: 14px;
        }

            .uf .file-picked[hidden] {
                display: none;
            }

        .uf .pdf-badge {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 54px;
            border-radius: 7px;
            background: #D93A3A;
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: .04em;
        }

        .uf .fp-info {
            min-width: 0;
            flex: 1 1 auto;
        }

        .uf .fp-name {
            font-size: 15px;
            font-weight: 700;
            color: #110C55;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .uf .fp-size {
            margin-top: 2px;
            font-size: 13px;
            color: #4a4880;
        }

        .uf .name-preview {
            margin-top: 14px;
            padding: 12px 16px;
            font-size: 13.5px;
            line-height: 1.5;
            color: #4a4880;
            background: #F4F7FF;
            border-radius: 11px;
            word-break: break-all;
        }

            .uf .name-preview[hidden] {
                display: none;
            }

            .uf .name-preview span {
                color: #4a4880;
            }

            .uf .name-preview strong {
                color: #110C55;
                font-weight: 700;
            }

        /* ── alerts ───────────────────────────────────────────────── */
        .uf .alert {
            margin-top: 22px;
            padding: 14px 18px;
            font-size: 14.5px;
            line-height: 1.5;
            border-radius: 11px;
        }

            .uf .alert[hidden] {
                display: none;
            }

            .uf .alert.error {
                color: #8C1D1D;
                background: #FDECEC;
                border: 1.5px solid #E9A3A3;
                border-left: 5px solid #D93A3A;
            }

        /* ── progress ─────────────────────────────────────────────── */
        .uf .progress {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 24px;
        }

            .uf .progress[hidden] {
                display: none;
            }

        .uf .progress-bar {
            flex: 1 1 auto;
            height: 10px;
            background: #E3E9FB;
            border-radius: 99px;
            overflow: hidden;
        }

        .uf .progress-fill {
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, #0059DC, #3b82f6);
            border-radius: 99px;
            transition: width .15s linear;
        }

        .uf .progress-pct {
            min-width: 44px;
            text-align: right;
            font-size: 13px;
            font-weight: 700;
            color: #110C55;
        }

        /* ── buttons ──────────────────────────────────────────────── */
        .uf .uf-actions {
            margin-top: 28px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px 22px;
        }

            .uf .uf-actions.row {
                gap: 14px;
            }

        .uf .req-note {
            font-size: 13px;
            color: #6a6e8e;
        }

            .uf .req-note span {
                color: #6a6e8e;
            }

            .uf .req-note .req {
                color: #D93A3A;
            }

        .uf .btn-primary,
        .uf .btn-secondary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 54px;
            padding: 0 34px;
            font-size: 16px;
            font-weight: 700;
            border-radius: 12px;
            cursor: pointer;
            transition: background .15s, color .15s, border-color .15s, transform .05s, box-shadow .15s;
        }

        .uf .btn-primary {
            color: #fff;
            background: #110C55;
            border: 2px solid #110C55;
        }

            .uf .btn-primary * {
                color: #fff;
            }

            .uf .btn-primary:hover:not(:disabled) {
                background: #0059DC;
                border-color: #0059DC;
            }

            .uf .btn-primary:active:not(:disabled) {
                transform: translateY(1px);
            }

            .uf .btn-primary:focus-visible {
                outline: 3px solid rgba(0, 89, 220, .4);
                outline-offset: 3px;
            }

            .uf .btn-primary:disabled {
                opacity: .65;
                cursor: not-allowed;
            }

        .uf .btn-secondary {
            color: #110C55;
            background: #fff;
            border: 2px solid #110C55;
        }

            .uf .btn-secondary:hover {
                color: #fff;
                background: #110C55;
            }

            .uf .btn-secondary:focus-visible {
                outline: 3px solid rgba(17, 12, 85, .3);
                outline-offset: 3px;
            }

        .uf .spinner {
            display: none;
            width: 18px;
            height: 18px;
            border: 3px solid rgba(255, 255, 255, .45);
            border-top-color: #fff;
            border-radius: 50%;
            animation: ufSpin .7s linear infinite;
        }

        .uf .btn-primary.busy .spinner {
            display: inline-block;
        }

        .uf .btn-primary.busy .dl-icon {
            display: none;
        }

@keyframes ufSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── success view ─────────────────────────────────────────── */
.uf .success-banner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    background: #E9F7EE;
    border: 2px solid #1E9E4A;
    border-radius: 14px;
}

    .uf .success-banner .tick {
        flex: 0 0 auto;
    }

    .uf .success-banner h2 {
        font-size: 26px;
        font-weight: 700;
        line-height: 1.2;
        color: #14742f;
        outline: none;
    }

    .uf .success-banner p {
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.55;
        color: #1B5E34;
    }

    .uf .success-banner .ok-note {
        font-size: 13px;
        color: #4b6d58;
    }

        .uf .success-banner .ok-note[hidden] {
            display: none;
        }

.uf .tick-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: ufTick .55s .15s ease-out forwards;
}

.uf .tick circle {
    transform-origin: center;
    animation: ufPop .4s ease-out;
}

@keyframes ufTick {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ufPop {
    from {
        transform: scale(.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.uf .details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 26px;
    border: 1.5px solid #D7DBEA;
    border-radius: 12px;
    overflow: hidden;
}

    .uf .details .d-row {
        padding: 13px 18px;
        border-bottom: 1px solid #E5E8F3;
        min-width: 0;
    }

        .uf .details .d-row.l {
            border-right: 1px solid #E5E8F3;
        }

        .uf .details .d-row.wide {
            grid-column: 1 / -1;
        }

        .uf .details .d-row:last-child {
            border-bottom: 0;
        }

    .uf .details dt {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .02em;
        color: #6a6e8e;
    }

    .uf .details dd {
        margin-top: 3px;
        font-size: 15px;
        font-weight: 700;
        color: #110C55;
        word-break: break-word;
    }

.uf .preview {
    margin-top: 26px;
}

.uf .preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .uf .preview-head strong {
        font-size: 16px;
        color: #110C55;
    }

    .uf .preview-head a {
        font-size: 14px;
        font-weight: 700;
        color: #0059DC;
        text-decoration: underline;
    }

.uf .preview iframe {
    display: block;
    width: 100%;
    height: 560px;
    background: #EEF1FA;
    border: 2px solid #C0CCFC;
    border-radius: 12px;
}

.uf .preview-fallback {
    margin-top: 8px;
    font-size: 12.5px;
    color: #6a6e8e;
}

/* ── responsive ───────────────────────────────────────────── */
@media all and (max-width: 768px) {
    .content.uf-host {
        padding: 0 14px;
    }

    .uf {
        margin-bottom: 40px;
    }

        .uf .uf-card {
            padding: 24px 18px 24px;
        }

        .uf .uf-head h2 {
            font-size: 24px;
        }

        .uf .uf-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .uf .dropzone {
            padding: 24px 14px 20px;
        }

        .uf .uf-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .uf .btn-primary,
        .uf .btn-secondary {
            width: 100%;
            padding: 0 20px;
        }

        .uf .req-note {
            text-align: center;
        }

        .uf .success-banner {
            flex-direction: column;
            text-align: center;
            padding: 22px 16px;
            gap: 14px;
        }

            .uf .success-banner h2 {
                font-size: 22px;
            }

        .uf .details {
            grid-template-columns: 1fr;
        }

            .uf .details .d-row,
            .uf .details .d-row.l {
                border-right: 0;
                border-bottom: 1px solid #E5E8F3;
            }

                .uf .details .d-row:last-child {
                    border-bottom: 0;
                }

        .uf .preview iframe {
            height: 420px;
        }

        .uf .preview-head {
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .uf .tick-path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .uf .tick circle {
        animation: none;
    }

    .uf .spinner {
        animation-duration: 1.6s;
    }
}

/* ══════════════════════════════════════════════════════════════
   List of documents to download (optional – placed above the form)
   <div class="uf-docs-wrap"><div class="uf-docs"><h2 class="uf-docs-head">…</h2><ul class="uf-docs-list"><li><a href="…" download>…</a></li>…
══════════════════════════════════════════════════════════════ */
.uf-docs-wrap {
    width: 100%; /* its own full line inside the flex "content" area, at any screen width */
    margin: 6px 0 26px;
}

.uf-docs, .uf-docs * {
    box-sizing: border-box;
}

.uf-docs {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 32px 30px;
    background: #fff;
    border: 3px solid #110C55;
    border-radius: 15px;
    box-shadow: 0 22px 55px rgba(17, 12, 85, .10);
}

    .uf-docs .uf-docs-head {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
        color: #110C55;
    }

    .uf-docs .uf-docs-list {
        display: grid;
        gap: 10px;
        margin: 18px 0 0;
        padding: 0;
        list-style: none;
    }

        .uf-docs .uf-docs-list li {
            margin: 0;
            padding: 0;
        }

        .uf-docs .uf-docs-list a {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 13px 16px;
            font-size: 15.5px;
            font-weight: 600;
            line-height: 1.35;
            color: #110C55;
            text-decoration: none;
            background: #f4f6ff;
            border: 2px solid #C0CCFC;
            border-radius: 12px;
            transition: background .15s, border-color .15s;
        }

            /* the red PDF badge, same as the chosen-file card in the form */
            .uf-docs .uf-docs-list a::before {
                content: "PDF";
                flex: 0 0 auto;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 44px;
                height: 30px;
                border-radius: 6px;
                background: #D93A3A;
                color: #fff;
                font-size: 12px;
                font-weight: 800;
                letter-spacing: .04em;
            }

            /* download arrow on the right */
            .uf-docs .uf-docs-list a::after {
                content: "";
                flex: 0 0 20px;
                height: 20px;
                margin-left: auto;
                background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M5 20h14' fill='none' stroke='%230059DC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
            }

            .uf-docs .uf-docs-list a:hover {
                background: #E7EFFF;
                border-color: #0059DC;
            }

            .uf-docs .uf-docs-list a:focus-visible {
                outline: 3px solid rgba(0, 89, 220, .4);
                outline-offset: 2px;
            }

@media all and (max-width: 768px) {
    .uf-docs-wrap {
        margin-bottom: 18px;
    }

    .uf-docs {
        padding: 22px 16px 22px;
    }

        .uf-docs .uf-docs-head {
            font-size: 20px;
        }

        .uf-docs .uf-docs-list a {
            padding: 12px 12px;
            font-size: 14.5px;
            gap: 12px;
        }
}

/* ══════════════════════════════════════════════════════════════
   "I am submitting as: Individual | Company"  +  company form (many PDFs)
   Used when the page has  <div class="upload-form" data-types="both">
══════════════════════════════════════════════════════════════ */

/* the HTML attribute "hidden" must always win (some rules below set display) */
.uf [hidden]:not(.cf-x) {
    display: none !important;
}

/* ── the two choice cards ───────────────────────────────────── */
.uf .uf-type {
    margin-bottom: 22px;
}

.uf .uf-type-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #110C55;
}

.uf .uf-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.uf .uf-type-opt {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 92px;
    padding: 18px 22px;
    font: inherit;
    text-align: left;
    color: #110C55;
    background: #fff;
    border: 3px solid #C0CCFC;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(17, 12, 85, .06);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .05s;
}

    .uf .uf-type-opt:hover {
        border-color: #0059DC;
        background: #F4F7FF;
    }

    .uf .uf-type-opt:active {
        transform: translateY(1px);
    }

    .uf .uf-type-opt:focus-visible {
        outline: 4px solid rgba(0, 89, 220, .4);
        outline-offset: 3px;
    }
    /* the chosen option: dark frame, tinted background, green tick */
    .uf .uf-type-opt[aria-checked="true"] {
        border-color: #110C55;
        background: #E7EFFF;
        box-shadow: 0 0 0 4px rgba(17, 12, 85, .12);
    }

.uf .uf-type-ico {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E7EFFF;
}

    .uf .uf-type-ico svg {
        width: 32px;
        height: 32px;
    }

.uf .uf-type-opt[aria-checked="true"] .uf-type-ico {
    background: #fff;
}

.uf .uf-type-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .uf .uf-type-txt strong {
        font-size: 22px;
        font-weight: 700;
        line-height: 1.2;
        color: #110C55;
    }

.uf .uf-type-tick {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-left: auto;
    background: #fff;
    border: 3px solid #C0CCFC;
    border-radius: 50%;
}

.uf .uf-type-opt[aria-checked="true"] .uf-type-tick {
    background: #1E9E4A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
    border-color: #1E9E4A;
}

.uf .uf-type-hint {
    margin: 16px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #4a4880;
}

/* ── company form ───────────────────────────────────────────── */
.uf .cf-drop {
    gap: 6px;
}

    .uf .cf-drop.disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.uf .cf-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 4px;
}

.uf .btn-secondary.cf-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

.uf .btn-secondary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.uf .cf-checking {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 14px;
    color: #4a4880;
}

.uf .spinner.dark {
    display: inline-block;
    border-color: rgba(17, 12, 85, .25);
    border-top-color: #110C55;
}

.uf .cf-panel {
    margin-top: 16px;
}

.uf .cf-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.uf .cf-count {
    font-size: 15px;
    font-weight: 700;
    color: #110C55;
}

.uf .cf-bar-btns {
    display: flex;
    gap: 18px;
}

.uf .cf-link {
    padding: 4px 0;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #0059DC;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

    .uf .cf-link.danger {
        color: #C62828;
    }

    .uf .cf-link:focus-visible {
        outline: 3px solid rgba(0, 89, 220, .35);
        outline-offset: 2px;
        border-radius: 4px;
    }

.uf .cf-list {
    position: relative;
    max-height: 360px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 2px solid #C0CCFC;
    border-radius: 12px;
}

.uf .cf-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 76px 22px 104px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: 1px solid #E5E8F3;
}

    .uf .cf-row:last-child {
        border-bottom: 0;
    }

    .uf .cf-row[data-status="done"] {
        background: #F6FCF8;
    }

    .uf .cf-row[data-status="failed"] {
        background: #FFF8F8;
    }

.uf .cf-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 26px;
    border-radius: 5px;
    background: #D93A3A;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.uf .cf-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.uf .cf-name {
    overflow: hidden;
    font-weight: 600;
    color: #110C55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uf .cf-err {
    font-size: 12.5px;
    color: #C62828;
}

    .uf .cf-err:empty {
        display: none;
    }

.uf .cf-size {
    font-size: 12.5px;
    color: #6a6e8e;
    text-align: right;
    white-space: nowrap;
}

.uf .cf-state {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.uf .cf-row[data-status="uploading"] .cf-state {
    border: 3px solid rgba(0, 89, 220, .25);
    border-top-color: #0059DC;
    animation: ufSpin .8s linear infinite;
}

.uf .cf-row[data-status="done"] .cf-state {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231E9E4A'/%3E%3Cpath d='M6.5 12.5l4 4 7-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.uf .cf-row[data-status="failed"] .cf-state {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23D93A3A'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.uf .cf-x, .uf .fp-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    color: #C62828;
    background: #FFF1F1;
    border: 2px solid #E57373;
    border-radius: 999px;
    cursor: pointer;
    transition: color .12s, background .12s, border-color .12s;
}

.uf .cf-x {
    width: 104px;
}
    /* fixed width keeps the columns aligned */
    /* styles.css colours every element itself, so the label and the icon must be told to follow the button */
    .uf .cf-x *, .uf .fp-remove * {
        color: inherit;
    }

    .uf .cf-x:hover, .uf .fp-remove:hover {
        color: #fff;
        background: #D93A3A;
        border-color: #D93A3A;
    }

    .uf .cf-x:disabled, .uf .fp-remove:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .uf .cf-x[hidden] {
        display: inline-flex;
        visibility: hidden;
    }
    /* keeps the columns aligned */
    .uf .cf-x:focus-visible, .uf .fp-remove:focus-visible {
        outline: 3px solid rgba(217, 58, 58, .45);
        outline-offset: 2px;
    }

.uf .cf-folder-note {
    margin-top: 2px;
    color: #4a4880;
}

.uf .cf-skipped {
    margin-top: 14px;
    padding: 12px 16px;
    font-size: 14px;
    color: #6B4A00;
    background: #FFF6E5;
    border: 1.5px solid #E9C46A;
    border-left: 5px solid #E3A21A;
    border-radius: 11px;
}

.uf .cf-skipped-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    font-weight: 600;
}

.uf .cf-skipped .cf-link {
    color: #8A5A00;
}

.uf .cf-skipped-list, .uf .cf-failed-list {
    max-height: 220px;
    margin: 10px 0 0;
    padding: 0;
    overflow: auto;
    list-style: none;
    font-size: 13px;
}

    .uf .cf-skipped-list li, .uf .cf-failed-list li {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 5px 0;
        border-top: 1px solid rgba(0, 0, 0, .08);
    }

.uf .cf-sk-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uf .cf-sk-why {
    flex: 0 0 auto;
    color: #8A5A00;
}

.uf .alert.info {
    color: #1B3F8C;
    background: #EAF1FF;
    border: 1.5px solid #B7CBF5;
    border-left: 5px solid #0059DC;
}

.uf .cf-progress {
    display: block;
}

.uf .cf-prog-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #110C55;
}

.uf .cf-wait {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #6B4A00;
    background: #FFF6E5;
    border: 1.5px solid #E9C46A;
    border-radius: 10px;
}

/* ── company result ─────────────────────────────────────────── */
.uf .success-banner.partial {
    background: #FFF6E5;
    border-color: #E3A21A;
}

    .uf .success-banner.partial h2 {
        color: #8A5A00;
    }

    .uf .success-banner.partial p {
        color: #6B4A00;
    }

.uf .success-banner .ico-warn {
    display: none;
}

.uf .success-banner.partial .ico-warn {
    display: block;
}

.uf .success-banner.partial .ico-ok {
    display: none;
}

.uf .cf-failed {
    margin-top: 22px;
}

    .uf .cf-failed h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #110C55;
    }

.uf .cf-failed-list {
    padding: 4px 12px;
    background: #FFF8F8;
    border: 1.5px solid #F0B6B6;
    border-radius: 10px;
}

    .uf .cf-failed-list .cf-sk-why {
        color: #C62828;
    }

@media all and (max-width: 768px) {
    .uf .uf-type-grid {
        grid-template-columns: 1fr;
    }

    .uf .uf-type-title {
        font-size: 20px;
    }

    .uf .uf-type-opt {
        padding: 14px;
    }

    .uf .uf-type-ico {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .uf .cf-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .uf .btn-secondary.cf-btn {
        width: 100%;
    }

    .uf .cf-row {
        grid-template-columns: 34px minmax(0, 1fr) 58px 20px 38px;
        gap: 8px;
        padding: 8px;
    }

    .uf .cf-x {
        width: 38px;
        height: 38px;
        padding: 0;
    }

        .uf .cf-x .cf-x-txt {
            display: none;
        }

    .uf .uf-type-opt {
        min-height: 78px;
        padding: 14px 16px;
    }

    .uf .uf-type-txt strong {
        font-size: 20px;
    }

    .uf .cf-badge {
        width: 34px;
    }
}

/* version marker – upload-form.js warns in the browser console when the stylesheet it finds is older */
.uf {
    --uf-css: 4;
}
