/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.modal p {
    font-size: 18px;
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden; /* Ensure bar stays within bounds */
}

.progress-bar {
    height: 20px;
    width: 0%;
    background-color: #4caf50;
    border-radius: 5px;
    transition: width 5s ease-in-out; /* Smooth animation for 5 seconds */
}

/* Modern spinner for verification */
#captchaSpinner {
    display: none;
    margin-left: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

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

/* Modal style is already in styles.css, but ensure consistency */
#humanModal {
    display: flex; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); 
    align-items: center;
    justify-content: center;
}
#humanModal .modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
#humanModal label {
    font-size: 16px; 
    cursor: pointer;
}
#humanModal input[type="checkbox"] {
    width: 20px; 
    height: 20px; 
    vertical-align: middle;
}