/**
 * Auth / login / registration.
 * Registration form uses inline styles in FMP_Custom_Registration_Form.
 */
.crf-notice { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999999; }

.fmp-checkout-plans {
	--fmp-primary: #045482;
	--fmp-accent: #05abc1;
	--fmp-text: #0f172a;
	--fmp-muted: #64748b;
	--fmp-border: #e2e8f0;
	--fmp-surface: #ffffff;
	--fmp-soft: #f8fafc;
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 20px 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--fmp-text);
}

.fmp-checkout-header {
	text-align: center;
	margin-bottom: 36px;
}

.fmp-checkout-badge {
	display: inline-block;
	padding: 6px 14px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(4, 84, 130, 0.1) 0%, rgba(5, 171, 193, 0.14) 100%);
	color: var(--fmp-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fmp-checkout-title {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--fmp-text);
}

.fmp-checkout-subtitle {
	margin: 0 auto;
	max-width: 560px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fmp-muted);
}

.fmp-checkout-plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
	align-items: stretch;
}

.fmp-checkout-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--fmp-surface);
	border: 1.5px solid var(--fmp-border);
	border-radius: 20px;
	padding: 28px 24px 24px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fmp-checkout-plan-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(4, 84, 130, 0.1);
	border-color: rgba(5, 171, 193, 0.35);
}

.fmp-checkout-plan-card.is-featured {
	border-color: rgba(4, 84, 130, 0.35);
	background: linear-gradient(180deg, rgba(4, 84, 130, 0.04) 0%, #fff 120px);
	box-shadow: 0 16px 42px rgba(4, 84, 130, 0.12);
}

.fmp-checkout-plan-card.is-selected {
	border-color: var(--fmp-accent);
	box-shadow: 0 0 0 3px rgba(5, 171, 193, 0.18), 0 16px 42px rgba(4, 84, 130, 0.1);
}

.fmp-checkout-plan-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 5px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--fmp-primary) 0%, var(--fmp-accent) 100%);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.fmp-checkout-plan-body {
	flex: 1 1 auto;
	padding-top: 8px;
}

.fmp-checkout-plan-title {
	margin: 0 0 16px;
	padding-right: 72px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--fmp-text);
}

.fmp-checkout-plan-card.is-featured .fmp-checkout-plan-title {
	padding-right: 88px;
}

.fmp-checkout-plan-price-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--fmp-border);
}

.fmp-checkout-plan-amount {
	font-size: clamp(1.75rem, 3vw, 2.125rem);
	font-weight: 800;
	line-height: 1;
	color: var(--fmp-primary);
	letter-spacing: -0.02em;
}

.fmp-checkout-plan-interval {
	font-size: 14px;
	font-weight: 500;
	color: var(--fmp-muted);
}

.fmp-checkout-plan-features {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fmp-checkout-plan-features li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
}

.fmp-checkout-plan-features li:last-child {
	margin-bottom: 0;
}

.fmp-checkout-plan-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fmp-accent);
	box-shadow: inset 0 0 0 2px rgba(5, 171, 193, 0.25);
}

.fmp-checkout-plan-footer {
	margin-top: 24px;
}

.fmp-stripe-plan-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	background: var(--fmp-primary);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.fmp-stripe-plan-btn:hover {
	background: var(--fmp-accent);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(5, 171, 193, 0.25);
}

.fmp-stripe-plan-btn:focus-visible {
	outline: 2px solid var(--fmp-accent);
	outline-offset: 2px;
}

.fmp-stripe-plan-btn.is-loading {
	opacity: 0.85;
	cursor: wait;
	transform: none;
}

.fmp-stripe-plan-btn.is-selected {
	background: var(--fmp-accent);
	box-shadow: 0 0 0 3px rgba(5, 171, 193, 0.25);
}

.fmp-stripe-plan-btn__loading {
	display: none;
}

.fmp-stripe-plan-btn.is-loading .fmp-stripe-plan-btn__label {
	display: none;
}

