/*
 * UA-Tent Forms – minimal default styles (look of the old CF7 forms).
 * The theme may override the custom properties below, or drop this file entirely:
 *   add_filter( 'ua_tent_forms_enqueue_css', '__return_false' );
 *
 * Submit button colour: --uatf-submit-bg (the theme can point it to its CTA variable,
 * e.g. .uatf-form { --uatf-submit-bg: var(--cta-bg); }).
 */
.uatf-form {
	--uatf-accent: #0364B8;
	--uatf-border: #B8C0FF;
	--uatf-submit-bg: #0364B8;
	--uatf-submit-bg-hover: #047ae0;
	--uatf-submit-bg-active: #024e90;
	--uatf-submit-disabled: #a7a5a5;
	--uatf-error: #c62828;
	--uatf-success: #2e7d32;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	text-align: left;
}
.uatf-form--popup { margin-top: 20px; }
.uatf-form--inline { max-width: 540px; } /* old CF7 contact form width */

.uatf-row { display: flex; flex-wrap: wrap; gap: 0 14px; }
.uatf-row > .uatf-field { flex: 1 1 180px; min-width: 0; }

.uatf-field { margin-bottom: 10px; }
.uatf-input {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--uatf-border);
	border-radius: 0;
	background: #fff;
	color: #333;
	font: inherit;
	font-size: 16px; /* ≥16px: no zoom on iOS */
}
.uatf-textarea { height: 100px; padding: 10px; resize: vertical; }
.uatf-form--inline .uatf-textarea { height: 140px; }
.uatf-input:focus { outline: 2px solid var(--uatf-accent); outline-offset: 0; }
.uatf-invalid .uatf-input,
.uatf-input[aria-invalid="true"] { border-color: var(--uatf-error); }

.uatf-error { display: block; color: var(--uatf-error); font-size: 13px; line-height: 1.3; }
.uatf-error:empty { display: none; }

.uatf-consent { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; margin-top: 10px; }
.uatf-consent .uatf-error { flex-basis: 100%; }
.uatf-checkbox { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--uatf-accent); cursor: pointer; }
.uatf-consent label { flex: 1 1 0; cursor: pointer; }
.uatf-consent a { color: #333; text-decoration: underline; }
.uatf-consent a:hover { text-decoration: none; }

.uatf-turnstile { margin-top: 10px; }
.uatf-turnstile:empty { margin: 0; }

.uatf-submit {
	cursor: pointer;
	border: none;
	background-color: var(--uatf-submit-bg);
	color: #fff;
	font-size: 18px;
	text-transform: uppercase;
	padding: 10px 30px;
	margin-top: 20px;
	transition: background-color .3s ease-in-out;
}
.uatf-form--inline .uatf-submit { align-self: center; text-transform: none; }
.uatf-submit:hover { background-color: var(--uatf-submit-bg-hover); }
.uatf-submit:active { background-color: var(--uatf-submit-bg-active); }
.uatf-submit:disabled,
.uatf-submit:disabled:hover { background-color: var(--uatf-submit-disabled); cursor: not-allowed; }
.uatf-busy .uatf-submit { cursor: progress; }

.uatf-response { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.uatf-response:empty { display: none; }
.uatf-response--success { color: var(--uatf-success); }
.uatf-response--error { color: var(--uatf-error); }
.uatf-noscript { margin: 12px 0 0; font-size: 15px; line-height: 1.4; color: var(--uatf-error); }
.uatf-noscript a { white-space: nowrap; }

.uatf-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
