/* ==========================================================================
   Pre-approval application form (2026 design) - template-preapproval-form.php
   A Gravity Forms multistep form; Gravity Forms' own theme CSS is not loaded
   on this page, everything below styles its markup directly.

   Desktop: laid out on the design's 1920-wide canvas. 1fu = 1 design px,
   scaled with the window width (never above 1, never below .72).
   ========================================================================== */

body.ggpf-page {
	--pf-navy: #1f3849;
	--pf-steel: #517891;
	--pf-lime: #aefe7c;
	--pf-cream: #f4f8f0;
	--pf-line: #ced9d2;
	--pf-track: #dce5db;
	--pf-soft: rgba(31, 56, 73, .75);
	--pf-shadow: 0 calc(16 * var(--fu)) calc(40 * var(--fu)) rgba(31, 56, 73, .07);
	--pf-ease: cubic-bezier(.22, .61, .36, 1);
	--fu: clamp(.72px, calc(100vw / 1920), 1px);
	background: var(--pf-cream);
}

/* On this page the site header scrolls away with the page; on the rest of the site it stays fixed */
body.ggpf-page header#masthead {
	position: absolute;
}

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

.ggpf {
	min-height: 100vh;
	/* room for the site header (its height is measured by the page, 102px by default) */
	padding-top: var(--pa-header-h, 102px);
	background: var(--pf-cream);
	font-family: "Work Sans", system-ui, sans-serif;
	color: var(--pf-navy);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ggpf * {
	letter-spacing: 0;
}

.ggpf h1,
.ggpf p,
.ggpf fieldset,
.ggpf legend,
.ggpf label {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	font-weight: inherit;
	text-transform: none;
	color: inherit;
}

.ggpf-wrap {
	width: calc(1280 * var(--fu));
	max-width: calc(100% - 48px);
	margin: 0 auto;
	padding: calc(111 * var(--fu)) 0 calc(120 * var(--fu));
}

/* things Gravity Forms prints that the design does not show */
.ggpf .gform_heading,
.ggpf .gfield_required,
.ggpf .gform_validation_errors,
.ggpf .gform_submission_error,
.ggpf .gfield--type-hidden,
.ggpf .gform_hidden,
.ggpf .gf_progressbar_percentage span,
.ggpf .gf_step_page_name,
.ggpf .ginput_counter,
.ggpf .gform_ajax_spinner,
.ggpf .gform-loader {
	display: none !important;
}

.ggpf .gform_validation_container,
.ggpf .hidden_label > .gfield_label,
.ggpf .ggpf-choices > .gfield_label,
.ggpf .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ggpf .gform_anchor {
	scroll-margin-top: calc(var(--pa-header-h, 102px) + 28px);
}

/* ---------- Step n of 9 + progress bar ---------- */
.ggpf .gf_progressbar_title {
	font-weight: 600;
	font-size: calc(15 * var(--fu));
	line-height: calc(20 * var(--fu));
	color: var(--pf-navy);
}

.ggpf .gf_progressbar {
	position: relative;
	height: calc(6 * var(--fu));
	margin-top: calc(17 * var(--fu));
	background: var(--pf-track);
}

.ggpf .gf_progressbar_percentage {
	position: relative;
	width: calc(100% * var(--ggpf-step, 1) / var(--ggpf-total, 9)) !important;
	height: 100%;
	background: var(--pf-navy) !important;
	transition: width .4s var(--pf-ease);
}

/* lime marker at the end of the filled part */
.ggpf .gf_progressbar_percentage::after {
	content: "";
	position: absolute;
	right: 0;
	top: calc(-4 * var(--fu));
	width: calc(14 * var(--fu));
	height: calc(14 * var(--fu));
	border: calc(2 * var(--fu)) solid var(--pf-navy);
	border-radius: 50%;
	background: var(--pf-lime);
	background-clip: padding-box;
}

/* ---------- Step layout: question on the left, answers on the right ---------- */
.ggpf .gform_body {
	margin-top: calc(52 * var(--fu));
}

.ggpf .gform_fields {
	display: grid;
	grid-template-columns: calc(536 * var(--fu)) calc(364 * var(--fu)) calc(16 * var(--fu)) calc(364 * var(--fu));
	align-items: start;
	min-height: calc(146 * var(--fu));
}

.ggpf .gfield {
	grid-column: 2 / 5;
	position: relative;
}

.ggpf .gfield.ggpf-heading {
	grid-column: 1;
	grid-row: 1 / 40;
	padding: 0 calc(40 * var(--fu)) 0 0;
}

.ggpf .gfield.ggpf-half {
	grid-column: 2;
}

.ggpf .gfield.ggpf-half + .gfield.ggpf-half {
	grid-column: 4;
}

/* the two-line Yes / No steps keep the height they have in the design */
.ggpf .gform_page[id$="_2"] .gform_fields,
.ggpf .gform_page[data-ggpf-step="2"] .gform_fields {
	min-height: calc(174 * var(--fu));
}

.ggpf .ggpf-q {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: calc(44 * var(--fu));
	line-height: calc(52 * var(--fu));
	color: var(--pf-navy);
	text-shadow: 0 calc(16 * var(--fu)) calc(40 * var(--fu)) rgba(31, 56, 73, .12);
}

.ggpf .ggpf-q-sub {
	margin-top: calc(15.7 * var(--fu));
	font-size: calc(18 * var(--fu));
	line-height: calc(24 * var(--fu));
	color: var(--pf-soft);
}

/* ---------- Choices (radio fields drawn as cards) ---------- */
.ggpf .gfield_radio {
	display: flex;
	flex-direction: column;
	gap: calc(14 * var(--fu));
}

.ggpf .ggpf-choices--pair .gfield_radio {
	flex-direction: row;
	gap: calc(16 * var(--fu));
}

.ggpf .gchoice {
	position: relative;
	flex: 1 1 0;
}

.ggpf .gchoice input[type="radio"] {
	position: absolute;
	left: calc(29 * var(--fu));
	top: 50%;
	width: calc(24 * var(--fu));
	height: calc(24 * var(--fu));
	margin: calc(-12 * var(--fu)) 0 0;
	opacity: 0;
	cursor: pointer;
}

.ggpf .gchoice label {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(72 * var(--fu));
	padding: calc(13 * var(--fu)) calc(24 * var(--fu)) calc(11 * var(--fu)) calc(68 * var(--fu));
	border: 1px solid var(--pf-line);
	border-radius: calc(18 * var(--fu));
	background: #fff;
	box-shadow: var(--pf-shadow);
	font-weight: 400;
	font-size: calc(18 * var(--fu));
	line-height: calc(24 * var(--fu));
	color: var(--pf-navy);
	cursor: pointer;
	transition: background-color .2s var(--pf-ease), border-color .2s var(--pf-ease), color .2s var(--pf-ease);
}

.ggpf .gchoice label::before {
	content: "";
	position: absolute;
	left: calc(28 * var(--fu));
	top: 50%;
	width: calc(24 * var(--fu));
	height: calc(24 * var(--fu));
	margin-top: calc(-12 * var(--fu));
	border: calc(1.5 * var(--fu)) solid #8fa39b;
	border-radius: 50%;
	background: #fff center / 62% no-repeat;
	transition: background-color .2s var(--pf-ease), border-color .2s var(--pf-ease);
}

/* selected: navy card, white label, lime tick */
.ggpf .gchoice input[type="radio"]:checked + label {
	border-color: var(--pf-navy);
	background: var(--pf-navy);
	color: #fff;
}

.ggpf .gchoice input[type="radio"]:checked + label::before {
	border-color: var(--pf-lime);
	background-color: var(--pf-lime);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f3849' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6'/%3E%3C/svg%3E");
}

.ggpf .gchoice input[type="radio"]:focus-visible + label {
	outline: 2px solid var(--pf-navy);
	outline-offset: 2px;
}

@media (hover: hover) {
	.ggpf .gchoice input[type="radio"]:not(:checked) + label:hover {
		border-color: var(--pf-navy);
	}
}

/* ---------- Text fields ---------- */
.ggpf .gfield:not(.ggpf-choices):not(.ggpf-heading):not(.ggpf-note):not(.ggpf-consent) {
	margin-top: calc(19 * var(--fu));
}

.ggpf .ggpf-heading + .gfield:not(.ggpf-choices),
.ggpf .ggpf-heading + .gfield.ggpf-half + .gfield.ggpf-half {
	margin-top: calc(-1 * var(--fu)) !important;
}

.ggpf .ggpf-choices + .gfield:not(.ggpf-choices):not(.ggpf-note) {
	margin-top: calc(22.6 * var(--fu)) !important;
}

.ggpf .ggpf-choices ~ .gfield.ggpf-half {
	margin-top: calc(22.6 * var(--fu)) !important;
}

.ggpf .gfield_label {
	display: block;
	margin-bottom: calc(9 * var(--fu));
	font-weight: 600;
	font-size: calc(15 * var(--fu));
	line-height: calc(20 * var(--fu));
	color: var(--pf-navy);
}

.ggpf .ginput_container input[type="text"],
.ggpf .ginput_container input[type="tel"],
.ggpf .ginput_container input[type="email"] {
	display: block;
	width: 100%;
	height: calc(64 * var(--fu));
	margin: 0;
	padding: 0 calc(20 * var(--fu));
	border: 1px solid var(--pf-line);
	border-radius: calc(15 * var(--fu));
	background: #fff;
	box-shadow: var(--pf-shadow);
	outline: 0;
	font-family: "Work Sans", sans-serif;
	font-weight: 400;
	font-size: calc(18 * var(--fu));
	line-height: calc(24 * var(--fu));
	color: var(--pf-navy);
	transition: border-color .2s var(--pf-ease), box-shadow .2s var(--pf-ease);
	-webkit-appearance: none;
	appearance: none;
}

/* text fields only: the consent tick box must not pick up the field glow when it is clicked */
.ggpf .ginput_container input[type="text"]:focus,
.ggpf .ginput_container input[type="tel"]:focus,
.ggpf .ginput_container input[type="email"]:focus {
	border-color: var(--pf-navy);
	box-shadow: var(--pf-shadow), 0 0 0 calc(3 * var(--fu)) rgba(174, 254, 124, .6);
}

.ggpf .gfield_description {
	margin-top: calc(8.4 * var(--fu));
	font-size: calc(14 * var(--fu));
	line-height: calc(18 * var(--fu));
	color: var(--pf-soft);
}

/* errors */
.ggpf .gfield_error .ginput_container input[type="text"],
.ggpf .gfield_error .ginput_container input[type="tel"],
.ggpf .gfield_error .ggpf-otp-box {
	border-color: #d9363e;
}

.ggpf .gfield_validation_message,
.ggpf .validation_message {
	margin-top: calc(7.4 * var(--fu));
	font-size: calc(14 * var(--fu));
	line-height: calc(18 * var(--fu));
	color: #d9363e;
}

.ggpf .gfield_error .gfield_description:not(.validation_message) {
	display: none;
}

/* Step 5: a wrong code is reported in the status line under the boxes (see the form script) */
.ggpf .ggpf-otp.is-enhanced .validation_message {
	display: none;
}

/* ---------- Consent ---------- */
.ggpf .gfield.ggpf-consent {
	margin-top: calc(19.6 * var(--fu));
}

.ggpf .ginput_container_consent {
	position: relative;
	padding-left: calc(34 * var(--fu));
}

.ggpf .ginput_container_consent input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 0;
	width: calc(20 * var(--fu));
	height: calc(20 * var(--fu));
	margin: 0;
	border: calc(1.5 * var(--fu)) solid #8fa39b;
	border-radius: calc(5 * var(--fu));
	background: #fff center / 70% no-repeat;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s var(--pf-ease), border-color .2s var(--pf-ease);
}

