.wilforms-wrap {
	--wilforms-accent: var(--wp--preset--color--contrast, #111827);
	--wilforms-border: #d7dce3;
	--wilforms-muted: #667085;
	--wilforms-bg-soft: #f7f8fa;
	--wilforms-error: #b42318;
	--wilforms-success: #067647;
	box-sizing: border-box;
	max-width: 100%;
}

.wilforms-wrap *,
.wilforms-wrap *::before,
.wilforms-wrap *::after {
	box-sizing: border-box;
}

.wilforms-title {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 2vw, 2.2rem);
	line-height: 1.15;
}

.wilforms-description {
	margin: 0 0 24px;
	color: var(--wilforms-muted);
}

.wilforms-description > :first-child,
.wilforms-description > :last-child {
	margin-top: 0;
	margin-bottom: 0;
}

.wilforms-form {
	width: 100%;
}

.wilforms-fields {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 22px 18px;
}

.wilforms-field,
.wilforms-section,
.wilforms-html {
	grid-column: 1 / -1;
	min-width: 0;
}

.wilforms-field.wilforms-half {
	grid-column: span 6;
}

.wilforms-field.wilforms-third {
	grid-column: span 4;
}

.wilforms-field.wilforms-two-thirds {
	grid-column: span 8;
}

.wilforms-label {
	display: inline-block;
	margin: 0 0 8px;
	font-weight: 650;
	line-height: 1.35;
}

.wilforms-required {
	margin-left: 3px;
	color: var(--wilforms-error);
}

.wilforms-field-description {
	margin: -2px 0 9px;
	color: var(--wilforms-muted);
	font-size: .92em;
}

.wilforms-input-wrap input[type="text"],
.wilforms-input-wrap input[type="email"],
.wilforms-input-wrap input[type="tel"],
.wilforms-input-wrap input[type="number"],
.wilforms-input-wrap input[type="url"],
.wilforms-input-wrap input[type="password"],
.wilforms-input-wrap input[type="date"],
.wilforms-input-wrap input[type="time"],
.wilforms-input-wrap input[type="file"],
.wilforms-input-wrap select,
.wilforms-input-wrap textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--wilforms-border);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.wilforms-input-wrap textarea {
	min-height: 120px;
	resize: vertical;
}

.wilforms-input-wrap input:focus,
.wilforms-input-wrap select:focus,
.wilforms-input-wrap textarea:focus,
.wilforms-signature-canvas:focus {
	outline: 0;
	border-color: #7f8ea3;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, .09);
}

.wilforms-field.has-error .wilforms-input-wrap input,
.wilforms-field.has-error .wilforms-input-wrap select,
.wilforms-field.has-error .wilforms-input-wrap textarea,
.wilforms-field.has-error .wilforms-signature-canvas {
	border-color: var(--wilforms-error);
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .08);
}

.wilforms-field-error {
	min-height: 0;
	margin-top: 6px;
	color: var(--wilforms-error);
	font-size: .9em;
}

.wilforms-field-error:empty {
	display: none;
}

.wilforms-choice-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.wilforms-choice-list label,
.wilforms-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	line-height: 1.45;
}

.wilforms-choice-list input,
.wilforms-consent input {
	margin-top: .2em;
}

.wilforms-complex {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
}

.wilforms-complex label {
	display: grid;
	gap: 6px;
}

.wilforms-complex label > span {
	color: var(--wilforms-muted);
	font-size: .86em;
}

.wilforms-complex .wilforms-span-2 {
	grid-column: 1 / -1;
}

.wilforms-section {
	padding-top: 12px;
	border-top: 1px solid var(--wilforms-border);
}

.wilforms-section h3 {
	margin: 0 0 5px;
	font-size: 1.25rem;
}

.wilforms-section-description {
	color: var(--wilforms-muted);
}

.wilforms-page-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	flex-wrap: wrap;
}

.wilforms-button {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	transition: transform .12s ease, opacity .12s ease, background .12s ease;
}

.wilforms-button:active {
	transform: translateY(1px);
}

.wilforms-button:disabled {
	opacity: .55;
	cursor: wait;
}

.wilforms-button--primary,
.wilforms-button--submit {
	background: var(--wilforms-accent);
	color: #fff;
}

.wilforms-button--secondary {
	border-color: var(--wilforms-border);
	background: #fff;
	color: inherit;
}

.wilforms-button--link {
	margin-left: auto;
	padding-inline: 4px;
	background: transparent;
	color: inherit;
	font-weight: 550;
}

.wilforms-progress {
	margin-bottom: 26px;
}

.wilforms-progress--steps {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wilforms-progress-step {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--wilforms-border);
	border-radius: 999px;
	background: #fff;
	color: var(--wilforms-muted);
	font-size: 13px;
	font-weight: 700;
}

.wilforms-progress-step.is-active,
.wilforms-progress-step.is-complete {
	border-color: var(--wilforms-accent);
	background: var(--wilforms-accent);
	color: #fff;
}

.wilforms-progress--percentage {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wilforms-progress-track {
	overflow: hidden;
	flex: 1;
	height: 8px;
	border-radius: 999px;
	background: #e9edf2;
}

.wilforms-progress-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--wilforms-accent);
	transition: width .2s ease;
}

.wilforms-validation-summary,
.wilforms-notice,
.wilforms-confirmation,
.wilforms-saved-box {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--wilforms-border);
	border-radius: 11px;
	background: var(--wilforms-bg-soft);
}

.wilforms-validation-summary,
.wilforms-notice--error {
	border-color: rgba(180, 35, 24, .3);
	background: #fff6f5;
	color: var(--wilforms-error);
}

