/**
 * Infobric Control - Design V2.
 *
 * Loaded ONLY when the widget runs in v2 mode and layered on top of
 * infobric-control.css, so V1 stays byte-identical. Everything is scoped to
 * `.ibc-v2` and built on DesignBox tokens (--db-*); no literal colours or
 * sizes live here. The DesignBox component classes (db__btn, db-field__*,
 * db-choice*) are applied in the markup, so this sheet only supplies layout
 * glue and the states the shared JS drives (.ibc-field-error, .ibc-step-active,
 * .ibc-step-completed).
 */

/* Wrapper: a page container, not a box. The card below is the only surface. */
.ibc-form-wrapper.ibc-v2 {
	/*
	 * The theme runs a 10px root font-size while this site's DesignBox token
	 * overrides store the spacing scale in rem, so every --db-space-* lands at
	 * 62.5% of its documented value. Restore the intended px scale for this
	 * form only; once the global tokens are corrected these are identical.
	 * Custom-property definitions must never carry !important.
	 */
	--db-space-1: 4px;
	--db-space-2: 8px;
	--db-space-3: 12px;
	--db-space-4: 16px;
	--db-space-5: 24px;
	--db-space-6: 32px;
	--db-space-7: 48px;
	--db-space-8: 64px;
	--db-space-9: 96px;

	max-width: var(--db-container-narrow);
	margin: 0 auto;
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	color: var(--db-color-text-primary);
	line-height: var(--db-leading-body);
}

/* Mobile: hold the whole block off the screen edge. The Elementor widget
   container is an ancestor of .ibc-v2, so it is matched with :has() rather
   than by overriding Elementor's global .elementor-widget-container rule. */
@media (max-width: 767px) {
	.elementor-widget-container:has(> .ibc-form-wrapper.ibc-v2) {
		padding-inline: 10px;
	}
}

.ibc-v2 .ibc-form-title {
	margin: 0 0 var(--db-space-2) 0;
	color: var(--db-color-text-primary);
	font-size: var(--db-text-h4);
	font-weight: var(--db-weight-black);
	line-height: var(--db-leading-headline);
}