.ggpf .ginput_container_consent input[type="checkbox"]:checked {
	border-color: var(--pf-navy);
	background-color: var(--pf-navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23aefe7c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6'/%3E%3C/svg%3E");
}

.ggpf .ginput_container_consent input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--pf-navy);
	outline-offset: 2px;
}

.ggpf .gfield_consent_label {
	position: relative;
	top: calc(1 * var(--fu));
	display: block;
	font-size: calc(15 * var(--fu));
	line-height: calc(23 * var(--fu));
	color: var(--pf-soft);
	cursor: pointer;
}

.ggpf .ggpf-consent .gfield_description {
	display: none;
}

.ggpf .gfield_consent_label a {
	font-weight: 600;
	color: var(--pf-navy);
	text-decoration: underline;
}

/* ---------- Verification code (six boxes built by the script over the real field) ---------- */
.ggpf .ggpf-otp .gfield_label {
	margin-bottom: calc(12 * var(--fu));
}

.ggpf .ggpf-otp .ginput_container {
	position: relative;
}

.ggpf .ggpf-otp.is-enhanced .ginput_container > input {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.ggpf-otp-boxes {
	display: flex;
	gap: calc(14 * var(--fu));
}

.ggpf .ginput_container input.ggpf-otp-box {
	width: calc(76 * var(--fu));
	height: calc(88 * var(--fu));
	margin: 0;
	padding: calc(4 * var(--fu)) 0 0;
	border: 1px solid var(--pf-line);
	border-radius: calc(16 * var(--fu));
	background: #fff;
	box-shadow: var(--pf-shadow);
	outline: 0;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: calc(30 * var(--fu));
	line-height: calc(36 * var(--fu));
	text-align: center;
	color: var(--pf-navy);
	caret-color: var(--pf-navy);
	transition: border-color .2s var(--pf-ease), box-shadow .2s var(--pf-ease);
	-webkit-appearance: none;
	appearance: none;
}

.ggpf .ginput_container input.ggpf-otp-box:focus {
	border-color: var(--pf-navy);
	box-shadow: var(--pf-shadow), 0 0 0 calc(3 * var(--fu)) rgba(174, 254, 124, .6);
}

.ggpf-otp-status {
	min-height: calc(18 * var(--fu));
	margin-top: calc(14 * var(--fu)) !important;
	font-size: calc(14 * var(--fu));
	line-height: calc(18 * var(--fu));
	color: var(--pf-soft);
}

.ggpf-otp-status.is-error {
	color: #d9363e;
}

.ggpf-otp-actions {
	display: flex;
	align-items: baseline;
	gap: calc(30 * var(--fu));
	margin-top: calc(21 * var(--fu));
	font-size: calc(15 * var(--fu));
	line-height: calc(20 * var(--fu));
	color: var(--pf-soft);
}

.ggpf .ggpf-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 500;
	color: var(--pf-navy);
	text-decoration: underline;
	cursor: pointer;
}

