.acf-innerblocks-container:has(.gfcpn-nav) {
  max-width: 1300px!important;
}

/* GF hides a form with conditional logic via inline style="display:none"
   until its own JS evaluates the rules and reveals it — since display:none
   removes it from the layout entirely, the page height jumps once it
   appears. Reserve the space instead: keep it laid out, just invisible. */
.gform_wrapper.agf-form[style*="display:none"],
.gform_wrapper.agf-form[style*="display: none"] {
	display: block !important;
	visibility: hidden;
}

.agf-form .gform_next_button.gfcpn-btn-disabled,
.agf-form .gform_button.gfcpn-btn-disabled {
	background-color: rgba( 5, 191, 142, 0.3 ) !important;
	opacity: 1 !important;
	cursor: not-allowed;
	pointer-events: none;
}

/* Theme paints the arrow as a fixed-white background-image
   (triangle-white--left.svg) — swap it for a green mask instead, since a
   raw background-image can't follow currentColor. */
.agf-form .gform_previous_button {
	position: relative;
	background-color: #ffffff !important;
	background-image: none !important;
	border: 2px solid #05bf8e !important;
	color: #05bf8e !important;
}

/* Theme's :focus state adds a grey box-shadow offset to the right
   (box-shadow: 7px 0 0 -4px rgba(28,70,99,.35)) — not wanted here. */
.agf-form .gform_previous_button:focus {
	box-shadow: none !important;
}

.agf-form .gform_previous_button::before {
	content: "";
	position: absolute;
	left: 10%;
	top: 50%;
	width: 7px;
	height: 12px;
	transform: translateY( -50% );
	background-color: #05bf8e;
	-webkit-mask: url( ../images/triangle-left.svg ) no-repeat center / contain;
	mask: url( ../images/triangle-left.svg ) no-repeat center / contain;
}

.agf-form .gsection {
	border-bottom: 1px solid #C2F3D8 !important;
  margin-top: 0.5rem!important;
  padding: 0 !important;
}

.agf-form .gsection_title:empty {
	display: none!important;
}

.agf-form .gform-field-label__text {
	display: inline;
	background: #f1f8f6;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	padding-block: 0.1em;
	padding-inline-start: 0.35em!important;
	padding-inline-end: 0.35em!important;
}

.agf-form .gfield input[type="text"],
.agf-form .gfield input[type="email"],
.agf-form .gfield input[type="tel"],
.agf-form .gfield input[type="number"],
.agf-form .gfield input[type="url"],
.agf-form .gfield input[type="password"],
.agf-form .gfield textarea {
	background-color: rgba( 28, 70, 99, 0.05 ) !important;
}


.gform_wrapper:has( > .gfcpn-nav ) {
	align-items: stretch;
	display: flex;
	gap: 1.5rem;
}

.gfcpn-nav,
.gfcpn-content {
  position: relative;
  z-index: 0;
  padding: 20px;
  box-shadow: 0 7px 0 -4px rgba(5, 191, 142, 0.35);
}

.gfcpn-nav::before,
.gfcpn-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: #ffffff;
  clip-path: polygon( 0 0, calc( 100% - 20px ) 0, 100% 20px, 100% 100%, 0 100% );
}

.gfcpn-nav::after,
.gfcpn-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 20px;
  height: 20px;
  background: url( ../images/triangle-softgreen-simple.svg?v=2 ) #f1f8f6 no-repeat top right;
}

.gfcpn-nav {
	display: flex;
	flex: 0 0 390px;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
}

.gfcpn-nav-heading {
	margin: 0 0 0.75rem 0;
	padding-bottom: 1rem;
	border-bottom: 1px solid #F1F8F6;
}

