/*
 * 7th Sky Conditional Booking Forms — front-end styles.
 * Everything themeable is a custom property so the Elementor controls only ever
 * have to set variables, never fight specificity.
 */

.ssbf {
	--ssbf-primary: #0d4282;
	--ssbf-accent: #f47b20;

	--ssbf-row-gap: 18px;
	--ssbf-col-gap: 18px;

	--ssbf-field-bg: #f7f9fc;
	--ssbf-field-bg-hover: var(--ssbf-field-bg);
	--ssbf-field-bg-focus: #ffffff;
	--ssbf-field-color: #1b2b45;
	--ssbf-field-border: #dce4f0;
	--ssbf-field-border-hover: #b9c9e2;
	--ssbf-field-border-focus: var(--ssbf-primary);
	--ssbf-field-border-w: 1px;
	--ssbf-field-radius: 12px;
	--ssbf-field-h: 54px;
	--ssbf-field-pt: 0px;
	--ssbf-field-pr: 16px;
	--ssbf-field-pb: 0px;
	--ssbf-field-pl: 16px;
	--ssbf-field-ring: rgba(13, 66, 130, 0.14);
	--ssbf-placeholder: #9aa9bf;

	--ssbf-icon-size: 20px;
	--ssbf-icon-gap: 10px;
	--ssbf-icon-box: 38px;
	--ssbf-icon-box-radius: 10px;
	--ssbf-icon-box-bg: rgba(13, 66, 130, 0.08);
	--ssbf-icon-color: var(--ssbf-primary);
	--ssbf-icon-color-hover: var(--ssbf-accent);
	--ssbf-icon-color-focus: var(--ssbf-accent);
	--ssbf-icon-color-disabled: #b7c2d2;
	--ssbf-icon-slot: var(--ssbf-icon-size);

	--ssbf-card-bg: #f7f9fc;
	--ssbf-card-border: #dce4f0;
	--ssbf-card-color: #233757;
	--ssbf-card-active-bg: var(--ssbf-primary);
	--ssbf-card-active-color: #ffffff;

	--ssbf-counter-btn-bg: var(--ssbf-primary);
	--ssbf-counter-btn-color: #ffffff;
	--ssbf-counter-btn-border: transparent;
	--ssbf-counter-btn-hover-bg: var(--ssbf-accent);
	--ssbf-counter-btn-hover-color: #ffffff;
	--ssbf-counter-btn-size: 46px;
	--ssbf-counter-icon-size: 19px;
	--ssbf-counter-radius: 14px;
	--ssbf-counter-gap: 8px;
	--ssbf-counter-value-bg: #ffffff;
	--ssbf-counter-value-border: var(--ssbf-field-border);
	--ssbf-counter-value-color: var(--ssbf-field-color);
	--ssbf-counter-card-bg: var(--ssbf-field-bg);
	--ssbf-counter-card-border: var(--ssbf-field-border);
	--ssbf-counter-card-radius: 14px;
	--ssbf-counter-card-pad: 16px;
	--ssbf-counter-card-gap: 14px;

	--ssbf-step-size: 36px;
	--ssbf-step-bg: #edf1f7;
	--ssbf-step-color: #7c8da6;
	--ssbf-step-active-bg: var(--ssbf-primary);
	--ssbf-step-active-color: #ffffff;
	--ssbf-step-active-label: var(--ssbf-primary);
	--ssbf-step-done-bg: var(--ssbf-accent);
	--ssbf-step-done-color: #ffffff;
	--ssbf-step-line: #e1e8f2;
	--ssbf-step-line-active: var(--ssbf-accent);

	--ssbf-btn-bg: var(--ssbf-primary);
	--ssbf-btn-color: #ffffff;
	--ssbf-btn-bg-hover: var(--ssbf-accent);
	--ssbf-btn-color-hover: #ffffff;
	--ssbf-btn2-bg: rgba(13, 66, 130, 0.06);
	--ssbf-btn2-color: var(--ssbf-primary);
	--ssbf-btn2-bg-hover: rgba(13, 66, 130, 0.12);
	--ssbf-btn2-color-hover: var(--ssbf-primary);
	--ssbf-wa-bg: #25d366;
	--ssbf-wa-color: #ffffff;
	--ssbf-wa-bg-hover: #1eb855;

	--ssbf-review-bg: #f7f9fc;
	--ssbf-review-border: #e1e8f2;

	--ssbf-error: #e03131;
	--ssbf-success: #12885a;
	--ssbf-success-bg: rgba(18, 136, 90, 0.08);

	--ssbf-ease: cubic-bezier(0.32, 0.72, 0, 1);

	position: relative;
	box-sizing: border-box;
	/* Fills its Elementor container — width is the container's business. */
	width: 100%;
	max-width: 100%;
	color: var(--ssbf-field-color);

	/*
	 * Deliberately no background, padding, border-radius or margin here.
	 * All four are Elementor controls (Style → Container), so setting them to 0
	 * in the panel actually takes effect instead of losing to a stylesheet rule.
	 */
	margin: 0;
}

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