.ggpf .ggpf-link[disabled] {
	color: var(--pf-soft);
	text-decoration: none;
	cursor: default;
}

/* ---------- Info cards ---------- */
.ggpf .gfield.ggpf-note {
	margin-top: calc(25.6 * var(--fu));
}

.ggpf .ggpf-choices ~ .gfield.ggpf-half ~ .gfield.ggpf-note {
	margin-top: calc(26 * var(--fu));
}

.ggpf-card {
	padding: calc(19.75 * var(--fu)) calc(28 * var(--fu)) calc(24 * var(--fu));
	border-radius: calc(20 * var(--fu));
	background: var(--pf-cream);
	box-shadow: var(--pf-shadow), 0 0 calc(12 * var(--fu)) rgba(31, 56, 73, .05);
}

.ggpf .ggpf-card__title {
	font-weight: 600;
	font-size: calc(15 * var(--fu));
	line-height: calc(20 * var(--fu));
	color: var(--pf-navy);
}

.ggpf .ggpf-card__text {
	margin-top: calc(6 * var(--fu));
	font-size: calc(15 * var(--fu));
	line-height: calc(20 * var(--fu));
	color: var(--pf-soft);
}

/* ---------- Footer: reassurance on the left, Back / Continue on the right ---------- */
.ggpf .gform_page_footer,
.ggpf-done__footer {
	display: flex;
	align-items: center;
	margin-top: calc(48 * var(--fu));
	padding-top: calc(28 * var(--fu));
	border-top: 1px solid var(--pf-track);
}

