.captcha-container {
	width: 100%;
	height: 50px;
	background-color: #f9f9f9;
	border: 1px solid #d3d3d3;
	border-radius: 3px;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px 0 12px;
	box-sizing: border-box;
}

/* Interactive Label Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* Hide native browser checkbox */
.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: #b2b2b2;
}

.captcha-text {
	color: #2b2b2b;
	font-size: 16px;
	margin-left: 12px;
	font-weight: 400;
}

/* Google Branding Section */
.captcha-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
}

.captcha-branding .logo {
    width: 32px;
    height: 32px;
}

.captcha-branding small {
    color: #555;
    font-size: 8px;
    font-weight: 500;
    margin-top: 2px;
}

.captcha-branding .links {
    font-size: 8px;
    color: #555;
    margin-top: 2px;
}

.captcha-branding .links a {
    color: #555;
    text-decoration: none;
}

.captcha-branding .links a:hover {
    text-decoration: underline;
}

/* --- ANIMATION STATES --- */

/* Loading Spinner Inside Box */
.spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #4d90fe;
    border-top: 2px solid transparent;
    border-radius: 50%;
    opacity: 0;
}

/* Trigger Loading Sequence On Click */
.checkbox-wrapper input:checked ~ .checkbox-custom {
    animation: shrinkBox 0.4s ease forwards;
}

.checkbox-wrapper input:checked ~ .checkbox-custom .spinner {
    animation: spin 0.6s linear 2, fadeOut 0.1s linear 1.2s forwards;
    opacity: 1;
}

/* Generate Green Checkmark After Loading finishes */
.checkbox-wrapper input:checked ~ .checkbox-custom::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 4px;
    width: 7px;
    height: 13px;
    border: solid #00aa6c;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    animation: showCheck 0.2s ease-out 1.2s forwards;
}

/* Keyframes */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    100% {
        opacity: 0;
    }
}

@keyframes shrinkBox {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
        border-color: #4d90fe;
    }
    100% {
        transform: scale(1);
        border-color: transparent;
        background: transparent;
    }
}

@keyframes showCheck {
    100% {
        transform: rotate(45deg) scale(1);
    }
}