/* Onboarding page: outer wrapper centers header + card */
.evge-onboarding-page .evge-onboarding-outer {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* Step 1: wider outer so two-column welcome card (760px) is not clipped */
.evge-onboarding-page .evge-onboarding-outer.evge-onboarding-outer--step-1 {
	max-width: 960px;
}

/* Exit Setup: actual button fixed in top-right corner of the page */
.evge-onboarding-exit-setup {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 100;
	text-decoration: none;
}

/* Admin bar: push button down when present */
body.admin-bar .evge-onboarding-exit-setup {
	top: 46px;
}

/* Header above the card: logo + title, dots (no Exit inline) */
.evge-onboarding-header {
	margin-bottom: 28px;
}

.evge-onboarding-header-main {
	text-align: center;
}

.evge-onboarding-header-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 24px;
}

.evge-onboarding-logo {
	display: block;
	height: 45px;
	width: auto;
}

.evge-onboarding-header-title {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.evge-onboarding-header-title-main {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.2;
}

.evge-onboarding-header-title-sub {
	font-size: 0.875rem;
	font-weight: 400;
	color: #646970;
	line-height: 1.2;
}

/* Progress dots: large, spaced, current step highlighted */
.evge-onboarding-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.evge-onboarding-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #c3c4c7;
	border: 2px solid #c3c4c7;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.evge-onboarding-dot-done {
	background: #2271b1;
	border-color: #2271b1;
}

.evge-onboarding-dot-current {
	background: #2271b1;
	border-color: #2271b1;
	transform: scale(1.25);
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
}

/* Main content card (mirrors RTEC .rtec-welcome-screen) */
.evge-onboarding-page .evge-onboarding-wrap.evge-welcome-screen {
	padding: 40px;
	max-width: 500px;
	margin: 60px auto;
	border-radius: 5px;
	box-sizing: border-box;
	background-color: #fff;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.05);
	color: #003544;
}

/* Step 1: two-column welcome (text + CTA primary, example image secondary) */
.evge-onboarding-page .evge-onboarding-wrap.evge-welcome-screen.evge-onboarding-wrap--step-welcome {
	max-width: 960px;
}

.evge-onboarding-welcome-layout {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
}

.evge-onboarding-welcome-primary {
	flex: 1 1 62%;
	min-width: 0;
}

.evge-onboarding-welcome-secondary {
	flex: 0 1 36%;
	min-width: 0;
}

/* Welcome primary: denser CTA grouping, roomier type (step 1 only) */
.evge-onboarding-welcome-primary .evge-onboarding-step-title {
	margin-bottom: 16px;
}

.evge-onboarding-welcome-primary .evge-onboarding-step-body {
	line-height: 1.62;
	margin: 0 0 14px;
	color: #454b52;
}

.evge-onboarding-welcome-primary .evge-onboarding-step-body:last-of-type {
	margin-bottom: 0;
}

.evge-onboarding-welcome-example-label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #787c82;
}

.evge-onboarding-welcome-illustration {
	margin: 0;
	padding: 12px;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	border: 1px solid #dcdcde;
}

.evge-onboarding-welcome-illustration img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	opacity: 0.92;
}