.ggpf .ggpf-safe {
	order: 1;
	margin-right: auto;
	padding-left: calc(24 * var(--fu));
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 13' fill='none' stroke='%235f7479' stroke-width='1.3'%3E%3Crect x='1.4' y='5.6' width='9.2' height='6.6' rx='1.6'/%3E%3Cpath d='M3.6 5.6V3.9a2.4 2.4 0 0 1 4.8 0v1.7'/%3E%3C/svg%3E") calc(2 * var(--fu)) 50% / calc(12 * var(--fu)) calc(13 * var(--fu)) no-repeat;
	font-size: calc(15 * var(--fu));
	line-height: calc(20 * var(--fu));
	color: var(--pf-soft);
}

.ggpf .gform_page_footer .gform_previous_button,
.ggpf-done__footer .ggpf-btn {
	order: 2;
}

.ggpf .gform_page_footer .gform_next_button,
.ggpf .gform_page_footer .gform_button {
	order: 3;
	margin-left: calc(12 * var(--fu));
}

.ggpf .gform_page_footer button,
.ggpf .gform_page_footer input[type="button"],
.ggpf .gform_page_footer input[type="submit"],
.ggpf .ggpf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(228 * var(--fu));
	height: calc(60 * var(--fu));
	padding: 0 0 calc(2 * var(--fu));
	border: 0;
	border-radius: calc(20 * var(--fu)) calc(20 * var(--fu)) calc(20 * var(--fu)) 0;
	background: var(--pf-lime);
	box-shadow: var(--pf-shadow);
	font-family: "Work Sans", sans-serif;
	font-weight: 600;
	font-size: calc(20 * var(--fu));
	line-height: calc(24 * var(--fu));
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	color: var(--pf-navy);
	cursor: pointer;
	transition: background-color .25s var(--pf-ease), color .25s var(--pf-ease);
	-webkit-appearance: none;
	appearance: none;
}

.ggpf .gform_page_footer .gform_previous_button {
	width: calc(106 * var(--fu));
	background: var(--pf-navy);
	color: #fff;
}

/* Continue stays grey and inactive until the step is answered, then turns green */
.ggpf .gform_page_footer .gform_next_button[disabled],
.ggpf .gform_page_footer .gform_button[disabled] {
	background: var(--pf-track);
	color: #7f908a;
	cursor: default;
}

/* The theme's Bootstrap reset rings every focused <button>, also after a mouse click or a tap, which left a
   dark ring around Back, Continue and the text links. The ring is for keyboard focus only. */
.ggpf button:focus:not(:focus-visible),
.ggpf a:focus:not(:focus-visible),
.ggpf input[type="button"]:focus:not(:focus-visible),
.ggpf input[type="submit"]:focus:not(:focus-visible) {
	outline: 0;
}

.ggpf .gform_page_footer button:focus-visible,
.ggpf .gform_page_footer input:focus-visible,
.ggpf .ggpf-btn:focus-visible {
	outline: 2px solid var(--pf-navy);
	outline-offset: 3px;
}