.ssbf--icons-boxed,
.ssbf--icons-circle {
	--ssbf-icon-slot: var(--ssbf-icon-box);
}

/* ------------------------------------------------------------------ header */

.ssbf__header {
	margin-bottom: 24px;
}

.ssbf__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--ssbf-primary);
}

.ssbf__desc {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: #5a6b84;
}

/* ---------------------------------------------------------------- progress */

.ssbf-progress {
	margin-bottom: 28px;
}

.ssbf-stepnav {
	display: flex;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ssbf-stepnav__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	margin: 0;
	padding: 0;
}

/* connector line */
.ssbf-stepnav__item::before,
.ssbf-stepnav__item::after {
	content: "";
	position: absolute;
	top: calc(var(--ssbf-step-size) / 2 - 1px);
	height: 2px;
	background: var(--ssbf-step-line);
	transition: background 0.35s var(--ssbf-ease);
}

.ssbf-stepnav__item::before {
	left: 0;
	width: 50%;
}

.ssbf-stepnav__item::after {
	right: 0;
	width: 50%;
}

.ssbf-stepnav__item:first-child::before,
.ssbf-stepnav__item:last-child::after {
	display: none;
}

.ssbf-stepnav__item.is-done::before,
.ssbf-stepnav__item.is-done::after,
.ssbf-stepnav__item.is-active::before {
	background: var(--ssbf-step-line-active);
}

.ssbf-stepnav__btn {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: default;
}

.ssbf--stepped .ssbf-stepnav__item.is-done button.ssbf-stepnav__btn,
.ssbf--stepped .ssbf-stepnav__item.is-active button.ssbf-stepnav__btn {
	cursor: pointer;
}

.ssbf-stepnav__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ssbf-step-size);
	height: var(--ssbf-step-size);
	border-radius: 50%;
	background: var(--ssbf-step-bg);
	color: var(--ssbf-step-color);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	transition: background 0.3s var(--ssbf-ease), color 0.3s var(--ssbf-ease), transform 0.3s var(--ssbf-ease);
}

.ssbf-stepnav__check {
	display: none;
}

.ssbf-stepnav__check svg {
	width: 55%;
	height: 55%;
	stroke-width: 2.4;
}

.ssbf-stepnav__item.is-active .ssbf-stepnav__dot {
	background: var(--ssbf-step-active-bg);
	color: var(--ssbf-step-active-color);
	transform: scale(1.06);
}

.ssbf-stepnav__item.is-done .ssbf-stepnav__dot {
	background: var(--ssbf-step-done-bg);
	color: var(--ssbf-step-done-color);
}

.ssbf-stepnav__item.is-done .ssbf-stepnav__num {
	display: none;
}

.ssbf-stepnav__item.is-done .ssbf-stepnav__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ssbf-stepnav__label {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ssbf-step-color);
	transition: color 0.3s var(--ssbf-ease);
	overflow-wrap: anywhere;
}

.ssbf-stepnav__item.is-active .ssbf-stepnav__label {
	color: var(--ssbf-step-active-label);
}

/* dots variant: hide the numbers, shrink the circle */
.ssbf--progress-dots .ssbf-stepnav__num {
	display: none;
}

.ssbf--progress-dots .ssbf-stepnav__dot {
	width: calc(var(--ssbf-step-size) * 0.44);
	height: calc(var(--ssbf-step-size) * 0.44);
}

.ssbf--progress-dots .ssbf-stepnav__item::before,
.ssbf--progress-dots .ssbf-stepnav__item::after {
	top: calc(var(--ssbf-step-size) * 0.22 - 1px);
}

.ssbf--progress-dots .ssbf-stepnav__item.is-done .ssbf-stepnav__check {
	display: none;
}

/* bar variant */
.ssbf-progressbar {
	height: 6px;
	border-radius: 99px;
	background: var(--ssbf-step-line);
	overflow: hidden;
	margin-bottom: 14px;
}

