/* Techinnover Core — contact form and fallbacks (works with or without the theme). */
.tn-form-card {
	--tnf-ink: #0E1A16; --tnf-forest: #0F6B4F; --tnf-line: #CFD6CC; --tnf-slate: #4F5B55; --tnf-signal: #C6F36B; --tnf-error: #B42318;
	background: #fff; border: 1px solid #E3E7E1; border-radius: 28px; padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 30px 60px -40px rgba(14, 26, 22, .35); color: var(--tnf-ink);
}
.tn-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.tn-form[hidden], .tn-form-success[hidden], .tn-form-alert[hidden], .tn-field-error[hidden] { display: none !important; }
.tn-form-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tn-field { display: flex; flex-direction: column; gap: 8px; }
.tn-field label { font-size: .875rem; font-weight: 500; color: #33413A; }
.tn-req { color: var(--tnf-forest); }
.tn-field input, .tn-field select, .tn-field textarea {
	width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 16px; border-radius: 12px;
	border: 1px solid var(--tnf-line); background: #fff; color: var(--tnf-ink);
	font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.tn-field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 150px; }
.tn-field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234F5B55' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; }
.tn-field input:hover, .tn-field select:hover, .tn-field textarea:hover { border-color: #8C9A93; }
.tn-field input:focus, .tn-field select:focus, .tn-field textarea:focus { outline: none; border-color: var(--tnf-forest); box-shadow: 0 0 0 4px rgba(15, 107, 79, .15); }
.tn-field.has-error input, .tn-field.has-error select, .tn-field.has-error textarea { border-color: var(--tnf-error); }
.tn-field-error { color: var(--tnf-error); font-size: .8125rem; }
.tn-form-alert { padding: 12px 16px; border-radius: 12px; background: #FEF3F2; color: var(--tnf-error); font-size: .9375rem; }
.tn-form-note { margin: 0; font-size: .8125rem; color: var(--tnf-slate); }
.tn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tn-form-submit {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 30px;
	border: 0; border-radius: 999px; background: var(--tnf-ink); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
	transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, opacity .2s;
}
.tn-form-submit i { color: var(--tnf-signal); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tn-form-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(14, 26, 22, .55); }
.tn-form-submit:hover i { transform: translate(4px, -4px) rotate(-8deg); }
.tn-form-submit:focus-visible { outline: 2px solid var(--tnf-forest); outline-offset: 3px; }
.tn-form-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.tn-form-submit.is-loading i { animation: tnfFly 1s ease-in-out infinite; }
@keyframes tnfFly { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); opacity: .4; } 100% { transform: translate(0, 0); } }
.tn-form-success { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.tn-form-success__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--tnf-signal); color: var(--tnf-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 36px; animation: tnfPop .6s cubic-bezier(.2,.7,.2,1) both; }
.tn-form-success__title { margin: 0; font-size: 2rem; }
.tn-form-success__text { margin: 0; max-width: 380px; color: var(--tnf-slate); }
.tn-form-again { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--tnf-line); background: #fff; color: var(--tnf-ink); font: inherit; font-weight: 500; cursor: pointer; }
.tn-form-again:hover { border-color: var(--tnf-ink); }
@keyframes tnfPop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tn-form-card *, .tn-form-card *::before { animation: none !important; transition: none !important; } }
.tn-empty { padding: 20px; border: 1px dashed #CFD6CC; border-radius: 16px; }