@media (hover: hover) {
	.ggpf .gform_page_footer .gform_next_button:not([disabled]):hover,
	.ggpf .gform_page_footer .gform_button:not([disabled]):hover,
	.ggpf .ggpf-btn--lime:hover {
		background: var(--pf-navy);
		color: #fff;
	}

	.ggpf .gform_page_footer .gform_previous_button:hover {
		background: #26455a;
	}
}

/* ---------- Confirmation ("That's it! We've got you.") ---------- */
.ggpf .gform_confirmation_wrapper {
	margin-top: calc(-2 * var(--fu));
}

.ggpf-done {
	display: grid;
	grid-template-columns: calc(536 * var(--fu)) calc(744 * var(--fu));
	align-items: start;
}

.ggpf-done > .ggpf-q {
	grid-column: 1;
	margin-top: calc(3 * var(--fu));
}

.ggpf-done__body {
	grid-column: 2;
	padding-top: calc(3 * var(--fu));
}

.ggpf-done__footer {
	grid-column: 1 / 3;
}

.ggpf-done__status {
	display: flex;
	align-items: center;
	gap: calc(28 * var(--fu));
}

.ggpf .ggpf-done__status p {
	font-weight: 600;
	font-size: calc(22 * var(--fu));
	line-height: calc(28 * var(--fu));
	color: var(--pf-navy);
}

.ggpf-check {
	flex: none;
	width: calc(112 * var(--fu));
	height: calc(112 * var(--fu));
	border-radius: 50%;
	background: var(--pf-lime);
	box-shadow: var(--pf-shadow);
	color: var(--pf-navy);
}

.ggpf-check svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ggpf-check circle,
.ggpf-check path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.ggpf-done.is-in .ggpf-check circle {
	animation: ggpf-draw .6s var(--pf-ease) .1s forwards;
}

.ggpf-done.is-in .ggpf-check path {
	animation: ggpf-draw .35s var(--pf-ease) .6s forwards;
}

@keyframes ggpf-draw {
	to { stroke-dashoffset: 0; }
}

.ggpf-card--next {
	margin-top: calc(28 * var(--fu));
	padding: calc(32 * var(--fu)) calc(32 * var(--fu)) calc(34 * var(--fu));
}

.ggpf .ggpf-card--next .ggpf-card__title {
	font-size: calc(22 * var(--fu));
	line-height: calc(28 * var(--fu));
}

.ggpf .ggpf-card--next .ggpf-card__text {
	margin-top: calc(8.7 * var(--fu));
	font-size: calc(18 * var(--fu));
	line-height: calc(24 * var(--fu));
}

.ggpf-missing {
	padding: 24px;
	border: 1px dashed var(--pf-line);
	border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.ggpf * {
		transition: none !important;
	}

	.ggpf-done.is-in .ggpf-check circle,
	.ggpf-done.is-in .ggpf-check path {
		animation: none;
		stroke-dashoffset: 0;
	}
}

/* desktop-only (.ggpf-d) and mobile-only (.ggpf-m) line breaks */
.ggpf .ggpf-m {
	display: none;
}

/* ==========================================================================
   Mobile (design: 393 x 873). 1fu = 1 design px, scaled with the screen width.
   One column; Back / Continue sit at the bottom of the screen.
   ========================================================================== */
