/* GT Contact & SMTP — form states. Scoped to .gtcs-* so the theme design is untouched. */
.gtcs-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.gtcs-status:empty { display: none; }
.gtcs-status:focus { outline: none; }

.gtcs-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 5px;
	border: 1px solid #bed5e0;
	background: #f5fafc;
	color: #3e3e3e;
	line-height: 1.5;
	animation: gtcs-fade .25s ease-out;
}
.gtcs-alert-success { border-color: #9fd3b6; background: #effaf3; }
.gtcs-alert-error   { border-color: #f1b7b7; background: #fdf2f2; }
.gtcs-alert-loading { border-color: #bed5e0; background: #f5fafc; align-items: center; }

.gtcs-alert-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
	background: #1e8e57;
}
.gtcs-alert-error .gtcs-alert-icon { background: #c9302c; }
.gtcs-alert-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gtcs-alert-title { color: #3e3e3e; }
.gtcs-alert-line { overflow-wrap: anywhere; }
.gtcs-ref { color: #0473ab; letter-spacing: .02em; }

.gtcs-spinner,
.gtcs-btn-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(4, 115, 171, .25);
	border-top-color: #0473ab;
	border-radius: 50%;
	animation: gtcs-spin .8s linear infinite;
	flex: 0 0 auto;
}
.gtcs-btn-spinner { width: 16px; height: 16px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

button.gtcs-is-busy,
.btn.gtcs-is-busy { cursor: progress; opacity: .85; }

.gtcs-field-error { margin-top: 6px; font-size: .875em; color: #b42318; }
form[data-gtcs-form] .is-invalid { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .1) !important; }

.gtcs-privacy { color: #6b7b85; line-height: 1.5; }
.gtcs-privacy a { color: #0473ab; text-decoration: underline; }

@keyframes gtcs-spin { to { transform: rotate(360deg); } }
@keyframes gtcs-fade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.gtcs-alert { animation: none; }
	.gtcs-spinner, .gtcs-btn-spinner { animation-duration: 2s; }
}