.ssbf-progressbar__fill {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--ssbf-primary), var(--ssbf-accent));
	transition: width 0.45s var(--ssbf-ease);
}

.ssbf--progress-bar .ssbf-stepnav__dot,
.ssbf--progress-bar .ssbf-stepnav__item::before,
.ssbf--progress-bar .ssbf-stepnav__item::after {
	display: none;
}

.ssbf--progress-bar .ssbf-stepnav {
	justify-content: space-between;
}

/* tabs variant */
.ssbf--progress-tabs .ssbf-stepnav {
	gap: 8px;
	flex-wrap: wrap;
}

.ssbf--progress-tabs .ssbf-stepnav__item::before,
.ssbf--progress-tabs .ssbf-stepnav__item::after,
.ssbf--progress-tabs .ssbf-stepnav__dot {
	display: none;
}

.ssbf--progress-tabs .ssbf-stepnav__btn {
	padding: 11px 14px;
	border-radius: 10px;
	background: var(--ssbf-step-bg);
	transition: background 0.3s var(--ssbf-ease);
}

.ssbf--progress-tabs .ssbf-stepnav__item.is-active .ssbf-stepnav__btn {
	background: var(--ssbf-step-active-bg);
}

.ssbf--progress-tabs .ssbf-stepnav__item.is-active .ssbf-stepnav__label {
	color: var(--ssbf-step-active-color);
}

.ssbf--progress-tabs .ssbf-stepnav__item.is-done .ssbf-stepnav__btn {
	background: var(--ssbf-step-done-bg);
}

.ssbf--progress-tabs .ssbf-stepnav__item.is-done .ssbf-stepnav__label {
	color: var(--ssbf-step-done-color);
}

/* ------------------------------------------------------------------- steps */

.ssbf-step[hidden] {
	display: none;
}

.ssbf-step.is-entering {
	animation: ssbf-step-in 0.42s var(--ssbf-ease) both;
}

@keyframes ssbf-step-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ssbf--single .ssbf-step + .ssbf-step {
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid var(--ssbf-field-border);
}

.ssbf-step__title {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ssbf-primary);
}

/* -------------------------------------------------------------------- grid */

.ssbf-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--ssbf-row-gap) var(--ssbf-col-gap);
	align-items: start;
}

.ssbf-field {
	grid-column: span 12;
	min-width: 0;
}

.ssbf-field--w75 {
	grid-column: span 9;
}

.ssbf-field--w66 {
	grid-column: span 8;
}

.ssbf-field--w50 {
	grid-column: span 6;
}

.ssbf-field--w33 {
	grid-column: span 4;
}

.ssbf-field--w25 {
	grid-column: span 3;
}

.ssbf--cols-1 .ssbf-field {
	grid-column: span 12;
}

.ssbf--cols-2 .ssbf-field {
	grid-column: span 6;
}

.ssbf--cols-3 .ssbf-field {
	grid-column: span 4;
}

.ssbf-field[hidden] {
	display: none;
}

.ssbf-field--revealed {
	animation: ssbf-field-in 0.3s var(--ssbf-ease) both;
}

@keyframes ssbf-field-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ labels */

.ssbf-label {
	display: block;
	margin: 0 0 8px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: #233757;
}

.ssbf-req {
	color: var(--ssbf-error);
	margin-left: 2px;
}

.ssbf-help {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #8494ac;
}

.ssbf-fieldheading {
	margin: 8px 0 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ssbf-primary);
}

.ssbf-error {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--ssbf-error);
}

.ssbf-error[hidden] {
	display: none;
}

.ssbf-form-error {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	background: rgba(224, 49, 49, 0.08);
	color: var(--ssbf-error);
	font-size: 13.5px;
}

.ssbf-form-error[hidden] {
	display: none;
}

/* ---------------------------------------------------------------- controls */

.ssbf-control {
	position: relative;
	display: flex;
	align-items: center;
	border-radius: var(--ssbf-field-radius);
}

/*
 * Scoped with .ssbf on purpose. Themes style fields as input[type="text"],
 * input[type="email"], input[type="date"] and so on — an attribute selector
 * plus an element, which outranks a single class and was leaving the typed
 * inputs unstyled while selects and textareas looked correct.
 */
