/**
 * All selectors namespaced .frc- so nothing collides with the
 * existing Frontline Care Network plugin, which styles by .fcn- classes.
 * Colors inherit from the theme where possible. Override the custom
 * properties below in Additional CSS to match the brand.
 */

.frc {
	--frc-ink: #1c2b30;
	--frc-muted: #55666c;
	--frc-line: #d9e0e2;
	--frc-accent: #2f6f7e;
	--frc-accent-ink: #ffffff;
	--frc-surface: #ffffff;
	--frc-surface-alt: #f4f7f8;
	--frc-error: #a4262c;
	--frc-radius: 10px;

	color: var(--frc-ink);
	font-size: 1rem;
	line-height: 1.55;
}

.frc__inner {
	max-width: 40rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

.frc__title {
	margin: 0 0 0.35em;
	font-size: clamp( 1.6rem, 4vw, 2.1rem );
	line-height: 1.15;
}

.frc__subtitle {
	margin: 0 0 1.75rem;
	color: var(--frc-muted);
}

.frc__progress {
	height: 4px;
	background: var(--frc-line);
	border-radius: 999px;
	overflow: hidden;
}

.frc__progress-bar {
	height: 100%;
	width: 0;
	background: var(--frc-accent);
	transition: width 220ms ease;
}

.frc__counter {
	margin: 0.6rem 0 1.5rem;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--frc-muted);
}

/* Without JS every step shows and the counter is meaningless. */
.frc:not(.frc--js) .frc__progress,
.frc:not(.frc--js) .frc__counter {
	display: none;
}

.frc__step {
	border: 0;
	margin: 0 0 1.5rem;
	padding: 0;
}

.frc__legend {
	display: block;
	width: 100%;
	margin: 0 0 0.4em;
	padding: 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25;
}

.frc__help {
	margin: 0 0 1rem;
	color: var(--frc-muted);
	font-size: 0.925rem;
}

.frc__options {
	display: grid;
	gap: 0.5rem;
}

.frc__option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--frc-line);
	border-radius: var(--frc-radius);
	background: var(--frc-surface);
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
}

.frc__option:hover {
	border-color: var(--frc-accent);
	background: var(--frc-surface-alt);
}

.frc__option input {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--frc-accent);
}

.frc__option:has( input:checked ) {
	border-color: var(--frc-accent);
	background: var(--frc-surface-alt);
	box-shadow: inset 0 0 0 1px var(--frc-accent);
}

.frc__option input:focus-visible {
	outline: 2px solid var(--frc-accent);
	outline-offset: 3px;
}

.frc__reveal {
	margin: 0.25rem 0 0.5rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--frc-accent);
	background: var(--frc-surface-alt);
	border-radius: 0 var(--frc-radius) var(--frc-radius) 0;
}

.frc__reveal label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	color: var(--frc-muted);
}

.frc__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

@media ( max-width: 32rem ) {
	.frc__grid {
		grid-template-columns: 1fr;
	}
}

.frc__field {
	margin: 0 0 1rem;
}

.frc__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.925rem;
}

.frc__req {
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--frc-muted);
}

.frc input[type="text"],
.frc input[type="tel"],
.frc input[type="email"],
.frc textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	font: inherit;
	color: var(--frc-ink);
	background: var(--frc-surface);
	border: 1px solid var(--frc-line);
	border-radius: var(--frc-radius);
}

.frc input:focus-visible,
.frc textarea:focus-visible {
	outline: 2px solid var(--frc-accent);
	outline-offset: 1px;
	border-color: var(--frc-accent);
}

.frc__input--invalid {
	border-color: var(--frc-error) !important;
}

.frc__error,
.frc__formerror {
	margin: 0.65rem 0 0;
	color: var(--frc-error);
	font-size: 0.9rem;
	min-height: 1.2em;
}

.frc__error:empty,
.frc__formerror:empty {
	min-height: 0;
}

/* Honeypot. Off screen rather than display:none so bots still fill it. */
.frc__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.frc__turnstile {
	margin: 1rem 0;
}

.frc__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.frc__btn {
	appearance: none;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	font: inherit;
	font-weight: 600;
	border-radius: var(--frc-radius);
	border: 1px solid var(--frc-accent);
	background: var(--frc-accent);
	color: var(--frc-accent-ink);
	cursor: pointer;
}

.frc__btn--back {
	background: transparent;
	color: var(--frc-accent);
}

.frc__btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

.frc__btn:focus-visible {
	outline: 2px solid var(--frc-ink);
	outline-offset: 2px;
}

.frc__consent {
	margin: 1rem 0 0;
	font-size: 0.825rem;
	color: var(--frc-muted);
}

.frc__success {
	padding: 1.5rem;
	border: 1px solid var(--frc-accent);
	border-radius: var(--frc-radius);
	background: var(--frc-surface-alt);
	font-size: 1.05rem;
}

@media ( prefers-reduced-motion: reduce ) {
	.frc__progress-bar,
	.frc__option {
		transition: none;
	}
}
