/*
 * RISE UP Onboarding Form — enhancement styles
 * Every rule is scoped under #riseup-onboarding (or its combobox children)
 * so nothing leaks to other forms/pages. Minimal, functional styling only.
 */

/* --- "Select up to 3" live hint --- */
#riseup-onboarding .riseup-focus-hint {
	margin-top: 8px;
	font-size: 13px;
	color: #6b7280; /* muted grey */
	line-height: 1.4;
}
#riseup-onboarding .riseup-focus-hint.is-max {
	color: #b45309; /* amber when the limit is reached */
	font-weight: 600;
}
#riseup-onboarding input[type="checkbox"]:disabled + label,
#riseup-onboarding input[type="checkbox"]:disabled ~ label {
	opacity: 0.5;
	cursor: not-allowed;
}

/* --- Char counter (org_description) --- */
#riseup-onboarding .riseup-char-counter {
	margin-top: 6px;
	font-size: 13px;
	color: #6b7280;
	text-align: right;
	line-height: 1.4;
}
#riseup-onboarding .riseup-char-counter.is-warning {
	color: #b45309;
}
#riseup-onboarding .riseup-char-counter.is-full {
	color: #b91c1c;
	font-weight: 600;
}

/* --- Searchable combobox --- */
#riseup-onboarding .riseup-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

#riseup-onboarding .riseup-combobox {
	position: relative;
	width: 100%;
}

#riseup-onboarding .riseup-combobox__list {
	position: absolute;
	z-index: 1000;
	left: 0;
	right: 0;
	top: 100%;
	margin: 2px 0 0;
	padding: 4px 0;
	list-style: none;
	max-height: 260px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	-webkit-overflow-scrolling: touch;
}

#riseup-onboarding .riseup-combobox__option {
	padding: 8px 12px;
	font-size: 15px;
	line-height: 1.3;
	color: #1f2937;
	cursor: pointer;
}
#riseup-onboarding .riseup-combobox__option:hover,
#riseup-onboarding .riseup-combobox__option.is-active {
	background: #eef2ff;
}
#riseup-onboarding .riseup-combobox__option[aria-selected="true"] {
	font-weight: 600;
}

#riseup-onboarding .riseup-combobox__empty {
	padding: 8px 12px;
	font-size: 14px;
	color: #9ca3af;
}

/* --- Multi-step progress bar: wrap instead of overflowing --- */
/* Breakdance lays the 7 steps out as a single non-wrapping flex row whose
 * intrinsic width exceeds the form column, cutting off the last steps. The
 * id+class specificity below beats Breakdance's single-class rules. */
#riseup-onboarding .breakdance-form-stepper {
	flex-wrap: wrap;
	margin-bottom: 8px;
}
#riseup-onboarding .breakdance-form-stepper__list {
	flex-wrap: wrap;
	gap: 10px 18px;
}
#riseup-onboarding .breakdance-form-stepper__step {
	gap: 8px;
}
#riseup-onboarding .breakdance-form-stepper__label {
	width: auto; /* stop the greedy width:100% that forces overflow */
	white-space: nowrap;
	font-size: 14px;
	line-height: 1.2;
}
/* Growing separators force a single non-wrapping line and look broken when
 * wrapped — hide them; the numbered chips carry the sequence on their own. */
#riseup-onboarding .breakdance-form-stepper__separator {
	display: none;
}
