/* Generic form status message styling for all test pages */
.status-message {
    display: none;
    font-size: 12px;
    color: #333;
    background: transparent;
    border: none;
    padding: 8px 0;
    line-height: 1.4;
    margin-top: 12px;
    max-width: 100%;
}

.status-message--pending {
    animation: status-blink 1s ease-in-out infinite;
}

.status-message--error {
    color: #cc0000;
    font-weight: 500;
    animation: none;
}

body.status-overlay-active {
    overflow: hidden;
}

#form-status-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 16, 28, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.status-overlay-card {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.status-overlay-card.hidden,
.hidden {
    display: none !important;
}

.status-overlay-loader {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-loader-progress {
    width: 100%;
    height: 10px;
    background: rgba(19, 50, 74, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.status-loader-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2f8cff 0%, #2b76ff 100%);
    border-radius: 999px;
    animation: fill-progress 2.2s ease forwards;
}

@keyframes fill-progress {
    to { width: 100%; }
}

.status-overlay-spinner {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border: 8px solid rgba(19, 50, 74, 0.18);
    border-top-color: #2f8cff;
    border-radius: 50%;
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-overlay-image {
    width: 140px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 18px;
}

.status-overlay-title {
    font-size: 24px;
    font-weight: 700;
    color: #12324a;
    margin-bottom: 8px;
}

.status-overlay-email {
    font-size: 15px;
    color: #1d3b56;
    margin-bottom: 12px;
    word-break: break-word;
}

.status-overlay-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #5f6b76;
}

.status-overlay-loader-stage + .status-overlay-subtitle {
    margin-top: 0;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