@media (max-width: 992px) {
	body.ggpf-page {
		--fu: min(calc(100vw / 393), 1.6px);
		/* the mobile frames are flat: cards, fields, code boxes and buttons carry no drop shadow */
		--pf-shadow: 0 0 0 0 rgba(31, 56, 73, 0);
	}

	.ggpf .ggpf-d {
		display: none;
	}

	.ggpf br.ggpf-m {
		display: inline;
	}

	.ggpf,
	.ggpf-wrap,
	.ggpf .gform_wrapper,
	.ggpf form,
	.ggpf .gform_body,
	.ggpf .gform_page {
		display: flex;
		flex-direction: column;
	}

	.ggpf-wrap,
	.ggpf .gform_wrapper,
	.ggpf form,
	.ggpf .gform_body,
	.ggpf .gform_page {
		flex: 1 0 auto;
	}

	.ggpf .gform_page[style*="display:none"],
	.ggpf .gform_page[style*="display: none"] {
		display: none;
	}

	.ggpf {
		min-height: 100vh;
		min-height: 100svh;
		padding-top: var(--pa-header-h, 100px);
	}

	.ggpf-wrap {
		width: calc(393 * var(--fu));
		max-width: 100%;
		padding: calc(27.8 * var(--fu)) calc(24 * var(--fu)) 0;
	}

	.ggpf .gf_progressbar_title {
		font-size: calc(14 * var(--fu));
		line-height: calc(18 * var(--fu));
	}

	.ggpf .gf_progressbar {
		height: calc(4 * var(--fu));
		margin-top: calc(18 * var(--fu));
	}

	.ggpf .gf_progressbar_percentage::after {
		top: calc(-4 * var(--fu));
		width: calc(12 * var(--fu));
		height: calc(12 * var(--fu));
	}

	.ggpf .gform_body {
		margin-top: calc(53.7 * var(--fu));
	}

	.ggpf .gform_fields {
		display: block;
		min-height: 0;
	}

	.ggpf .gfield.ggpf-heading {
		padding: 0;
		margin-bottom: calc(56.5 * var(--fu));
	}

	.ggpf .gform_page[id$="_2"] .gform_fields,
	.ggpf .gform_page[data-ggpf-step="2"] .gform_fields {
		min-height: 0;
	}

	.ggpf .ggpf-q {
		font-size: calc(30 * var(--fu));
		line-height: calc(30 * var(--fu));
		text-shadow: none;
	}

	.ggpf .ggpf-q-sub {
		margin-top: calc(12.5 * var(--fu));
		font-size: calc(16 * var(--fu));
		line-height: calc(22 * var(--fu));
	}

	/* the long list on step 7 starts higher, as drawn */
	.ggpf .gform_page[data-ggpf-step="7"] .ggpf-heading {
		margin-top: calc(-20 * var(--fu));
		margin-bottom: calc(26.5 * var(--fu));
	}

	/* step 7: a narrower text column, so the two long answers break before "of" as drawn */
	.ggpf .gform_page[data-ggpf-step="7"] .gchoice label {
		padding-left: calc(59 * var(--fu));
		padding-right: calc(59 * var(--fu));
	}

	/* steps 3 and 6: the answer cards start 6px closer to the question, as drawn */
	.ggpf .gform_page[data-ggpf-step="3"] .ggpf-heading,
	.ggpf .gform_page[data-ggpf-step="6"] .ggpf-heading {
		margin-bottom: calc(50.5 * var(--fu));
	}

	.ggpf .gform_page[data-ggpf-step="4"] .ggpf-heading {
		margin-top: calc(-6 * var(--fu));
		margin-bottom: calc(50 * var(--fu));
	}

	/* step 8: the Yes / No pills sit 6px closer to the question, the field 2px closer to the pills, as drawn */
	.ggpf .gform_page[data-ggpf-step="8"] .ggpf-heading {
		margin-bottom: calc(50.5 * var(--fu));
	}

	/* choices: centred text cards; Yes / No as pills */
	.ggpf .gfield_radio {
		width: calc(341 * var(--fu));
		gap: calc(12 * var(--fu));
	}

	.ggpf .gchoice label {
		justify-content: center;
		min-height: calc(64 * var(--fu));
		padding: calc(10 * var(--fu)) calc(44 * var(--fu));
		border-radius: calc(20 * var(--fu));
		font-size: calc(16 * var(--fu));
		line-height: calc(20 * var(--fu));
		text-align: center;
	}

	.ggpf .gchoice label::before {
		left: auto;
		right: calc(16 * var(--fu));
		width: calc(20 * var(--fu));
		height: calc(20 * var(--fu));
		margin-top: calc(-10 * var(--fu));
		border: 0;
		background-color: transparent;
		opacity: 0;
	}

	.ggpf .gchoice input[type="radio"]:checked + label::before {
		opacity: 1;
	}

	.ggpf .gchoice input[type="radio"] {
		left: auto;
		right: calc(16 * var(--fu));
	}

	.ggpf .ggpf-choices--pair .gfield_radio {
		width: calc(345 * var(--fu));
		gap: calc(13 * var(--fu));
	}

	.ggpf .ggpf-choices--pair .gchoice label {
		min-height: calc(56 * var(--fu));
		border-width: calc(2 * var(--fu));
		border-radius: calc(28 * var(--fu));
		font-weight: 600;
	}

	/* fields */
	.ggpf .gfield:not(.ggpf-choices):not(.ggpf-heading):not(.ggpf-note):not(.ggpf-consent) {
		margin-top: calc(17 * var(--fu));
	}

	.ggpf .ggpf-heading + .gfield:not(.ggpf-choices),
	.ggpf .ggpf-heading + .gfield.ggpf-half + .gfield.ggpf-half {
		margin-top: 0 !important;
	}

	.ggpf .ggpf-heading + .gfield.ggpf-half + .gfield.ggpf-half {
		margin-top: calc(17 * var(--fu)) !important;
	}

	.ggpf .ggpf-choices + .gfield:not(.ggpf-choices):not(.ggpf-note),
	.ggpf .ggpf-choices ~ .gfield.ggpf-half {
		margin-top: calc(50 * var(--fu)) !important;
	}

	.ggpf .ggpf-choices ~ .gfield.ggpf-half + .gfield.ggpf-half {
		margin-top: calc(17 * var(--fu)) !important;
	}

	.ggpf .gfield_label {
		margin-bottom: calc(9 * var(--fu));
		font-size: calc(14 * var(--fu));
		line-height: calc(18 * var(--fu));
	}

	.ggpf .ginput_container input[type="text"],
	.ggpf .ginput_container input[type="tel"],
	.ggpf .ginput_container input[type="email"] {
		height: calc(58 * var(--fu));
		padding: 0 calc(15 * var(--fu));
		border-radius: calc(11 * var(--fu));
		font-size: calc(18 * var(--fu));
	}

	.ggpf .gfield_description,
	.ggpf .gfield_validation_message,
	.ggpf .validation_message {
		margin-top: calc(9.5 * var(--fu));
		font-size: calc(12 * var(--fu));
		line-height: calc(16 * var(--fu));
	}

	.ggpf .gfield.ggpf-consent {
		margin-top: calc(42.5 * var(--fu));
	}

	.ggpf .ginput_container_consent {
		padding-left: calc(33 * var(--fu));
	}

	.ggpf .gfield_consent_label {
		font-size: calc(13 * var(--fu));
		line-height: calc(19 * var(--fu));
	}

	/* verification code */
	.ggpf-otp-boxes {
		gap: calc(9 * var(--fu));
	}

	.ggpf .ginput_container input.ggpf-otp-box {
		width: calc(50 * var(--fu));
		height: calc(62 * var(--fu));
		padding: calc(2 * var(--fu)) 0 0;
		border-radius: calc(12 * var(--fu));
		font-size: calc(22 * var(--fu));
		line-height: calc(28 * var(--fu));
	}

	.ggpf .ggpf-otp .gfield_label {
		margin-bottom: calc(11 * var(--fu));
	}

	.ggpf-otp-status {
		font-size: calc(13 * var(--fu));
	}

	.ggpf-otp-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: calc(19 * var(--fu));
		margin-top: calc(48 * var(--fu));
		font-size: calc(14 * var(--fu));
		line-height: calc(18 * var(--fu));
	}

	/* info cards: flat, slightly darker than the page */
	.ggpf .gfield.ggpf-note,
	.ggpf .ggpf-choices ~ .gfield.ggpf-half ~ .gfield.ggpf-note {
		margin-top: calc(48 * var(--fu));
	}

	.ggpf-card {
		padding: calc(19 * var(--fu)) calc(18 * var(--fu)) calc(18 * var(--fu));
		background: #e9f0e5;
		box-shadow: none;
	}

	.ggpf .ggpf-card__title {
		font-size: calc(14 * var(--fu));
		line-height: calc(18 * var(--fu));
	}

	.ggpf .ggpf-card__text {
		margin-top: calc(5 * var(--fu));
		font-size: calc(13 * var(--fu));
		line-height: calc(19 * var(--fu));
	}

	/* Back / Continue at the bottom of the screen, reassurance centred underneath */
	.ggpf .gform_page_footer {
		flex-wrap: wrap;
		margin-top: auto;
		padding: calc(30 * var(--fu)) 0 calc(37.4 * var(--fu));
		border-top: 0;
	}

	.ggpf .gform_page_footer .gform_previous_button {
		order: 1;
	}

	.ggpf .gform_page_footer .gform_next_button,
	.ggpf .gform_page_footer .gform_button {
		order: 2;
		flex: 1 1 0;
		width: auto;
		margin-left: 0;
	}

	.ggpf .gform_page_footer .gform_previous_button + .ggpf-safe + .gform_next_button,
	.ggpf .gform_page_footer .gform_previous_button + .ggpf-safe + .gform_button,
	.ggpf .gform_page_footer .gform_previous_button ~ .gform_next_button,
	.ggpf .gform_page_footer .gform_previous_button ~ .gform_button {
		margin-left: calc(11 * var(--fu));
	}

	.ggpf .ggpf-safe {
		order: 3;
		width: 100%;
		margin: calc(14.6 * var(--fu)) 0 0;
		padding-left: 0;
		background: none;
		font-size: calc(12 * var(--fu));
		line-height: calc(16 * var(--fu));
		text-align: center;
	}

	/* confirmation */
	.ggpf .gform_confirmation_wrapper,
	.ggpf .gform_confirmation_message,
	.ggpf-done {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		margin-top: 0;
	}

	.ggpf-done > .ggpf-q {
		margin-top: calc(5.7 * var(--fu));
	}

	.ggpf-done__body {
		padding-top: calc(66.5 * var(--fu));
	}

	.ggpf-done__status {
		flex-direction: column;
		gap: calc(18.6 * var(--fu));
	}

	/* two lines, left-aligned with each other, the pair centred under the tick (as drawn) */
	.ggpf .ggpf-done__status p {
		max-width: calc(200 * var(--fu));
		padding-left: calc(6.5 * var(--fu));
		font-size: calc(16 * var(--fu));
		line-height: calc(19 * var(--fu));
		text-align: left;
	}

	.ggpf-check {
		width: calc(137 * var(--fu));
		height: calc(137 * var(--fu));
		box-shadow: none;
	}

	.ggpf-card--next {
		margin-top: calc(23.4 * var(--fu));
		padding: calc(19.1 * var(--fu)) calc(20 * var(--fu)) calc(18.7 * var(--fu));
		background: #fff;
	}

	.ggpf .ggpf-card--next .ggpf-card__title {
		font-size: calc(20 * var(--fu));
		line-height: calc(24 * var(--fu));
	}

	.ggpf .ggpf-card--next .ggpf-card__text {
		margin-top: calc(18.2 * var(--fu));
		font-size: calc(16 * var(--fu));
		line-height: calc(20 * var(--fu));
	}

	.ggpf-done__footer {
		justify-content: center;
		margin-top: auto;
		padding: calc(30 * var(--fu)) 0 calc(68 * var(--fu));
		border-top: 0;
	}

	.ggpf-done__footer .ggpf-safe {
		display: none;
	}

}

