/**
 * Multistep registration wizard — scoped to .msr-reg-wizard
 */

.msr-reg-wizard {
	/* Bridge: premium + child tokens → internal names (always valid) */
	--msr-primary: var(--color-primary, #c026d3);
	--msr-secondary: var(--color-secondary, var(--footer-anchor, #64748b));
	--msr-heading: var(--color-heading, #0f172a);
	--msr-body: var(--color-body, #64748b);
	--msr-border: var(--color-border, #e2e8f0);

	--msr-accent: var(--msr-primary);
	--msr-accent-hover: color-mix(in srgb, var(--msr-primary) 78%, #000000 22%);
	--msr-accent-soft: color-mix(in srgb, var(--msr-primary) 14%, transparent);

	--msr-text: var(--msr-heading);
	--msr-text-muted: var(--msr-body);
	--msr-surface: #ffffff;

	--msr-radius: 12px;
	--msr-radius-sm: 8px;
	--msr-shadow: 0 4px 24px color-mix(in srgb, var(--msr-heading) 8%, transparent);

	font-family: var(--font-body, inherit);
	box-sizing: border-box;
	color: var(--msr-text);
	max-width: 100%;
}

/* Browsers without color-mix (keep wizard usable) */
@supports not (color: color-mix(in srgb, red, blue)) {
	.msr-reg-wizard {
		--msr-accent-hover: #a21caf;
		--msr-accent-soft: rgba(192, 38, 211, 0.12);
		--msr-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	}
}

.msr-reg-wizard *,
.msr-reg-wizard *::before,
.msr-reg-wizard *::after {
	box-sizing: border-box;
}

.msr-reg-photo-preview-wrap {
	margin-top: 0.75rem;
}

.msr-reg-photo-preview {
	display: block;
	border-radius: var(--msr-radius-sm);
	border: 1px solid var(--msr-border);
	object-fit: cover;
}

/* Card shell */
.msr-reg-card {
	padding-top: 1.25rem;
}

@media (min-width: 480px) {
	.msr-reg-card {
		padding-top: 1.5rem;
	}
}

/* Step indicator */
.msr-reg-steps {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	gap: 0.25rem;
}

.msr-reg-steps::before {
	content: "";
	position: absolute;
	left: 5%;
	right: 5%;
	top: 18px;
	height: 3px;
	background: var(--msr-border);
	border-radius: 2px;
	z-index: 0;
}

.msr-reg-steps__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
	min-width: 0;
}

.msr-reg-steps__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 0.875rem;
	font-weight: 700;
	background: var(--msr-surface);
	border: 3px solid var(--msr-border);
	color: var(--msr-text-muted);
	margin-bottom: 0.5rem;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.msr-reg-steps__label {
	font-size: 0.62rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--msr-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	max-width: 100%;
	padding: 0 2px;
	font-family: var(--font-heading, inherit);
}

@media (min-width: 400px) {
	.msr-reg-steps__label {
		font-size: 0.68rem;
	}
}

.msr-reg-steps__item.is-active .msr-reg-steps__num {
	border-color: var(--msr-accent);
	color: var(--msr-accent);
	transform: scale(1.3);
}

.msr-reg-steps__item.is-active .msr-reg-steps__label {
	color: var(--msr-text);
}

.msr-reg-steps__item.is-done .msr-reg-steps__num {
	border-color: var(--color-highlight, #16a34a);
	background: color-mix(in srgb, var(--color-highlight, #16a34a) 14%, var(--msr-surface));
	color: var(--color-highlight, #15803d);
}

.msr-reg-steps__item.is-done .msr-reg-steps__label {
	color: var(--color-highlight, #15803d);
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.msr-reg-steps__item.is-done .msr-reg-steps__num {
		background: #dcfce7;
	}
}

/* Step panels */
.msr-reg-step[hidden] {
	display: none !important;
}

.msr-reg-step {
	padding-top: 0.25rem;
}

.msr-reg-subheading {
	font-size: 1rem;
	font-weight: 700;
	font-family: var(--font-heading, inherit);
	color: var(--msr-text);
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--msr-accent-soft);
}

/* Form fields inside wizard */
.msr-reg-wizard .form-group {
	margin-bottom: 1.1rem;
}

.msr-reg-wizard .form-group label {
	display: block;
	margin-bottom: 0.35rem;
}

.msr-reg-wizard .dsp-form-control,
.msr-reg-wizard .dspdp-form-control,
.msr-reg-wizard .form-control {
	width: 100%;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--msr-border) !important;
	border-radius: var(--msr-radius-sm) !important;
	font-size: 0.9375rem;
	font-family: var(--font-body, inherit);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.msr-reg-wizard .dsp-form-control:focus,
.msr-reg-wizard .dspdp-form-control:focus,
.msr-reg-wizard .form-control:focus {
	outline: none;
	border-color: var(--msr-accent) !important;
	box-shadow: 0 0 0 3px var(--msr-accent-soft);
}

.msr-reg-wizard textarea.dsp-form-control,
.msr-reg-wizard textarea.form-control {
	min-height: 120px;
	resize: vertical;
}

.msr-reg-wizard .dob-wrap,
.msr-reg-wizard .register-birth-date-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.1rem;
}

.msr-reg-wizard .dob-wrap > label,
.msr-reg-wizard .register-birth-date-group > label {
	margin-bottom: 0;
	margin-right: 0.25rem;
	width: 100%;
	flex-basis: 100%;
}

.msr-reg-wizard .dob-wrap select,
.msr-reg-wizard .register-birth-date-group select {
	flex: 1;
	min-width: 0;
}

.msr-reg-wizard .note-res {
	font-size: 0.8125rem;
	color: var(--msr-text-muted);
	margin: 0 0 1rem;
}

.msr-reg-wizard .register-terms-group label {
	display: inline;
	font-weight: 500;
	margin-left: 0.35rem;
}

.msr-reg-wizard .register-terms-group input[type="checkbox"] {
	width: auto;
	min-height: auto;
	margin-top: 0;
}

.msr-reg-wizard .register-photo-upload-group input[type="file"] {
	padding: 0.5rem;
	cursor: pointer;
}

.msr-reg-wizard .form-group-error {
	border-radius: var(--msr-radius-sm);
}

.msr-reg-wizard .password-wrapper {
	position: relative;
	display: block;
	width: 100%;
}

/* Eye icon sits inside the field (same idea as wpdating-elementor-extension-public.css) */
.msr-reg-wizard .password-wrapper .form-control,
.msr-reg-wizard .password-wrapper input[type="password"] {
	width: 100%;
	padding-right: 2.75rem !important;
	border-radius: var(--msr-radius-sm) !important;
}

.msr-reg-wizard .password-wrapper .toggle-register-password,
.msr-reg-wizard .password-wrapper .toggle-confirm-password {
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0;
	cursor: pointer;
	user-select: none;
	font-size: 1.125rem;
	line-height: 1;
	color: var(--msr-text-muted);
}

.msr-reg-wizard .password-wrapper .toggle-register-password:hover,
.msr-reg-wizard .password-wrapper .toggle-confirm-password:hover {
	color: var(--msr-primary);
	background: none !important;
}

/* Password strength checklist (register-form password-criteria) */
.msr-reg-wizard .password-criteria {
	margin-top: 0.75rem;
	margin-bottom: 0;
	padding: 0.85rem 1rem 0.95rem;
	border: 1px solid var(--msr-border);
	border-radius: var(--msr-radius-sm);
	background: color-mix(in srgb, var(--msr-body) 4%, var(--msr-surface));
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--msr-surface) 70%, transparent);
	border-left-width: 3px;
	border-left-color: var(--msr-primary);
	width: 100%;
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.msr-reg-wizard .password-criteria {
		background: #f8fafc;
		box-shadow: none;
	}
}

.msr-reg-wizard .password-criteria.form-group {
	max-width: 100%;
}

.msr-reg-wizard .password-criteria__intro {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: var(--font-heading, inherit);
	color: var(--msr-text);
	line-height: 1.35;
}

.msr-reg-wizard .password-criteria__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.msr-reg-wizard .password-criteria__item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.msr-reg-wizard .password-criteria__icon {
	flex: 0 0 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.35rem;
	font-size: 1rem;
	line-height: 1;
	color: var(--msr-text-muted);
}

.msr-reg-wizard .password-criteria__icon .bi-circle {
	opacity: 0.45;
}

.msr-reg-wizard .password-criteria__icon .bi-check-circle-fill {
	color: var(--color-highlight, #16a34a);
}

.msr-reg-wizard .password-criteria__icon .bi-x-circle-fill {
	color: #dc2626;
}

.msr-reg-wizard .password-criteria__rule {
	flex: 1;
	min-width: 0;
	font-size: 0.8125rem;
	color: var(--msr-text-muted);
}

/* Footer: Previous | Next */
.msr-reg-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--msr-border);
	flex-wrap: wrap;
}

.msr-reg-footer__start,
.msr-reg-footer__end {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 44px;
}

.msr-reg-footer__start:empty {
	min-height: 0;
	padding: 0;
	margin: 0;
}

.msr-reg-footer__end {
	margin-left: auto;
}

@media (max-width: 380px) {
	.msr-reg-footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.msr-reg-footer__end {
		margin-left: 0;
		width: 100%;
	}

	.msr-reg-footer__start {
		width: 100%;
		justify-content: stretch;
	}

	.msr-reg-btn {
		justify-content: center;
		width: 100%;
	}
}

/* Buttons */
.msr-reg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.6rem 1.15rem;
	font-family: var(--font-body, inherit);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	border-radius: var(--msr-radius-sm);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.msr-reg-btn:focus {
	outline: none;
}

.msr-reg-btn:focus-visible {
	box-shadow: 0 0 0 3px var(--msr-accent-soft);
}

.msr-reg-btn:active {
	transform: translateY(1px);
}

.msr-reg-btn__icon {
	font-size: 1.1rem;
	line-height: 1;
	opacity: 0.9;
}

/* Label / icon colors: themes often style `.wpee-register-form button` and clash with inner spans */
.msr-reg-wizard button.msr-reg-btn--primary,
.msr-reg-wizard button.msr-reg-btn--primary .msr-reg-btn__text,
.msr-reg-wizard button.msr-reg-btn--primary .msr-reg-btn__icon {
	color: #ffffff;
}

.msr-reg-wizard button.msr-reg-btn--secondary .msr-reg-btn__text,
.msr-reg-wizard button.msr-reg-btn--secondary .msr-reg-btn__icon {
	color: var(--msr-text);
}

/* Primary: theme primary (premium) + darker stop */
.msr-reg-btn--primary {
	background: linear-gradient(135deg, var(--msr-primary) 0%, var(--msr-accent-hover) 100%);
	border-color: transparent;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--msr-primary) 35%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.msr-reg-btn--primary {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	}
}

.msr-reg-btn--primary:hover {
	filter: brightness(1.05);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--msr-primary) 42%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.msr-reg-btn--primary:hover {
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	}
}

/* Secondary: light surface + heading-colored label (avoids primary-on-primary when theme forces button fill) */
.msr-reg-btn--secondary {
	background: var(--msr-surface);
	border-color: var(--msr-border);
}

.msr-reg-wizard button.msr-reg-btn--secondary:hover,
.msr-reg-wizard button.msr-reg-btn--secondary:hover .msr-reg-btn__text,
.msr-reg-wizard button.msr-reg-btn--secondary:hover .msr-reg-btn__icon {
	color: var(--msr-text);
}

.msr-reg-btn--secondary:hover {
	background: color-mix(in srgb, var(--msr-secondary) 12%, var(--msr-surface));
	border-color: color-mix(in srgb, var(--msr-secondary) 35%, var(--msr-border));
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.msr-reg-btn--secondary:hover {
		background: #f8fafc;
		border-color: #cbd5e1;
	}
}

.msr-reg-profile-questions .wpee-question {
	margin-top: 0.25rem;
}

.msr-reg-profile-questions .heading-submenu {
	margin-top: 0;
	font-family: var(--font-heading, inherit);
}

.chosen-container {
	width: 100% !important;
}

.dsp_reg_main {
	display: block !important;
}

/* Multistep Register Elementor widget: template is normally hidden until its popup tab is active. */
.msr-register-widget .wpee-lr-content-tab.lr-register {
	display: block;
}

/* Hide Pintura's unlicensed badge (same rule the gallery plugin applies on profile pages). */
a[href="https://pqina.nl/?unlicensed"] {
	display: none;
}
