/* OmniFunds Onboarding Center. Everything is scoped under .ofob so the theme
 * (Thrive on omnifunds2.com) cannot restyle it and it cannot restyle the theme. */

.ofob {
	--ofob-blue: #0e7cc0;
	--ofob-blue-deep: #0a5f94;
	--ofob-blue-soft: #e7f3fb;
	--ofob-ink: #0f2233;
	--ofob-muted: #5b6f80;
	--ofob-line: #d9e5ee;
	--ofob-paper: #f6fbfe;
	--ofob-card: #ffffff;
	--ofob-green: #1f9d63;
	--ofob-green-soft: #e5f6ee;
	--ofob-amber: #b7791f;
	--ofob-amber-soft: #fdf3e2;
	--ofob-red: #c0392b;
	--ofob-radius: 14px;

	max-width: 880px;
	margin: 0 auto;
	padding: 8px 0 48px;
	color: var(--ofob-ink);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.ofob *, .ofob *::before, .ofob *::after { box-sizing: border-box; }
.ofob svg { width: 1em; height: 1em; display: block; }
.ofob button { font: inherit; }

.ofob-loading { padding: 48px 0; text-align: center; color: var(--ofob-muted); }

/* ---- banners ---- */

.ofob-preview {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--ofob-amber-soft);
	color: #7a5210;
	font-size: 14px;
}
.ofob-reminder {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 24px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--ofob-blue-soft);
	color: var(--ofob-blue-deep);
	font-size: 15px;
	font-weight: 500;
}
.ofob-reminder-icon svg { width: 20px; height: 20px; }

/* ---- header + progress ---- */

.ofob-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 24px;
	margin: 0 0 20px;
	padding: 28px 28px 24px;
	border-radius: var(--ofob-radius);
	background: linear-gradient(135deg, #0e7cc0 0%, #0a5f94 100%);
	color: #fff;
}
.ofob-eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .8;
}
.ofob .ofob-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; color: inherit; }
.ofob-sub { margin: 6px 0 0; opacity: .9; }
.ofob-meter { text-align: right; align-self: start; }
.ofob-meter-num { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ofob-meter-label { font-size: 13px; opacity: .85; margin-top: 4px; }

.ofob-track-wrap { grid-column: 1 / -1; position: relative; margin-top: 18px; }
.ofob-track-line {
	position: absolute;
	left: 16px;
	right: 16px;
	top: 15px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .25);
}
.ofob-track-fill { height: 100%; border-radius: 3px; background: #fff; transition: width .5s ease; }
.ofob-track {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ofob-dot { margin: 0; padding: 0; list-style: none; }
.ofob-dot button {
	display: grid;
	place-items: center;
	width: 33px;
	height: 33px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .45);
	background: #0b6aa6;
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease;
}
.ofob-dot button:hover { transform: scale(1.08); }
.ofob-dot.is-completed button { background: #fff; border-color: #fff; color: var(--ofob-green); }
.ofob-dot.is-completed svg { width: 16px; height: 16px; }
.ofob-dot.is-action button {
	background: #fff;
	border-color: #fff;
	color: var(--ofob-blue);
	box-shadow: 0 0 0 5px rgba(255, 255, 255, .28);
}
.ofob-dot.is-locked button { border-style: dashed; }

/* ---- step cards ---- */

.ofob-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ofob-card {
	margin: 0;
	list-style: none;
	border: 1px solid var(--ofob-line);
	border-radius: var(--ofob-radius);
	background: var(--ofob-card);
	overflow: hidden;
}
.ofob-card.is-action { border-color: var(--ofob-blue); box-shadow: 0 6px 24px rgba(14, 124, 192, .12); }
.ofob-card.is-locked { background: var(--ofob-paper); }

.ofob-card-head {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 20px;
	border: 0;
	background: none;
	color: inherit;
	text-align: left;
}
.ofob-card-head.is-toggle { cursor: pointer; }
.ofob-card-head.is-toggle:hover { background: var(--ofob-paper); }

.ofob-num {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ofob-blue);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}
.ofob-num svg { width: 17px; height: 17px; }
.is-completed .ofob-num { background: var(--ofob-green); }
.is-locked .ofob-num { background: #e3ebf1; color: #8aa0b2; }

.ofob-card-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ofob-step-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ofob-muted); }
.ofob-card-title { font-size: 18px; font-weight: 650; line-height: 1.3; }
.is-locked .ofob-card-title { color: var(--ofob-muted); }

