/**
 * Cloudflare Turnstile — scoped wrapper matching Hemp directory / hub UI.
 * Does not alter theme globals; safe across theme updates.
 *
 * @package HempPlatform
 */

.hemp-turnstile.hemp-turnstile--surface {
	box-sizing: border-box;
	margin: 1rem 0 1.25rem;
	padding: 1rem 1.15rem 1.1rem;
	max-width: 100%;
	background: linear-gradient(165deg, #f4f9f6 0%, #eef6f1 48%, #e8f2ec 100%);
	border: 1px solid rgba(13, 92, 58, 0.14);
	border-radius: 12px;
	box-shadow: 0 2px 14px rgba(6, 40, 30, 0.06);
}

.hemp-turnstile__label {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: rgba(6, 40, 30, 0.52);
	line-height: 1.3;
}

.hemp-turnstile--surface .cf-turnstile {
	display: flex;
	justify-content: flex-start;
	min-height: 4rem;
}

/* wp-login.php: comfortable spacing inside #login form */
body.hemp-turnstile-login-active #login form .hemp-turnstile--login {
	margin-top: 0.35rem;
	margin-bottom: 1rem;
}

/* Comment form: align with theme submit area */
.comment-form .hemp-turnstile--comment {
	margin-top: 0.5rem;
}

/* Lead / inquiry shortcodes inside content */
.hemp-lead-form .hemp-turnstile--lead,
.hemp-directory-claim-form .hemp-turnstile--claim,
.hemp-directory-inquiry-form .hemp-turnstile--inquiry {
	margin-top: 0.65rem;
}

@media (prefers-color-scheme: dark) {
	/* Keep light Turnstile iframe readable; wrapper stays subtle */
	body.login .hemp-turnstile.hemp-turnstile--surface {
		background: linear-gradient(165deg, rgba(30, 42, 38, 0.92), rgba(22, 32, 28, 0.95));
		border-color: rgba(130, 200, 160, 0.22);
		box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
	}

	body.login .hemp-turnstile__label {
		color: rgba(200, 230, 210, 0.75);
	}
}
