/*
 * TETA Contact form.
 * The theme and Elementor kit style buttons, inputs, labels and headings
 * globally, so the properties that matter here use !important on purpose.
 */

.teta-cf {
	--cf-navy: #252966;
	--cf-navy-2: #3b40a8;
	--cf-ink: #111827;
	--cf-label: #374151;
	--cf-muted: #6b7280;
	--cf-field-bg: #f9fafb;
	--cf-field-line: #e5e7eb;
	--cf-err: #b91c1c;

	font-family: inherit;
	color: var(--cf-ink);
	padding: 0;
	-webkit-font-smoothing: antialiased;
}

.teta-cf *,
.teta-cf *::before,
.teta-cf *::after {
	box-sizing: border-box;
}

.teta-cf [hidden] {
	display: none !important;
}

.teta-cf__card {
	max-width: 760px;
	margin: 0 auto;
	padding: 44px 44px 40px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
}

/* Heading */

.teta-cf .teta-cf__title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	text-align: center;
	font-size: 34px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.teta-cf .teta-cf__sub {
	margin: 0 0 32px !important;
	text-align: center;
	font-size: 17px !important;
	line-height: 1.55 !important;
	color: #64748b !important;
}

/* Layout */

.teta-cf__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
}

.teta-cf__field {
	margin: 0 0 22px;
}

/* Labels */

.teta-cf .teta-cf__field label {
	display: block !important;
	margin: 0 0 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--cf-label) !important;
}

.teta-cf .teta-cf__field label.teta-cf__q {
	font-size: 16px !important;
	color: var(--cf-ink) !important;
}

/* Inputs */

.teta-cf .teta-cf__field input[type="text"],
.teta-cf .teta-cf__field input[type="email"],
.teta-cf .teta-cf__field select,
.teta-cf .teta-cf__field textarea {
	display: block;
	width: 100% !important;
	margin: 0 !important;
	background-color: var(--cf-field-bg) !important;
	color: var(--cf-ink) !important;
	border: 2px solid var(--cf-field-line) !important;
	border-radius: 10px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.teta-cf .teta-cf__field input[type="text"],
.teta-cf .teta-cf__field input[type="email"],
.teta-cf .teta-cf__field select {
	height: 54px !important;
	padding: 0 16px !important;
}

.teta-cf .teta-cf__field textarea {
	min-height: 156px;
	padding: 14px 16px !important;
	resize: vertical;
}

.teta-cf .teta-cf__field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	cursor: pointer;
}

.teta-cf .teta-cf__field ::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.teta-cf .teta-cf__field input:focus,
.teta-cf .teta-cf__field select:focus,
.teta-cf .teta-cf__field textarea:focus {
	outline: none !important;
	background-color: #fff !important;
	border-color: var(--cf-navy) !important;
	box-shadow: 0 0 0 3px rgba(37, 41, 102, .22) !important;
}

.teta-cf .teta-cf__field.has-error input,
.teta-cf .teta-cf__field.has-error select,
.teta-cf .teta-cf__field.has-error textarea {
	border-color: var(--cf-err) !important;
}

.teta-cf .teta-cf__hint {
	margin: 8px 0 0 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: var(--cf-muted) !important;
}

.teta-cf .teta-cf__err {
	margin: 8px 0 0 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	font-weight: 500 !important;
	color: var(--cf-err) !important;
}

/* Checkbox */

.teta-cf .teta-cf__check {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 2px 0 24px !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--cf-ink) !important;
	cursor: pointer;
}

.teta-cf .teta-cf__check input[type="checkbox"] {
	flex: none;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	accent-color: var(--cf-navy);
	cursor: pointer;
}

/* Buttons */

.teta-cf .teta-cf__btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100% !important;
	height: 54px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	background: linear-gradient(135deg, var(--cf-navy), var(--cf-navy-2)) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	font-family: inherit !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}

.teta-cf .teta-cf__btn:hover {
	filter: brightness(.9);
}

.teta-cf .teta-cf__btn:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

.teta-cf .teta-cf__btn:disabled {
	opacity: .65;
	cursor: default;
	filter: none;
}

.teta-cf .teta-cf__btn--ghost {
	background: #fff !important;
	color: var(--cf-navy) !important;
	border: 2px solid var(--cf-navy) !important;
}

.teta-cf .teta-cf__btn--ghost:hover {
	background: #eef0fb !important;
	filter: none;
}

/* Alert (general errors) */

.teta-cf .teta-cf__alert {
	margin: 0 0 22px;
	padding: 12px 14px;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 10px;
	color: #7f1d1d;
	font-size: 15px;
	line-height: 1.5;
}

/* Done state */

.teta-cf [data-cf-state="done"] {
	text-align: center;
	padding: 12px 0 6px;
}

.teta-cf__done-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #15803d;
}

.teta-cf [data-cf-state="done"] .teta-cf__sub {
	max-width: 520px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.teta-cf [data-cf-state="done"] .teta-cf__btn {
	max-width: 320px;
	margin: 0 auto !important;
}

/* Honeypot: off-screen rather than display:none so simple bots still fill it */

.teta-cf .teta-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 680px) {
	.teta-cf__card {
		padding: 28px 20px 26px;
		border-radius: 16px;
	}

	.teta-cf .teta-cf__title {
		font-size: 27px !important;
	}

	.teta-cf .teta-cf__sub {
		font-size: 16px !important;
		margin-bottom: 24px !important;
	}

	.teta-cf__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.teta-cf .teta-cf__btn,
	.teta-cf input,
	.teta-cf select,
	.teta-cf textarea {
		transition: none !important;
	}
}