.ssbf .ssbf-input {
	width: 100%;
	min-height: var(--ssbf-field-h);
	margin: 0;
	padding: var(--ssbf-field-pt) var(--ssbf-field-pr) var(--ssbf-field-pb) var(--ssbf-field-pl);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ssbf-field-color);
	background: var(--ssbf-field-bg);
	border: var(--ssbf-field-border-w) solid var(--ssbf-field-border);
	border-radius: var(--ssbf-field-radius);
	box-shadow: none;
	outline: none;
	transition: border-color 0.22s var(--ssbf-ease), background 0.22s var(--ssbf-ease), box-shadow 0.22s var(--ssbf-ease);
	-webkit-appearance: none;
	appearance: none;
}

.ssbf .ssbf-textarea {
	min-height: var(--ssbf-textarea-h, calc(var(--ssbf-field-h) * 2));
	padding-top: 14px;
	padding-bottom: 14px;
	resize: vertical;
	line-height: 1.6;
}

.ssbf .ssbf-input::placeholder {
	color: var(--ssbf-placeholder);
	opacity: 1;
}

/*
 * Date and time inputs get browser chrome of their own. Normalise it so they
 * sit at the same height and alignment as every other field.
 */
.ssbf .ssbf-date,
.ssbf .ssbf-input[type="time"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	text-align: left;
}

.ssbf .ssbf-date::-webkit-date-and-time-value,
.ssbf .ssbf-input[type="time"]::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
}

.ssbf .ssbf-date::-webkit-calendar-picker-indicator,
.ssbf .ssbf-input[type="time"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s var(--ssbf-ease);
}

.ssbf .ssbf-date:hover::-webkit-calendar-picker-indicator,
.ssbf .ssbf-input[type="time"]:hover::-webkit-calendar-picker-indicator {
	opacity: 1;
}

/* An icon on the right would sit under the native picker button. */
.ssbf-field--icon-right.ssbf-field--date .ssbf-icon,
.ssbf-field--icon-right.ssbf-field--time .ssbf-icon {
	right: calc(var(--ssbf-field-pr) + 24px);
}

.ssbf .ssbf-control:hover .ssbf-input:not(:disabled) {
	border-color: var(--ssbf-field-border-hover);
	background: var(--ssbf-field-bg-hover);
}

.ssbf .ssbf-input:focus,
.ssbf .ssbf-input:focus-visible {
	border-color: var(--ssbf-field-border-focus);
	background: var(--ssbf-field-bg-focus);
	box-shadow: 0 0 0 4px var(--ssbf-field-ring);
	outline: none;
}

.ssbf .ssbf-input:disabled {
	opacity: 0.62;
	cursor: not-allowed;
}

.ssbf .ssbf-field.has-error .ssbf-input,
.ssbf .ssbf-field.has-error .ssbf-cards {
	border-color: var(--ssbf-error);
}

.ssbf .ssbf-field.has-error .ssbf-input:focus {
	box-shadow: 0 0 0 4px rgba(224, 49, 49, 0.12);
}

/* select */
.ssbf .ssbf-select {
	padding-right: 42px;
	cursor: pointer;
}

.ssbf-select::-ms-expand {
	display: none;
}

