:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --success-color: #34a853;
    --success-light: #e8f5e9;
    --background-color: #ffffff;
    --border-color: #dadce0;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --accent-blue: #4285f4;
    --accent-red: #ea4335;
    --accent-yellow: #fbbc04;
    --accent-green: #34a853;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
}

.captcha-container {
    position: relative;
    background: var(--background-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.captcha-container:hover {
    transform: translateY(-2px);
}

.checkbox-wrapper {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, rgba(26, 115, 232, 0.03), rgba(66, 133, 244, 0.03));
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + label .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    animation: checkmark-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkmark-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checkbox-container input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 7px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    animation: checkmark-stroke 0.3s ease-out;
}

@keyframes checkmark-stroke {
    0% { height: 0; opacity: 0; }
    100% { height: 14px; opacity: 1; }
}

.label-text {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.checkbox-container:hover .label-text {
    color: var(--primary-color);
}

.recaptcha-branding {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.recaptcha-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.recaptcha-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.privacy-link, .terms-link {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-link:hover, .terms-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.separator {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0 2px;
}

.verification-panel {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 24px;
}

.loading {
    text-align: center;
    padding: 24px;
}

.loading p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    animation: pulse 2s infinite;
}

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

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(26, 115, 232, 0.1);
    border-top: 3px solid var(--primary-color);
    border-right: 3px solid var(--accent-yellow);
    border-bottom: 3px solid var(--accent-red);
    border-left: 3px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.instructions {
    padding: 24px;
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-icon, .note-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.instructions h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.instructions-content {
    color: var(--text-secondary);
    font-size: 14px;
}

.instructions ol {
    padding: 0;
    list-style: none;
    counter-reset: steps;
    margin: 24px 0;
}

.instructions li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
}

.instructions li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px var(--shadow-hover);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.step-text {
    flex-grow: 1;
    line-height: 1.6;
}

kbd {
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    border-radius: 6px;
    border: 1px solid #d1d1d1;
    box-shadow: 
        0 1px 1px rgba(0,0,0,.1),
        inset 0 1px 0 0 #fff;
    color: var(--text-color);
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

kbd:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 2px 2px rgba(0,0,0,.1),
        inset 0 1px 0 0 #fff;
}

.note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(66, 133, 244, 0.05) 100%);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid rgba(26, 115, 232, 0.1);
    transition: all 0.3s ease;
}

.note:hover {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(66, 133, 244, 0.08) 100%);
    transform: translateY(-1px);
}

.note-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--success-light) 0%, #ffffff 100%);
    border-radius: 12px;
    color: var(--success-color);
    margin: 20px;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(52, 168, 83, 0.1);
    box-shadow: 0 2px 4px rgba(52, 168, 83, 0.1);
}

.success-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--success-color) 0%, #2e7d32 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(52, 168, 83, 0.2);
    animation: success-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes success-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    0% { 
        opacity: 0;
        transform: translateY(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
#custom-captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

#custom-captcha-modal.hiding {
    opacity: 0;
}

.captcha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1;
}

#custom-captcha-modal .captcha-container {
    position: relative;
    z-index: 2;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    animation: modalEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalEnter {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Prevent page scroll when modal is open */
body.captcha-modal-open {
    overflow: hidden;
    padding-right: 15px; /* Prevent layout shift when scrollbar disappears */
} 