/* Tenio demo form — uses the Tenio theme tokens, with fallbacks for other themes. */
.tnl-card {
	--tnl-plum: var(--wp--preset--color--plum, #2A1B3D);
	--tnl-coral: var(--wp--preset--color--coral, #E9715B);
	--tnl-coral-dark: var(--wp--preset--color--coral-dark, #D85E48);
	--tnl-sand: var(--wp--preset--color--sand, #F5ECE7);
	--tnl-cream: var(--wp--preset--color--cream, #FFF8F5);
	--tnl-muted: var(--wp--preset--color--muted, #57423E);
	--tnl-brick: var(--wp--preset--color--brick, #A33D2B);
	--tnl-line: rgba(42, 27, 61, .14);
	scroll-margin-top: 96px;
	background: #fff;
	border: 1px solid rgba(42, 27, 61, .08);
	border-radius: 1.5rem;
	box-shadow: 0 12px 32px rgba(42, 27, 61, .08);
	padding: clamp(1.25rem, 4vw, 2.25rem);
	color: var(--tnl-plum);
}
.tnl-card *, .tnl-card *::before, .tnl-card *::after { box-sizing: border-box; }
.tnl-title { margin: 0 0 .25rem; font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.2; color: var(--tnl-plum); }
.tnl-intro { margin: 0 0 1.5rem; color: var(--tnl-muted); }
.tnl-form { display: grid; gap: 1.25rem; }
.tnl-grid { display: grid; gap: 1.25rem; }
.tnl-field { display: grid; gap: .375rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.tnl-field > label, .tnl-field legend { font-size: .875rem; font-weight: 600; padding: 0; }
.tnl-field legend { margin-bottom: .5rem; }
.tnl-field input[type="text"], .tnl-field input[type="email"], .tnl-field input[type="tel"], .tnl-field select, .tnl-field textarea {
	width: 100%; min-height: 48px; padding: .75rem 1rem;
	border: 1px solid var(--tnl-line); border-radius: .75rem;
	background: var(--tnl-cream); color: inherit; font: inherit;
}
.tnl-field textarea { min-height: 96px; resize: vertical; }
.tnl-field :focus-visible { outline: 2px solid var(--tnl-coral); outline-offset: 2px; }
.tnl-field [aria-invalid="true"] { border-color: var(--tnl-brick); }
.tnl-error { font-size: .8125rem; color: var(--tnl-brick); min-height: 0; }
.tnl-error:empty { display: none; }

.tnl-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.tnl-pills__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tnl-pills__label {
	display: inline-flex; align-items: center; gap: .375rem; min-height: 44px;
	padding: .5rem 1rem; border-radius: 9999px; border: 1px solid var(--tnl-line);
	background: var(--tnl-cream); font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.tnl-pills__input:checked + .tnl-pills__label { background: var(--tnl-plum); border-color: var(--tnl-plum); color: #fff; }
.tnl-pills__input:focus-visible + .tnl-pills__label { outline: 2px solid var(--tnl-coral); outline-offset: 2px; }
.tnl-pills .tn-i { font-size: 1.125rem; }

.tnl-consent label { display: flex; gap: .625rem; align-items: flex-start; font-weight: 400; font-size: .875rem; color: var(--tnl-muted); }
.tnl-consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--tnl-coral); flex-shrink: 0; }
.tnl-consent a { color: var(--tnl-coral-dark); }

.tnl-alert { margin: 0; padding: .75rem 1rem; border-radius: .75rem; background: #FFDAD3; color: #5c1508; font-size: .9375rem; }
.tnl-submit, .tnl-again {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 52px; padding: .875rem 2rem; border: 0; border-radius: 9999px;
	background: var(--tnl-coral); color: #fff; font: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer;
}
.tnl-submit:hover, .tnl-again:hover { background: var(--tnl-coral-dark); }
.tnl-submit[disabled] { opacity: .7; cursor: progress; }
.tnl-submit:focus-visible, .tnl-again:focus-visible { outline: 2px solid var(--tnl-plum); outline-offset: 3px; }
.tnl-secure { margin: 0; display: flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--tnl-muted); }
.tnl-secure .tn-i { font-size: 1rem; }
.tnl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tnl-success { display: none; text-align: center; padding: 2rem 0; }
.tnl-success__icon { font-size: 3rem; color: var(--tnl-coral); }
.tnl-success p { color: var(--tnl-muted); max-width: 32rem; margin: .75rem auto 1.5rem; }
.tnl-again { background: transparent; color: var(--tnl-plum); box-shadow: inset 0 0 0 1px var(--tnl-line); font-size: .9375rem; min-height: 44px; }
.tnl-again:hover { background: var(--tnl-sand); }
.tnl-card.is-sent .tnl-form-wrap { display: none; }
.tnl-card.is-sent .tnl-success { display: block; }

@media (min-width: 640px) {
	.tnl-grid { grid-template-columns: 1fr 1fr; }
	.tnl-submit { justify-self: start; }
}