.gfcpn-nav-title {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.gfcpn-nav-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gfcpn-content {
	flex: 1 1 auto;
	min-width: 0;
}


@media ( min-width: 601px ) {
	.agf-form .gform_page_footer,
	.agf-form .gform_footer {
		position: sticky;
		bottom: 0;
		z-index: 101;
		background: #ffffff;
		margin-left: -20px !important;
		margin-right: -20px !important;
		padding-top: 1rem;
		padding-bottom: 1rem;
		padding-left: 20px !important;
		padding-right: 20px !important;
		display: flex;
		justify-content: flex-end;
	}

	.agf-form .gform_page_footer::before,
	.agf-form .gform_footer::before {
		content: "";
		position: absolute;
		left: 20px;
		right: 20px;
		top: 0;
		height: 2px;
		background: #C2F3D8;
	}

	.agf-form .gform_page_footer::after,
	.agf-form .gform_footer::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 16px;
		background: linear-gradient( to bottom,
			rgba( 255, 255, 255, 0 ) 0%,
			rgba( 255, 255, 255, 0.3 ) 26%,
			rgba( 255, 255, 255, 0.7 ) 51%,
			rgba( 255, 255, 255, 0.95 ) 76%,
			#ffffff 100% );
		pointer-events: none;
	}

	.agf-form .gform_page_footer.gform_page_footer {
		margin-top: 3.5em !important;
	}
}

.gfcpn-page {
	position: relative;
	padding-bottom: 1.5rem;
}

.gfcpn-page:last-child {
	padding-bottom: 0;
}

.gfcpn-page.gfcpn-numbered:has( + .gfcpn-numbered )::after {
	content: "";
	position: absolute;
	top: 32px;
	bottom: 0;
	left: 17.5px;
	width: 1px;
	background: #8fa4b2;
	z-index: 0;
}

.gfcpn-nav .gfcpn-page-link {
	align-items: flex-start;
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	gap: 0.75rem;
	font-size: 0.875rem;
	padding: 0;
	text-align: left;
	width: 100%;
}

.gfcpn-page-label {
	padding-top: 0.5rem;
	color: #1C4663;
	font-family: Gellix, sans-serif;
	font-size: 16px;
	font-weight: 500;
}

.gfcpn-page-circle {
	position: relative;
  overflow: hidden;
	z-index: 1;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #8fa4b2;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #8fa4b2;
	background: #ffffff;
	box-shadow: 0px 4px 8px rgba( 0, 0, 0, 0.15 );
}

.gfcpn-page-circle:has( .gfcpn-page-check ) {
  overflow: visible;
}


.gfcpn-page-circle svg:not( .gfcpn-page-check ) {
	width: 20px;
	height: auto;
  transform: translateY(20%);
}

.gfcpn-page-badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #05bf8e;
	border: 2px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.gfcpn-page-check {
	width: 8px;
	height: 8px;
}

.gfcpn-nav .gfcpn-locked .gfcpn-page-link {
	cursor: not-allowed;
}

.gfcpn-nav .gfcpn-visited .gfcpn-page-circle {
	border-color: #0b2545;
	background: url( ../images/circle-reflet.svg ) no-repeat center / 100% 100%, #0b2545;
	color: #ffffff;
}

.gfcpn-nav .gfcpn-numbered:has( + .gfcpn-numbered.gfcpn-visited )::after {
	background: #0b2545;
}

.gfcpn-nav .gfcpn-numbered:has( + .gfcpn-numbered.gfcpn-current )::after {
	background: #0b2545;
}

.gfcpn-nav .gfcpn-numbered.gfcpn-current .gfcpn-page-circle {
	border-color: transparent;
	background: url( ../images/circle-reflet.svg ) no-repeat center / 100% 100%, #8FA4B2;
	color: #ffffff;
}

.gfcpn-nav .gfcpn-current .gfcpn-page-label {
	font-weight: 800;
}

.gfcpn-nav .gfcpn-skipped .gfcpn-page-circle {
	border-style: dashed;
	border-color: #8fa4b2;
}



.gfcpn-nav-mobile-summary {
	display: none;
}

@media ( max-width: 600px ) {
	.gform_wrapper:has( > .gfcpn-nav ) {
		flex-direction: column;
	}

	.gfcpn-nav {
		flex-basis: auto;
		width: 100%;
	}

	.gfcpn-nav-heading {
		font-size: 1rem;
	}

	.gfcpn-nav-mobile-summary {
		display: block;
	}

	.gfcpn-nav-mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: 0.75rem;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		text-align: left;
	}

	.gfcpn-nav-mobile-text {
		display: flex;
		flex-direction: column;
		gap: 0.15rem;
	}

	.gfcpn-nav-mobile-step {
		font-size: 0.75rem;
		font-weight: 700;
		color: #8fa4b2;
		text-transform: uppercase;
		letter-spacing: 0.02em;
	}

	.gfcpn-nav-mobile-current {
		font-size: 1rem;
		font-weight: 700;
		color: #0b2545;
	}

	.gfcpn-nav-mobile-chevron {
		flex: 0 0 auto;
		width: 14px;
		height: 10px;
		color: #0b2545;
		transition: transform 0.2s ease;
	}

	.gfcpn-nav-mobile-toggle[aria-expanded="true"] .gfcpn-nav-mobile-chevron {
		transform: rotate( 180deg );
	}

	.gfcpn-nav-mobile-progress {
		margin-top: 0.75rem;
		height: 4px;
		border-radius: 2px;
		background: #eef1f3;
		overflow: hidden;
	}

	.gfcpn-nav-mobile-progress span {
		display: block;
		height: 100%;
		background: #0b2545;
		border-radius: 2px;
	}

	.gfcpn-nav-list {
		display: none;
		flex-direction: column;
		margin-top: 1rem;
	}

	.gfcpn-nav.gfcpn-nav--expanded .gfcpn-nav-list {
		display: flex;
	}

	.gfcpn-page {
		padding-bottom: 1.5rem;
	}

	.gfcpn-page:last-child {
		padding-bottom: 0;
	}
}