.ofob-pill {
	flex: none;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.ofob-pill.is-completed { background: var(--ofob-green-soft); color: var(--ofob-green); }
.ofob-pill.is-action { background: var(--ofob-blue-soft); color: var(--ofob-blue-deep); }
.ofob-pill.is-locked { background: #edf2f6; color: var(--ofob-muted); }

.ofob-locked-note { margin: -6px 20px 16px 68px; font-size: 14px; color: var(--ofob-muted); }

.ofob-card-body { padding: 0 20px 22px 68px; }
.ofob-copy > :first-child { margin-top: 0; }
.ofob-copy p { margin: 0 0 12px; }
.ofob .ofob-copy h4 { margin: 18px 0 4px; font-size: 16px; font-weight: 650; color: var(--ofob-ink); }

/* ---- video ---- */

.ofob-videos { display: grid; gap: 16px; margin: 16px 0 20px; }
.ofob-videos.is-multi { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ofob-video { margin: 0; }
.ofob-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #0b1b28;
}
.ofob-frame iframe, .ofob-frame video, .ofob-frame > div {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.ofob-frame-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: rgba(255, 255, 255, .7);
	font-size: 14px;
	background: repeating-linear-gradient(135deg, #0f2233 0 14px, #13293d 14px 28px);
}
.ofob-frame-empty svg { width: 34px; height: 34px; opacity: .7; }
.ofob-video figcaption {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 14px;
}
.ofob-video-label { font-weight: 600; }
.ofob-video-status { display: inline-flex; align-items: center; gap: 4px; color: var(--ofob-muted); font-size: 13px; }
.ofob-video.is-done .ofob-video-status { color: var(--ofob-green); font-weight: 600; }

/* ---- checkboxes ---- */

.ofob-checks { display: grid; gap: 8px; margin: 16px 0; }
.ofob-check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--ofob-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.ofob-check:hover { border-color: var(--ofob-blue); }
.ofob-check.is-gated { cursor: not-allowed; opacity: .6; }
.ofob-check.is-gated:hover { border-color: var(--ofob-line); }
.ofob-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ofob-box {
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 2px solid #b7c8d6;
	border-radius: 6px;
	color: transparent;
	background: #fff;
	transition: all .15s ease;
}
.ofob-box svg { width: 15px; height: 15px; }
.ofob-check input:checked + .ofob-box { background: var(--ofob-green); border-color: var(--ofob-green); color: #fff; }
.ofob-check input:focus-visible + .ofob-box { outline: 3px solid rgba(14, 124, 192, .35); outline-offset: 2px; }
.ofob-check:has(input:checked) { border-color: var(--ofob-green); background: var(--ofob-green-soft); }
.ofob-check-text { display: flex; flex-direction: column; gap: 2px; }
.ofob-gate-note { font-size: 13px; color: var(--ofob-muted); }

/* ---- actions ---- */

.ofob-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.ofob .ofob-complete {
	display: inline-block;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ofob-blue);
	color: #fff;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(14, 124, 192, .3);
	transition: background .15s ease, transform .15s ease;
}
.ofob .ofob-complete:hover:not([disabled]) { background: var(--ofob-blue-deep); transform: translateY(-1px); }
.ofob .ofob-complete[disabled] { background: #b9cbd8; box-shadow: none; cursor: not-allowed; }
.ofob-hint { font-size: 14px; color: var(--ofob-muted); }
.ofob-error { margin: 12px 0 0; color: var(--ofob-red); font-size: 14px; font-weight: 500; }
.ofob-done-note { margin: 14px 0 0; font-size: 14px; color: var(--ofob-green); }


/* ---- finished + gate ---- */

.ofob-finished, .ofob-gate {
	margin: 0 0 24px;
	padding: 32px 28px;
	border-radius: var(--ofob-radius);
	text-align: center;
	background: var(--ofob-green-soft);
}
.ofob .ofob-finished h3 { margin: 12px 0 8px; font-size: 24px; color: var(--ofob-ink); }
.ofob-finished p { margin: 0 auto 8px; max-width: 560px; }
.ofob-finished-badge {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--ofob-green);
	color: #fff;
}
.ofob-finished-badge svg { width: 30px; height: 30px; }

.ofob-gate { background: var(--ofob-paper); border: 1px solid var(--ofob-line); }
.ofob-gate p { max-width: 520px; margin: 10px auto 20px; color: var(--ofob-muted); }
.ofob-gate-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--ofob-blue-soft); color: var(--ofob-blue); }
.ofob-gate-icon svg { width: 24px; height: 24px; }
.ofob .ofob-gate .ofob-title { color: var(--ofob-ink); font-size: 24px; }

/* ---- phones ---- */

@media (max-width: 640px) {
	.ofob-head { padding: 22px 18px 20px; }
	.ofob .ofob-title { font-size: 23px; }
	.ofob-meter-num { font-size: 26px; }
	.ofob-dot button { width: 26px; height: 26px; font-size: 12px; }
	.ofob-track-line { top: 12px; left: 13px; right: 13px; }
	.ofob-card-head { padding: 14px 14px; gap: 10px; }
	.ofob-num { width: 30px; height: 30px; font-size: 14px; }
	.ofob-card-title { font-size: 16px; }
	.ofob-pill { display: none; }
	.ofob-card-body { padding: 0 14px 18px; }
	.ofob-locked-note { margin: -4px 14px 14px 54px; }
	.ofob .ofob-complete { width: 100%; text-align: center; }
}

/* ---- waiting status ---- */

.ofob-card.is-waiting { border-color: var(--ofob-amber); box-shadow: 0 6px 24px rgba(183, 121, 31, .12); }
.is-waiting .ofob-num { background: var(--ofob-amber); }
.ofob-pill.is-waiting { background: var(--ofob-amber-soft); color: #8a5a12; white-space: normal; text-align: right; max-width: 220px; }
.ofob-dot.is-waiting button { background: #fff; border-color: #fff; color: var(--ofob-amber); box-shadow: 0 0 0 5px rgba(255, 255, 255, .28); }
.ofob-dot.is-waiting svg { width: 16px; height: 16px; }

/* ---- resources (buttons and PDF links) ---- */

.ofob-resources { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.ofob .ofob-res {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--ofob-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ofob-blue-deep);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}
.ofob .ofob-res:hover { border-color: var(--ofob-blue); background: var(--ofob-blue-soft); }
.ofob .ofob-res svg { width: 17px; height: 17px; flex: none; }
.ofob .ofob-res.is-button { background: var(--ofob-blue); border-color: var(--ofob-blue); color: #fff; }
.ofob .ofob-res.is-button:hover { background: var(--ofob-blue-deep); }

/* ---- checks with a side button ---- */

.ofob-check-row { display: flex; align-items: center; gap: 10px; }
.ofob-check-row > .ofob-check { flex: 1; }
.ofob-check-row > .ofob-res { flex: none; }
.ofob-countdown { font-variant-numeric: tabular-nums; color: var(--ofob-blue-deep); font-weight: 600; }

/* ---- Step 4 question ---- */

.ofob-question { margin: 8px 0 16px; padding: 0; border: 0; }
.ofob-question legend { padding: 0; margin: 0 0 10px; font-size: 17px; font-weight: 650; color: var(--ofob-ink); }
.ofob-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ofob-option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--ofob-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.ofob-option:hover { border-color: var(--ofob-blue); }
.ofob-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ofob-option input:checked + .ofob-box { background: var(--ofob-blue); border-color: var(--ofob-blue); color: #fff; }
.ofob-option input:focus-visible + .ofob-box { outline: 3px solid rgba(14, 124, 192, .35); outline-offset: 2px; }
.ofob-option.is-on { border-color: var(--ofob-blue); background: var(--ofob-blue-soft); }
.ofob-option-text { display: flex; flex-direction: column; }
.ofob-option-label { font-weight: 650; }
.ofob-option-sub { font-size: 13px; color: var(--ofob-muted); }
.ofob .ofob-other {
	display: block;
	width: 100%;
	max-width: 420px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid var(--ofob-line);
	border-radius: 10px;
	font: inherit;
	color: var(--ofob-ink);
	background: #fff;
}
.ofob .ofob-other:focus { outline: 3px solid rgba(14, 124, 192, .25); border-color: var(--ofob-blue); }

/* ---- Step 5 account tracks ---- */

.ofob-accounts { display: grid; gap: 12px; margin: 4px 0 16px; }
.ofob-account {
	padding: 16px;
	border: 1px solid var(--ofob-line);
	border-left: 4px solid var(--ofob-blue);
	border-radius: 10px;
	background: var(--ofob-paper);
}
.ofob-account.is-submitted { border-left-color: var(--ofob-green); }
.ofob-account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.ofob .ofob-account-head h4 { margin: 0; font-size: 17px; color: var(--ofob-ink); }
.ofob-account-time { font-size: 13px; color: var(--ofob-muted); }
.ofob-account-text { margin: 8px 0 12px; font-size: 15px; }
.ofob-account .ofob-res { margin-bottom: 12px; }
.ofob-account .ofob-check { background: #fff; }

/* ---- Step 8 waiting + per-account timeline ---- */

.ofob-waiting { margin: 16px 0 4px; padding: 16px; border-radius: 10px; background: var(--ofob-amber-soft); }
.ofob-waiting-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #7a5210; }
.ofob-waiting-head svg { width: 20px; height: 20px; }
.ofob-waiting .ofob-copy p { font-size: 15px; }
.ofob-account-status { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; }
.ofob-account-status-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; }
.ofob-account-status-head span { color: var(--ofob-muted); font-size: 14px; }
.ofob-stages { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0 0; padding: 0; list-style: none; position: relative; }
.ofob-stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ofob-muted); }
.ofob-stages li::before {
	content: "";
	position: absolute;
	top: 10px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: var(--ofob-line);
}
.ofob-stages li:first-child::before { display: none; }
.ofob-stages li.is-done::before { background: var(--ofob-green); }
.ofob-stage-dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--ofob-line);
	background: #fff;
	color: #fff;
}
.ofob-stage-dot svg { width: 13px; height: 13px; }
.ofob-stages li.is-done .ofob-stage-dot { background: var(--ofob-green); border-color: var(--ofob-green); }
.ofob-stages li.is-done { color: var(--ofob-green); font-weight: 600; }
.ofob-stages li.is-next .ofob-stage-dot { border-color: var(--ofob-amber); box-shadow: 0 0 0 4px rgba(183, 121, 31, .18); }
.ofob-stages li.is-next { color: #7a5210; font-weight: 600; }

@media (max-width: 640px) {
	.ofob-check-row { flex-direction: column; align-items: stretch; }
	.ofob-check-row > .ofob-res { justify-content: center; }
	.ofob-options { grid-template-columns: 1fr 1fr; }
}
