/* Bricks Form Pro — frontend styles.
   Kept minimal and token-driven so Bricks' own form styling stays in control. */

/* Conditional logic + multi-step both hide a field's .form-group. Two separate
   classes so they never clobber each other; either one hides the field. The
   form keeps its native flex-wrap layout because we never re-parent fields. */
.bfp-hidden,
.bfp-step-hidden {
	display: none !important;
}

/* ------------------------------ Step navigation --------------------------- */

/* Progress + nav are direct children of the (flex-wrap / grid) form, so force
   them onto their own full-width row instead of flowing inline with fields. */
.bfp-progress,
.bfp-step-nav {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
	grid-column: 1 / -1;
}

.bfp-step-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-block: 1rem;
}

.bfp-step-nav .bfp-step-prev {
	margin-inline-end: auto;
}

.bfp-step-nav button {
	cursor: pointer;
	padding: 0.6em 1.4em;
	border: 1px solid currentColor;
	border-radius: var( --bfp-radius, 4px );
	background: transparent;
	color: inherit;
	font: inherit;
}

.bfp-step-nav .bfp-step-next {
	background: var( --bfp-accent, #1e73be );
	border-color: var( --bfp-accent, #1e73be );
	color: #fff;
}

.bfp-step-nav button:focus-visible {
	outline: 2px solid var( --bfp-accent, #1e73be );
	outline-offset: 2px;
}

/* ----------------------------- Progress: bar ------------------------------ */

.bfp-progress {
	margin-bottom: 1.5rem;
}

.bfp-progress-bar {
	width: 100%;
	height: 6px;
	background: var( --bfp-track, rgba( 0, 0, 0, 0.1 ) );
	border-radius: 999px;
	overflow: hidden;
}

.bfp-progress-bar-fill {
	height: 100%;
	width: 0;
	background: var( --bfp-accent, #1e73be );
	border-radius: 999px;
	transition: width 0.3s ease;
}

/* --------------------------- Progress: numbered --------------------------- */

.bfp-progress-steps {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: bfp-step;
}

.bfp-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	flex: 1 1 0;
	text-align: center;
	color: var( --bfp-muted, #8a8a8a );
	font-size: 0.85em;
}

.bfp-progress-step-num {
	display: grid;
	place-items: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	border: 2px solid currentColor;
	font-weight: 600;
	line-height: 1;
}

.bfp-progress-step.is-active {
	color: var( --bfp-accent, #1e73be );
	font-weight: 600;
}

.bfp-progress-step.is-done {
	color: var( --bfp-accent, #1e73be );
}

.bfp-progress-step.is-done .bfp-progress-step-num {
	background: var( --bfp-accent, #1e73be );
	border-color: var( --bfp-accent, #1e73be );
	color: #fff;
}

@media ( max-width: 480px ) {
	.bfp-progress-step-label {
		display: none;
	}
}

/* ------------------------------- Enhancements ------------------------------ */

/* Star rating */
.bfp-rating {
	display: inline-flex;
	gap: 0.15em;
	font-size: 1.6rem;
	line-height: 1;
}

.bfp-star-btn {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var( --bfp-track, #c3c4c7 );
	transition: color 0.1s ease;
}

.bfp-star-btn.is-on {
	color: var( --bfp-accent, #f4b400 );
}

/* Range slider */
.bfp-range {
	width: 100%;
}

.bfp-range-output {
	display: inline-block;
	margin-top: 0.25rem;
	font-weight: 600;
}

/* Signature pad */
.bfp-signature-holder {
	position: relative;
	display: inline-block;
}

.bfp-signature {
	border: 1px dashed var( --bfp-track, #c3c4c7 );
	border-radius: var( --bfp-radius, 4px );
	touch-action: none;
	max-width: 100%;
	background: #fff;
	cursor: crosshair;
}

.bfp-signature-clear {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 1.8em;
	height: 1.8em;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.06 );
	cursor: pointer;
	line-height: 1;
}