@media screen and (max-width: 782px) {
	.evge-onboarding-welcome-layout {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.evge-onboarding-welcome-primary,
	.evge-onboarding-welcome-secondary {
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
	}
}

.evge-onboarding-page .evge-onboarding-wrap .evge-onboarding-content {
	background: transparent;
	border: none;
	box-shadow: none;
	padding-left: 0;
	padding-right: 0;
}

.evge-onboarding-step-title {
	margin: 0 0 14px;
	font-size: 1.35rem;
}

.evge-onboarding-step-body {
	margin: 0 0 8px;
	color: #50575e;
	line-height: 1.5;
	font-size: 15px;
}

/* Step 2: centered intro; Activate and Continue below listing, right-justified */
.evge-onboarding-step-2-intro {
	text-align: center;
	margin-bottom: 20px;
}

.evge-onboarding-step-2-intro .evge-onboarding-step-title {
	margin-bottom: 12px;
}

.evge-onboarding-step-2-intro .evge-onboarding-step-body {
	margin-bottom: 0;
}

.evge-onboarding-tec-activate-footer {
	text-align: right;
	margin-top: 20px;
}

.evge-onboarding-tec-activate-footer .evge-onboarding-activate-continue {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.evge-onboarding-tec-activate-footer .evge-button-carat {
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.9;
}

/* Step 4: Create Event and Continue — same pattern as Activate (right-justified, carat) */
.evge-onboarding-create-event-footer {
	text-align: right;
	margin-top: 28px;
}

.evge-onboarding-create-event-footer .evge-onboarding-create-continue {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 36px;
	font-size: 17px;
	font-weight: 600;
	min-height: 52px;
	border-radius: 6px;
}

.evge-onboarding-create-event-footer .evge-button-carat {
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.9;
}

/* Step 3: Enable & Continue — right-justified with carat, same pattern */
.evge-onboarding-enable-footer {
	text-align: right;
	margin-top: 28px;
}



.evge-onboarding-enable-footer .evge-button-carat {
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.9;
}

.evge-onboarding-section {
	margin: 24px 0;
}

.evge-onboarding-section-title {
	margin: 0 0 12px;
	font-size: 1rem;
}

.evge-onboarding-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.evge-onboarding-option {
	display: block;
	padding: 14px 16px;
	border: 2px solid #c3c4c7;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.evge-onboarding-option:hover {
	border-color: #8c8f94;
}

.evge-onboarding-option:has(input:checked) {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.evge-onboarding-option input {
	margin-right: 8px;
	vertical-align: middle;
}

.evge-onboarding-option-title {
	font-weight: 600;
	margin-bottom: 4px;
}

.evge-onboarding-option-desc {
	display: block;
	font-size: 13px;
	color: #50575e;
	margin-left: 28px;
}

/* Step 1 path options: radio + plugin listing (TEC / Event Genius) */
.evge-onboarding-path-options .evge-onboarding-path-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
}

.evge-onboarding-path-options .evge-onboarding-path-option input {
	flex-shrink: 0;
	margin: 4px 0 0;
}

.evge-onboarding-path-listing {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	flex: 1;
	min-width: 0;
}

.evge-onboarding-path-listing .evge-addon-icon {
	width: 64px;
	min-width: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	float: none;
}

.evge-onboarding-path-listing .evge-addon-icon img {
	width: 100%;
	height: auto;
}

.evge-onboarding-path-listing .evge-tec-content {
	margin-left: 0;
}

.evge-onboarding-path-listing .evge-addon-title {
	margin-top: 0;
}

.evge-onboarding-eg-icon.dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #50575e;
}

.evge-onboarding-step1-cta {
	margin-bottom: 8px;
}

.evge-onboarding-step1-message {
	margin: 0;
	min-height: 24px;
}

.evge-onboarding-badge {
	font-size: 11px;
	font-weight: normal;
	background: #2271b1;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 6px;
}

.evge-onboarding-link {
	display: inline-block;
	margin-top: 8px;
	margin-left: 24px;
	font-size: 13px;
}

/* All onboarding CTAs: large, easy to find */
.evge-onboarding-actions {
	margin-top: 32px;
}

.evge-onboarding-actions .button,
.evge-onboarding-actions .evge-button {
	display: inline-block;
	padding: 16px 36px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	min-height: 52px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Step 2: TEC Install/Activate buttons (in addon box and footer) — same large CTA treatment */
.evge-onboarding-tec-welcome .evge-addon-buttons .evge-button,
.evge-onboarding-tec-activate-footer .evge-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 36px;
	font-size: 17px;
	min-height: 52px;
	border-radius: 6px;
}

.evge-onboarding-tec-activate-footer {
	margin-top: 28px;
}

.evge-onboarding-tec-activate-footer .evge-onboarding-activate-continue {
	gap: 10px;
}

/* Processing state: wrap + spinner (aligned with frontend RtecCommon) */
.evge-processing-wrap-flex {
	position: relative;
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

.evge-processing-wrap-flex.evge-is-processing .evge-spinner-container {
	position: relative;
	top: 0;
	left: 0;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.evge-onboarding-page .evge-fade {
	opacity: 0.6;
}

/* Spinner sits next to button on page background — use visible (blue) color, not white */
.evge-onboarding-page .evge-processing-wrap-flex.evge-is-processing .evge-spinner-circle {
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	border-radius: 100%;
	border: 3px solid rgba(34, 113, 177, 0.2);
	border-top-color: #2271b1;
	animation: rtec-onboarding-spin 0.8s infinite linear;
}

.evge-onboarding-page .evge-is-processing .evge-spinner-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@keyframes rtec-onboarding-spin {
	100% { transform: rotate(360deg); }
}

.evge-onboarding-ajax-message {
	margin-top: 12px;
	font-size: 13px;
}

.evge-onboarding-ajax-message.evge-error {
	color: #b32d2e;
}

.evge-onboarding-ajax-message.evge-success {
	color: #00a32a;
	text-align: right;
}

/* Modal */
.evge-onboarding-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.evge-onboarding-modal.evge-onboarding-modal-visible {
	opacity: 1;
	visibility: visible;
}

.evge-onboarding-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.evge-onboarding-modal-content {
	position: relative;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	padding: 24px 28px;
	max-width: 440px;
	width: 90%;
}

.evge-onboarding-modal-content h3 {
	margin: 0 0 16px;
}

.evge-onboarding-modal-list {
	margin: 0 0 16px;
	padding-left: 20px;
}

.evge-onboarding-modal-note {
	font-size: 12px;
	color: #646970;
	margin: 0 0 20px;
}

.evge-onboarding-modal-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.evge-onboarding-modal-actions .button-primary {
	padding: 14px 28px;
	font-size: 16px;
	min-height: 48px;
	border-radius: 6px;
}

/* Step 4 form */
.evge-onboarding-form p {
	margin-bottom: 16px;
}

.evge-onboarding-form .evge-onboarding-form-field {
	margin-bottom: 20px;
}

.evge-onboarding-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}

/* Larger inputs across the create-event form */
.evge-onboarding-form .evge-onboarding-input {
	padding: 12px 14px;
	font-size: 16px;
	line-height: 1.4;
	min-height: 48px;
	border-radius: 4px;
	border: 1px solid #8c8f94;
	width: 100%;
	box-sizing: border-box;
}

.evge-onboarding-form .evge-onboarding-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.evge-onboarding-form .evge-onboarding-input-text {
	max-width: 100%;
}

.evge-onboarding-form .evge-onboarding-date-time-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.evge-onboarding-form .evge-onboarding-date-time-wrap .evge-onboarding-input {
	min-width: 0;
}

.evge-onboarding-form .evge-onboarding-date-time-wrap input[type="date"] {
	flex: 1;
	min-width: 140px;
}

.evge-onboarding-form .evge-onboarding-date-time-wrap input[type="time"] {
	width: 180px;
	flex-shrink: 0;
}

.evge-onboarding-form-note {
	margin: 16px 0 0 !important;
	font-size: 14px;
	color: #646970;
	font-style: italic;
}

/* Success step */
.evge-onboarding-success-list {
	margin: 16px 0 24px;
	padding-left: 0;
	list-style: none;
}

.evge-onboarding-success-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.evge-onboarding-success-list-icon {
	flex-shrink: 0;
	width: 1.25em;
	height: 1.25em;
	color: #00a32a;
	line-height: 1;
}

.evge-onboarding-success-list-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.evge-onboarding-success-primary {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
	justify-content: flex-start;
	text-align: left;
}

.evge-onboarding-success-primary .evge-onboarding-cta-with-chevron {
	display: inline-flex !important;
	align-items: center;
	gap: 14px;
}

.evge-onboarding-success-primary .button-hero {
	padding: 16px 28px;
	font-size: 16px;
	font-weight: 600;
	min-height: 48px;
	border-radius: 6px;
}

.evge-onboarding-success-cta-note {
	margin: 12px 0 20px;
	font-size: 14px;
	color: #50575e;
}

.evge-onboarding-success-other-heading {
	font-size: 13px;
	font-weight: 600;
	color: #50575e;
	margin: 24px 0 8px;
	padding: 0;
	line-height: 1.3;
}

.evge-onboarding-success-secondary {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 0;
}

.evge-onboarding-success-secondary .evge-onboarding-btn-small {
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	min-height: auto;
	border-radius: 4px;
}

.evge-onboarding-btn-small {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	min-height: auto;
	border-radius: 4px;
}

/* Shared: all CTA footers right-justified, primary color, chevron */
.evge-onboarding-cta-footer {
	text-align: right;
	margin-top: 18px;
}

/* Welcome step: left-align with copy (overrides footer defaults above) */
.evge-onboarding-cta-footer.evge-onboarding-welcome-cta {
	text-align: left;
}

.evge-onboarding-cta-footer.evge-onboarding-success-primary {
	margin-top: 20px;
	gap: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	text-align: left;
}

.evge-onboarding-cta-with-chevron {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 36px;
	font-size: 17px;
	font-weight: 600;
	min-height: 52px;
	border-radius: 6px;
	text-decoration: none;
}

.evge-onboarding-cta-with-chevron .evge-button-carat {
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.9;
}

.evge-onboarding-page .button-primary,
.evge-onboarding-page .evge-onboarding-cta-with-chevron.button-primary,
.evge-onboarding-page .evge-button.evge-primary {
	padding: 6px 28px;
	font-weight: normal;
	font-size: 16px;
}
/* Step 3B: Back + CTA in one row */
.evge-onboarding-step-3b-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
	gap: 16px;
}

.evge-onboarding-back-btn.evge-onboarding-cta-with-chevron {
	text-decoration: none;
	padding: 6px 36px;
	font-size: 16px;
	font-weight: normal;
}

.evge-onboarding-back-btn .evge-button-carat-left {
	order: -1;
}

.evge-onboarding-step-3b-actions .evge-onboarding-enable-single-footer {
	margin-top: 0;
	text-align: right;
}

.evge-onboarding-enable-single-footer {
	text-align: right;
	margin-top: 28px;
}

.evge-onboarding-enable-single-footer .evge-onboarding-cta-with-chevron {
	min-height: 52px;
}

.evge-onboarding-pro-cta {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #c3c4c7;
	font-size: 13px;
	color: #50575e;
}

.evge-onboarding-pro-cta a {
	display: inline-block;
	margin-top: 4px;
}

.evge-onboarding-offramp-no-reg {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
	font-size: 13px;
	line-height: 1.5;
	color: #787c82;
}

.evge-onboarding-offramp-no-reg a {
	display: inline-block;
	margin-top: 6px;
	color: #50575e;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.evge-onboarding-offramp-no-reg a:hover,
.evge-onboarding-offramp-no-reg a:focus {
	color: #1d2327;
}

.evge-onboarding-step-3b {
	margin-top: 0;
}

.evge-onboarding-step-3b select {
	min-width: 280px;
}

/* Step 2: both Install and Install & Activate visible side by side; hide Activate when not installed */
.evge-tec-install-both .evge-addon-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.evge-tec-install-both .evge-addon-activate {
	display: none;
}

.evge-onboarding-tec-welcome .evge-add-on-status-message {
	margin-top: 12px;
	font-size: 14px;
}
