/* ==========================================================================
   Lokify — onboarding wizard + status screens
   Loaded alongside auth.css, which owns the tokens and the base components.
   These screens use a wider column than the auth pages (701-761px vs 477px),
   a right-aligned auto-width action button, and a panel carrying the logo
   instead of the testimonial. Specs from the Zeplin screens of the same name.
   ========================================================================== */

.lok-shell--wizard .lok-form-side {
	align-items: flex-start;
	justify-content: center;
	padding: 64px 72px;
}

.lok-shell--wizard .lok-form-inner { max-width: 761px; }

/* Panel variant: logo top-right, tagline bottom, no testimonial. */
.lok-panel--brand { justify-content: space-between; }

.lok-panel--brand .lok-panel-logo {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	width: 150px;
}

.lok-panel--brand .lok-panel-logo img { display: block; width: 100%; height: auto; }

/* ── Stepper ─────────────────────────────────────────────────────────────── */
.lok-steps {
	display: flex;
	align-items: center;
	margin-bottom: 48px;
}

.lok-step {
	display: flex;
	flex: none;
	gap: 10px;
	align-items: center;
}

.lok-step-dot {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--neutral-400);
	border: 1.5px solid var(--neutral-300);
	border-radius: 50%;
}

.lok-step-label {
	font-size: var(--text-lg);
	font-weight: 600;
	line-height: var(--lh-lg);
	color: var(--neutral-400);
	white-space: nowrap;
}

.lok-step-line {
	flex: 1;
	min-width: 40px;
	height: 1px;
	margin: 0 16px;
	background: #CFD6DC;
}

/* Current step: outlined dot, brand-coloured text */
.lok-step.is-current .lok-step-dot {
	color: var(--brand-500);
	border-color: var(--brand-500);
}

.lok-step.is-current .lok-step-label { color: var(--brand-500); }

/* Completed step: filled dot with a tick glyph */
.lok-step.is-done .lok-step-dot {
	color: transparent;
	background: var(--purple-600) no-repeat center
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	border-color: var(--purple-600);
}

.lok-step.is-done .lok-step-label { color: var(--neutral-900); }

/* ── Section heading inside a wizard step ── */
.lok-section-title {
	margin: 0 0 6px;
	font-size: var(--display-xs);
	font-weight: 700;
	line-height: var(--lh-dxs);
	color: var(--neutral-950);
}

.lok-section-sub {
	margin: 0 0 32px;
	font-size: var(--text-md);
	line-height: var(--lh-md);
	color: var(--neutral-600);
}

/* ── Success banner ── */
.lok-banner {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 9px 16px;
	margin-bottom: 24px;
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: var(--lh-sm);
	color: var(--green-700);
	background: var(--green-50);
	border-radius: 16px;
}

.lok-banner svg { flex: none; }

/* ── Avatar picker ── */
.lok-avatar-row {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 32px;
}

.lok-field label.lok-avatar,
.lok-avatar {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	overflow: hidden;
	cursor: pointer;
	background: #F8FAFC;
	border: 2px dashed #CBD5E1;
	border-radius: 50%;
}

.lok-avatar img { width: 100%; height: 100%; object-fit: cover; }

.lok-avatar input { display: none; }

.lok-avatar-ph {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: center;
	font-size: var(--text-xs);
	color: var(--neutral-500);
}

.lok-avatar-meta strong {
	display: block;
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--neutral-900);
}

.lok-avatar-meta span {
	display: block;
	max-width: 340px;
	font-size: var(--text-xs);
	line-height: var(--lh-xs);
	color: var(--neutral-500);
}

/* ── Dropzone (CV upload) ── */
.lok-field label.lok-dropzone,
.lok-dropzone {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	padding: 40px 24px;
	margin-bottom: 28px;
	text-align: center;
	cursor: pointer;
	background: #F8FAFC;
	border: 2px dashed #CBD5E1;
	border-radius: 12px;
	transition: border-color .15s ease, background .15s ease;
}

.lok-dropzone.is-over,
.lok-dropzone:hover {
	background: var(--purple-50);
	border-color: var(--purple-400);
}

.lok-dropzone input { display: none; }

.lok-dropzone strong {
	font-size: var(--text-md);
	font-weight: 600;
	color: var(--neutral-900);
}

.lok-dropzone span { font-size: var(--text-sm); color: var(--neutral-500); }

.lok-browse {
	padding: 8px 20px;
	margin-top: 12px;
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--neutral-900);
	background: var(--white);
	border: 1px solid var(--neutral-300);
	border-radius: var(--radius);
}

.lok-dropzone.has-file {
	border-style: solid;
	border-color: var(--purple-600);
}

