/* Spiral Forms — front-end styles. Inherits theme fonts. Colors come from --sf-* variables,
   which each form's Appearance settings set inline on .sf-wrap (empty = defaults below). */
.sf-wrap {
	--sf-accent: #2563eb;
	--sf-border: #c3c4c7;
	--sf-error: #b32d2e;
	--sf-radius: 4px;
	max-width: 100%;
	margin: 1.5em 0;
}
.sf-form { display: flex; flex-direction: column; gap: 1.1em; }
.sf-field { margin: 0; }
.sf-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sf-label { display: block; font-weight: 600; margin: 0 0 .35em; padding: 0; color: var(--sf-label-color, inherit); }
.sf-sublabel, .sf-choice, .sf-description, .sf-file-hint { color: var(--sf-label-color, inherit); }
/* Visually hidden but still read by screen readers (used when labels are shown as placeholders). */
.sf-wrap .sf-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sf-required { color: var(--sf-error); }
.sf-wrap input[type="text"],
.sf-wrap input[type="email"],
.sf-wrap input[type="tel"],
.sf-wrap input[type="number"],
.sf-wrap input[type="date"],
.sf-wrap select,
.sf-wrap textarea {
	box-sizing: border-box;
	width: 100%;
	padding: .6em .75em;
	border: 1px solid var(--sf-field-border, var(--sf-border));
	border-radius: var(--sf-radius);
	font: inherit;
	line-height: 1.4;
	background: var(--sf-field-bg, #fff);
	/* Dark by default (not the page's text color) so typing stays readable on dark sections. */
	color: var(--sf-field-text, #1e1e1e);
}
.sf-wrap input::placeholder,
.sf-wrap textarea::placeholder { color: var(--sf-field-text, #1e1e1e); opacity: .7; }
.sf-wrap input:focus, .sf-wrap select:focus, .sf-wrap textarea:focus {
	outline: 2px solid var(--sf-accent);
	outline-offset: 0;
	border-color: var(--sf-accent);
}
.sf-choices { display: flex; flex-direction: column; gap: .35em; }
.sf-choice { display: flex; align-items: center; gap: .5em; font-weight: normal; cursor: pointer; }
.sf-choice input { margin: 0; }
.sf-description { font-size: .9em; opacity: .8; margin-top: .3em; }
.sf-has-error input, .sf-has-error select, .sf-has-error textarea { border-color: var(--sf-error); }
.sf-error { color: var(--sf-error); font-size: .9em; margin-top: .3em; }
.sf-error-summary {
	border-left: 4px solid var(--sf-error);
	background: rgba(179, 45, 46, .07);
	padding: .75em 1em;
	margin-bottom: 1em;
}
.sf-confirmation {
	border-left: 4px solid #00a32a;
	background: rgba(0, 163, 42, .07);
	padding: 1em 1.25em;
}
.sf-confirmation > :last-child { margin-bottom: 0; }
.sf-submit {
	cursor: pointer;
	padding: .7em 1.6em;
	border: 0;
	border-radius: var(--sf-radius);
	background: var(--sf-button-bg, var(--sf-accent));
	color: var(--sf-button-text, #fff);
	font: inherit;
	font-weight: 600;
}
.sf-submit:hover { filter: brightness(1.08); }
.sf-submit[disabled] { opacity: .6; cursor: wait; }
.sf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sf-captcha { margin: .25em 0; }
.sf-field[hidden] { display: none !important; }
.sf-parts { display: flex; flex-wrap: wrap; gap: .6em 2%; }
.sf-part { box-sizing: border-box; }
.sf-col-full { flex: 0 0 100%; }
.sf-col-half { flex: 0 0 49%; }
.sf-col-quarter { flex: 0 0 23.5%; }
@media (max-width: 480px) { .sf-col-half, .sf-col-quarter { flex-basis: 100%; } }
.sf-sublabel { display: block; font-size: .8em; opacity: .8; margin-top: .2em; font-weight: normal; }
.sf-field fieldset .sf-parts + .sf-description { margin-top: .4em; }
.sf-wrap input[type="file"] { display: block; max-width: 100%; padding: .4em 0; font: inherit; }
.sf-file-hint { font-size: .85em; opacity: .7; margin-top: .2em; }

/* Payments */
.sf-price { font-size: 1.15em; font-weight: 600; }
.sf-field.sf-price-hidden { display: none; }
.sf-money { display: flex; align-items: stretch; }
.sf-money-symbol {
	display: flex; align-items: center; padding: 0 .7em;
	border: 1px solid var(--sf-field-border, var(--sf-border)); border-right: 0;
	border-radius: var(--sf-radius) 0 0 var(--sf-radius);
	background: rgba(0, 0, 0, .04); color: var(--sf-field-text, #1e1e1e);
}
.sf-wrap .sf-money input[type="text"] { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sf-stripe { min-height: 3em; }
.sf-total { margin-top: .6em; color: var(--sf-label-color, inherit); }
.sf-test-mode {
	margin-top: .6em; padding: .45em .7em; font-size: .85em;
	border-left: 3px solid #dba617; background: rgba(219, 166, 23, .1); color: #1e1e1e;
}
.sf-notice { border-left: 3px solid var(--sf-error); padding: .5em .8em; background: rgba(179, 45, 46, .06); }
.sf-captcha-row { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
.sf-captcha-question { font-weight: 600; white-space: nowrap; color: var(--sf-label-color, inherit); }
.sf-wrap .sf-captcha-row input[type="text"] { width: auto; flex: 1 1 8em; max-width: 16em; }
