/* WSN Forms Pro — front-end wizard */
.wsnf-form {
	--wsnf-accent: #1d4ed8;
	max-width: var(--wsnf-max-width, 780px);
	margin: 0 auto;
	font-family: var(--wsnf-font, inherit);
}

.wsnf-card-fe {
	background: var(--wsnf-card-bg, #fff);
	border: var(--wsnf-card-border, 1px solid #e2e6ea);
	border-radius: var(--wsnf-card-radius, 10px);
	padding: 28px;
	box-shadow: var(--wsnf-card-shadow, 0 1px 3px rgba(0, 0, 0, 0.05));
}

/* progress */
.wsnf-progress { margin-bottom: 22px; }
.wsnf-progress-label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--wsnf-progress-label, #444);
}
.wsnf-progress-bar {
	height: 8px;
	background: var(--wsnf-progress-track, #edf0f3);
	border-radius: 99px;
	overflow: hidden;
}
.wsnf-progress-fill {
	height: 100%;
	background: var(--wsnf-progress, var(--wsnf-accent));
	border-radius: 99px;
	transition: width 0.3s ease;
}

.wsnf-step-title {
	margin: 0 0 10px;
	font-size: 1.5em;
	line-height: 1.25;
	color: var(--wsnf-heading, inherit);
}
.wsnf-step-intro {
	background: var(--wsnf-intro-bg, #f6f8fa);
	border-left: 4px solid var(--wsnf-intro-border, var(--wsnf-accent));
	padding: 12px 16px;
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--wsnf-intro-text, #41494f);
}
.wsnf-step-intro p { margin: 0 0 8px; }
.wsnf-step-intro p:last-child { margin-bottom: 0; }

/* fields */
.wsnf-field { margin-bottom: 22px; }
.wsnf-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: var(--wsnf-base-fs, 16px);
	color: var(--wsnf-label, inherit);
}
.wsnf-req { color: var(--wsnf-req, #c0392b); }
.wsnf-help {
	font-size: 13px;
	color: var(--wsnf-help, #687078);
	margin: -2px 0 8px;
}
.wsnf-input {
	width: 100%;
	max-width: 480px;
	padding: 10px 12px;
	border: 1px solid var(--wsnf-input-border, #c8ced4);
	border-radius: var(--wsnf-input-radius, 6px);
	font-size: 15px;
	background: var(--wsnf-input-bg, #fff);
	color: var(--wsnf-input-text, #222);
	box-sizing: border-box;
}
.wsnf-textarea { max-width: 100%; }
.wsnf-input:focus {
	outline: 2px solid var(--wsnf-input-focus, var(--wsnf-accent)); /* WCAG 2.4.7 */
	outline-offset: 1px;
	border-color: var(--wsnf-input-focus, var(--wsnf-accent));
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wsnf-input-focus, var(--wsnf-accent)) 22%, transparent);
}

/* choices */
.wsnf-choices { display: flex; flex-direction: column; gap: 8px; }
.wsnf-multi {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}
.wsnf-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--wsnf-choice-border, #d6dbe0);
	border-radius: var(--wsnf-input-radius, 8px);
	cursor: pointer;
	font-size: 15px;
	line-height: 1.4;
	background: var(--wsnf-choice-bg, #fff);
	color: var(--wsnf-choice-text, inherit);
	transition: border-color 0.15s, background 0.15s;
}
.wsnf-choice:hover { border-color: var(--wsnf-choice-sel-border, var(--wsnf-accent)); }
.wsnf-choice input { margin-top: 3px; accent-color: var(--wsnf-accent); flex-shrink: 0; }
.wsnf-choice:has(input:checked) {
	border-color: var(--wsnf-choice-sel-border, var(--wsnf-accent));
	background: var(--wsnf-choice-sel-bg, rgba(29, 78, 216, 0.05));
}
.wsnf-confirm { font-weight: 600; }
.wsnf-choice-other { flex-wrap: wrap; align-items: center; }
.wsnf-choice-other .wsnf-other-text {
	flex: 1;
	min-width: 160px;
	max-width: none;
	padding: 6px 10px;
	font-size: 14px;
}
.wsnf-other-text:disabled { background: #f3f5f7; }

/* grid (e.g. sports × levels) */
.wsnf-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wsnf-grid {
	border-collapse: collapse;
	width: 100%;
	min-width: 360px;
	font-size: 14px;
}
.wsnf-grid th,
.wsnf-grid td {
	border: 1px solid var(--wsnf-choice-border, #d6dbe0);
	padding: 8px 10px;
	text-align: center;
}
.wsnf-grid thead th {
	background: var(--wsnf-grid-head-bg, var(--wsnf-intro-bg, rgba(29, 78, 216, 0.05)));
	color: var(--wsnf-grid-head-text, var(--wsnf-label, inherit));
	font-weight: 600;
	white-space: nowrap;
}
.wsnf-grid-corner { background: transparent !important; border-top: none !important; border-left: none !important; }
.wsnf-grid-rowhead {
	text-align: left;
	font-weight: 500;
	white-space: nowrap;
	background: var(--wsnf-grid-row-bg, transparent);
	color: var(--wsnf-choice-text, inherit);
}
.wsnf-grid-cell { padding: 4px; }
.wsnf-grid-box {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 6px;
	cursor: pointer;
}
.wsnf-grid-box input { width: 18px; height: 18px; margin: 0; accent-color: var(--wsnf-accent); cursor: pointer; }
.wsnf-grid tbody tr:hover .wsnf-grid-rowhead { color: var(--wsnf-choice-sel-border, var(--wsnf-accent)); }
.wsnf-grid td:has(input:checked) { background: var(--wsnf-choice-sel-bg, rgba(29, 78, 216, 0.05)); }

/* color */
.wsnf-color-row { display: flex; align-items: center; gap: 12px; }
.wsnf-color {
	width: 56px;
	height: 36px;
	padding: 2px;
	border: 1px solid #c8ced4;
	border-radius: 6px;
	cursor: pointer;
}
.wsnf-color-status { font-size: 14px; color: #555; }

/* files */
.wsnf-file-wrap { max-width: 480px; }
.wsnf-file {
	width: 100%;
	padding: 18px 14px;
	border: 2px dashed #c8ced4;
	border-radius: 8px;
	background: #fafbfc;
	font-size: 14px;
	cursor: pointer;
	box-sizing: border-box;
}
.wsnf-file:hover { border-color: var(--wsnf-accent); }
.wsnf-file-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	font-size: 14px;
}
.wsnf-file-list li {
	padding: 6px 10px;
	background: #f3f5f7;
	border-radius: 6px;
	margin-bottom: 4px;
}
.wsnf-file-saved { background: #eaf6ee; }
.wsnf-file-badge {
	display: inline-block;
	background: #1a7a32;
	color: #fff;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
	padding: 1px 8px;
	vertical-align: middle;
}

/* repeater */
.wsnf-repeater { margin-top: 4px; }
.wsnf-row {
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 12px;
	background: #fafbfc;
	position: relative;
}
.wsnf-row-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}
.wsnf-sublabel {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #444;
}
.wsnf-row .wsnf-input { max-width: 100%; }
.wsnf-row-remove { margin-top: 8px; }

/* buttons */
.wsnf-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid #edf0f3;
}
.wsnf-nav .wsnf-btn-next { margin-left: auto; }
.wsnf-btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 8px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s;
}
.wsnf-btn-next {
	background: var(--wsnf-btn-bg, var(--wsnf-accent));
	color: var(--wsnf-btn-text, #fff);
	border: var(--wsnf-btn-border, none);
	border-radius: var(--wsnf-btn-radius, 8px);
	padding: var(--wsnf-btn-pad, 11px 26px);
	font-size: var(--wsnf-btn-fs, 15px);
}
.wsnf-btn-back {
	background: var(--wsnf-btn2-bg, #eef1f4);
	color: var(--wsnf-btn2-text, #333);
}
.wsnf-btn-next:hover {
	background: var(--wsnf-btn-hover-bg, var(--wsnf-btn-bg, var(--wsnf-accent)));
	color: var(--wsnf-btn-hover-text, var(--wsnf-btn-text, #fff));
	filter: brightness(0.94);
}
.wsnf-btn:hover { opacity: 0.92; }
.wsnf-btn:active { transform: scale(0.985); }
.wsnf-btn:disabled { opacity: 0.5; cursor: default; }
.wsnf-btn-add {
	background: var(--wsnf-btn2-bg, #eef1f4);
	color: var(--wsnf-btn2-text, #333);
	padding: 8px 16px;
	font-size: 14px;
}
.wsnf-link-btn {
	background: none;
	border: none;
	color: var(--wsnf-link, var(--wsnf-accent));
	cursor: pointer;
	font-size: 13px;
	padding: 0 4px;
	text-decoration: underline;
}

/* errors */
.wsnf-field-invalid .wsnf-input,
.wsnf-field-invalid .wsnf-file { border-color: var(--wsnf-error, #c0392b); }
.wsnf-error {
	color: var(--wsnf-error, #c0392b);
	font-size: 13px;
	font-weight: 600;
	margin-top: 6px;
}
.wsnf-form-message {
	background: color-mix(in srgb, var(--wsnf-error, #c0392b) 12%, #fff);
	color: var(--wsnf-error, #b03a2e);
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 16px;
	font-size: 14px;
}

/* review */
.wsnf-review-section {
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 14px;
}
.wsnf-review-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 15px;
}
.wsnf-review-line {
	display: flex;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
	border-top: 1px dotted #edf0f3;
}
.wsnf-review-label {
	flex: 0 0 42%;
	color: #687078;
}
.wsnf-review-value {
	flex: 1;
	white-space: pre-line;
	word-break: break-word;
}

/* thank you */
.wsnf-thankyou { text-align: center; padding: 48px 28px; }
.wsnf-thankyou-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--wsnf-btn-bg, var(--wsnf-accent));
	color: var(--wsnf-btn-text, #fff);
	font-size: 32px;
}
.wsnf-thankyou p { margin: 6px 0; font-size: 15px; }

/* client-login-required gate */
.wsnf-login-required { text-align: center; }
.wsnf-login-required p { font-size: 15px; color: #41494f; margin: 0 0 18px; }
.wsnf-login-required .wsnf-btn-next { display: inline-block; text-decoration: none; }

/* honeypot */
.wsnf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* notices (resume / restored progress) */
.wsnf-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: var(--wsnf-notice-bg, #f0f6ff);
	border: 1px solid var(--wsnf-notice-border, #bcd4f5);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 14px;
	color: var(--wsnf-notice-text, #2c3e50);
}
.wsnf-notice span:first-child { flex: 1; }
.wsnf-notice .wsnf-link-btn { color: var(--wsnf-notice-text, #2c3e50); }
.wsnf-notice-x {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: var(--wsnf-notice-text, #687078);
	padding: 0 2px;
}

/* save & finish later */
.wsnf-savebar {
	margin-top: 14px;
	text-align: center;
}
.wsnf-save-toggle { font-size: 14px; }
.wsnf-save-panel {
	text-align: left;
	border: 1px dashed #c8ced4;
	border-radius: 8px;
	padding: 14px 16px;
	margin-top: 10px;
	background: #fafbfc;
}
.wsnf-save-note { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.wsnf-save-actions { margin-top: 10px; }
.wsnf-link-box {
	display: flex;
	gap: 8px;
	align-items: center;
}
.wsnf-link-box .wsnf-input { flex: 1; max-width: none; font-size: 13px; }

/* skip-for-now offer */
.wsnf-skip-offer {
	margin-top: 16px;
	border: 1px solid var(--wsnf-warn-border, #f5d6a8);
	background: var(--wsnf-warn-bg, #fdf6ec);
	color: var(--wsnf-warn-text, inherit);
	border-radius: 8px;
	padding: 4px 10px;
}
.wsnf-skip-offer .wsnf-choice {
	border: none;
	background: none;
	color: var(--wsnf-warn-text, inherit);
	padding: 8px 4px;
	font-size: 14px;
}

/* still-needed list on review */
.wsnf-missing {
	border: 1px solid var(--wsnf-warn-border, #f5d6a8);
	background: var(--wsnf-warn-bg, #fdf6ec);
	color: var(--wsnf-warn-text, inherit);
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
}
.wsnf-missing ul {
	margin: 8px 0 0;
	padding-left: 20px;
}
.wsnf-missing li { margin-bottom: 4px; }

@media (max-width: 600px) {
	.wsnf-card-fe { padding: 18px; }
	.wsnf-input { max-width: 100%; }
	.wsnf-multi { grid-template-columns: 1fr; }
	.wsnf-review-line { flex-direction: column; gap: 2px; }
	.wsnf-review-label { flex: none; }
	.wsnf-link-box { flex-direction: column; align-items: stretch; }
}

/* Theme armor — re-declare the form's own colors at higher specificity (and
   later in the file) so an aggressive WordPress/page-builder theme cannot
   override the per-form settings with its own input/button/heading styles. */
.wsnf-form .wsnf-card-fe { background: var(--wsnf-card-bg, #fff); }
.wsnf-form .wsnf-step-title { color: var(--wsnf-heading, inherit); }
.wsnf-form .wsnf-label { color: var(--wsnf-label, inherit); }
.wsnf-form .wsnf-help { color: var(--wsnf-help, #687078); }
.wsnf-form .wsnf-req { color: var(--wsnf-req, #c0392b); }
.wsnf-form .wsnf-step-intro {
	background: var(--wsnf-intro-bg, #f6f8fa);
	color: var(--wsnf-intro-text, #41494f);
	border-left-color: var(--wsnf-intro-border, var(--wsnf-accent));
}
.wsnf-form .wsnf-progress-bar { background: var(--wsnf-progress-track, #edf0f3); }
.wsnf-form .wsnf-progress-fill { background: var(--wsnf-progress, var(--wsnf-accent)); }
.wsnf-form .wsnf-progress-label { color: var(--wsnf-progress-label, #444); }
.wsnf-form .wsnf-input {
	background: var(--wsnf-input-bg, #fff);
	color: var(--wsnf-input-text, #222);
	border-color: var(--wsnf-input-border, #c8ced4);
}
.wsnf-form .wsnf-input:focus { border-color: var(--wsnf-input-focus, var(--wsnf-accent)); }
.wsnf-form .wsnf-choice {
	background: var(--wsnf-choice-bg, #fff);
	border-color: var(--wsnf-choice-border, #d6dbe0);
	color: var(--wsnf-choice-text, inherit);
}
.wsnf-form .wsnf-choice:hover { border-color: var(--wsnf-choice-sel-border, var(--wsnf-accent)); }
.wsnf-form .wsnf-choice:has(input:checked) {
	background: var(--wsnf-choice-sel-bg, rgba(29, 78, 216, 0.05));
	border-color: var(--wsnf-choice-sel-border, var(--wsnf-accent));
}
/* Primary button: lock the assigned colors across EVERY interaction state
   (normal, focus, click/active, disabled) so the theme can't repaint it. */
.wsnf-form .wsnf-btn-next,
.wsnf-form .wsnf-btn-next:focus,
.wsnf-form .wsnf-btn-next:focus-visible,
.wsnf-form .wsnf-btn-next:active,
.wsnf-form .wsnf-btn-next:disabled,
.wsnf-form .wsnf-btn-next[disabled] {
	background: var(--wsnf-btn-bg, var(--wsnf-accent)) !important;
	color: var(--wsnf-btn-text, #fff) !important;
	border: var(--wsnf-btn-border, none) !important;
}
.wsnf-form .wsnf-btn-next:hover {
	background: var(--wsnf-btn-hover-bg, var(--wsnf-btn-bg, var(--wsnf-accent))) !important;
	color: var(--wsnf-btn-hover-text, var(--wsnf-btn-text, #fff)) !important;
}
.wsnf-form .wsnf-btn-next:disabled,
.wsnf-form .wsnf-btn-next[disabled] { opacity: 0.55; }
.wsnf-form .wsnf-btn-back,
.wsnf-form .wsnf-btn-add,
.wsnf-form .wsnf-btn-back:focus,
.wsnf-form .wsnf-btn-add:focus,
.wsnf-form .wsnf-btn-back:focus-visible,
.wsnf-form .wsnf-btn-add:focus-visible,
.wsnf-form .wsnf-btn-back:active,
.wsnf-form .wsnf-btn-add:active {
	background: var(--wsnf-btn2-bg, #eef1f4) !important;
	color: var(--wsnf-btn2-text, #333) !important;
}
.wsnf-form .wsnf-btn-back:hover,
.wsnf-form .wsnf-btn-add:hover {
	background: var(--wsnf-btn2-hover-bg, var(--wsnf-btn2-bg, #eef1f4)) !important;
	color: var(--wsnf-btn2-hover-text, var(--wsnf-btn2-text, #333)) !important;
}
.wsnf-form .wsnf-field-invalid .wsnf-input { border-color: var(--wsnf-error, #c0392b); }
.wsnf-form .wsnf-notice {
	background: var(--wsnf-notice-bg, #f0f6ff);
	border-color: var(--wsnf-notice-border, #bcd4f5);
	color: var(--wsnf-notice-text, #2c3e50);
}
/* Text-link buttons (Start over, dismiss, Save & finish later, Edit, Remove…)
   are plain links — strip any theme <button> background/border with force. */
.wsnf-form .wsnf-link-btn,
.wsnf-form .wsnf-notice-x {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 0 !important;
	width: auto !important;
	text-shadow: none !important;
	text-transform: none !important;
}
.wsnf-form .wsnf-link-btn { color: var(--wsnf-link, var(--wsnf-accent)) !important; }
.wsnf-form .wsnf-notice .wsnf-link-btn,
.wsnf-form .wsnf-notice-x { color: var(--wsnf-notice-text, #2c3e50) !important; }
.wsnf-form .wsnf-skip-offer,
.wsnf-form .wsnf-missing {
	background: var(--wsnf-warn-bg, #fdf6ec);
	border-color: var(--wsnf-warn-border, #f5d6a8);
	color: var(--wsnf-warn-text, inherit);
}