/* ── Skill chips ── */
.lok-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.lok-chip {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	height: 35px;
	padding: 0 14px;
	font-size: var(--text-sm);
	font-weight: 500;
	color: #6941C6;
	background: #F4EBFF;
	border: 1px solid var(--purple-200);
	border-radius: 100px;
}

.lok-chip button {
	display: flex;
	padding: 0;
	color: inherit;
	cursor: pointer;
	background: none;
	border: 0;
}

.lok-chip button:hover { opacity: .65; }

/* ── Searchable multi-select (skills) ── */
.lok-combo { position: relative; margin-bottom: 20px; }

.lok-combo-input {
	width: 100%;
	height: var(--field-h);
	padding: 10px 40px;
	font-family: inherit;
	font-size: var(--text-md);
	color: var(--neutral-900);
	background: var(--white) no-repeat left 14px center
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
	border: 1px solid var(--neutral-300);
	border-radius: var(--radius);
}

.lok-combo-input:focus {
	outline: none;
	border-color: var(--focus-ring);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, .16);
}

.lok-combo-list {
	position: absolute;
	z-index: 20;
	width: 100%;
	max-height: 240px;
	padding: 0;
	margin: 4px 0 0;
	overflow-y: auto;
	background: var(--white);
	border: 1px solid var(--neutral-200);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgba(23, 23, 23, .12);
}

.lok-combo-list[hidden] { display: none; }

.lok-combo-list li {
	padding: 10px 14px;
	font-size: var(--text-sm);
	list-style: none;
	cursor: pointer;
}

.lok-combo-list li:hover,
.lok-combo-list li.is-active { background: var(--purple-50); }

.lok-combo-list li[aria-selected="true"] {
	font-weight: 600;
	color: #6941C6;
}

.lok-combo-empty {
	padding: 12px 14px;
	font-size: var(--text-sm);
	color: var(--neutral-500);
}

/* ── URL input with a fixed https:// prefix ── */
.lok-url {
	display: flex;
	align-items: center;
	height: var(--field-h);
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--neutral-300);
	border-radius: var(--radius);
}

.lok-url:focus-within {
	border-color: var(--focus-ring);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, .16);
}

.lok-url .lok-url-prefix {
	display: flex;
	flex: none;
	align-self: stretch;
	align-items: center;
	padding: 0 14px;
	font-size: var(--text-md);
	color: var(--neutral-500);
	background: var(--white);
	border-right: 1px solid var(--neutral-300);
}

.lok-url input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 14px;
	font: inherit;
	font-size: var(--text-md);
	color: var(--neutral-900);
	background: none;
	border: 0;
}

.lok-url input:focus { outline: none; }
.lok-url input::placeholder { color: var(--neutral-400); }

/* ── Wizard footer: back arrow left, primary action right ── */
.lok-wizard-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 40px;
}

.lok-wizard-actions.is-end { justify-content: flex-end; }

.lok-btn-auto {
	width: auto;
	min-width: 111px;
	padding: 0 24px;
}

.lok-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--neutral-900);
	cursor: pointer;
	background: var(--white);
	border: 1px solid var(--neutral-300);
	border-radius: var(--radius);
}

.lok-btn-icon:hover { background: var(--neutral-50); }

/* ── Centered status screen (account under review) ── */
.lok-status-screen {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.lok-status-screen > img {
	width: 120px;
	height: auto;
	margin-bottom: 28px;
}

.lok-status-screen h1 {
	margin: 0 0 12px;
	font-size: var(--display-xs);
	font-weight: 700;
	line-height: var(--lh-dxs);
	color: var(--neutral-950);
}

.lok-status-screen p {
	margin: 0 0 32px;
	font-size: var(--text-md);
	line-height: var(--lh-md);
	color: var(--neutral-600);
}

.lok-status-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.lok-status-actions .lok-btn { width: auto; padding: 0 28px; }


/* ── OTP separator, per the verify / reset-code screens ── */
.lok-otp-sep {
	align-self: center;
	font-size: var(--display-xs);
	color: var(--neutral-300);
}

/* ── Responsive ── */
@media (max-width: 960px) {
	.lok-shell--wizard .lok-form-side { padding: 48px 24px; }
	.lok-steps { margin-bottom: 32px; }
	.lok-step-label { font-size: var(--text-sm); }
	.lok-step-line { min-width: 16px; margin: 0 8px; }
	.lok-panel--brand .lok-panel-logo { align-self: flex-start; width: 120px; }
}

@media (max-width: 560px) {
	/* Keep the stepper legible: only the current step keeps its label. */
	.lok-step:not(.is-current) .lok-step-label { display: none; }
	.lok-avatar-row { gap: 14px; }
	.lok-wizard-actions { gap: 12px; }
	.lok-status-actions { flex-direction: column; }
	.lok-status-actions .lok-btn { width: 100%; }
}
