/* ==========================================================================
   FB Survey — front-end styles.
   Mobile-first. All selectors scoped to .fbs-container; visual variables
   exposed as CSS custom properties (overridable in Survey → Settings).
   ========================================================================== */

.fbs-container {
	--fbs-primary: #1a5632;
	--fbs-card-bg: #ffffff;
	--fbs-card-border: #d4d4d4;
	--fbs-card-hover-bg: #f0faf4;
	--fbs-text: #1a1a1a;
	--fbs-muted: #6b7280;
	--fbs-progress-bg: #e5e7eb;
	--fbs-progress-fill: #1a5632;
	--fbs-radius: 10px;
	--fbs-max-width: 640px;
	--fbs-font: inherit;
	--fbs-heading-size: 22px;
	--fbs-option-size: 17px;
	--fbs-card-pad-y: 16px;
	--fbs-card-pad-x: 20px;
	--fbs-gap: 12px;

	max-width: var(--fbs-max-width);
	margin: 0 auto;
	padding: var(--fbs-container-pad, 8px 16px 32px);
	background: var(--fbs-bg, transparent);
	border-radius: var(--fbs-container-radius, 0);
	color: var(--fbs-text);
	font-family: var(--fbs-font);
	box-sizing: border-box;
}

.fbs-container *,
.fbs-container *::before,
.fbs-container *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Style isolation (opt-in: Settings → Design → "Ignore theme styles").
   Rolls every theme rule on survey descendants back to browser defaults,
   then the plugin rules below re-apply — so the survey renders the same
   on any theme, matching the "Plugin styles" preview.
   This block must stay ABOVE the component rules: they share specificity
   with the reset and win by source order.
   -------------------------------------------------------------------------- */

.fbs-container.fbs-isolate * {
	all: revert;
	box-sizing: border-box;
}