.fmp-stripe-plan-btn.is-loading .fmp-stripe-plan-btn__loading {
	display: inline;
}

.fmp-checkout-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
	text-align: center;
	color: var(--fmp-muted);
	font-size: 14px;
}

.fmp-checkout-note__icon {
	flex-shrink: 0;
	color: var(--fmp-accent);
}

.fmp-checkout-error {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	text-align: center;
	font-size: 14px;
}

.fmp-stripe-embedded-wrap {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1.5px solid var(--fmp-border);
}

.fmp-stripe-embedded-wrap[hidden] {
	display: none !important;
}

.fmp-stripe-embedded-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.fmp-stripe-embedded-title {
	margin: 0;
	font-size: 1.25rem;
	color: var(--fmp-text);
}

.fmp-change-plan-btn {
	background: var(--fmp-surface);
	color: var(--fmp-primary);
	border: 1.5px solid var(--fmp-border);
	border-radius: 10px;
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.fmp-change-plan-btn:hover {
	border-color: var(--fmp-accent);
	color: var(--fmp-accent);
}

#fmp-stripe-embedded-checkout {
	min-height: 420px;
}

@media (max-width: 640px) {
	.fmp-checkout-plans {
		padding: 24px 16px 32px;
	}

	.fmp-checkout-plan-card {
		padding: 24px 20px 20px;
	}

	.fmp-checkout-plan-title {
		padding-right: 0;
	}

	.fmp-checkout-plan-badge {
		position: static;
		display: inline-block;
		margin-bottom: 12px;
	}
}

/* --------------------------------------------------------------------------
   Registration / Login wizard (custom_registration_form)
   -------------------------------------------------------------------------- */
.custom-reg-form {
	--ink: #063248;
	--muted: #54595f;
	--line: #e1e8ed;
	--accent: #298ea6;
	--accent-dark: #1f7489;
	--accent-soft: #e3f1f4;
	--featured-line: #b8d9e2;
	--bg: #fafbfc;
	--surface: #ffffff;
	--danger: #b42318;
	--radius: 14px;
	--shadow: 0 12px 40px rgba(6, 50, 72, 0.08);
	box-sizing: border-box;
	width: min(920px, 100%);
	margin: 2.5rem auto 3.5rem;
	font-family: "Nunito", system-ui, -apple-system, sans-serif;
	color: var(--muted);
	line-height: 1.55;
}

.custom-reg-form *,
.custom-reg-form *::before,
.custom-reg-form *::after {
	box-sizing: border-box;
}

.custom-reg-form .form-tabs {
	display: flex;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
}

.custom-reg-form .tab-link {
	flex: 1;
	padding: 0.85rem 1rem;
	text-align: center;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 10px;
	transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
	background: var(--surface);
	color: var(--ink);
	border: 1.5px solid var(--line);
}

.custom-reg-form .tab-link.active {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
	box-shadow: 0 8px 20px rgba(41, 142, 166, 0.25);
}

.custom-reg-form .tab-link:hover:not(.active) {
	border-color: var(--featured-line);
	background: var(--accent-soft);
}

.custom-reg-form .tab-content {
	display: none;
}

.custom-reg-form .tab-content.active {
	display: block;
}

.custom-reg-form .fmp-reg-shell {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) + 4px);
	box-shadow: var(--shadow);
	overflow: clip;
}

.custom-reg-form .fmp-reg-shell__top {
	padding: 1.75rem 1.75rem 1.25rem;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fff 0%, #f7fbfc 100%);
}

.custom-reg-form .fmp-reg-shell__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.01em;
	text-transform: capitalize;
}

.custom-reg-form .fmp-reg-shell__lead {
	margin: 0;
	color: var(--muted);
	font-size: 0.975rem;
}

.custom-reg-form .fmp-reg-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.5rem;
	margin-top: 1.35rem;
}

.custom-reg-form .fmp-reg-step {
	position: relative;
	padding: 0.75rem 0.65rem;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	font: inherit;
	width: 100%;
}