/* ---------- Mobile fine-tuning, measured against the design ---------- */
@media (max-width: 992px) {
	.ggpf-wrap {
		padding-top: calc(25.8 * var(--fu));
	}

	.ggpf .gf_progressbar {
		height: calc(6 * var(--fu));
		margin-top: calc(18 * var(--fu));
	}

	.ggpf .gf_progressbar_percentage::after {
		top: calc(-4 * var(--fu));
		width: calc(14 * var(--fu));
		height: calc(14 * var(--fu));
	}

	.ggpf .gform_body {
		margin-top: calc(53.7 * var(--fu));
	}

	.ggpf .gchoice label {
		font-size: calc(16 * var(--fu));
	}

	.ggpf .ggpf-choices--pair .gchoice label {
		font-size: calc(18 * var(--fu));
	}

	.ggpf .gchoice label::before,
	.ggpf .gchoice input[type="radio"] {
		right: calc(13.5 * var(--fu));
	}

	.ggpf .gfield_label {
		margin-bottom: calc(7 * var(--fu));
	}

	.ggpf .gfield:not(.ggpf-choices):not(.ggpf-heading):not(.ggpf-note):not(.ggpf-consent),
	.ggpf .ggpf-heading + .gfield.ggpf-half + .gfield.ggpf-half,
	.ggpf .ggpf-choices ~ .gfield.ggpf-half + .gfield.ggpf-half {
		margin-top: calc(19 * var(--fu)) !important;
	}

	.ggpf .ggpf-heading + .gfield:not(.ggpf-choices) {
		margin-top: 0 !important;
	}

	.ggpf .gform_fields .ggpf-choices + .gfield:not(.ggpf-choices):not(.ggpf-heading):not(.ggpf-note):not(.ggpf-consent),
	.ggpf .gform_fields .ggpf-choices + .gfield + .gfield + .gfield.ggpf-half:not(.ggpf-choices):not(.ggpf-heading):not(.ggpf-note):not(.ggpf-consent) {
		margin-top: calc(51 * var(--fu)) !important;
	}

	.ggpf .gform_page[data-ggpf-step="4"] .ggpf-heading {
		margin-bottom: calc(48 * var(--fu));
	}

	.ggpf .gform_page[data-ggpf-step="5"] .ggpf-heading {
		margin-bottom: calc(46.5 * var(--fu));
	}

	.ggpf .gform_page[data-ggpf-step="8"] .gform_fields .ggpf-choices + .gfield:not(.ggpf-choices):not(.ggpf-heading):not(.ggpf-note):not(.ggpf-consent),
	.ggpf .gform_page[data-ggpf-step="8"] .gform_fields .ggpf-choices + .gfield + .gfield + .gfield.ggpf-half:not(.ggpf-choices):not(.ggpf-heading):not(.ggpf-note):not(.ggpf-consent) {
		margin-top: calc(49 * var(--fu)) !important;
	}

	.ggpf-otp-status {
		margin-top: calc(11 * var(--fu)) !important;
	}

	.ggpf-otp-actions {
		gap: calc(18 * var(--fu));
		margin-top: calc(49 * var(--fu));
	}

	.ggpf-card {
		padding: calc(18 * var(--fu)) calc(18 * var(--fu)) calc(17 * var(--fu));
	}

	.ggpf-done__status {
		gap: calc(15.6 * var(--fu));
	}

	.ggpf-done {
		align-items: stretch;
	}

	.ggpf-done > .ggpf-q {
		margin-top: calc(8.7 * var(--fu));
	}

	.ggpf-card--next {
		margin-top: calc(25.4 * var(--fu));
		padding: calc(20.1 * var(--fu)) calc(20 * var(--fu)) calc(18.7 * var(--fu));
	}

	.ggpf .ggpf-card--next .ggpf-card__text {
		margin-top: calc(17.2 * var(--fu));
	}

	.ggpf-done__footer {
		display: block;
		padding-bottom: calc(60 * var(--fu));
		text-align: center;
	}

	.ggpf-done__footer .ggpf-btn {
		height: calc(68 * var(--fu));
	}
}