.fbs-container.fbs-isolate {
	font-family: var(--fbs-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	text-align: start;
}

/* Force every piece of survey text to follow the container's font
   (which is driven by the Font family setting via --fbs-font). Without
   this, a theme's font-family rules on h2/button/textarea win over plain
   inheritance and the Font family setting appears to do nothing. */
.fbs-container h2.fbs-question,
.fbs-container .fbs-subtext,
.fbs-container .fbs-helper,
.fbs-container .fbs-option-card,
.fbs-container .fbs-option-label,
.fbs-container .fbs-button,
.fbs-container .fbs-button-secondary,
.fbs-container .fbs-textarea,
.fbs-container .fbs-skip,
.fbs-container .fbs-back,
.fbs-container .fbs-step-label,
.fbs-container .fbs-resource-card,
.fbs-container .fbs-resource-card strong,
.fbs-container .fbs-resource-card p,
.fbs-container .fbs-card-cta {
	font-family: inherit !important;
}

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

.fbs-container .fbs-progress {
	height: var(--fbs-progress-h, 4px);
	background: var(--fbs-progress-bg);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 28px;
}

.fbs-container .fbs-progress-bar {
	height: 100%;
	width: 0%;
	background: var(--fbs-progress-fill);
	border-radius: 999px;
	transition: width 250ms ease;
}

.fbs-container .fbs-step-label {
	font-size: 13px;
	color: var(--fbs-muted);
	margin: -20px 0 24px;
}

/* --------------------------------------------------------------------------
   Screens & transitions
   -------------------------------------------------------------------------- */

.fbs-container .fbs-stage {
	position: relative;
	min-height: 200px;
}

.fbs-container .fbs-screen {
	transition: opacity 200ms ease, transform 200ms ease;
}

.fbs-container .fbs-screen.fbs-exit {
	opacity: 0;
	transform: translateX(-16px);
	pointer-events: none;
}

.fbs-container .fbs-screen.fbs-enter {
	opacity: 0;
	transform: translateX(16px);
}

.fbs-container .fbs-screen.fbs-active {
	opacity: 1;
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.fbs-container .fbs-screen,
	.fbs-container .fbs-progress-bar {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Question text
   -------------------------------------------------------------------------- */

.fbs-container h2.fbs-question {
	/* !important here makes the plugin authoritative over the question
	   heading so a theme's h2 rules (often larger/uppercase and highly
	   specific) cannot override it. Each value is still driven by a CSS
	   variable set from Survey → Settings → Design, so the settings panel
	   keeps full control — the !important locks out the THEME, not you. */
	font-size: calc(var(--fbs-heading-size) - 2px) !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	margin: 0 0 24px !important;
	color: var(--fbs-heading, var(--fbs-text)) !important;
	text-transform: var(--fbs-heading-transform, none) !important;
}

.fbs-container h2.fbs-question:focus {
	outline: none;
}

.fbs-container .fbs-subtext {
	font-size: 15px;
	color: var(--fbs-muted);
	margin: -12px 0 20px;
}

.fbs-container .fbs-helper {
	font-size: 15px;
	color: var(--fbs-muted);
	margin: -12px 0 16px;
}

.fbs-container .fbs-error {
	color: #b32d2e;
	font-size: 14px;
	margin: 8px 0;
}

/* --------------------------------------------------------------------------
   Multiple-choice option cards
   -------------------------------------------------------------------------- */

.fbs-container .fbs-options {
	/* display:grid + align-items are !important because some themes (and
	   NitroPack's combined CSS) re-declare display/align on generic
	   containers, which would collapse the grid and break equal heights. */
	display: grid !important;
	grid-template-columns: 1fr;
	align-items: stretch !important;
	gap: var(--fbs-gap);
}

/* Grid layout (2×2 quadrants) — two columns at every width.
   grid-auto-rows: 1fr keeps every card in the group the same height. */
.fbs-container .fbs-options[data-layout="grid"],
.fbs-container .fbs-options[data-layout="images"] {
	grid-template-columns: 1fr 1fr !important;
	grid-auto-rows: 1fr !important;
}

.fbs-container .fbs-option-card {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 64px;
	/* Fill the grid row track so two cards on the same row always match,
	   even if a theme sets align-self/height on buttons. */
	align-self: stretch !important;
	height: 100% !important;
	/* box-sizing locked so a theme forcing content-box on buttons can't
	   make bordered cards taller than their neighbours. */
	box-sizing: border-box !important;
	padding: var(--fbs-card-pad-y) var(--fbs-card-pad-x);
	font-size: var(--fbs-option-size);
	font-weight: 500;
	font-family: inherit;
	line-height: 1.35;
	text-align: left;
	color: var(--fbs-text);
	background: var(--fbs-card-bg);
	border: 1px solid var(--fbs-card-border);
	border-radius: var(--fbs-radius);
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, transform 100ms ease;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
}

/* Image cards: image on top, label centred underneath. */
.fbs-container .fbs-options[data-layout="images"] .fbs-option-card {
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	padding: 0 0 var(--fbs-card-pad-y);
	overflow: hidden;
}

.fbs-container .fbs-option-card .fbs-option-image {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin-bottom: 12px;
}

.fbs-container .fbs-options[data-layout="images"] .fbs-option-label {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 var(--fbs-card-pad-x);
}

/* The text wrapper is the single flex item — its contents (bold run +
   rest of the label) flow inline normally inside it. */
.fbs-container .fbs-option-text {
	display: inline;
}

.fbs-container .fbs-options[data-layout="images"] .fbs-option-text {
	text-align: center;
}

/* Options flagged "show as a button" render in this row beneath the cards —
   stacked full-width on mobile, centred auto-width on desktop. */
.fbs-container .fbs-card-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: var(--fbs-gap);
}
.fbs-container .fbs-card-actions .fbs-button {
	/* Spacing handled by the row gap; clear any theme last-child margin. */
	margin: 0 !important;
}
@media (min-width: 768px) {
	.fbs-container .fbs-card-actions {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media (hover: hover) and (pointer: fine) {
	.fbs-container .fbs-option-card:hover {
		border-color: var(--fbs-primary);
		background: var(--fbs-card-hover-bg);
	}
}

.fbs-container .fbs-option-card:focus-visible {
	outline: 2px solid var(--fbs-primary);
	outline-offset: 2px;
}

.fbs-container .fbs-option-card:active {
	transform: scale(0.98);
}

/* Desktop: 2-column grid for 3+ options (1 column for 2 options).
   Applies to the default "auto" layout only — "list" stays stacked,
   "grid"/"images" are handled above. */
@media (min-width: 768px) {
	.fbs-container h2.fbs-question {
		font-size: var(--fbs-heading-size) !important;
	}

	.fbs-container .fbs-options[data-layout="auto"][data-count="3"],
	.fbs-container .fbs-options[data-layout="auto"][data-count="4"],
	.fbs-container .fbs-options[data-layout="auto"][data-count="5"],
	.fbs-container .fbs-options[data-layout="auto"][data-count="6"] {
		grid-template-columns: 1fr 1fr !important;
		grid-auto-rows: 1fr !important; /* equal card heights across all rows */
	}

	/* Image cards: up to 3 columns on desktop (never more). */
	.fbs-container .fbs-options[data-layout="images"][data-count="3"],
	.fbs-container .fbs-options[data-layout="images"][data-count="5"],
	.fbs-container .fbs-options[data-layout="images"][data-count="6"] {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* --------------------------------------------------------------------------
   Open-text screen
   -------------------------------------------------------------------------- */

.fbs-container .fbs-textarea {
	width: 100%;
	min-height: 100px;
	border: 1px solid var(--fbs-card-border);
	border-radius: 8px;
	padding: 12px;
	font-family: inherit;
	font-size: 16px;
	color: var(--fbs-text);
	background: #fff;
	resize: vertical;
}

.fbs-container .fbs-textarea:focus {
	outline: 2px solid var(--fbs-primary);
	outline-offset: 1px;
	border-color: var(--fbs-primary);
}

.fbs-container .fbs-button {
	/* inline-flex + centring keeps the label vertically centred no matter
	   what line-height/padding the theme tries to impose, so two buttons
	   side by side always line up. */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	box-sizing: border-box !important;
	margin-top: 16px;
	padding: 12px 28px;
	background: var(--fbs-btn-bg, var(--fbs-primary));
	color: var(--fbs-btn-text, #fff);
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: filter 150ms ease, transform 100ms ease;
}

.fbs-container .fbs-button:hover {
	filter: brightness(1.08);
}

.fbs-container .fbs-button:active {
	transform: scale(0.98);
}

.fbs-container .fbs-button:focus-visible {
	outline: 2px solid var(--fbs-text);
	outline-offset: 2px;
}

/* Secondary button (the open-text "skip" action rendered as a button).
   Defaults to an outlined style in the primary colour; both background
   and text/border are independently configurable in Settings → Design. */
.fbs-container .fbs-button-secondary {
	margin-top: 16px;
	background: var(--fbs-btn2-bg, transparent);
	color: var(--fbs-btn2-text, var(--fbs-primary));
	border: 2px solid var(--fbs-btn2-border, var(--fbs-primary));
}

/* Continue button + skip link sit in a clean actions row:
   stacked and centred on mobile, side by side on desktop. */
.fbs-container .fbs-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	margin-top: 18px;
}

.fbs-container .fbs-actions .fbs-button,
.fbs-container .fbs-actions .fbs-button-secondary {
	margin-top: 0;
}

.fbs-container .fbs-skip {
	display: inline-block;
	font-size: 14px;
	color: var(--fbs-muted);
	text-decoration: none;
	text-align: center;
	padding: 6px 0;
}

.fbs-container .fbs-skip:hover {
	text-decoration: underline;
	color: var(--fbs-muted);
}

@media (min-width: 768px) {
	.fbs-container .fbs-button {
		display: inline-flex;
		width: auto;
		min-width: 180px;
	}

	.fbs-container .fbs-actions {
		display: flex !important;
		flex-direction: row !important;
		align-items: stretch !important; /* both buttons equal height, theme can't override */
		gap: 20px;
	}

	/* Equal-width matched pair: each button takes half the row, so the
	   Continue and skip buttons are the same width AND (via stretch) the
	   same height — no mismatch even under theme interference. */
	.fbs-container .fbs-actions .fbs-button,
	.fbs-container .fbs-actions .fbs-button-secondary {
		flex: 1 1 0 !important;
		width: auto !important;
		align-self: stretch !important;
		height: auto !important;
		/* Some page-builder themes (e.g. WPBakery's
		   `.wpb_text_column :last-child { margin-bottom:.85em }`) add a bottom
		   margin to the last button, which eats into its stretched height and
		   makes the two buttons unequal. Zero all margins — the row's `gap`
		   handles spacing. */
		margin: 0 !important;
	}

	.fbs-container .fbs-skip {
		text-align: left;
	}
}

/* --------------------------------------------------------------------------
   Back button
   -------------------------------------------------------------------------- */

.fbs-container .fbs-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 6px 0;
	margin: 0 0 12px;
	color: var(--fbs-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	appearance: none;
}

.fbs-container .fbs-back:hover {
	color: var(--fbs-heading, var(--fbs-text));
	text-decoration: underline;
}

.fbs-container .fbs-back:focus-visible {
	outline: 2px solid var(--fbs-primary);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Exit screen resource cards (D-path)
   -------------------------------------------------------------------------- */

.fbs-container .fbs-resource-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

/* Card: image on top (mobile) / left (desktop), body fills, button
   pinned bottom-right. Image keeps a 3:2 ratio so 3:2 source art
   (e.g. 1200×800) shows in full without cropping. */
.fbs-container .fbs-resource-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px;
	background: var(--fbs-card-bg);
	border: 1px solid var(--fbs-card-border);
	border-radius: var(--fbs-radius);
	text-decoration: none;
	color: var(--fbs-exit-text, var(--fbs-text));
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.fbs-container .fbs-resource-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.fbs-container .fbs-resource-image {
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
	.fbs-container .fbs-resource-card:hover {
		border-color: var(--fbs-primary);
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
		transform: translateY(-2px);
	}
	.fbs-container .fbs-resource-card:hover .fbs-card-cta::after {
		transform: translateX(3px);
	}
}

.fbs-container .fbs-resource-card:active {
	transform: translateY(0);
}

.fbs-container .fbs-resource-card:focus-visible {
	outline: 2px solid var(--fbs-primary);
	outline-offset: 2px;
}

.fbs-container .fbs-resource-card strong {
	display: block;
	font-size: calc(var(--fbs-exit-text-size, 15px) + 3px);
	font-weight: 700;
	color: var(--fbs-exit-text, var(--fbs-text));
	margin-bottom: 6px;
}

.fbs-container .fbs-resource-card p {
	font-size: var(--fbs-exit-text-size, 15px);
	line-height: 1.5;
	color: var(--fbs-exit-text, var(--fbs-muted));
	margin: 0 0 16px;
}

/* CTA rendered as a real button, pinned to the bottom-right of the card. */
.fbs-container .fbs-card-cta {
	margin-top: auto;
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: 8px;
	background: var(--fbs-exit-btn-bg, var(--fbs-btn-bg, var(--fbs-primary)));
	color: var(--fbs-exit-btn-text, var(--fbs-btn-text, #fff));
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.fbs-container .fbs-card-cta::after {
	content: "→";
	margin-left: 8px;
	transition: transform 150ms ease;
}

/* Exit heading — overrides the global question-heading styles so exit
   screens can have their own colour/size (set in Settings → Design). */
.fbs-container h2.fbs-exit-heading {
	color: var(--fbs-exit-heading, var(--fbs-heading, var(--fbs-text))) !important;
	font-size: var(--fbs-exit-heading-size, var(--fbs-heading-size)) !important;
}

.fbs-container .fbs-exit-screen .fbs-subtext {
	color: var(--fbs-exit-text, var(--fbs-muted));
	font-size: var(--fbs-exit-text-size, 15px);
}

@media (min-width: 768px) {
	.fbs-container .fbs-resource-card {
		flex-direction: row;
		align-items: stretch;
		gap: 20px;
		padding: 20px;
	}
	.fbs-container .fbs-resource-image {
		width: 200px;
		align-self: center;
	}
}

/* --------------------------------------------------------------------------
   Keap form screen — overrides scoped to .fbs-form-wrap
   -------------------------------------------------------------------------- */

.fbs-container .fbs-form-wrap {
	margin-top: 4px;
}

.fbs-container .fbs-form-wrap input[type="text"],
.fbs-container .fbs-form-wrap input[type="email"],
.fbs-container .fbs-form-wrap input[type="tel"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--fbs-card-border);
	border-radius: 8px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	box-sizing: border-box;
	color: var(--fbs-text);
	background: #fff;
	margin-bottom: 14px;
}

.fbs-container .fbs-form-wrap input[type="text"]:focus,
.fbs-container .fbs-form-wrap input[type="email"]:focus,
.fbs-container .fbs-form-wrap input[type="tel"]:focus {
	outline: 2px solid var(--fbs-primary);
	outline-offset: 1px;
	border-color: var(--fbs-primary);
}

.fbs-container .fbs-form-wrap input[type="submit"],
.fbs-container .fbs-form-wrap button[type="submit"] {
	width: 100%;
	min-height: 52px;
	background: var(--fbs-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: filter 150ms ease;
	/* Re-centre: the form-wide left-align above also hits the button. */
	text-align: center !important;
}

.fbs-container .fbs-form-wrap input[type="submit"]:hover,
.fbs-container .fbs-form-wrap button[type="submit"]:hover {
	filter: brightness(1.08);
}

.fbs-container .fbs-form-wrap input[type="submit"]:disabled,
.fbs-container .fbs-form-wrap button[type="submit"]:disabled {
	opacity: 0.7;
	cursor: wait;
}

.fbs-container .fbs-form-wrap label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: var(--fbs-text);
}

/* Keep Keap's per-field spacing sane — some form versions ship very large
   margins which leave big gaps between fields. */
.fbs-container .fbs-form-wrap .infusion-field,
.fbs-container .fbs-form-wrap .infusion-field-input-container {
	margin: 0 0 16px;
	padding: 0;
}

/* The pasted Keap markup frequently centres its labels via inline styles,
   an align="center" attribute or a wrapping element — none of which a single
   label rule (or even style isolation) can beat. Force the whole form block
   left-aligned, then re-centre only the submit button text below. */
.fbs-container .fbs-form-wrap,
.fbs-container .fbs-form-wrap * {
	text-align: left !important;
}
.fbs-container .fbs-form-wrap label {
	display: block !important;
}

/* Keap renders each field as a CENTRED flex column
   (`.infusion-form .infusion-field { display:flex; flex-direction:column;
   align-items:center }`), which is what actually centres the labels —
   text-align can't override flexbox alignment. Re-align the field to the
   start so the label sits left above its full-width input. Higher
   specificity than Keap's two-class rule, so this wins. */
.fbs-container .fbs-form-wrap .infusion-field {
	align-items: flex-start !important;
}

.fbs-container .fbs-form-wrap table,
.fbs-container .fbs-form-wrap tbody,
.fbs-container .fbs-form-wrap tr,
.fbs-container .fbs-form-wrap td {
	display: block;
	width: 100%;
	border: none;
	padding: 0;
}

/* Hidden Keap target iframe */
.fbs-container .fbs-keap-iframe {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	border: 0;
}

/* Form-screen lead text — a confident value statement, not a muted hint. */
.fbs-container .fbs-form-subtext {
	color: var(--fbs-text);
	font-size: 18px;
	line-height: 1.5;
	margin-bottom: 20px;
}

/* Form-screen "what you'll get" value block + side-by-side layout */
.fbs-container .fbs-form-layout {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 4px;
}
.fbs-container .fbs-form-col {
	min-width: 0;
}
.fbs-container .fbs-form-intro-line {
	margin: 0 0 12px;
	color: var(--fbs-text);
	font-size: var(--fbs-option-size, 16px);
	line-height: 1.5;
}
.fbs-container .fbs-form-benefits {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.fbs-container .fbs-form-benefits li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
	color: var(--fbs-text);
	line-height: 1.45;
}
.fbs-container .fbs-form-benefits li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--fbs-primary);
}
.fbs-container .fbs-form-intro-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--fbs-radius, 10px);
	margin-top: 8px;
}
.fbs-container .fbs-form-reassurance {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--fbs-muted);
}

@media (min-width: 768px) {
	.fbs-container .fbs-form-layout[data-layout="beside"] {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}
	.fbs-container .fbs-form-layout[data-layout="beside"] > .fbs-form-intro,
	.fbs-container .fbs-form-layout[data-layout="beside"] > .fbs-form-col {
		flex: 1 1 0;
	}
}

/* International phone field (FBSPhone) */
.fbs-container .fbs-itel {
	position: relative;
	display: flex;
	align-items: stretch;
}
.fbs-container .fbs-itel-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	padding: 0 12px;
	border: 1px solid var(--fbs-card-border);
	border-right: 0;
	border-radius: 8px 0 0 8px;
	background: #fff;
	color: var(--fbs-text);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.fbs-container .fbs-itel-flag { flex: 0 0 auto; line-height: 1; }
.fbs-container img.fbs-itel-flag { height: 16px; width: auto; border-radius: 2px; display: inline-block; }
.fbs-container span.fbs-itel-flag { font-size: 18px; }
.fbs-container .fbs-itel-caret { font-size: 11px; color: var(--fbs-muted); }
.fbs-container .fbs-itel .fbs-itel-input {
	flex: 1 1 auto;
	min-width: 0;
	border-left: 0 !important;
	border-radius: 0 8px 8px 0 !important;
	margin-bottom: 0 !important;
}
.fbs-container .fbs-itel-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
	display: none; /* shown only when .fbs-itel-open — must not override [hidden] */
	flex-direction: column;
	max-height: 300px;
	margin-top: 4px;
	background: #fff;
	border: 1px solid var(--fbs-card-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	overflow: hidden;
}
.fbs-container .fbs-itel.fbs-itel-open .fbs-itel-dropdown {
	display: flex;
}
.fbs-container .fbs-itel-search {
	margin: 8px;
	padding: 8px 10px;
	font-size: 14px;
	border: 1px solid var(--fbs-card-border);
	border-radius: 6px;
}
.fbs-container .fbs-itel-list {
	list-style: none;
	margin: 0;
	padding: 0 0 6px;
	overflow-y: auto;
}
.fbs-container .fbs-itel-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	font-size: 15px;
	cursor: pointer;
}
.fbs-container .fbs-itel-item:hover,
.fbs-container .fbs-itel-item:focus {
	background: var(--fbs-card-hover-bg);
	outline: none;
}
.fbs-container .fbs-itel-name { flex: 1 1 auto; }
.fbs-container .fbs-itel-list .fbs-itel-dial { color: var(--fbs-muted); }
.fbs-container .fbs-itel-sep {
	border-top: 1px solid var(--fbs-card-border);
	margin: 4px 0;
}

/* --------------------------------------------------------------------------
   Thank-you screen
   -------------------------------------------------------------------------- */

.fbs-container .fbs-ty-additional {
	margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.fbs-container .fbs-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