.custom-reg-form .fmp-reg-step:hover {
	border-color: var(--featured-line);
}

.custom-reg-form .fmp-reg-step.is-active {
	border-color: var(--accent);
	background: var(--accent-soft);
	box-shadow: 0 0 0 3px rgba(41, 142, 166, 0.12);
}

.custom-reg-form .fmp-reg-step.is-done {
	border-color: var(--featured-line);
}

.custom-reg-form .fmp-reg-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	margin-bottom: 0.35rem;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 800;
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.custom-reg-form .fmp-reg-step.is-active .fmp-reg-step__num,
.custom-reg-form .fmp-reg-step.is-done .fmp-reg-step__num {
	background: var(--accent);
	color: #fff;
}

.custom-reg-form .fmp-reg-step__label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.25;
}

.custom-reg-form .fmp-reg-step__hint {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.7rem;
	color: var(--muted);
}

.custom-reg-form .fmp-reg-form-body {
	padding: 1.75rem;
}

.custom-reg-form .fmp-reg-panel {
	display: none;
	animation: fmp-reg-rise 0.35s ease;
}

.custom-reg-form .fmp-reg-panel.is-active {
	display: block;
}

@keyframes fmp-reg-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.custom-reg-form .fmp-reg-panel {
		animation: none;
	}
}

.custom-reg-form .fmp-reg-panel__title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--ink);
}

.custom-reg-form .fmp-reg-panel__lead {
	margin: 0 0 1.35rem;
	font-size: 0.925rem;
	color: var(--muted);
}

.custom-reg-form .fmp-reg-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.1rem;
	align-items: start;
}

.custom-reg-form .fmp-reg-field--full,
.custom-reg-form .form-row.fmp-reg-field--full {
	grid-column: 1 / -1;
}

.custom-reg-form .form-row,
.custom-reg-form .fmp-reg-field {
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

.custom-reg-form .form-row label,
.custom-reg-form .fmp-reg-field > label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--ink);
}

.custom-reg-form .req {
	color: var(--accent);
}

.custom-reg-form .form-row input[type="text"],
.custom-reg-form .form-row input[type="email"],
.custom-reg-form .form-row input[type="tel"],
.custom-reg-form .form-row input[type="password"],
.custom-reg-form .form-row input[type="number"],
.custom-reg-form .form-row input[type="file"],
.custom-reg-form .form-row textarea,
.custom-reg-form .fmp-reg-field input[type="text"],
.custom-reg-form .fmp-reg-field input[type="email"],
.custom-reg-form .fmp-reg-field input[type="tel"],
.custom-reg-form .fmp-reg-field input[type="password"],
.custom-reg-form .fmp-reg-field input[type="number"],
.custom-reg-form .fmp-reg-field input[type="file"],
.custom-reg-form .fmp-reg-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.25;
	color: var(--ink);
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.custom-reg-form .form-row textarea,
.custom-reg-form .fmp-reg-field textarea {
	min-height: 110px;
	resize: vertical;
}

.custom-reg-form .form-row input:focus,
.custom-reg-form .form-row textarea:focus,
.custom-reg-form .fmp-reg-field input:focus,
.custom-reg-form .fmp-reg-field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(41, 142, 166, 0.14);
}

.custom-reg-form .fmp-reg-field.is-invalid input,
.custom-reg-form .fmp-reg-field.is-invalid textarea,
.custom-reg-form .form-row.is-invalid input,
.custom-reg-form .form-row.is-invalid textarea {
	border-color: #f97066;
}

.custom-reg-form .fmp-field-hint {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	color: #7a8694;
}

.custom-reg-form .fmp-field-error {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	color: var(--danger);
	display: none;
}

.custom-reg-form .is-invalid .fmp-field-error {
	display: block;
}

.custom-reg-form .input-with-icon {
	position: relative;
	width: 100%;
	min-width: 0;
}