.ssbf-arrow {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid var(--ssbf-arrow-color, #5a6b84);
	border-bottom: 2px solid var(--ssbf-arrow-color, #5a6b84);
	transform: rotate(45deg);
	pointer-events: none;
	transition: border-color 0.22s var(--ssbf-ease);
}

.ssbf-input--fallback[hidden] {
	display: none;
}

.ssbf-spinner {
	position: absolute;
	right: 40px;
	top: 50%;
	width: 15px;
	height: 15px;
	margin-top: -7.5px;
	border: 2px solid rgba(13, 66, 130, 0.2);
	border-top-color: var(--ssbf-primary);
	border-radius: 50%;
	animation: ssbf-spin 0.7s linear infinite;
	pointer-events: none;
}

.ssbf-spinner[hidden] {
	display: none;
}

@keyframes ssbf-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ------------------------------------------------------------------- icons */

.ssbf-icon {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ssbf-icon-color);
	pointer-events: none;
	transition: color 0.22s var(--ssbf-ease), background 0.22s var(--ssbf-ease);
	z-index: 1;
}

.ssbf-icon svg {
	display: block;
	width: var(--ssbf-icon-size);
	height: var(--ssbf-icon-size);
	max-width: 100%;
	max-height: 100%;
}

.ssbf--icons-boxed .ssbf-icon,
.ssbf--icons-circle .ssbf-icon {
	width: var(--ssbf-icon-box);
	height: var(--ssbf-icon-box);
	background: var(--ssbf-icon-box-bg);
	border-radius: var(--ssbf-icon-box-radius);
}

.ssbf--icons-circle .ssbf-icon {
	border-radius: 50%;
}

/* icon left */
.ssbf-field--icon-left .ssbf-icon {
	left: var(--ssbf-field-pl);
	transform: translateY(-50%);
}

.ssbf-field--icon-left .ssbf-input {
	padding-left: calc(var(--ssbf-field-pl) + var(--ssbf-icon-slot) + var(--ssbf-icon-gap));
}

/* icon right */
.ssbf-field--icon-right .ssbf-icon {
	right: var(--ssbf-field-pr);
	transform: translateY(-50%);
}

.ssbf-field--icon-right .ssbf-input {
	padding-right: calc(var(--ssbf-field-pr) + var(--ssbf-icon-slot) + var(--ssbf-icon-gap));
}

.ssbf-field--icon-right .ssbf-select {
	padding-right: calc(var(--ssbf-field-pr) + var(--ssbf-icon-slot) + var(--ssbf-icon-gap) + 26px);
}

.ssbf-field--icon-right.ssbf-field--select .ssbf-icon,
.ssbf-field--icon-right.ssbf-field--country .ssbf-icon,
.ssbf-field--icon-right.ssbf-field--city .ssbf-icon,
.ssbf-field--icon-right.ssbf-field--airport .ssbf-icon {
	right: calc(var(--ssbf-field-pr) + 26px);
}

.ssbf-field--icon-right .ssbf-spinner {
	right: calc(var(--ssbf-field-pr) + var(--ssbf-icon-slot) + var(--ssbf-icon-gap) + 26px);
}

/* icon above */
.ssbf-field--icon-top .ssbf-control {
	flex-direction: column;
	align-items: stretch;
}

.ssbf-field--icon-top .ssbf-icon {
	position: static;
	transform: none;
	margin: 0 auto var(--ssbf-icon-gap);
}

/* icon state colours follow the control */
.ssbf-field:hover .ssbf-icon {
	color: var(--ssbf-icon-color-hover);
}

.ssbf-field.is-focused .ssbf-icon {
	color: var(--ssbf-icon-color-focus);
}

.ssbf-field.is-disabled .ssbf-icon,
.ssbf-control:has(.ssbf-input:disabled) .ssbf-icon {
	color: var(--ssbf-icon-color-disabled);
}

.ssbf-field.is-focused .ssbf-arrow {
	border-color: var(--ssbf-icon-color-focus);
}

/* ------------------------------------------------------------------- cards */

.ssbf-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ssbf-card {
	flex: 1 1 140px;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.ssbf-card__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ssbf-card__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 100%;
	min-height: var(--ssbf-field-h);
	padding: 12px 16px;
	text-align: center;
	background: var(--ssbf-card-bg);
	border: var(--ssbf-field-border-w) solid var(--ssbf-card-border);
	border-radius: var(--ssbf-field-radius);
	color: var(--ssbf-card-color);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	transition: all 0.24s var(--ssbf-ease);
}

.ssbf-card:hover .ssbf-card__inner {
	border-color: var(--ssbf-field-border-hover);
	transform: translateY(-1px);
}

.ssbf-card__icon {
	display: flex;
	flex: 0 0 auto;
	color: var(--ssbf-icon-color);
	transition: color 0.24s var(--ssbf-ease);
}

.ssbf-card__icon svg {
	width: var(--ssbf-icon-size);
	height: var(--ssbf-icon-size);
	display: block;
}

.ssbf-card__input:checked + .ssbf-card__inner {
	background: var(--ssbf-card-active-bg);
	border-color: var(--ssbf-card-active-bg);
	color: var(--ssbf-card-active-color);
	box-shadow: 0 6px 18px -8px var(--ssbf-card-active-bg);
}

.ssbf-card__input:checked + .ssbf-card__inner .ssbf-card__icon {
	color: var(--ssbf-card-active-color);
}

.ssbf-card__input:focus-visible + .ssbf-card__inner {
	box-shadow: 0 0 0 4px var(--ssbf-field-ring);
}

/* ---------------------------------------------------------------- counters */

.ssbf-counter-card {
	display: flex;
	flex-direction: column;
	gap: var(--ssbf-counter-card-gap);
	height: 100%;
	padding: var(--ssbf-counter-card-pad);
	background: var(--ssbf-counter-card-bg);
	border: var(--ssbf-field-border-w) solid var(--ssbf-counter-card-border);
	border-radius: var(--ssbf-counter-card-radius);
	transition: border-color 0.22s var(--ssbf-ease), box-shadow 0.22s var(--ssbf-ease);
}

.ssbf-field--counter:hover .ssbf-counter-card {
	border-color: var(--ssbf-field-border-hover);
}

.ssbf-counter-card__head {
	display: flex;
	align-items: center;
	gap: var(--ssbf-icon-gap);
	min-width: 0;
}

/* The icon sits in the flow here, not absolutely positioned in a control. */
.ssbf-field--counter .ssbf-icon {
	position: static;
	transform: none;
	flex: 0 0 auto;
	margin: 0;
}

.ssbf-counter-card__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ssbf-counter-card__text .ssbf-label {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.ssbf-counter-card__text .ssbf-help {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.35;
}

.ssbf-counter {
	display: flex;
	align-items: center;
	gap: var(--ssbf-counter-gap);
	width: 100%;
	margin-top: auto;
}

/* input[type="number"] is another one themes reset by attribute selector. */
.ssbf .ssbf-counter__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: var(--ssbf-counter-btn-size);
	margin: 0;
	padding: 0 4px;
	background: var(--ssbf-counter-value-bg);
	border: var(--ssbf-field-border-w) solid var(--ssbf-counter-value-border);
	border-radius: var(--ssbf-counter-radius);
	color: var(--ssbf-counter-value-color);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: default;
	outline: none;
	-moz-appearance: textfield;
	-webkit-appearance: none;
	appearance: none;
}

.ssbf-counter__input:focus {
	box-shadow: 0 0 0 3px var(--ssbf-field-ring);
}

.ssbf-counter__input::-webkit-outer-spin-button,
.ssbf-counter__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ssbf-counter__btn {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ssbf-counter-btn-size);
	height: var(--ssbf-counter-btn-size);
	padding: 0;
	background: var(--ssbf-counter-btn-bg);
	color: var(--ssbf-counter-btn-color);
	border: var(--ssbf-field-border-w) solid var(--ssbf-counter-btn-border);
	border-radius: var(--ssbf-counter-radius);
	cursor: pointer;
	transition: background 0.2s var(--ssbf-ease), color 0.2s var(--ssbf-ease), border-color 0.2s var(--ssbf-ease), transform 0.2s var(--ssbf-ease);
}

