/* exakt Onboarding - client guided flow */

.exo {
	--exo-accent: #1C6EA4;
	--exo-ink: #16202a;
	--exo-muted: #6b7885;
	--exo-line: #e3e8ee;
	--exo-bg: #f6f8fa;
	--exo-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--exo-ink);
	max-width: 1080px;
	margin: 0 auto;
	line-height: 1.55;
}

.exo *, .exo *::before, .exo *::after { box-sizing: border-box; }

.exo .exo-h2 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; font-weight: 650; }
.exo .exo-intro { color: var(--exo-muted); margin-bottom: 20px; }
.exo .exo-help { display: block; font-size: 13px; color: var(--exo-muted); margin-top: 2px; }

.exo-icon { display: block; }

/* ---------- cards ---------- */
.exo-card {
	background: #fff;
	border: 1px solid var(--exo-line);
	border-radius: var(--exo-radius);
	padding: 24px;
	margin-bottom: 18px;
}
.exo-card-center { text-align: center; padding: 42px 24px; }

.exo-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.exo-notice-error { background: #fdecec; color: #8a1c1c; }
.exo-notice-ok { background: #e8f6ed; color: #14522d; }

/* ---------- top bar + progress ---------- */
.exo-topbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 0 2px 12px;
}
.exo-brand { color: var(--exo-accent); }
.exo-sep { color: var(--exo-line); margin: 0 6px; }
.exo-topbar-text { font-size: 15px; }

.exo-saved { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--exo-muted); }
.exo-saved-dot { width: 8px; height: 8px; border-radius: 50%; background: #35a866; }
.exo-saved.is-saving .exo-saved-dot { background: #d9a441; }
.exo-saved.is-error .exo-saved-dot { background: #cc3b3b; }

.exo-progress { height: 6px; background: var(--exo-line); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.exo-progress-bar { height: 100%; background: var(--exo-accent); width: 0; transition: width .35s ease; }

/* ---------- layout ---------- */
.exo-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
/* both tracks must be allowed to shrink, or the scrolling rail on mobile widens the page */
.exo-main, .exo-rail { min-width: 0; }

.exo-rail ol { list-style: none; margin: 0; padding: 0; position: sticky; top: 24px; }
.exo-rail-item { margin: 0 0 2px; }
.exo-rail-item[hidden] { display: none; }
.exo-rail-btn {
	display: flex; align-items: center; gap: 10px; width: 100%;
	background: none; border: 0; cursor: pointer; text-align: left;
	padding: 9px 12px; border-radius: 8px; font-size: 14px;
	color: var(--exo-muted); font-family: inherit;
}
.exo-rail-btn:hover { background: var(--exo-bg); color: var(--exo-ink); }
.exo-rail-item.is-active .exo-rail-btn { background: var(--exo-accent); color: #fff; }
.exo-rail-item.is-done .exo-rail-tick::after {
	content: ""; display: block; width: 7px; height: 12px; margin-left: auto;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
	opacity: .75;
}
.exo-rail-tick { margin-left: auto; width: 12px; }
.exo-rail-label { flex: 1; }

/* ---------- steps ---------- */
.exo-step-head { margin-bottom: 22px; }
.exo-step-count { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--exo-accent); font-weight: 600; margin-bottom: 6px; }
.exo-step-intro { color: var(--exo-muted); margin: 6px 0 0; max-width: 62ch; }

.exo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.exo-field { grid-column: 1 / -1; display: block; }
.exo-field.exo-half { grid-column: span 1; }
.exo-field[hidden] { display: none; }

.exo-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.exo-label em { color: var(--exo-accent); font-style: normal; }

.exo input[type="text"],
.exo input[type="email"],
.exo input[type="tel"],
.exo input[type="url"],
.exo input[type="number"],
.exo input[type="date"],
.exo select,
.exo textarea {
	width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
	border: 1px solid var(--exo-line); border-radius: 9px; background: #fff; color: var(--exo-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.exo input:focus, .exo select:focus, .exo textarea:focus {
	outline: none; border-color: var(--exo-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--exo-accent) 18%, transparent);
}
.exo textarea { resize: vertical; min-height: 96px; }
.exo .exo-field.is-missing input,
.exo .exo-field.is-missing textarea,
.exo .exo-field.is-missing .exo-choices { border-color: #cc3b3b; }

/* choices */
.exo-choices { display: grid; gap: 8px; margin-top: 4px; }
.exo-choices-inline { grid-template-columns: repeat(2, minmax(0, 140px)); }
.exo-choice {
	display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
	padding: 11px 14px; border: 1px solid var(--exo-line); border-radius: 9px;
	background: #fff; font-size: 15px; transition: border-color .15s ease, background .15s ease;
}
.exo-choice:hover { border-color: var(--exo-accent); }
.exo-choice input { margin: 3px 0 0; accent-color: var(--exo-accent); flex: none; }
.exo-choice:has(input:checked) { border-color: var(--exo-accent); background: color-mix(in srgb, var(--exo-accent) 6%, #fff); }
.exo-other { margin-top: 8px; }

.exo-note { background: var(--exo-bg); border-left: 3px solid var(--exo-accent); padding: 14px 16px; border-radius: 8px; }
.exo-note p { margin: 6px 0 0; color: var(--exo-muted); font-size: 14px; }

/* uploads */
.exo-upload { border: 1px dashed var(--exo-line); border-radius: 9px; padding: 16px; }
.exo-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.exo-upload-hint { display: block; font-size: 13px; color: var(--exo-muted); margin-top: 8px; }
.exo-filelist { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.exo-filelist li { padding: 5px 0; border-top: 1px solid var(--exo-line); }
.exo-filelist li.is-uploading { color: var(--exo-muted); }

/* ---------- buttons and nav ---------- */
.exo-btn {
	display: inline-block; border: 1px solid transparent; border-radius: 9px;
	padding: 12px 22px; font-size: 15px; font-weight: 600; font-family: inherit;
	cursor: pointer; text-decoration: none; transition: opacity .15s ease, background .15s ease;
}
.exo-btn-primary { background: var(--exo-accent); color: #fff; }
.exo-btn-primary:hover { opacity: .9; color: #fff; }
.exo-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.exo-btn-ghost { background: #fff; border-color: var(--exo-line); color: var(--exo-ink); }
.exo-btn-ghost:hover { border-color: var(--exo-accent); color: var(--exo-ink); }
.exo-btn-lg { padding: 15px 32px; font-size: 16px; }

.exo-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.exo-nav-count { font-size: 13px; color: var(--exo-muted); }

.exo-resume { margin-top: 26px; font-size: 13px; color: var(--exo-muted); }
.exo-resume code { font-size: 12px; word-break: break-all; background: var(--exo-bg); padding: 3px 6px; border-radius: 5px; }

/* ---------- review ---------- */
.exo-summary { display: grid; gap: 14px; }
.exo-summary-step { border: 1px solid var(--exo-line); border-radius: 10px; padding: 16px 18px; }
.exo-summary-step h3 { margin: 0 0 10px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.exo-summary-edit { background: none; border: 0; color: var(--exo-accent); cursor: pointer; font-size: 13px; font-family: inherit; padding: 0; }
.exo-summary-row { display: grid; grid-template-columns: 240px 1fr; gap: 12px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--exo-line); }
.exo-summary-row span:first-child { color: var(--exo-muted); }
.exo-summary-blank { color: #b3bcc5; font-style: italic; }

.exo-confirm { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; font-size: 15px; }
.exo-confirm input { accent-color: var(--exo-accent); }
.exo-submit-row { margin-top: 8px; }
.exo-submit-msg { margin-top: 12px; font-size: 14px; }
.exo-submit-msg.is-error { color: #cc3b3b; }

.exo-done-icon { color: var(--exo-accent); display: inline-flex; justify-content: center; margin-bottom: 10px; }
.exo-done-icon svg { width: 40px; height: 40px; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
	.exo-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.exo-rail ol { position: static; display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding-bottom: 6px; }
	.exo-rail-btn { white-space: nowrap; padding: 8px 12px; border: 1px solid var(--exo-line); }
	.exo-rail-label { display: none; }
	.exo-rail-item.is-active .exo-rail-label { display: inline; }
	.exo-grid { grid-template-columns: 1fr; }
	.exo-field.exo-half { grid-column: 1 / -1; }
	.exo-summary-row { grid-template-columns: 1fr; gap: 2px; }
	.exo .exo-h2 { font-size: 22px; }
}
