.wfrm-form {
	--wfrm-accent: #8b1e1e;
	--wfrm-accent-dark: #6d1414;
	--wfrm-border: #d4cfc7;
	--wfrm-text: #1f1f1f;
	--wfrm-muted: #6b6b6b;
	max-width: 560px;
	margin: 0 auto;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--wfrm-border);
	border-top: 6px solid var(--wfrm-accent);
	border-radius: 8px;
	color: var(--wfrm-text);
	font-size: 16px;
	box-sizing: border-box;
}
.wfrm-form *, .wfrm-form *::before, .wfrm-form *::after { box-sizing: border-box; }

.wfrm-title {
	margin: 0 0 20px;
	font-size: 1.35em;
	line-height: 1.25;
	text-align: center;
}
.wfrm-title span {
	display: block;
	font-size: .75em;
	font-weight: 500;
	color: var(--wfrm-muted);
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-top: 4px;
}

.wfrm-field { margin-bottom: 16px; }
.wfrm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .wfrm-row { grid-template-columns: 1fr; gap: 0; } .wfrm-form { padding: 20px 16px; } }

.wfrm-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: .95em;
}
.wfrm-field label span { color: var(--wfrm-accent); }

.wfrm-field input,
.wfrm-field select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--wfrm-border);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.3;
}
.wfrm-field input:focus,
.wfrm-field select:focus {
	outline: none;
	border-color: var(--wfrm-accent);
	box-shadow: 0 0 0 3px rgba(139, 30, 30, .15);
}

.wfrm-help {
	display: block;
	margin-top: 6px;
	color: var(--wfrm-muted);
	font-size: .85em;
}

.wfrm-alert {
	padding: 12px 14px;
	margin-bottom: 18px;
	border-radius: 6px;
	border-left: 4px solid;
	font-weight: 500;
}
.wfrm-alert[hidden] { display: none; }
.wfrm-alert--error { background: #fdecec; border-color: #c62828; color: #8e1c1c; }
.wfrm-alert--success { background: #e9f6ec; border-color: #2e7d32; color: #1b5e20; }

.wfrm-submit {
	width: 100%;
	padding: 13px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--wfrm-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s;
}
.wfrm-submit:hover { background: var(--wfrm-accent-dark); }
.wfrm-submit:disabled { background: #a9a9a9; cursor: not-allowed; }

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

/* Payment */
.wfrm-price-note { display: block; margin-top: 6px; color: var(--wfrm-muted); font-size: .85em; }
.wfrm-pay {
	margin: 4px 0 18px;
	padding: 16px;
	border: 1px solid var(--wfrm-border);
	border-radius: 6px;
	background: #fbfaf8;
}
.wfrm-pay legend { padding: 0 6px; font-weight: 700; }
.wfrm-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
	color: var(--wfrm-muted);
}
.wfrm-total__amt { color: var(--wfrm-text); font-size: 1.1em; }
.wfrm-total__amt strong { font-size: 1.15em; }
.wfrm-card { min-height: 90px; }
.wfrm-card__loading { display: block; padding: 18px 0; color: var(--wfrm-muted); font-size: .9em; }
.wfrm-card__error { display: block; padding: 12px; color: #8e1c1c; background: #fdecec; border-radius: 6px; font-size: .9em; }
.wfrm-secure { display: block; margin-top: 4px; color: var(--wfrm-muted); font-size: .8em; }
.wfrm-sandbox {
	margin: 0 0 12px;
	padding: 8px 10px;
	background: #fff6d6;
	border: 1px solid #e8d48a;
	border-radius: 4px;
	font-size: .85em;
	color: #6b5300;
}
.wfrm-alert--success a { color: inherit; font-weight: 700; }
