/* CodeBazaar Marketplace - front-end forms. Layout and controls come from the theme's Bootstrap. */

.cb-submit {
	max-width: 860px;
}

.cb-fieldset {
	margin: 0 0 2rem;
	padding: 1.5rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 16px;
}

.cb-fieldset > legend {
	float: none;
	width: auto;
	margin: 0;
	padding: 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.cb-submit .alert:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------- Become an author ---------- */

.cb-become {
	max-width: 760px;
}

.cb-steps {
	display: grid;
	gap: 1rem;
	margin: 2rem 0;
	padding: 0;
	list-style: none;
	counter-reset: cb-step;
}

.cb-steps li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.25rem 1.25rem 1.25rem 4.25rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 16px;
	counter-increment: cb-step;
}

.cb-steps li::before {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	font-weight: 700;
	color: #fff;
	content: counter(cb-step);
	background: var(--bs-primary, #6c4df6);
	border-radius: 50%;
}

.cb-steps span {
	color: var(--bs-secondary-color, #6c757d);
}

/* ---------- Enquiry forms ---------- */

.cb-enquiry {
	max-width: 760px;
	margin-top: 2rem;
	scroll-margin-top: 6rem;
}

/* The spam trap: off-screen rather than display:none, which some bots detect. */
.cb-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