.custom-reg-form .input-with-icon input {
	display: block;
	width: 100% !important;
	max-width: 100%;
	padding-right: 50px !important;
}

.custom-reg-form .field-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	z-index: 1;
}

.custom-reg-form .password-toggle {
	cursor: pointer;
	pointer-events: auto;
}

.custom-reg-form .select2-container {
	width: 100% !important;
	max-width: 100%;
}

.custom-reg-form .select2-container--default .select2-selection--single {
	position: relative;
	height: 48px !important;
	min-height: 48px !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 10px !important;
	padding: 0 12px !important;
	background-color: #fff !important;
	outline: none;
	box-shadow: none;
}

.custom-reg-form .select2-container--default .select2-selection--single .select2-selection__rendered {
	display: block;
	line-height: 45px !important;
	padding: 0 56px 0 0 !important;
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.custom-reg-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
	line-height: 45px;
	color: #94a3b8;
}

.custom-reg-form .select2-container--default .select2-selection--single .select2-selection__arrow {
	position: absolute !important;
	top: 0 !important;
	right: 4px !important;
	width: 28px !important;
	height: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.custom-reg-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
	position: static !important;
	margin: 0 !important;
	border-width: 5px 4px 0 4px;
	border-color: #64748b transparent transparent transparent;
}

.custom-reg-form .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-width: 0 4px 5px 4px;
	border-color: transparent transparent #64748b transparent;
	margin: 0 !important;
}

.custom-reg-form .select2-container--default .select2-selection--single .select2-selection__clear {
	position: absolute !important;
	right: 36px !important;
	top: 50% !important;
	bottom: auto !important;
	left: auto !important;
	float: none !important;
	transform: translateY(-50%);
	display: block !important;
	width: 20px;
	height: 20px;
	margin: 0 !important;
	padding: 0;
	font-size: 18px;
	line-height: 20px !important;
	text-align: center;
	color: #64748b;
	font-weight: 600;
	cursor: pointer;
	z-index: 2;
}

.custom-reg-form .select2-container--default .select2-selection--single .select2-selection__clear:hover {
	color: var(--ink);
}

/* Multi-select: compact field; selections listed below via .fmp-multi-select-meta */
.custom-reg-form .select2-container--default .select2-selection--multiple {
	min-height: 48px !important;
	max-height: 48px !important;
	border: 1.5px solid var(--line) !important;
	border-radius: 10px !important;
	padding: 0 12px !important;
	background: #fff !important;
	outline: none;
	box-shadow: none;
	display: flex !important;
	align-items: center;
	overflow: hidden !important;
}

.custom-reg-form .select2-container--default:not(.select2-container--open) .select2-selection--multiple .select2-selection__choice {
	display: none !important;
}

.custom-reg-form .select2-container--default:not(.select2-container--open) .select2-selection--multiple .fmp-select2-count {
	display: block !important;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 45px;
	padding: 0;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
}

.custom-reg-form .select2-container--default.select2-container--open .select2-selection--multiple {
	max-height: 48px !important;
	overflow: hidden !important;
}

/* Select2 4.1+: search is a sibling of rendered, not a child */
.custom-reg-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	display: flex !important;
	flex: 0 1 auto;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	width: auto !important;
	min-width: 0;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.custom-reg-form .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
	flex: 0 0 0 !important;
}

.custom-reg-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
	display: none !important;
}

.custom-reg-form .select2-container--default .select2-selection--multiple .select2-search--inline {
	float: none !important;
	display: block !important;
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 45px;
}

.custom-reg-form .select2-container--default:not(.select2-container--open).fmp-select2-has-values .select2-selection--multiple .select2-search--inline {
	display: none !important;
}

.custom-reg-form .select2-container--default:not(.select2-container--open).fmp-select2-has-values .select2-selection--multiple .select2-selection__rendered {
	flex: 1 1 auto !important;
	width: 100% !important;
	display: flex !important;
}

.custom-reg-form .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 45px !important;
	height: 45px !important;
	line-height: 45px !important;
	font-size: 0.95rem !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	resize: none !important;
	text-align: left !important;
}