.ibc-v2 .ibc-form-subtitle {
	margin: 0 0 var(--db-space-6) 0;
	max-width: 58ch;
	color: var(--db-color-text-secondary);
	font-size: var(--db-text-body-sm);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-form {
	gap: var(--db-space-5);
}

/**
 * STEPPER
 * Flat, no card. Opacity is replaced by real colour changes so every state
 * keeps its contrast ratio.
 */
.ibc-v2 .ibc-progress-bar {
	margin: 0 0 var(--db-space-2) 0;
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
}

.ibc-v2 .ibc-progress-track {
	height: var(--db-space-1);
	margin-bottom: var(--db-space-5);
	background: var(--db-color-background-subtle);
	border-radius: var(--db-radius-pill);
}

.ibc-v2 .ibc-progress-fill {
	background: var(--db-color-action-primary-background);
	border-radius: var(--db-radius-pill);
	transition: width var(--db-duration-slow) var(--db-ease);
}

.ibc-v2 .ibc-progress-steps {
	gap: var(--db-space-2);
}

.ibc-v2 .ibc-step-indicator {
	flex-direction: column;
	gap: var(--db-space-2);
	opacity: 1;
	text-align: center;
	cursor: default;
	transition: none;
}

.ibc-v2 .ibc-step-number {
	width: var(--db-space-6);
	height: var(--db-space-6);
	background: var(--db-color-background-subtle);
	border-radius: var(--db-radius-pill);
	color: var(--db-color-text-primary);
	font-size: var(--db-text-body-sm);
	font-weight: var(--db-weight-semibold);
	transform: none;
	box-shadow: none;
	transition: background-color var(--db-duration) var(--db-ease),
	            color var(--db-duration) var(--db-ease),
	            box-shadow var(--db-duration) var(--db-ease);
}

.ibc-v2 .ibc-step-indicator.ibc-step-active .ibc-step-number {
	background: var(--db-color-action-primary-background);
	color: var(--db-color-action-primary-content);
	transform: none;
	box-shadow: 0 0 0 var(--db-space-1) var(--db-color-background-tint);
}

.ibc-v2 .ibc-step-indicator.ibc-step-completed .ibc-step-number {
	background: var(--db-color-status-success);
	color: var(--db-color-neutral-white);
}

.ibc-v2 .ibc-step-label {
	display: block;
	color: var(--db-color-text-tertiary);
	font-size: var(--db-text-caption);
	font-weight: var(--db-weight-regular);
}

.ibc-v2 .ibc-step-indicator.ibc-step-active .ibc-step-label {
	color: var(--db-color-text-primary);
	font-weight: var(--db-weight-semibold);
}

.ibc-v2 .ibc-step-indicator.ibc-step-completed .ibc-step-label {
	color: var(--db-color-text-secondary);
}

@media (min-width: 768px) {
	.ibc-v2 .ibc-form-title {
		font-size: var(--db-text-h3);
	}

	.ibc-v2 .ibc-form-subtitle {
		font-size: var(--db-text-body);
	}

	.ibc-v2 .ibc-step-indicator {
		flex-direction: row;
		gap: var(--db-space-3);
		text-align: left;
	}

	.ibc-v2 .ibc-step-label { font-size: var(--db-text-body-sm); }
}

/**
 * CARD
 */
.ibc-v2 .ibc-card {
	padding: var(--db-space-5);
	background: var(--db-color-background-surface);
	border: var(--db-border-width) solid var(--db-color-border-default);
	border-radius: var(--db-radius-module);
	box-shadow: none;
	transform: none;
	transition: none;
}

.ibc-v2 .ibc-card:hover {
	transform: none;
	box-shadow: none;
}

.ibc-v2 .ibc-card-title {
	margin: 0 0 var(--db-space-5) 0;
	padding: 0 0 var(--db-space-4) 0;
	border-bottom: var(--db-border-width) solid var(--db-color-border-default);
	color: var(--db-color-text-primary);
	font-size: var(--db-text-h5);
	font-weight: var(--db-weight-black);
	line-height: var(--db-leading-headline);
}

@media (min-width: 768px) {
	.ibc-v2 .ibc-card { padding: var(--db-space-7); }
	.ibc-v2 .ibc-card-title { font-size: var(--db-text-h4); }
}

/**
 * FIELDS
 * One column by default, two from tablet up. Long-answer fields and the
 * consent checkboxes always span the full row.
 */
.ibc-v2 .ibc-form-grid {
	grid-template-columns: 1fr;
	gap: var(--db-space-5);
	margin-bottom: 0;
}

.ibc-v2 .ibc-form-grid + .ibc-form-grid {
	margin-top: var(--db-space-5);
}

.ibc-v2 .ibc-summary-section + .ibc-form-grid,
.ibc-v2 .ibc-step-instruction + .ibc-form-grid {
	margin-top: var(--db-space-6);
}

@media (min-width: 768px) {
	.ibc-v2 .ibc-form-grid { grid-template-columns: repeat(2, 1fr); }
	.ibc-v2 .ibc-form-grid > .ibc-form-group--wide { grid-column: 1 / -1; }
}

.ibc-v2 .ibc-form-group {
	position: relative;
	transition: none;
}

/*
 * Description before the input instead of after it: a hint only helps while
 * the field is still empty. Pure visual reordering, the DOM order stays
 * label -> input -> error -> help so the screen-reader sequence is unchanged.
 */
.ibc-v2 .ibc-form-group:not(.ibc-form-group-checkbox) .ibc-form-label { order: 1; }
.ibc-v2 .ibc-form-group:not(.ibc-form-group-checkbox) .ibc-help-text { order: 2; }
.ibc-v2 .ibc-form-group:not(.ibc-form-group-checkbox) .ibc-form-input { order: 3; }
.ibc-v2 .ibc-form-group:not(.ibc-form-group-checkbox) .ibc-error-msg { order: 4; }

/**
 * PHONE FIELDS
 * intl-tel-input wraps the input in `.iti`, which becomes the flex child, so
 * the wrapper takes the input's slot and the control keeps the field skin.
 */
.ibc-v2 .ibc-form-group .iti {
	order: 3;
	display: block;
	width: 100%;
}

/* --ibc-tel-pad is written by the form JS from the live flag-button width. */
.ibc-v2 .iti input.ibc-form-input {
	padding-inline-start: var(--ibc-tel-pad, 92px) !important;
}

.ibc-v2 .iti__country-container {
	padding: 1px;
}

.ibc-v2 .iti__selected-country {
	border-start-start-radius: var(--db-radius-control);
	border-end-start-radius: var(--db-radius-control);
	background: transparent;
}

.ibc-v2 .iti__selected-country-primary {
	padding-inline: var(--db-space-3) var(--db-space-2);
}

.ibc-v2 .iti__selected-country:hover,
.ibc-v2 .iti__selected-country[aria-expanded="true"] {
	background: var(--db-color-form-option-hover);
}

.ibc-v2 .iti__selected-country:focus-visible {
	outline: var(--db-focus-width) solid var(--db-color-focus-ring);
	outline-offset: -2px;
}

.ibc-v2 .iti__selected-dial-code {
	color: var(--db-color-text-secondary);
	font-size: var(--db-text-body-sm);
}

.ibc-v2 .iti__dropdown-content {
	border: var(--db-border-width) solid var(--db-color-border-default);
	border-radius: var(--db-radius-control);
	background: var(--db-color-form-field-background);
	box-shadow: var(--db-shadow-md);
	color: var(--db-color-text-primary);
}

.ibc-v2 .iti__search-input {
	border-bottom: var(--db-border-width) solid var(--db-color-border-default);
	font-size: var(--db-text-body-sm);
}

.ibc-v2 .iti__country {
	font-size: var(--db-text-body-sm);
	line-height: var(--db-leading-body);
}

.ibc-v2 .iti__country.iti__highlight {
	background: var(--db-color-form-option-hover);
}

.ibc-v2 .iti__dial-code {
	color: var(--db-color-text-secondary);
}

.ibc-v2 .ibc-form-label {
	margin: 0;
	color: var(--db-color-text-primary);
	font-size: var(--db-text-caption);
	font-weight: var(--db-weight-semibold);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-required {
	margin-left: 2px;
	color: var(--db-color-form-field-border-error);
	font-weight: var(--db-weight-semibold);
}

.ibc-v2 .ibc-help-text {
	margin: 0;
	color: var(--db-color-text-secondary);
	font-size: var(--db-text-caption);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-help-text a {
	color: var(--db-color-link-default);
	text-decoration: underline;
}

.ibc-v2 .ibc-help-text a:hover {
	color: var(--db-color-link-hover);
}

/**
 * LABEL INFO POPUP
 * Reusable: any element may carry .ibc-tip with a button + bubble inside.
 */
.ibc-v2 .ibc-tip {
	position: relative;
	display: inline-flex;
	margin-inline-start: var(--db-space-1);
	vertical-align: middle;
}

.ibc-v2 .ibc-tip__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: var(--db-radius-pill);
	background: none;
	color: var(--db-color-text-tertiary);
	cursor: pointer;
	transition: color var(--db-duration) var(--db-ease);
}

.ibc-v2 .ibc-tip__btn svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ibc-v2 .ibc-tip__btn:hover,
.ibc-v2 .ibc-tip--open .ibc-tip__btn {
	color: var(--db-color-action-primary-background);
}

.ibc-v2 .ibc-tip__btn:focus-visible {
	outline: var(--db-focus-width) solid var(--db-color-focus-ring);
	outline-offset: 2px;
}

.ibc-v2 .ibc-tip__bubble {
	position: absolute;
	inset-inline-start: 50%;
	bottom: calc(100% + var(--db-space-2));
	z-index: 20;
	width: max-content;
	max-width: 260px;
	padding: var(--db-space-3) var(--db-space-4);
	transform: translateX(-50%);
	border-radius: var(--db-radius-control);
	background: var(--db-color-background-impact);
	box-shadow: var(--db-shadow-md);
	color: var(--db-color-text-inverse);
	font-size: var(--db-text-caption);
	font-weight: var(--db-weight-regular);
	line-height: var(--db-leading-body);
	text-align: start;
	white-space: normal;
}

/* Hover and keyboard focus reveal without JS; the [hidden] attribute that the
   script toggles only drives the pinned-open state. */
.ibc-v2 .ibc-tip:hover .ibc-tip__bubble,
.ibc-v2 .ibc-tip:focus-within .ibc-tip__bubble {
	display: block;
}

.ibc-v2 .ibc-tip__bubble::after {
	content: "";
	position: absolute;
	inset-inline-start: 50%;
	top: 100%;
	width: 10px;
	height: 10px;
	margin-inline-start: -5px;
	transform: translateY(-50%) rotate(45deg);
	background: var(--db-color-background-impact);
}

/* Narrow screens: a centred bubble would overflow, so pin it to the field. */
@media (max-width: 575px) {
	.ibc-v2 .ibc-tip {
		position: static;
	}

	.ibc-v2 .ibc-form-group {
		position: relative;
	}

	.ibc-v2 .ibc-tip__bubble {
		inset-inline: 0;
		bottom: auto;
		top: calc(100% + var(--db-space-2));
		width: auto;
		max-width: none;
		transform: none;
	}

	.ibc-v2 .ibc-tip__bubble::after {
		display: none;
	}
}

/* V1 flags any non-empty field that fails :invalid before the user is done. */
.ibc-v2 .ibc-form-input:invalid:not(:placeholder-shown) {
	border-color: var(--db-color-form-field-border-default);
}

.ibc-v2 .ibc-form-input:hover:not(:disabled):not(:focus) {
	border-color: var(--db-color-form-field-border-hover);
}

/* Labels are always visible, so the placeholder can sit a step lighter than
   designbox-forms' text-secondary and stop competing with real input. */
.ibc-v2 .ibc-form-input::placeholder {
	color: var(--db-color-text-tertiary) !important;
	opacity: 1 !important;
}

.ibc-v2 select.ibc-form-input:invalid,
.ibc-v2 select.ibc-form-input option[value=""] {
	color: var(--db-color-text-tertiary);
}

/* A flex `select` clips its text in Chromium, and the chevron drawn by
   designbox-forms needs a block box to land in the right place. */
.ibc-v2 select.ibc-form-input {	display: block !important;
	padding-block: 0 !important;
	line-height: normal !important;
	text-overflow: ellipsis;
	/* designbox-forms positions its two chevron halves the wrong way round,
	   which renders the arrow pointing up. Swap them back. */
	background-position:
		calc(100% - var(--db-space-4) - 7px) center,
		right var(--db-space-4) center !important;
}

/* Error wins over the DesignBox base and focus skins. */
.ibc-v2 .ibc-field-error .ibc-form-input {
	border-color: var(--db-color-form-field-border-error) !important;
	background-color: var(--db-color-status-error-soft) !important;
	box-shadow: inset 0 0 0 var(--db-border-width) var(--db-color-form-field-border-error) !important;
}

.ibc-v2 .ibc-error-msg {
	margin: 0;
	color: var(--db-color-form-field-border-error);
	font-size: var(--db-text-caption);
	font-weight: var(--db-weight-semibold);
	line-height: var(--db-leading-body);
	animation: none;
}

/**
 * CHECKBOXES
 */
.ibc-v2 .ibc-form-group-checkbox {
	gap: var(--db-space-2);
	padding: var(--db-space-4);
	background: var(--db-color-background-page);
	border: var(--db-border-width) solid var(--db-color-border-default);
	border-radius: var(--db-radius-control);
	flex-direction: column;
	transition: border-color var(--db-duration) var(--db-ease);
}

.ibc-v2 .ibc-form-group-checkbox:hover {
	background: var(--db-color-background-page);
	border-color: var(--db-color-border-strong);
}

.ibc-v2 .ibc-form-group-checkbox:focus-within {
	border-color: var(--db-color-form-focus-ring);
}

.ibc-v2 .ibc-form-group-checkbox.ibc-field-error {
	border-color: var(--db-color-form-field-border-error);
}

/* Consent labels wrap over several lines, so pin the box to the first line. */
.ibc-v2 .ibc-form-checkbox-label {
	display: flex;
	align-items: flex-start;
	min-height: 0;
	font-size: var(--db-text-body-sm);
}

.ibc-v2 .ibc-form-checkbox-label span {
	font-weight: var(--db-weight-regular);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-form-checkbox {
	margin-top: 2px;
}

.ibc-v2 .ibc-form-checkbox-label span a {
	color: var(--db-color-link-default);
	text-decoration: underline;
}

.ibc-v2 .ibc-form-group-checkbox .ibc-help-text {
	padding-left: calc(var(--db-control-box) + var(--db-space-3));
}

/**
 * SUMMARY (step 3)
 */
.ibc-v2 .ibc-summary-section {
	margin-bottom: 0;
}

.ibc-v2 .ibc-summary-group {
	margin-bottom: var(--db-space-4);
	padding: var(--db-space-4);
	background: var(--db-color-background-page);
	border: var(--db-border-width) solid var(--db-color-border-default);
	border-radius: var(--db-radius-control);
}

.ibc-v2 .ibc-summary-group:last-child {
	margin-bottom: 0;
}

.ibc-v2 .ibc-summary-heading {
	margin: 0 0 var(--db-space-3) 0;
	padding-bottom: var(--db-space-3);
	border-bottom: var(--db-border-width) solid var(--db-color-border-default);
	color: var(--db-color-text-primary);
	font-size: var(--db-text-body-sm);
	font-weight: var(--db-weight-semibold);
	line-height: var(--db-leading-ui);
}

.ibc-v2 .ibc-summary-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	padding: var(--db-space-3) 0;
	border-bottom: var(--db-border-width) solid var(--db-color-border-default);
}

.ibc-v2 .ibc-summary-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

/* V1 pins the label to 200px, which overflows a grid track. */
.ibc-v2 .ibc-summary-label {
	min-width: 0;
	color: var(--db-color-text-secondary);
	font-size: var(--db-text-caption);
	font-weight: var(--db-weight-regular);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-summary-value {
	min-width: 0;
	color: var(--db-color-text-primary);
	font-size: var(--db-text-body-sm);
	font-weight: var(--db-weight-semibold);
	line-height: var(--db-leading-body);
	text-align: left;
	overflow-wrap: anywhere;
}

/* An empty optional field would collapse to a blank row with no explanation. */
.ibc-v2 .ibc-summary-value:empty::after {
	content: "—";
	color: var(--db-color-text-tertiary);
	font-weight: var(--db-weight-regular);
}

@media (min-width: 768px) {
	.ibc-v2 .ibc-summary-group { padding: var(--db-space-5); }

	.ibc-v2 .ibc-summary-row {
		grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
		gap: var(--db-space-4);
		align-items: baseline;
	}
}

/**
 * ACTIONS
 * Mobile stacks with the primary action on top; desktop keeps "back" on the
 * left and the forward action on the right.
 */
.ibc-v2 .ibc-form-actions {
	flex-direction: column-reverse;
	gap: var(--db-space-3);
	margin-top: var(--db-space-6);
	padding-top: var(--db-space-5);
	border-top: var(--db-border-width) solid var(--db-color-border-default);
}

.ibc-v2 .ibc-btn-prev,
.ibc-v2 .ibc-btn-next,
.ibc-v2 .ibc-btn-submit {
	flex: 0 0 auto;
	width: 100%;
	transform: none;
	/* V1 paints a gradient through the `background` shorthand, which survives
	   the `background-color` set by .db__btn--primary. */
	background-image: none !important;
}

.ibc-v2 .ibc-btn-prev:hover,
.ibc-v2 .ibc-btn-next:hover,
.ibc-v2 .ibc-btn-submit:hover,
.ibc-v2 .ibc-btn-prev:active,
.ibc-v2 .ibc-btn-next:active,
.ibc-v2 .ibc-btn-submit:active {
	transform: none;
	box-shadow: none;
}

@media (min-width: 640px) {
	.ibc-v2 .ibc-form-actions {
		flex-direction: row;
		justify-content: flex-end;
	}

	.ibc-v2 .ibc-btn-prev,
	.ibc-v2 .ibc-btn-next,
	.ibc-v2 .ibc-btn-submit {
		width: auto;
		min-width: 10rem;
	}

	.ibc-v2 .ibc-btn-prev { margin-right: auto; }
}

/**
 * FORM-LEVEL ERROR
 */
.ibc-v2 .ibc-form-error {
	padding: var(--db-space-4);
	background: var(--db-color-status-error-soft);
	border: var(--db-border-width) solid var(--db-color-form-field-border-error);
	border-left-width: var(--db-border-width-emphasis);
	border-radius: var(--db-radius-control);
	color: var(--db-color-form-field-border-error);
	font-size: var(--db-text-body-sm);
	font-weight: var(--db-weight-semibold);
}

/**
 * SUCCESS STATE
 */
.ibc-v2 .ibc-success-state {
	padding: var(--db-space-7) var(--db-space-5);
	background: var(--db-color-background-surface);
	border: var(--db-border-width) solid var(--db-color-border-default);
	border-radius: var(--db-radius-module);
	box-shadow: none;
}

.ibc-v2 .ibc-success-icon {
	width: var(--db-space-8);
	height: var(--db-space-8);
	margin: 0 auto var(--db-space-5);
	background: var(--db-color-status-success-soft);
	color: var(--db-color-status-success);
}

.ibc-v2 .ibc-success-icon span {
	font-size: var(--db-text-h2);
}

.ibc-v2 .ibc-success-title {
	margin: 0 0 var(--db-space-3) 0;
	color: var(--db-color-text-primary);
	font-size: var(--db-text-h4);
	font-weight: var(--db-weight-black);
	line-height: var(--db-leading-headline);
}

.ibc-v2 .ibc-success-message {
	max-width: 54ch;
	margin: 0 auto;
	color: var(--db-color-text-secondary);
	font-size: var(--db-text-body-sm);
	line-height: var(--db-leading-body);
}

/**
 * MISC
 */
.ibc-v2 .ibc-recaptcha-container {
	margin: var(--db-space-5) 0;
	padding: var(--db-space-4);
	background: var(--db-color-background-page);
	border-radius: var(--db-radius-control);
}

/**
 * INFOBOX (step 1 "Instructions Text")
 * Authored in a WYSIWYG, so the markup arrives as bare h2/h3, p and ul.
 * Every value routes through an --ibc-info-* variable that the Elementor
 * style controls can override; the fallbacks are DesignBox tokens.
 */
.ibc-v2 .ibc-form-instructions {
	--ibc-info-bg: var(--db-color-background-impact);
	--ibc-info-fg: var(--db-color-text-inverse);
	--ibc-info-accent: var(--db-color-action-primary-background);
	--ibc-info-title-size: var(--db-text-h6);
	--ibc-info-text-size: var(--db-text-body-sm);
	--ibc-info-radius: var(--db-radius-control);
	--ibc-info-gap: var(--db-space-3);
	--ibc-info-marker: 20px;

	margin-bottom: var(--db-space-5);
	padding: var(--db-space-5);
	background: var(--ibc-info-bg);
	border-left: var(--db-border-width-emphasis) solid var(--ibc-info-accent);
	border-radius: var(--ibc-info-radius);
	box-shadow: none;
	color: var(--ibc-info-fg);
	font-size: var(--ibc-info-text-size);
	line-height: var(--db-leading-body);
}

/* The callout heading arrives as a bare h2/h3 and would otherwise outrank the
   step title next to it. */
.ibc-v2 .ibc-form-instructions h1,
.ibc-v2 .ibc-form-instructions h2,
.ibc-v2 .ibc-form-instructions h3,
.ibc-v2 .ibc-form-instructions h4,
.ibc-v2 .ibc-form-instructions h5,
.ibc-v2 .ibc-form-instructions h6 {
	margin: 0 0 var(--db-space-4) 0;
	color: var(--ibc-info-fg);
	font-size: var(--ibc-info-title-size);
	font-weight: var(--db-weight-semibold);
	line-height: var(--db-leading-ui);
}

.ibc-v2 .ibc-form-instructions h1 strong,
.ibc-v2 .ibc-form-instructions h2 strong,
.ibc-v2 .ibc-form-instructions h3 strong,
.ibc-v2 .ibc-form-instructions h4 strong,
.ibc-v2 .ibc-form-instructions h5 strong,
.ibc-v2 .ibc-form-instructions h6 strong {
	font-size: inherit;
	font-weight: inherit;
}

.ibc-v2 .ibc-form-instructions p,
.ibc-v2 .ibc-form-instructions li {
	color: var(--ibc-info-fg);
	font-size: var(--ibc-info-text-size);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-form-instructions p {
	margin: 0 0 var(--ibc-info-gap) 0;
}

.ibc-v2 .ibc-form-instructions strong,
.ibc-v2 .ibc-form-instructions b {
	color: var(--ibc-info-fg);
	font-weight: var(--db-weight-semibold);
}

/* Icon list: the disc marker is replaced by a filled check, matching the
   checkbox mark in designbox-forms. */
.ibc-v2 .ibc-form-instructions ul:not(.ibc-info__list) {
	display: grid;
	gap: var(--ibc-info-gap);
	margin: 0 0 var(--ibc-info-gap) 0;
	padding: 0;
	list-style: none;
}

.ibc-v2 .ibc-form-instructions ul:not(.ibc-info__list) li {
	position: relative;
	margin: 0;
	padding-inline-start: calc(var(--ibc-info-marker) + var(--db-space-3));
}

.ibc-v2 .ibc-form-instructions ul:not(.ibc-info__list) li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: calc((1em * 1.5 - var(--ibc-info-marker)) / 2);
	width: var(--ibc-info-marker);
	height: var(--ibc-info-marker);
	border-radius: var(--db-radius-pill);
	background-color: var(--ibc-info-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
	background-position: center;
	background-size: 62%;
	background-repeat: no-repeat;
}

.ibc-v2 .ibc-form-instructions ol {
	margin: 0 0 var(--ibc-info-gap) 0;
	padding-inline-start: var(--db-space-5);
}

.ibc-v2 .ibc-form-instructions ol li {
	margin: 0 0 var(--db-space-2) 0;
}

.ibc-v2 .ibc-form-instructions > *:last-child {
	margin-bottom: 0;
}

.ibc-v2 .ibc-form-instructions a {
	color: var(--ibc-info-accent);
	text-decoration: underline;
}

@media (min-width: 768px) {
	.ibc-v2 .ibc-form-instructions {
		--ibc-info-title-size: var(--db-text-h5);
		padding: var(--db-space-5) var(--db-space-6);
	}
}

/**
 * INFOBOX, STRUCTURED MODE
 * Rendered from the repeater: title + intro + icon bullets. Uses its own
 * elements instead of the WYSIWYG's bare tags so the icon can be authored.
 */
.ibc-v2 .ibc-info__title {
	margin: 0 0 var(--ibc-info-gap) 0;
	color: var(--ibc-info-fg);
	font-size: var(--ibc-info-title-size);
	font-weight: var(--db-weight-semibold);
	line-height: var(--db-leading-ui);
}

.ibc-v2 .ibc-info__intro {
	margin: 0 0 var(--ibc-info-gap) 0;
	color: var(--ibc-info-fg);
	font-size: var(--ibc-info-text-size);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-info__list {
	display: grid;
	gap: var(--ibc-info-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ibc-v2 .ibc-info__item {
	display: grid;
	grid-template-columns: var(--ibc-info-marker) minmax(0, 1fr);
	gap: var(--db-space-3);
	align-items: start;
	margin: 0;
	padding: 0;
}

.ibc-v2 .ibc-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ibc-info-marker);
	height: var(--ibc-info-marker);
	/* Optical centering against the first line of text. */
	margin-top: calc((1em * 1.5 - var(--ibc-info-marker)) / 2);
	border-radius: var(--db-radius-pill);
	background: var(--ibc-info-accent);
	color: var(--ibc-info-bg);
}

.ibc-v2 .ibc-info__icon svg,
.ibc-v2 .ibc-info__icon i {
	width: 62%;
	height: 62%;
	font-size: calc(var(--ibc-info-marker) * 0.56);
	fill: currentColor;
	line-height: 1;
}

/* No icon chosen: fall back to a plain accent dot rather than an empty gap. */
.ibc-v2 .ibc-info__icon:empty {
	transform: scale(0.45);
}

.ibc-v2 .ibc-info__text {
	color: var(--ibc-info-fg);
	font-size: var(--ibc-info-text-size);
	line-height: var(--db-leading-body);
}

.ibc-v2 .ibc-step-instruction {
	padding: var(--db-space-4) var(--db-space-5);
	border-left-width: var(--db-border-width-emphasis);
	border-radius: var(--db-radius-control);
}

/* The notice closes a step, so it needs air between it and the last field. */
.ibc-v2 .ibc-form-grid + .ibc-step-instruction,
.ibc-v2 .ibc-summary-section + .ibc-step-instruction {
	margin-top: var(--db-space-6);
}

.ibc-v2 .ibc-instruction-text {
	margin: 0;
	font-size: var(--db-text-body-sm);
	line-height: var(--db-leading-body);
}

/* Respect the OS "reduce motion" setting across every animated V1 rule. */
@media (prefers-reduced-motion: reduce) {
	.ibc-v2 *,
	.ibc-v2 *::before,	.ibc-v2 *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/**
 * V1 TAG-PROOFING
 * Heading levels are author-configurable now, and the Elementor kit styles
 * bare h1..h6 at `.elementor-kit-N h2` (0-1-1), which outranks V1's single
 * class selectors. These rules restate the existing V1 values verbatim so
 * V1 renders identically whatever tag is chosen. V2 is already safe because
 * its own selectors carry two classes.
 */
.ibc-form-wrapper:not(.ibc-v2) .ibc-form-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.ibc-form-wrapper:not(.ibc-v2) .ibc-card-title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.ibc-form-wrapper:not(.ibc-v2) .ibc-summary-heading {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.ibc-form-wrapper:not(.ibc-v2) .ibc-success-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
}

