
/* Container to manage positioning */
.turnstile-container {
    position: relative;
    /*width: 300px; !* Default width of Turnstile *!*/
    height: 65px; /* Default height of Turnstile */
    margin: auto;
}

/* Style for your placeholder */
.turnstile-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: sans-serif;
    color: #555;
    font-size: 14px;
    transition: opacity 0.3s ease-in-out;
}

/* Error state for placeholder */
.turnstile-placeholder.turnstile-error {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.turnstile-placeholder.turnstile-error .error-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    stroke: #dc2626;
    flex-shrink: 0;
}

.turnstile-retry-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}

.turnstile-retry-link:hover {
    color: #1d4ed8;
}

/* Progress ring spinner - more polished than simple border spinner */
.spinner {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    position: relative;
}

.spinner::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.15);
}

.spinner::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgb(37, 99, 235);
    animation: spin 0.8s linear infinite;
}

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

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.2s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.3s ease-out;
}
