/**
 * WebyApp Form Leads — frontend styles.
 */

:root {
	--wfl-primary: #2271b1;
	--wfl-text: #1d2327;
	--wfl-muted: #646970;
	--wfl-border: #dcdcde;
	--wfl-bg: #ffffff;
	--wfl-danger: #b32d2e;
	--wfl-success: #007c54;
}

.wfl-form-wrap {
	max-width: 36rem;
	margin: 0 auto;
}

.wfl-form,
.wfl-success {
	box-sizing: border-box;
}

.wfl-form *,
.wfl-form *::before,
.wfl-form *::after {
	box-sizing: border-box;
}

.wfl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.wfl-field {
	margin: 0 0 1rem;
}

.wfl-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: var(--wfl-text);
}

.wfl-field--check label {
	font-weight: 400;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.wfl-field--check input[type="checkbox"] {
	margin-top: 0.2rem;
	width: auto;
}

.wfl-req {
	color: var(--wfl-danger);
	margin-left: 0.15em;
}

.wfl-form input[type="text"],
.wfl-form input[type="email"],
.wfl-form input[type="tel"],
.wfl-form select,
.wfl-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65em 0.75em;
	border: 1px solid var(--wfl-border);
	border-radius: 4px;
	background: var(--wfl-bg);
	color: var(--wfl-text);
	font: inherit;
}

.wfl-form input:focus,
.wfl-form select:focus,
.wfl-form textarea:focus {
	outline: 2px solid var(--wfl-primary);
	outline-offset: 1px;
	border-color: var(--wfl-primary);
}

.wfl-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75em 1.4em;
	border: none;
	border-radius: 4px;
	background: var(--wfl-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.wfl-submit:hover,
.wfl-submit:focus {
	opacity: 0.92;
	color: #fff;
}

.wfl-submit:disabled,
.wfl-submit.wfl-loading {
	opacity: 0.65;
	cursor: not-allowed;
}

.wfl-form-message {
	min-height: 1.25em;
	margin: 0.5rem 0 0;
	font-size: 0.95em;
}

.wfl-form-message.is-error {
	color: var(--wfl-danger);
}

.wfl-form-message.is-success {
	color: var(--wfl-success);
}

.wfl-success {
	padding: 1.25rem 1.4rem;
	border: 1px solid #c3e6cd;
	border-radius: 6px;
	background: #f0faf4;
	color: var(--wfl-success);
}

.wfl-success__msg {
	margin: 0;
	font-weight: 600;
}

.wfl-admin-hint {
	color: var(--wfl-muted);
	font-size: 0.9em;
}