.custom-reg-form .select2-container--default.select2-container--focus .select2-selection--single,
.custom-reg-form .select2-container--default.select2-container--focus .select2-selection--multiple,
.custom-reg-form .select2-container--default.select2-container--open .select2-selection--single,
.custom-reg-form .select2-container--default.select2-container--open .select2-selection--multiple {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px rgba(41, 142, 166, 0.14);
}

.custom-reg-form .fmp-multi-select-meta {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: var(--muted);
	font-weight: 500;
	line-height: 1.45;
}

.custom-reg-form .fmp-multi-select-meta--has-items {
	border-top: 1px solid var(--line);
	padding-top: 12px;
	margin-top: 14px;
}

.custom-reg-form .fmp-multi-select-meta--has-items .fmp-multi-select-meta__list {
	display: block;
	color: var(--ink);
	font-weight: 500;
	margin-bottom: 6px;
	word-break: break-word;
}

.custom-reg-form .fmp-multi-select-meta--has-items .fmp-multi-select-meta__hint {
	display: block;
	font-size: 0.8rem;
	color: var(--muted);
	font-weight: 400;
}

/* Dropdown panel: match field width/radius, avoid double-line seam */
body > .select2-container .select2-dropdown {
	border: 1.5px solid var(--line, #e1e8ed) !important;
	border-radius: 10px !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
	overflow: hidden;
	margin-top: 4px;
}

body > .select2-container .select2-results__options {
	max-height: 260px;
	overflow-y: auto;
}

body > .select2-container .select2-results__option {
	padding: 10px 14px;
	font-size: 0.95rem;
	line-height: 1.35;
	min-height: 0;
}

body > .select2-container .select2-results__option--highlighted.select2-results__option--selectable {
	background: var(--accent, #298ea6) !important;
}

body > .select2-container .select2-results__option--selected {
	background: rgba(41, 142, 166, 0.1) !important;
	color: var(--ink, #063248) !important;
}

.custom-reg-form .radio-group,
.custom-reg-form .eligibility-options,
.custom-reg-form .fmp-reg-seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
	margin-top: 0;
}

.custom-reg-form .radio-option,
.custom-reg-form .fmp-reg-seg label {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.8rem;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink);
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
}

.custom-reg-form .radio-option:hover,
.custom-reg-form .fmp-reg-seg label:hover {
	border-color: var(--featured-line);
}

.custom-reg-form .radio-option:has(input:checked),
.custom-reg-form .fmp-reg-seg label:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.custom-reg-form .radio-option input,
.custom-reg-form .fmp-reg-seg input {
	accent-color: var(--accent);
}

.custom-reg-form .eligibility-states {
	display: none;
	margin-top: 1rem;
}

.custom-reg-form .eligibility-states.active {
	display: block;
}

.custom-reg-form .conditional-field {
	display: none !important;
}

.custom-reg-form .conditional-field.active {
	display: block !important;
}

.custom-reg-form .fmp-reg-file {
	position: relative;
	border: 1.5px dashed var(--featured-line);
	border-radius: 12px;
	background: var(--accent-soft);
	padding: 1.1rem;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.custom-reg-form .fmp-reg-file input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	padding: 0;
	border: 0;
	width: 100%;
	height: 100%;
}

.custom-reg-form .fmp-reg-file strong {
	display: block;
	color: var(--ink);
	margin-bottom: 0.2rem;
	font-size: 0.95rem;
}

.custom-reg-form .fmp-reg-file span {
	font-size: 0.8rem;
	color: var(--muted);
}

.custom-reg-form .fmp-reg-file.has-file {
	border-style: solid;
	border-color: var(--accent);
	background: #fff;
}

.custom-reg-form .fmp-field-note {
	margin: 0 0 0.65rem;
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.5;
	font-weight: 400;
}

.custom-reg-form .form-row.fmp-reg-field--full > .fmp-field-note:only-child {
	margin: 0;
}

.custom-reg-form .fmp-reg-upload {
	display: flex;
	flex-direction: column;
}

.custom-reg-form .fmp-reg-upload > label {
	min-height: 2.6em;
}

.custom-reg-form .fmp-reg-upload .fmp-reg-file {
	flex: 1 1 auto;
	min-height: 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.custom-reg-form .fmp-upload-hint {
	margin: 8px 0 0;
	color: #64748b;
	font-size: 13px;
}

.custom-reg-form .fmp-reg-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.custom-reg-form .fmp-reg-progress {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--muted);
}

.custom-reg-form .fmp-reg-btn-row {
	display: flex;
	gap: 0.6rem;
	margin-left: auto;
}

.custom-reg-form .fmp-reg-btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 0.85rem 1.35rem;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.custom-reg-form .fmp-reg-btn[hidden],
.custom-reg-form .fmp-reg-footer [hidden] {
	display: none !important;
}

.custom-reg-form .fmp-reg-btn:active {
	transform: translateY(1px);
}

.custom-reg-form .fmp-reg-btn--ghost {
	background: #fff;
	color: var(--ink);
	border: 1.5px solid var(--line);
}

.custom-reg-form .fmp-reg-btn--ghost:hover {
	border-color: var(--featured-line);
	background: var(--bg);
}

.custom-reg-form .fmp-reg-btn--primary,
.custom-reg-form .btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 20px rgba(41, 142, 166, 0.25);
	border: none;
	width: auto;
	padding: 0.85rem 1.35rem;
	border-radius: 8px;
	font-weight: 800;
	font-size: inherit;
	cursor: pointer;
}

