/**
 * Registration concierge.
 *
 * Colours come from the theme's palette custom properties rather than
 * hex values, so the walkthrough follows the site rather than drifting
 * away from it the first time the palette is adjusted.
 */

.bovf-concierge {
	display: grid;
	gap: var(--wp--preset--spacing--50, 2rem);
}

.bovf-step {
	display: grid;
	grid-template-columns: auto minmax( 0, 1fr );
	gap: 1rem;
	align-items: start;
	padding: var(--wp--preset--spacing--40, 1.75rem);
	border: 2px solid var(--wp--preset--color--navy, #10223f);
	border-radius: 6px;
	background: var(--wp--preset--color--paper, #fff);
}

/* Dimmed, never disabled — everything inside stays readable and reachable.
   Opacity alone would fail contrast, so the border softens instead and the
   text keeps its own colour. */
.bovf-step.is-locked {
	border-color: var(--wp--preset--color--line, #c6d3e5);
	background: color-mix( in srgb, var(--wp--preset--color--paper, #fff) 92%, var(--wp--preset--color--line, #c6d3e5) );
}

.bovf-step__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	font-weight: 700;
	font-size: 1.125rem;
	background: var(--wp--preset--color--navy, #10223f);
	color: var(--wp--preset--color--paper, #fff);
}

.bovf-step.is-locked .bovf-step__number {
	background: var(--wp--preset--color--line, #c6d3e5);
	color: var(--wp--preset--color--navy, #10223f);
}

.bovf-step.is-done .bovf-step__number {
	background: var(--wp--preset--color--green, #106b52);
	font-size: 0;
}

.bovf-step.is-done .bovf-step__number::after {
	content: "\2713";
	font-size: 1.25rem;
}

.bovf-step__body > * {
	margin-block-start: 0;
}

.bovf-step__body > * + * {
	margin-block-start: 0.85rem;
}

.bovf-step__body h2 {
	font-size: var(--wp--preset--font-size--h-3, 1.25rem);
	line-height: 1.25;
}

.bovf-help {
	font-size: var(--wp--preset--font-size--caption, 0.875rem);
	color: var(--wp--preset--color--navy-soft, #2d4569);
}

/* --- step 1: the lookup ------------------------------------------------ */

.bovf-lookup__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 0.35rem;
}

.bovf-lookup label {
	display: block;
	font-weight: 600;
}

.bovf-lookup input {
	flex: 1 1 14rem;
	max-width: 20rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wp--preset--color--navy-soft, #2d4569);
	border-radius: 4px;
	font: inherit;
	background: var(--wp--preset--color--paper, #fff);
	color: var(--wp--preset--color--navy, #10223f);
}

.bovf-button {
	display: inline-block;
	padding: 0.6rem 1.15rem;
	border: 1px solid var(--wp--preset--color--navy, #10223f);
	border-radius: 4px;
	background: var(--wp--preset--color--navy, #10223f);
	color: var(--wp--preset--color--paper, #fff);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.bovf-button:hover,
.bovf-button:focus-visible {
	background: var(--wp--preset--color--navy-deep, #0a1730);
	color: var(--wp--preset--color--paper, #fff);
}

.bovf-button[disabled] {
	cursor: progress;
	opacity: 0.75;
}

.bovf-button--light {
	background: var(--wp--preset--color--paper, #fff);
	color: var(--wp--preset--color--navy, #10223f);
	border-color: var(--wp--preset--color--paper, #fff);
}

.bovf-button--light:hover,
.bovf-button--light:focus-visible {
	background: var(--wp--preset--color--grey, #d7dfeb);
	color: var(--wp--preset--color--navy, #10223f);
}

.bovf-result {
	border-inline-start: 4px solid var(--wp--preset--color--green, #106b52);
	background: color-mix( in srgb, var(--wp--preset--color--green, #106b52) 8%, transparent );
	padding: 1rem 1.15rem;
	border-radius: 0 4px 4px 0;
}

.bovf-result > * {
	margin-block: 0;
}

.bovf-result > * + * {
	margin-block-start: 0.4rem;
}

.bovf-result__label {
	font-size: var(--wp--preset--font-size--eyebrow, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--green, #106b52);
}

.bovf-result__council {
	font-size: var(--wp--preset--font-size--h-3, 1.25rem);
	font-weight: 700;
}

.bovf-result__title {
	font-weight: 700;
}

.bovf-result__meta,
.bovf-result__note {
	font-size: var(--wp--preset--font-size--caption, 0.875rem);
	color: var(--wp--preset--color--navy-soft, #2d4569);
}

/* --- step 2: register, and choose ------------------------------------- */

.bovf-official {
	padding: 1.25rem;
	border-radius: 6px;
	background: var(--wp--preset--color--navy, #10223f);
	color: var(--wp--preset--color--paper, #fff);
}

.bovf-official > * {
	margin-block: 0;
}

.bovf-official > * + * {
	margin-block-start: 0.6rem;
}

.bovf-official__title {
	font-weight: 700;
}

.bovf-official__note {
	font-size: var(--wp--preset--font-size--caption, 0.875rem);
	color: var(--wp--preset--color--grey, #d7dfeb);
}

.bovf-methods {
	display: grid;
	gap: 1rem;
	border: 0;
	padding: 0;
	margin: 0;
}

@media ( min-width: 34rem ) {
	.bovf-methods {
		grid-template-columns: 1fr 1fr;
	}
}

.bovf-method {
	display: block;
	position: relative;
	padding: 1.15rem;
	border: 2px solid var(--wp--preset--color--line, #c6d3e5);
	border-radius: 6px;
	cursor: pointer;
}

.bovf-method:hover {
	border-color: var(--wp--preset--color--navy-soft, #2d4569);
}

/* The radio is the control; the card is its label. Kept in the layout and
   only visually hidden, so it still takes focus and shows a focus ring. */
.bovf-method input {
	position: absolute;
	inset-block-start: 1.15rem;
	inset-inline-end: 1.15rem;
}

.bovf-method:has( input:checked ) {
	border-color: var(--wp--preset--color--green, #106b52);
	background: color-mix( in srgb, var(--wp--preset--color--green, #106b52) 7%, transparent );
}

.bovf-method:has( input:focus-visible ) {
	outline: 2px solid var(--wp--preset--color--navy, #10223f);
	outline-offset: 2px;
}

.bovf-method__title {
	display: block;
	padding-inline-end: 1.75rem;
	font-size: var(--wp--preset--font-size--h-3, 1.25rem);
	font-weight: 700;
}

.bovf-method__label {
	display: block;
	margin-block-start: 0.8rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy-soft, #2d4569);
}

.bovf-method__points {
	margin-block: 0.3rem 0;
	padding-inline-start: 1.1rem;
	font-size: var(--wp--preset--font-size--caption, 0.875rem);
}

.bovf-method__points--for {
	list-style: "+  ";
}

.bovf-method__points--against {
	list-style: "\2212  ";
}

/* Both panels are shown by default and the unselected one is then hidden.
   Written the other way round, a browser without :has() support would show
   neither and the guidance would vanish; this way it shows both, which is
   merely less tidy. */
.bovf-guidance {
	border-inline-start: 4px solid var(--wp--preset--color--red, #a4243b);
	background: color-mix( in srgb, var(--wp--preset--color--red, #a4243b) 6%, transparent );
	padding: 1rem 1.15rem;
	border-radius: 0 4px 4px 0;
}

.bovf-guidance > * {
	margin-block: 0;
}

.bovf-guidance > * + * {
	margin-block-start: 0.4rem;
}

.bovf-guidance__title {
	font-weight: 700;
}

.bovf-concierge:has( #bovf-method-postal:checked ) .bovf-guidance--proxy,
.bovf-concierge:has( #bovf-method-proxy:checked ) .bovf-guidance--postal {
	display: none;
}

/* --- step 3: the form -------------------------------------------------- */

.bovf-step .bovf-form {
	margin-block-start: 1.25rem;
}

/* Available to screen readers, out of the way of everyone else. Block
   themes do not ship core's .screen-reader-text, so it is defined here
   rather than assumed. */
.bovf-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
	border: 0;
}
