/* Think Higher v353 — dynamic form security interface. */
.th-dynamic-security {
	box-sizing: border-box;
	width: 100%;
	grid-column: 1 / -1;
	margin: 18px 0;
	padding: 20px;
	border: 1px solid #d8e0ec;
	border-radius: 16px;
	background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
	color: #101b34;
	box-shadow: 0 10px 28px rgba(12, 27, 57, 0.05);
}

.th-dynamic-security *,
.th-dynamic-security *::before,
.th-dynamic-security *::after {
	box-sizing: border-box;
}

.th-dynamic-security__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.th-dynamic-security__head > span:last-child {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.th-dynamic-security__head strong {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 800;
	color: #101b34;
}

.th-dynamic-security__head small {
	font-size: 12.5px;
	line-height: 1.5;
	color: #69758a;
}

.th-dynamic-security__icon {
	display: inline-flex;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: #ffffff;
	color: #245de5;
	box-shadow: 0 6px 18px rgba(36, 93, 229, 0.12);
}

.th-dynamic-security__icon svg {
	width: 21px;
	height: 21px;
}

.th-dynamic-security__body {
	display: grid;
	gap: 10px;
}

.th-dynamic-security__label {
	display: block;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 800;
	color: #101b34;
}

.th-dynamic-security__label b {
	color: #e8312a;
}

.th-dynamic-security__answer-row {
	display: flex;
	align-items: stretch;
	gap: 9px;
	max-width: 250px;
}

.th-dynamic-security__answer-row input {
	width: 100% !important;
	min-width: 0;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d7deea !important;
	border-radius: 11px !important;
	background: #ffffff !important;
	color: #101b34 !important;
	font: inherit !important;
	font-size: 16px !important;
	box-shadow: none !important;
	outline: none !important;
}

.th-dynamic-security__answer-row input:focus {
	border-color: #245de5 !important;
	box-shadow: 0 0 0 4px rgba(36, 93, 229, 0.12) !important;
}

.th-dynamic-security__refresh {
	display: inline-flex;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid #d7deea;
	border-radius: 11px;
	background: #ffffff;
	color: #245de5;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.th-dynamic-security__refresh:hover,
.th-dynamic-security__refresh:focus-visible {
	border-color: #245de5;
	background: #f1f5ff;
	transform: rotate(20deg);
	outline: none;
}

.th-dynamic-security__message {
	margin: 0 !important;
	font-size: 12.5px !important;
	line-height: 1.55 !important;
	color: #69758a !important;
}

.th-dynamic-security.has-error {
	border-color: #f0aaa7;
	background: #fff9f8;
}

.th-dynamic-security.has-error .th-dynamic-security__answer-row input {
	border-color: #e8312a !important;
}

.th-dynamic-security.has-error .th-dynamic-security__message {
	color: #b42318 !important;
	font-weight: 700;
}

.th-dynamic-security.is-verified {
	border-color: #a8d9bd;
}

.th-dynamic-security.is-verified .th-dynamic-security__message {
	color: #18794e !important;
	font-weight: 700;
}

.th-dynamic-security.is-loading {
	opacity: 0.78;
}

.th-dynamic-security.is-loading .th-dynamic-security__refresh {
	animation: th-security-spin 0.9s linear infinite;
}

.th-dynamic-security__trap {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

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

@media (max-width: 560px) {
	.th-dynamic-security {
		margin: 14px 0;
		padding: 17px;
		border-radius: 14px;
	}

	.th-dynamic-security__head {
		align-items: flex-start;
	}

	.th-dynamic-security__answer-row {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.th-dynamic-security__refresh,
	.th-dynamic-security.is-loading .th-dynamic-security__refresh {
		transition: none;
		animation: none;
	}
}


.th-dynamic-security.is-checking {
	border-color: #b9c9ee;
}

.th-dynamic-security.is-checking .th-dynamic-security__message {
	color: #245de5 !important;
	font-weight: 700;
}


.th-dynamic-security__answer-row input[readonly],
.th-dynamic-security__refresh:disabled {
	cursor: wait;
}

.th-dynamic-security__refresh:disabled {
	opacity: 0.58;
	transform: none;
}