/*
 * Explicit length, never a percentage. These glyphs carry only a viewBox and so
 * have no intrinsic size, and themes routinely ship "svg { height: auto }",
 * which beats a percentage height and collapses them to nothing. The minimum
 * and maximum sizing below makes that impossible.
 */
.ssbf .ssbf-counter__btn > svg {
	display: block;
	flex: 0 0 auto;
	width: var(--ssbf-counter-icon-size);
	height: var(--ssbf-counter-icon-size);
	min-width: var(--ssbf-counter-icon-size);
	min-height: var(--ssbf-counter-icon-size);
	max-width: none;
	max-height: none;
	fill: none;
	stroke: var(--ssbf-counter-btn-color, #fff);
	stroke-width: 2.6;
	visibility: visible;
	opacity: 1;
}

.ssbf .ssbf-counter__btn:hover > svg {
	stroke: var(--ssbf-counter-btn-hover-color, #fff);
}

.ssbf .ssbf-counter__btn:hover:not(:disabled) {
	background: var(--ssbf-counter-btn-hover-bg);
	color: var(--ssbf-counter-btn-hover-color);
	border-color: var(--ssbf-counter-btn-hover-border, var(--ssbf-counter-btn-hover-bg));
	transform: var(--ssbf-counter-btn-hover-lift, none);
}

/*
 * Themes and Elementor both ship button resets that flatten corners, and they
 * usually target :hover and :focus separately — which is how the rounding
 * disappeared mid-hover. Restate it for every state at higher specificity.
 */
.ssbf .ssbf-counter__btn,
.ssbf .ssbf-counter__input {
	border-radius: var(--ssbf-counter-radius);
}

.ssbf .ssbf-counter__btn:hover,
.ssbf .ssbf-counter__btn:focus,
.ssbf .ssbf-counter__btn:focus-visible,
.ssbf .ssbf-counter__btn:active,
.ssbf .ssbf-counter__input:hover,
.ssbf .ssbf-counter__input:focus {
	border-radius: var(--ssbf-counter-radius-hover, var(--ssbf-counter-radius));
}

.ssbf-counter__btn:active:not(:disabled) {
	transform: scale(0.94);
}

.ssbf-counter__btn:focus-visible {
	outline: 3px solid var(--ssbf-field-ring);
	outline-offset: 1px;
}

.ssbf-counter__btn:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.ssbf-field--counter.has-error .ssbf-counter-card {
	border-color: var(--ssbf-error);
}

/* -------------------------------------------------------------------- ages */

.ssbf-ages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--ssbf-ages-col, 140px), 1fr));
	gap: var(--ssbf-ages-gap, 10px);
}

