#ai-form-tb-loader,
#srx-form-loader,
#srx-ai-form-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: auto;
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Quiz Timer Styles */
.srx-quiz-timer {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e90ff;
    /* Dodger Blue background */
    color: #ffffff;
    /* White text */
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Arial', sans-serif;
}

.srx-quiz-timer #srx-timer-display {
    font-size: 1.5em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

.srx-quiz-timer .srx-timer-label {
    font-size: 1em;
    font-weight: 500;
}

.srx-quiz-timer.warning {
    background-color: #ff4500;
    /* Orange Red */
    animation: pulse 1s infinite;
}

.srx-quiz-timer.expired {
    background-color: #dc143c;
    /* Crimson */
}

.recaptcha-container {
    margin-bottom: 1rem !important;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Quiz Intro Overlay Styles */
.srx-quiz-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.srx-quiz-intro-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.srx-quiz-intro-content h2 {
    color: #1e90ff;
    /* Match timer color */
    margin-bottom: 15px;
}

.srx-quiz-intro-content p {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.srx-start-quiz-btn {
    background-color: #1e90ff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.srx-start-quiz-btn:hover {
    background-color: #187bcd;
    /* Slightly darker blue on hover */
}

/* Form Overlay to Hide the Form */
.srx-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    /* Semi-transparent white */
    z-index: 1500;
    display: block;
}

/* Hide the form overlay when the quiz starts */
.srx-form-overlay.hidden {
    display: none;
}