/**
 * StepUp LMS – Setup Wizard
 * Full-screen takeover styles. Brand color matches the plugin's
 * default primary (#7b2cbf / hover #6a2a9f) from STEPUP_Global::load_color_palette().
 */

.stepup-setup-wizard,
.stepup-setup-wizard * {
	box-sizing: border-box;
}

.stepup-setup-wizard {
	margin: 0;
	padding: 0;
	background: linear-gradient(160deg, #f5f1fb 0%, #f8f8fb 45%, #ffffff 100%);
	color: #1f2330;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

.stepup-wizard-shell {
	max-width: 880px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

/* Top bar */
.stepup-wizard-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 0 8px;
}

.stepup-wizard-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 16px;
	color: #2d1140;
}

.stepup-wizard-brand-icon {
	color: #7b2cbf;
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.stepup-wizard-skip {
	color: #6b7280;
	font-size: 13px;
	text-decoration: none;
	border-bottom: 1px dashed #c9c9d6;
	padding-bottom: 1px;
}

.stepup-wizard-skip:hover {
	color: #7b2cbf;
	border-color: #7b2cbf;
}

/* Progress stepper */
.stepup-wizard-progress {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 18px 0 32px;
	padding: 0;
}

.stepup-wizard-progress-step {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #ebebf2;
	border-radius: 999px;
	padding: 6px 14px 6px 6px;
	font-size: 12px;
	color: #9292a3;
	flex: 1 1 auto;
	white-space: nowrap;
}

.stepup-wizard-progress-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #f1eefa;
	color: #9292a3;
	font-weight: 700;
	font-size: 11px;
}

.stepup-wizard-progress-step.is-active {
	border-color: #7b2cbf;
	color: #2d1140;
	box-shadow: 0 2px 10px rgba(123, 44, 191, 0.12);
}

.stepup-wizard-progress-step.is-active .stepup-wizard-progress-num {
	background: #7b2cbf;
	color: #fff;
}

.stepup-wizard-progress-step.is-done {
	color: #6a2a9f;
}

.stepup-wizard-progress-step.is-done .stepup-wizard-progress-num {
	background: #e6d9f7;
	color: #6a2a9f;
}

/* Content card */
.stepup-wizard-content {
	display: flex;
	justify-content: center;
}

.stepup-wizard-panel {
	background: #fff;
	border: 1px solid #ebebf2;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(31, 23, 50, 0.06);
	padding: 40px 44px;
	width: 100%;
}

.stepup-wizard-panel--centered {
	text-align: center;
	padding: 56px 44px;
}

.stepup-wizard-hero-icon {
	font-size: 48px;
	line-height: 1;
	margin-bottom: 18px;
}

.stepup-wizard-panel h1 {
	font-size: 26px;
	margin: 0 0 14px;
	color: #1f1430;
}

.stepup-wizard-panel h2 {
	font-size: 21px;
	margin: 0 0 10px;
	color: #1f1430;
}

.stepup-wizard-lead {
	color: #6b7280;
	font-size: 14.5px;
	line-height: 1.65;
	margin: 0 0 28px;
	max-width: 640px;
}

.stepup-wizard-panel--centered .stepup-wizard-lead {
	margin-left: auto;
	margin-right: auto;
}

/* Buttons */
.stepup-wizard-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.stepup-wizard-actions--center {
	justify-content: center;
}

.stepup-wizard-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 8px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}

.stepup-wizard-btn:active {
	transform: translateY(1px);
}

.stepup-wizard-btn--primary {
	background: #7b2cbf;
	color: #fff;
}

.stepup-wizard-btn--primary:hover {
	background: #6a2a9f;
	color: #fff;
}

.stepup-wizard-btn--secondary {
	background: #f1eefa;
	color: #5b1f8f;
}

.stepup-wizard-btn--secondary:hover {
	background: #e6d9f7;
}

.stepup-wizard-btn--ghost {
	background: #fff;
	color: #3f3f4a;
	border-color: #dcdce4;
}

.stepup-wizard-btn--ghost:hover {
	border-color: #7b2cbf;
	color: #7b2cbf;
}

.stepup-wizard-btn--lg {
	padding: 13px 28px;
	font-size: 15px;
}

.stepup-wizard-btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
}

/* Field grid */
.stepup-wizard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
}

.stepup-wizard-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.stepup-wizard-field label {
	font-size: 13px;
	font-weight: 600;
	color: #2d1140;
}

.stepup-wizard-field select,
.stepup-wizard-field input[type="text"],
.stepup-wizard-field input[type="number"],
.stepup-wizard-field input[type="email"],
.stepup-wizard-field input[type="password"] {
	border: 1px solid #dcdce4;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 14px;
	background: #fff;
	color: #1f2330;
}

.stepup-wizard-field select:focus,
.stepup-wizard-field input:focus {
	outline: none;
	border-color: #7b2cbf;
	box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.12);
}

.stepup-wizard-field--switch {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
}

.stepup-wizard-field--switch strong {
	font-size: 13.5px;
	color: #1f2330;
}

.stepup-wizard-field--switch p {
	margin: 2px 0 0;
	color: #6b7280;
	font-size: 12.5px;
	line-height: 1.5;
}

/* Switch toggle */
.stepup-wizard-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: 0 0 auto;
	margin-top: 1px;
}

.stepup-wizard-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.stepup-wizard-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #d8d8e2;
	transition: background-color .2s ease;
	border-radius: 999px;
}

.stepup-wizard-switch-slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	transition: transform .2s ease;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.stepup-wizard-switch input:checked + .stepup-wizard-switch-slider {
	background-color: #7b2cbf;
}

.stepup-wizard-switch input:checked + .stepup-wizard-switch-slider::before {
	transform: translateX(18px);
}

.stepup-wizard-switch input:focus-visible + .stepup-wizard-switch-slider {
	box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.25);
}

#stepup-paypal-fields {
	transition: opacity .15s ease;
}

/* Demo data status */
.stepup-wizard-status {
	font-size: 13.5px;
	color: #6b7280;
	margin: 0 0 18px;
}

.stepup-wizard-status--ok {
	color: #1f7a3d;
	font-weight: 600;
}

/* Guide cards */
.stepup-wizard-guide-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.stepup-wizard-guide-card {
	border: 1px solid #ebebf2;
	border-radius: 12px;
	padding: 20px;
	background: #fcfbfe;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.stepup-wizard-guide-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #7b2cbf;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 6px;
}

.stepup-wizard-guide-card h3 {
	font-size: 15px;
	margin: 0;
	color: #1f1430;
}

.stepup-wizard-guide-card p {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.55;
	margin: 0 0 12px;
}

.stepup-wizard-guide-card .stepup-wizard-btn {
	margin-top: auto;
	padding: 8px 16px;
	font-size: 13px;
}

/* Responsive */
@media (max-width: 680px) {
	.stepup-wizard-panel {
		padding: 28px 22px;
	}

	.stepup-wizard-grid,
	.stepup-wizard-guide-grid {
		grid-template-columns: 1fr;
	}

	.stepup-wizard-topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}