.ssbf-ages__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ssbf-ages__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ssbf-ages-label-color, #8494ac);
}

.ssbf-ages .ssbf-input {
	min-height: var(--ssbf-ages-h, calc(var(--ssbf-field-h) * 0.82));
	padding-left: var(--ssbf-ages-pad, 14px);
	padding-right: calc(var(--ssbf-ages-pad, 14px) + 22px);
	font-size: var(--ssbf-ages-font-size, 14px);
	background: var(--ssbf-ages-bg, var(--ssbf-field-bg));
	border-color: var(--ssbf-ages-border, var(--ssbf-field-border));
	border-radius: var(--ssbf-ages-radius, var(--ssbf-field-radius));
	color: var(--ssbf-ages-color, var(--ssbf-field-color));
}

.ssbf-ages .ssbf-input:focus {
	background: var(--ssbf-field-bg-focus);
	border-color: var(--ssbf-field-border-focus);
}

.ssbf-ages .ssbf-arrow {
	right: var(--ssbf-ages-pad, 14px);
}

.ssbf-ages__wrap {
	position: relative;
	display: flex;
	align-items: center;
}

/* ------------------------------------------------------------------ review */

.ssbf-review {
	display: grid;
	gap: 14px;
}

.ssbf-review__group {
	background: var(--ssbf-review-bg);
	border: 1px solid var(--ssbf-review-border);
	border-radius: 14px;
	padding: 18px 20px;
}

.ssbf-review__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.ssbf-review__group-title {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--ssbf-primary);
}

.ssbf-review__edit {
	background: none;
	border: 0;
	padding: 4px 8px;
	border-radius: 6px;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ssbf-accent);
	cursor: pointer;
	transition: background 0.2s var(--ssbf-ease);
}

.ssbf-review__edit:hover {
	background: rgba(244, 123, 32, 0.12);
}

.ssbf-review__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 20px;
	margin: 0;
}

.ssbf-review__item {
	min-width: 0;
}

.ssbf-review__label {
	margin: 0;
	font-size: 12px;
	color: #7c8da6;
}

.ssbf-review__value {
	margin: 3px 0 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.45;
	color: #1b2b45;
	overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------- consent */

.ssbf-consent {
	margin-top: 20px;
}

.ssbf-consent[hidden] {
	display: none;
}

.ssbf-consent__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.55;
	color: #5a6b84;
	cursor: pointer;
}

.ssbf-consent__input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: var(--ssbf-primary);
}

/* ----------------------------------------------------------------- actions */

.ssbf-actions {
	display: flex;
	align-items: center;
	justify-content: var(--ssbf-actions-justify, space-between);
	gap: var(--ssbf-actions-gap, 12px);
	margin-top: var(--ssbf-actions-top, 26px);
	flex-wrap: wrap;
}

.ssbf-actions__right {
	display: flex;
	align-items: center;
	gap: var(--ssbf-actions-gap, 10px);
	flex-wrap: wrap;
	justify-content: inherit;
}

/* Only push the right group over when the row is justified apart. */
.ssbf--actions-apart .ssbf-actions__right {
	margin-left: auto;
	justify-content: flex-end;
}

/* Stretch: one long button spanning the full width. */
.ssbf--submit-stretch .ssbf-actions,
.ssbf--submit-stretch .ssbf-actions__right {
	width: 100%;
}

.ssbf--submit-stretch .ssbf-actions__right {
	margin-left: 0;
	flex-direction: column;
	align-items: stretch;
}

.ssbf--submit-stretch .ssbf-actions__right .ssbf-btn {
	width: 100%;
}

.ssbf--submit-stretch .ssbf-btn--prev {
	width: 100%;
}

.ssbf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 30px;
	border: 0;
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	background: var(--ssbf-btn-bg);
	color: var(--ssbf-btn-color);
	transition: background 0.24s var(--ssbf-ease), color 0.24s var(--ssbf-ease), transform 0.24s var(--ssbf-ease), box-shadow 0.24s var(--ssbf-ease);
}

