/* Restyle WPForms output to match the site's existing form design (see git history for
 * page-contact.php's original hand-built form). WPForms ships its own base stylesheet with
 * comparable selector specificity, so overrides here use !important deliberately — this file's
 * only job is to win that fight, not to be a general-purpose stylesheet. */

.wpforms-container {
	margin: 0 !important;
}

.wpforms-container .wpforms-form .wpforms-field-container {
	display: flex !important;
	flex-direction: column !important;
	gap: 1.5rem !important;
}

.wpforms-container .wpforms-form .wpforms-field {
	margin: 0 !important;
	padding: 0 !important;
}

.wpforms-container .wpforms-form .wpforms-field-label {
	display: block !important;
	margin-bottom: 0.5rem !important;
	font-weight: 500 !important;
	color: var(--foreground) !important;
	font-size: 1rem !important;
}

.wpforms-container .wpforms-form .wpforms-required-label {
	color: var(--foreground) !important;
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form input[type="url"],
.wpforms-container .wpforms-form input[type="number"],
.wpforms-container .wpforms-form textarea {
	width: 100% !important;
	padding: 0.75rem 1rem !important;
	border: 1px solid var(--border) !important;
	border-radius: 0.75rem !important;
	background-color: var(--input-background) !important;
	color: var(--foreground) !important;
	font-size: 1rem !important;
	font-family: inherit !important;
	line-height: 1.5 !important;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
	height: auto !important;
	max-width: none !important;
}

.wpforms-container .wpforms-form textarea {
	resize: none !important;
	min-height: 8rem !important;
}

.wpforms-container .wpforms-form input[type="text"]:focus,
.wpforms-container .wpforms-form input[type="email"]:focus,
.wpforms-container .wpforms-form input[type="tel"]:focus,
.wpforms-container .wpforms-form input[type="url"]:focus,
.wpforms-container .wpforms-form input[type="number"]:focus,
.wpforms-container .wpforms-form textarea:focus {
	outline: none !important;
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 2px var(--accent) !important;
}

/* Honeypot field must stay invisible to humans regardless of load order. */
.wpforms-container .wpforms-field-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
}

.wpforms-container .wpforms-submit-container {
	margin-top: 1.5rem !important;
}

.wpforms-container .wpforms-form button.wpforms-submit {
	width: 100% !important;
	max-width: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	padding: 0.75rem 1.5rem !important;
	background: linear-gradient(to right, var(--accent), #9333ea) !important;
	color: #fff !important;
	font-weight: 500 !important;
	font-size: 1rem !important;
	font-family: inherit !important;
	border: none !important;
	border-radius: 9999px !important;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
	cursor: pointer !important;
	transition: opacity 0.15s ease;
}

.wpforms-container .wpforms-form button.wpforms-submit::after {
	content: "";
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.wpforms-container .wpforms-form button.wpforms-submit:hover {
	opacity: 0.9 !important;
}

.wpforms-container .wpforms-form button.wpforms-submit:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

.wpforms-container .wpforms-error,
.wpforms-container .wpforms-field-description.wpforms-error {
	color: #d63638 !important;
	font-size: 0.875rem !important;
	margin-top: 0.375rem !important;
	display: block !important;
}

.wpforms-container input.wpforms-error,
.wpforms-container textarea.wpforms-error {
	border-color: #d63638 !important;
}

.wpforms-container .wpforms-confirmation-container-full {
	display: flex !important;
	align-items: flex-start !important;
	gap: 0.75rem !important;
	padding: 1rem !important;
	margin: 0 !important;
	border: 1px solid #bbf7d0 !important;
	border-radius: 0.75rem !important;
	background-color: #f0fdf4 !important;
	color: #166534 !important;
	text-align: left !important;
	font-weight: 500 !important;
	font-size: 0.9375rem !important;
	line-height: 1.5 !important;
}

.wpforms-container .wpforms-confirmation-container-full::before {
	content: "";
	flex-shrink: 0;
	margin-top: 0.125rem;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
