/* Custom Form Entries — minimal frontend styles */

.ufe-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.ufe-form-errors {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: rgba(220, 53, 69, 0.12);
	border: 1px solid rgba(220, 53, 69, 0.35);
	color: inherit;
	font-size: 0.875rem;
	line-height: 1.5;
}

.ufe-field-message {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	color: #dc3545;
}

.ufe-field-error {
	border-color: #dc3545 !important;
}

.ufe-form-unavailable {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: rgba(255, 193, 7, 0.12);
	border: 1px solid rgba(255, 193, 7, 0.35);
	font-size: 0.875rem;
}

/* Success state: JS adds "sent" to the closest [data-ufe-success-target] or .form-card */
.form-card.sent #contact-form,
[data-ufe-success-target].sent form[data-ufe-form] {
	display: none;
}

.form-card.sent .ufe-form-success,
[data-ufe-success-target].sent .ufe-form-success {
	display: block;
}

/* Shortcode-rendered form: minimal, theme-friendly defaults */
.ufe-form-wrap {
	max-width: 560px;
}

.ufe-form .ufe-field {
	margin: 0 0 1rem;
}

.ufe-form .ufe-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.ufe-form .ufe-required {
	color: #dc3545;
}

.ufe-form .ufe-field input,
.ufe-form .ufe-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(128, 128, 128, 0.4);
	border-radius: 6px;
	font: inherit;
	background: transparent;
	color: inherit;
}

.ufe-form .ufe-field input:focus,
.ufe-form .ufe-field textarea:focus {
	outline: 2px solid rgba(100, 149, 237, 0.5);
	outline-offset: 1px;
}

.ufe-form .ufe-submit button {
	cursor: pointer;
	padding: 0.6rem 1.4rem;
	border: 1px solid rgba(128, 128, 128, 0.4);
	border-radius: 6px;
	font: inherit;
}

.ufe-form .ufe-submit button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.ufe-form-success {
	display: none;
	text-align: center;
	padding: 32px 12px;
}

.ufe-form-success .ok-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border-radius: 16px;
	background: var(--grad, linear-gradient(135deg, #97c459, #5a9a2e));
	color: #061a14;
	display: grid;
	place-items: center;
}

.ufe-form-success h3 {
	margin-top: 22px;
	font-size: 24px;
	letter-spacing: -0.6px;
}

.ufe-form-success p {
	margin: 12px auto 0;
	max-width: 380px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted, #888);
}
