/* Shared request loading UI for the Staff and Customer portals.
   Keep the osTicket IDs because its existing form-submit lifecycle uses them. */
#overlay.fh-request-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: auto;
    height: auto;
    background: rgba(23, 32, 51, .28);
    opacity: 1;
}

#loading.fh-request-loading {
    position: fixed;
    z-index: 10020;
    top: 0 !important;
    right: 0;
    bottom: 0;
    left: 0 !important;
    display: none;
    width: min(300px, calc(100vw - 32px));
    max-width: 300px;
    height: max-content;
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    margin: auto;
    padding: 24px 22px 22px;
    color: #172033;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
    text-align: center;
}

.fh-request-spinner {
    display: block;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    margin: 0 auto 14px;
    border: 3px solid #FFF1E6;
    border-top-color: #FE6600;
    border-radius: 50%;
    animation: fh-request-loading-spin .8s linear infinite;
}

#loading.fh-request-loading h1 {
    margin: 0;
    padding: 0;
    color: #172033;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

#loading.fh-request-loading p {
    margin: 8px 0 0;
    color: #64748B;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes fh-request-loading-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .fh-request-spinner { animation-duration: 2s; }
}