.wilforms-confirmation {
	border-color: rgba(6, 118, 71, .25);
	background: #f3fff9;
	color: #065f46;
}

.wilforms-confirmation > :first-child,
.wilforms-confirmation > :last-child {
	margin-top: 0;
	margin-bottom: 0;
}

.wilforms-resume-link {
	display: block;
	overflow-wrap: anywhere;
}

.wilforms-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.wilforms-signature {
	width: min(100%, var(--wilforms-signature-width, 300px));
	max-width: 100%;
}

.wilforms-signature-canvas {
	display: block;
	width: 100%;
	height: var(--wilforms-signature-height, 180px);
	border-width: var(--wilforms-signature-border-width, 2px);
	border-style: var(--wilforms-signature-border-style, dashed);
	border-color: var(--wilforms-signature-border-color, #ddd);
	border-radius: 8px;
	background: var(--wilforms-signature-bg, #fff);
	touch-action: none;
	cursor: crosshair;
}

.wilforms-signature-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 7px;
}

.wilforms-signature-actions button,
.wilforms-list-add,
.wilforms-list-remove {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.wilforms-list {
	display: grid;
	gap: 8px;
}

.wilforms-list-head,
.wilforms-list-row {
	display: grid;
	grid-template-columns: repeat(var(--wilforms-list-columns, 1), minmax(0, 1fr)) auto;
	gap: 8px;
	align-items: center;
}

.wilforms-list-head {
	color: var(--wilforms-muted);
	font-size: .85em;
	font-weight: 650;
}

.wilforms-list-remove {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--wilforms-bg-soft);
	text-decoration: none;
	font-size: 20px;
}

.wilforms-list-add {
	justify-self: start;
	margin-top: 3px;
}

.wilforms-product,
.wilforms-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--wilforms-border);
	border-radius: 10px;
	background: var(--wilforms-bg-soft);
}

.wilforms-product-price,
.wilforms-total {
	font-weight: 700;
}

.wilforms-field--hidden,
.wilforms-page[hidden],
.wilforms-field[hidden] {
	display: none !important;
}

@media (max-width: 700px) {
	.wilforms-field.wilforms-half,
	.wilforms-field.wilforms-third,
	.wilforms-field.wilforms-two-thirds {
		grid-column: 1 / -1;
	}

	.wilforms-complex {
		grid-template-columns: 1fr;
	}

	.wilforms-complex .wilforms-span-2 {
		grid-column: auto;
	}

	.wilforms-page-actions {
		align-items: stretch;
	}

	.wilforms-button--link {
		width: 100%;
		margin-left: 0;
		text-align: left;
	}
}

/* Repeater and verification fields. */
.wilforms-repeater {
	display: grid;
	gap: 14px;
}

.wilforms-repeater-rows {
	display: grid;
	gap: 14px;
}

.wilforms-repeater-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	padding: 16px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.66);
}

.wilforms-repeater-row-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.wilforms-repeater-child {
	display: grid;
	gap: 6px;
}

.wilforms-repeater-remove,
.wilforms-repeater-add {
	border: 1px solid rgba(15, 23, 42, 0.15);
	border-radius: 10px;
	background: #fff;
	padding: 8px 12px;
	cursor: pointer;
}

.wilforms-captcha-math {
	display: grid;
	gap: 8px;
	max-width: 260px;
}

@media (max-width: 640px) {
	.wilforms-repeater-row-fields {
		grid-template-columns: 1fr;
	}
}


/* International phone and accessibility enhancements. */
.wilforms-phone-international {
	display: grid;
	grid-template-columns: minmax(150px, .85fr) minmax(180px, 1.4fr);
	gap: 8px;
}

.wilforms-phone-international select,
.wilforms-phone-international input {
	width: 100%;
	min-width: 0;
}

.wilforms-form :is(input, select, textarea, button, canvas):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.wilforms-validation-summary:not([hidden]) {
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 2px solid currentColor;
	border-radius: 10px;
}

@media (max-width: 560px) {
	.wilforms-phone-international {
		grid-template-columns: 1fr;
	}
}

/* Polls. */
.wilforms-poll-choices {
	border: 0;
	margin: 0;
	padding: 0;
}
.wilforms-poll-other {
	margin-top: 10px;
	max-width: 480px;
}
.wilforms-poll-results {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid rgba(0,0,0,.10);
	border-radius: 14px;
	background: #fff;
}
.wilforms-poll-results h3 { margin: 0 0 16px; }
.wilforms-poll-result-row + .wilforms-poll-result-row { margin-top: 14px; }
.wilforms-poll-result-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
}
.wilforms-poll-result-track {
	display: block;
	height: 8px;
	margin-top: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(0,0,0,.08);
}
.wilforms-poll-result-track > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: currentColor;
}
.wilforms-poll-total { margin: 16px 0 0; font-size: 13px; opacity: .72; }

/* Coupons. */
.wilforms-coupon-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}
.wilforms-coupon-row input { flex: 1 1 auto; min-width: 0; }
.wilforms-coupon-row .wilforms-button { flex: 0 0 auto; }
.wilforms-coupon-status {
	min-height: 1.4em;
	margin-top: 6px;
	font-size: 13px;
}
.wilforms-coupon-status.is-success { color: #16803a; }
.wilforms-coupon-status.is-error { color: #b42318; }
@media (max-width: 520px) {
	.wilforms-coupon-row { align-items: stretch; }
	.wilforms-coupon-row .wilforms-button { padding-left: 14px; padding-right: 14px; }
}