.custom-reg-form .fmp-reg-btn--primary:hover,
.custom-reg-form .btn-primary:hover {
	background: var(--accent-dark);
}

.custom-reg-form .form-actions {
	display: flex;
	gap: 15px;
	margin-top: 1.5rem;
}

.custom-reg-form .form-actions .btn-primary {
	width: 100%;
}

.custom-reg-form .keep-signed-in {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
	color: var(--muted);
	font-size: 14px;
	cursor: pointer;
}

.custom-reg-form .forgot-link {
	margin-top: 1rem;
	text-align: center;
}

.custom-reg-form .forgot-link a {
	color: var(--accent-dark);
	font-weight: 700;
	text-decoration: none;
}

.custom-reg-form .forgot-link a:hover {
	text-decoration: underline;
}

.custom-reg-form .form-errors,
.custom-reg-form .form-success {
	padding: 15px 20px;
	border-radius: 10px;
	margin: 0 1.75rem 0;
	font-size: 14px;
}

.custom-reg-form .fmp-reg-form-body > .form-errors,
.custom-reg-form .fmp-reg-form-body > .form-success,
.custom-reg-form #login-content > .form-errors,
.custom-reg-form #login-content > .form-success {
	margin: 0 0 1.25rem;
}

.custom-reg-form .form-errors {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.custom-reg-form .form-errors a {
	color: #b91c1c;
	font-weight: 600;
	text-decoration: underline;
}

.custom-reg-form .form-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.custom-reg-form .form-header-title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--ink);
	text-align: left;
	margin: 0 0 1.25rem;
}

.custom-reg-form .um-1340 {
	display: none !important;
}

@media (max-width: 760px) {
	.custom-reg-form {
		margin: 1.25rem auto 2rem;
		width: min(100% - 1.25rem, 920px);
	}

	.custom-reg-form .fmp-reg-steps {
		grid-template-columns: 1fr 1fr;
	}

	.custom-reg-form .fmp-reg-grid,
	.custom-reg-form .radio-group,
	.custom-reg-form .eligibility-options,
	.custom-reg-form .fmp-reg-seg {
		grid-template-columns: 1fr;
	}

	.custom-reg-form .fmp-reg-form-body,
	.custom-reg-form .fmp-reg-shell__top {
		padding: 1.2rem;
	}
}
