*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f4;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #202124;
}

/* ── Layout ─────────────────────────────────────────── */

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.captcha-box {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    width: 360px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Header ─────────────────────────────────────────── */

.header {
    margin-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #202124;
}

.logo svg {
    width: 28px;
    height: 28px;
}

.divider {
    height: 1px;
    background: #dadce0;
    margin-bottom: 20px;
}

/* ── Steps ──────────────────────────────────────────── */

.step {
    transition: opacity 0.3s ease;
}

.step.hidden {
    display: none;
}

.step.active {
    display: block;
}

.subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── Checkbox widget ─────────────────────────────────── */

.captcha-widget {
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}

.checkbox-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.checkbox-area:hover .checkbox {
    border-color: #4285f4;
}

.checkmark {
    color: #4285f4;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label {
    font-size: 14px;
    color: #202124;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #dadce0;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* reCAPTCHA branding block */
.captcha-logo {
    text-align: center;
    font-size: 9px;
    color: #999;
    line-height: 1.4;
}

.captcha-logo-icon {
    font-size: 20px;
    color: #4285f4;
}

.captcha-logo-text {
    font-weight: 600;
    font-size: 10px;
    color: #555;
}

/* ── Instructions ────────────────────────────────────── */

.instruction-lead {
    font-size: 13px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 14px;
}

.instructions {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.instructions li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #3c4043;
    line-height: 1.4;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4285f4;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-bottom-width: 2px;
    border-radius: 3px;
    color: #202124;
}

/* ── Status bar ──────────────────────────────────────── */

.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f0fe;
    border: 1px solid #c5d8fb;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 12px;
    color: #1a73e8;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a73e8;
    flex-shrink: 0;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── Footer ─────────────────────────────────────────── */

.footer {
    font-size: 11px;
    color: #9aa0a6;
}

.footer a {
    color: #9aa0a6;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

