.orange-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    transform: translateY(-110%);
    transition: transform .22s ease;
    pointer-events: none;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.orange-offline-banner.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}
.orange-offline-banner__inner {
    width: min(1120px, calc(100% - 32px));
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(234, 88, 12, .22);
    border-radius: 16px;
    background: #fff7ed;
    color: #7c2d12;
    box-shadow: 0 16px 44px rgba(124, 45, 18, .16);
    font-size: 13px;
    line-height: 1.35;
}
.orange-offline-banner__inner strong {
    font-weight: 650;
    white-space: nowrap;
}
.orange-offline-banner__inner span {
    flex: 1;
    color: #9a3412;
}
.orange-offline-retry {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #ea580c;
    color: #fff;
    padding: 8px 13px;
    font: 600 12px/1 Inter, system-ui, sans-serif;
    cursor: pointer;
}
.orange-network-toast {
    min-width: 260px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    font: 500 13px/1.45 Inter, system-ui, sans-serif;
}
.orange-network-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.orange-network-toast--warning {
    background: #9a3412;
}
.orange-network-toast--success {
    background: #166534;
}
.orange-offline-draft-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, .16);
    font: 500 13px/1.4 Inter, system-ui, sans-serif;
}
.orange-is-offline body {
    --orange-network-state: offline;
}
@media (max-width: 700px) {
    .orange-offline-banner__inner {
        width: calc(100% - 20px);
        align-items: flex-start;
        flex-wrap: wrap;
        border-radius: 14px;
    }
    .orange-offline-banner__inner strong,
    .orange-offline-banner__inner span {
        flex-basis: 100%;
    }
}


.orange-network-pill {
    appearance: none;
    border: 1px solid rgba(22, 163, 74, .22);
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 12px 0 12px;
    font: 700 13px/1 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    cursor: default;
}
.orange-network-pill__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}
.orange-network-pill--offline {
    border-color: rgba(234, 88, 12, .28);
    background: #fff7ed;
    color: #9a3412;
    cursor: pointer;
}
.orange-network-pill--offline .orange-network-pill__dot {
    background: #f97316;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, .14);
}
.orange-network-pill--online .orange-network-pill__label::after {
    content: ' internet';
    font-weight: 600;
    opacity: .72;
}
.orange-network-pill--offline .orange-network-pill__label::after {
    content: ' - check internet';
    font-weight: 600;
    opacity: .82;
}
@media (max-width: 700px) {
    .orange-network-pill {
        position: sticky;
        top: max(8px, env(safe-area-inset-top));
        z-index: 20;
        margin: 10px 0 10px;
        padding: 7px 11px;
        font-size: 12px;
    }
}


/* Enrolment submit progress + duplicate-submit lock */
.orange-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.orange-submit-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.orange-submit-overlay__card {
    width: min(420px, calc(100vw - 36px));
    border: 1px solid rgba(255, 86, 8, .18);
    border-radius: 26px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
    padding: 28px 24px;
    text-align: center;
    color: #0f172a;
}
.orange-submit-overlay__card strong {
    display: block;
    margin-top: 14px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}
.orange-submit-overlay__card span {
    display: block;
    margin: 10px auto 0;
    max-width: 340px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}
.orange-submit-spinner,
.orange-submit-btn-spinner {
    display: inline-block;
    border-radius: 999px;
    border-style: solid;
    border-color: rgba(255, 86, 8, .18);
    border-top-color: #ff5608;
    animation: orangeSubmitSpin .8s linear infinite;
}
.orange-submit-spinner {
    width: 52px;
    height: 52px;
    border-width: 5px;
}
.orange-submit-btn-spinner {
    width: 15px;
    height: 15px;
    border-width: 2px;
    margin-right: 8px;
    vertical-align: -2px;
}
.orange-submit-progress {
    height: 8px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}
.orange-submit-progress i {
    display: block;
    height: 100%;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff5608, #ff8a3d);
    animation: orangeSubmitProgress 1.35s ease-in-out infinite;
}
.orange-form-is-submitting {
    pointer-events: none;
}
.orange-form-is-submitting button[type="submit"],
.orange-form-is-submitting input[type="submit"] {
    cursor: wait !important;
    opacity: .88;
}
.orange-is-submitting body {
    cursor: wait;
}
@keyframes orangeSubmitSpin {
    to { transform: rotate(360deg); }
}
@keyframes orangeSubmitProgress {
    0% { transform: translateX(-105%); }
    50% { transform: translateX(40%); }
    100% { transform: translateX(265%); }
}
@media (max-width: 700px) {
    .orange-submit-overlay {
        align-items: flex-end;
        padding: 16px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .orange-submit-overlay__card {
        border-radius: 22px;
        padding: 24px 18px;
    }
    .orange-submit-overlay__card strong {
        font-size: 19px;
    }
    .orange-submit-overlay__card span {
        font-size: 13px;
    }
}

/* Offline submit save prompt */
.orange-offline-submit-prompt {
    position: fixed;
    inset: 0;
    z-index: 1000002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.orange-offline-submit-prompt.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.orange-offline-submit-prompt__card {
    width: min(460px, calc(100vw - 36px));
    border: 1px solid rgba(234, 88, 12, .24);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
    padding: 28px 24px 24px;
    text-align: center;
    color: #0f172a;
}
.orange-offline-submit-prompt__icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, .24);
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(234, 88, 12, .16);
}
.orange-offline-submit-prompt__card strong {
    display: block;
    margin-top: 14px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 850;
}
.orange-offline-submit-prompt__card p {
    margin: 10px auto 0;
    max-width: 380px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}
.orange-offline-submit-prompt__close {
    appearance: none;
    border: 0;
    border-radius: 14px;
    margin-top: 20px;
    padding: 12px 18px;
    background: #ff5608;
    color: #fff;
    font: 800 13px/1 Inter, system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(255, 86, 8, .22);
}
@media (max-width: 700px) {
    .orange-offline-submit-prompt {
        align-items: flex-end;
        padding: 16px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .orange-offline-submit-prompt__card {
        border-radius: 22px;
        padding: 24px 18px 20px;
    }
    .orange-offline-submit-prompt__card strong {
        font-size: 19px;
    }
    .orange-offline-submit-prompt__card p {
        font-size: 13px;
    }
}