.ssbf-btn:hover {
	background: var(--ssbf-btn-bg-hover);
	color: var(--ssbf-btn-color-hover);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -12px var(--ssbf-btn-bg-hover);
}

.ssbf-btn:focus-visible {
	outline: 3px solid var(--ssbf-field-ring);
	outline-offset: 2px;
}

.ssbf-btn[hidden] {
	display: none;
}

.ssbf-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.ssbf-btn__icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.ssbf-btn__icon svg,
.ssbf-btn__icon i {
	width: 18px;
	height: 18px;
	font-size: 18px;
	display: block;
}

.ssbf-btn--prev {
	background: var(--ssbf-btn2-bg);
	color: var(--ssbf-btn2-color);
}

.ssbf-btn--prev:hover {
	background: var(--ssbf-btn2-bg-hover);
	color: var(--ssbf-btn2-color-hover);
	box-shadow: none;
}

.ssbf-btn--wa {
	background: var(--ssbf-wa-bg);
	color: var(--ssbf-wa-color);
}

.ssbf-btn--wa:hover {
	background: var(--ssbf-wa-bg-hover);
	color: var(--ssbf-wa-color);
}

.ssbf-btn--ghost {
	background: transparent;
	color: var(--ssbf-primary);
	border: 1px solid var(--ssbf-field-border);
}

.ssbf-btn--ghost:hover {
	background: var(--ssbf-btn2-bg);
	color: var(--ssbf-primary);
	box-shadow: none;
}

.ssbf-btn.is-loading .ssbf-btn__icon {
	animation: ssbf-spin 0.8s linear infinite;
}

.ssbf-stepcount {
	margin: 14px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: #8494ac;
}

.ssbf--single .ssbf-stepcount {
	display: none;
}

/* ----------------------------------------------------------------- success */

.ssbf-success {
	text-align: center;
	padding: 22px 8px 8px;
}

.ssbf-success[hidden] {
	display: none;
}

.ssbf-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--ssbf-success-bg);
	color: var(--ssbf-success);
	animation: ssbf-pop 0.5s var(--ssbf-ease) both;
}

.ssbf-success__icon svg {
	width: 32px;
	height: 32px;
	stroke-width: 2.2;
}

@keyframes ssbf-pop {
	from {
		opacity: 0;
		transform: scale(0.7);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ssbf-success__text {
	margin: 0 auto;
	max-width: 460px;
	font-size: 16px;
	line-height: 1.6;
	color: #233757;
}

.ssbf-success__ref {
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--ssbf-primary);
}

.ssbf-success__ref[hidden] {
	display: none;
}

.ssbf-success__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

/* -------------------------------------------------------------- honeypot */

.ssbf-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ssbf-notice {
	padding: 16px 20px;
	border-radius: 12px;
	background: rgba(244, 123, 32, 0.1);
	color: #8a4b12;
	font-size: 14px;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.ssbf-field--w33,
	.ssbf-field--w25,
	.ssbf--cols-3 .ssbf-field {
		grid-column: span 6;
	}

	.ssbf-stepnav__label {
		font-size: 11.5px;
	}
}

@media (max-width: 767px) {
	/* Container padding is a responsive Elementor control — not set here. */
	.ssbf__title {
		font-size: 21px;
	}

	.ssbf-field,
	.ssbf-field--w75,
	.ssbf-field--w66,
	.ssbf-field--w50,
	.ssbf-field--w33,
	.ssbf-field--w25,
	.ssbf--cols-2 .ssbf-field,
	.ssbf--cols-3 .ssbf-field {
		grid-column: span 12;
	}

	.ssbf-review__list {
		grid-template-columns: 1fr;
	}

	.ssbf--progress-dots .ssbf-stepnav__label,
	.ssbf--progress-numbers .ssbf-stepnav__label {
		display: none;
	}

	.ssbf--progress-tabs .ssbf-stepnav__item {
		flex: 1 1 auto;
	}

	.ssbf-actions {
		flex-wrap: wrap;
	}

	.ssbf--btn-block .ssbf-actions,
	.ssbf--btn-block .ssbf-actions__right {
		width: 100%;
	}

	.ssbf--btn-block .ssbf-actions__right {
		margin-left: 0;
	}

	.ssbf--btn-block .ssbf-btn {
		flex: 1 1 100%;
	}

	.ssbf-cards {
		gap: 8px;
	}

	.ssbf-card {
		flex: 1 1 100%;
	}

	.ssbf-card__inner {
		justify-content: flex-start;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssbf *,
	.ssbf *::before,
	.ssbf *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
