/**
 * FinX lead form styling.
 *
 * Layout, spacing and control metrics follow the reference application form;
 * the accent stays Predigo blue on the buttons, with blue tints everywhere else.
 *
 * Headings, links and buttons are scoped under `.pf-wrap` because the theme and
 * the Elementor kit style those bare elements (`.elementor-kit-6 h2`, `button`,
 * `a`) with the same or higher specificity and load after this file.
 */

.pf-wrap {
	--pf-blue: #0055d1;
	--pf-blue-dark: #0044a8;
	--pf-blue-700: #0b3c8c;
	--pf-blue-200: #c9dcf5;
	--pf-blue-100: #e6eefa;
	--pf-ink: #121921;
	--pf-ink-soft: #4a5568;
	--pf-ink-muted: #8a93a0;
	--pf-line: #c7ccd4;
	--pf-line-soft: #e2e5ea;
	--pf-danger: #d93025;
	--pf-link: #0055d1;
	--pf-link-hover: #0044a8;
	--pf-focus-ring: rgba(0, 85, 209, 0.12);
	--pf-on-blue: #fff;

	color: var(--pf-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	padding: 40px 32px 72px;
}

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

.pf-container {
	margin: 0;
	max-width: none;
}

.pf-layout {
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

/* Without a sidebar the form takes the whole width. */
.pf-layout:not(:has(.pf-aside)) {
	grid-template-columns: minmax(0, 1fr);
}

.pf-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pf-form {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.pf-hero {
	margin-bottom: 32px;
}

.pf-head {
	align-items: center;
	display: flex;
	margin-bottom: 20px;
}

.pf-head img {
	display: block;
	height: auto;
	max-width: 200px;
}

.pf-logo-text {
	color: var(--pf-ink);
	font-size: 24px;
	font-weight: 700;
}

.pf-eyebrow {
	align-items: center;
	color: var(--pf-ink-soft);
	display: flex;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.pf-eyebrow::before {
	background: var(--pf-blue-200);
	content: "";
	height: 14px;
	margin-right: 12px;
	width: 3px;
}

.pf-wrap .pf-form-title {
	color: var(--pf-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 44px;
	font-weight: 400;
	line-height: 1.12;
	margin: 0;
}

.pf-hero-intro {
	color: var(--pf-ink-soft);
	font-size: 16px;
	margin: 16px 0 0;
	max-width: 52ch;
}

.pf-hero-links {
	margin: 16px 0 0;
}

.pf-wrap .pf-hero-links a {
	color: var(--pf-blue-700);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pf-wrap .pf-hero-links a:hover {
	text-decoration: underline;
}

.pf-stepper {
	margin-bottom: 24px;
}

.pf-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.pf-step-item {
	align-items: center;
	color: var(--pf-ink-muted);
	display: flex;
	flex: 1 1 0;
	font-size: 14px;
	gap: 10px;
	justify-content: center;
	text-align: center;
}

.pf-step-number {
	align-items: center;
	border: 1px solid var(--pf-line);
	border-radius: 999px;
	display: flex;
	font-size: 12px;
	font-weight: 600;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.pf-step-item.is-active {
	color: var(--pf-ink);
	font-weight: 600;
}

.pf-step-item.is-active .pf-step-number {
	background: var(--pf-blue);
	border-color: var(--pf-blue);
	color: #fff;
}

.pf-step-item.is-done .pf-step-number {
	background: var(--pf-blue-200);
	border-color: var(--pf-blue-200);
	color: var(--pf-blue-700);
}

.pf-progress {
	background: var(--pf-blue-100);
	border-radius: 999px;
	display: block;
	height: 2px;
	overflow: hidden;
}

.pf-progress-bar {
	background: var(--pf-blue);
	display: block;
	height: 100%;
	transition: width 0.25s ease;
	width: 50%;
}

.pf-step-count {
	color: var(--pf-ink-muted);
	font-size: 13px;
	margin: 12px 0 0;
	text-align: center;
}

.pf-card {
	background: #fff;
	border: 1px solid var(--pf-line-soft);
	border-radius: 28px;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 28px;
}

.pf-wrap .pf-card-title {
	color: var(--pf-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.pf-card-subtitle {
	color: var(--pf-ink-soft);
	font-size: 14px;
	margin: 8px 0 0;
}

.pf-step {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.pf-wrap .pf-section-title {
	color: var(--pf-blue-700);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 28px 0 14px;
	text-transform: uppercase;
}

.pf-grid {
	display: grid;
	gap: 18px 16px;
	grid-template-columns: repeat(12, 1fr);
}

.pf-col-3 {
	grid-column: span 3;
}

.pf-col-4 {
	grid-column: span 4;
}

.pf-col-6 {
	grid-column: span 6;
}

.pf-col-8 {
	grid-column: span 8;
}

.pf-col-12 {
	grid-column: span 12;
}

.pf-label {
	color: var(--pf-ink);
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	margin-bottom: 6px;
}

.pf-field input[type="text"],
.pf-field input[type="email"],
.pf-field input[type="tel"],
.pf-field select {
	background: #fff;
	border: 1px solid var(--pf-line);
	border-radius: 16px;
	color: var(--pf-ink);
	font-family: inherit;
	font-size: 14px;
	height: 44px;
	padding: 0 12px;
	width: 100%;
}

.pf-dob {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1.6fr 1.2fr;
}

.pf-help {
	color: var(--pf-ink-muted);
	font-size: 13px;
	margin: 6px 0 0;
}

/* The `+1` reads as part of the control but is a label, not an input: it
   cannot be typed over, deleted or submitted. */
.pf-phone {
	display: flex;
}

.pf-phone-prefix {
	align-items: center;
	background: var(--pf-blue-100);
	border: 1px solid var(--pf-line);
	border-radius: 16px 0 0 16px;
	border-right: 0;
	color: var(--pf-ink-soft);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 14px;
	height: 44px;
	padding: 0 12px;
}

.pf-field .pf-phone input[type="tel"] {
	border-radius: 0 16px 16px 0;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
}

.pf-phone:focus-within .pf-phone-prefix {
	border-color: var(--pf-blue);
}

.pf-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a5568' stroke-width='1.6'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	padding-right: 40px;
}

.pf-field input:focus,
.pf-field select:focus {
	border-color: var(--pf-blue);
	box-shadow: 0 0 0 3px var(--pf-focus-ring);
	outline: none;
}

/* flatpickr ships its own stylesheet, enqueued before this one, so these win.
   The calendar follows the brand colour set in the settings. */
.flatpickr-calendar {
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(18, 25, 33, 0.16);
	font-family: inherit;
}

.flatpickr-calendar .flatpickr-months .flatpickr-month,
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
	color: var(--pf-ink);
	fill: var(--pf-ink);
}

/* Year list added by form.js in place of the year spinner. */
.flatpickr-calendar .flatpickr-yearDropdown {
	appearance: menulist;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-weight: 300;
	margin-left: 4px;
	padding: 0 2px;
	width: auto;
}

.flatpickr-calendar span.flatpickr-weekday {
	color: var(--pf-ink-muted);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
	background: var(--pf-blue-100);
	border-color: var(--pf-blue-100);
}

.flatpickr-day.today {
	border-color: var(--pf-blue);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
	background: var(--pf-blue);
	border-color: var(--pf-blue);
	color: var(--pf-on-blue);
}

.pf-chips {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pf-chip {
	align-items: center;
	border: 1px solid var(--pf-line);
	border-radius: 16px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 2px;
	justify-content: center;
	min-height: 60px;
	padding: 10px 14px;
	position: relative;
	text-align: center;
}

.pf-chip input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.pf-chip-amount {
	font-size: 15px;
	font-weight: 600;
}

.pf-chip-months {
	color: var(--pf-ink-muted);
	font-size: 12px;
}

.pf-chip:has(input:checked) {
	background: var(--pf-blue-100);
	border-color: var(--pf-blue);
}

.pf-chip:has(input:checked) .pf-chip-amount {
	color: var(--pf-blue-700);
}

.pf-chip:has(input:focus-visible) {
	box-shadow: 0 0 0 3px var(--pf-focus-ring);
}

.pf-handlings {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pf-handling {
	border: 1px solid var(--pf-line);
	border-radius: 16px;
	cursor: pointer;
	display: grid;
	gap: 6px 12px;
	grid-template-columns: auto 1fr;
	padding: 18px;
}

.pf-handling:has(input:checked) {
	background: var(--pf-blue-100);
	border-color: var(--pf-blue);
}

.pf-handling input {
	accent-color: var(--pf-blue);
	align-self: center;
	flex: 0 0 auto;
	grid-column: 1;
	grid-row: 1;
	height: 18px;
	margin: 0;
	width: 18px;
}

.pf-handling-title {
	align-self: center;
	font-size: 15px;
	font-weight: 600;
	grid-column: 2;
	grid-row: 1;
}

.pf-handling-text,
.pf-handling-price,
.pf-handling-note {
	grid-column: 1 / -1;
}

.pf-handling-text {
	color: var(--pf-ink-soft);
	font-size: 13px;
}

.pf-handling-price {
	font-size: 15px;
	font-weight: 600;
}

.pf-handling-note {
	color: var(--pf-ink-muted);
	font-size: 12px;
}

.pf-checkbox {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	gap: 12px;
}

.pf-checkbox input {
	accent-color: var(--pf-blue);
	flex: 0 0 auto;
	height: 18px;
	margin: 2px 0 0;
	width: 18px;
}

.pf-checkbox-text .pf-label {
	color: var(--pf-ink-soft);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.pf-wrap .pf-checkbox a {
	color: var(--pf-link);
	text-decoration: underline;
}

.pf-consent {
	border: 1px solid var(--pf-blue-200);
	border-radius: 16px;
	margin-top: 20px;
	padding: 16px;
}

.pf-consent iframe {
	background: #fff;
	border: 0;
	border-radius: 12px;
	display: block;
	min-height: 220px;
	width: 100%;
}

.pf-consent-status {
	color: var(--pf-ink-soft);
	font-size: 13px;
	margin: 10px 0 0;
}

.pf-consent-status--ok {
	color: #15803d;
}

.pf-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 40px;
}

.pf-wrap .pf-back {
	align-items: center;
	background: none;
	border: 0;
	color: var(--pf-ink-soft);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 14px;
	gap: 8px;
	padding: 0;
}

.pf-wrap .pf-back:hover {
	color: var(--pf-ink);
}

.pf-wrap .pf-button {
	align-items: center;
	background: var(--pf-blue);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	height: 44px;
	padding: 10px 28px;
}

.pf-chevron {
	display: block;
	flex: 0 0 auto;
}

.pf-wrap .pf-button:hover {
	background: var(--pf-blue-dark);
}

.pf-wrap .pf-button[disabled] {
	cursor: progress;
	opacity: 0.7;
}

.pf-error {
	color: var(--pf-danger);
	display: none;
	font-size: 13px;
	margin: 6px 0 0;
}

.pf-field--invalid .pf-error {
	display: block;
}

.pf-field--invalid input,
.pf-field--invalid select {
	border-color: var(--pf-danger);
}

.pf-alert {
	font-size: 14px;
	margin: 0 0 20px;
}

.pf-alert--warning {
	color: #8a5b00;
}

.pf-alert--error {
	color: #991b1b;
}

.pf-alert--error[data-pf-summary] {
	margin: 20px 0 0;
	text-align: right;
}

.pf-note {
	color: var(--pf-ink-muted);
	font-size: 13px;
	margin: 16px 0 0;
	text-align: center;
}

.pf-honeypot {
	left: -9999px;
	position: absolute;
}

.pf-footer {
	border-top: 1px solid var(--pf-line-soft);
	margin: 32px -28px 0;
	padding: 20px 28px 0;
}

.pf-footer-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.pf-wrap .pf-footer-links a {
	color: var(--pf-ink-muted);
	font-size: 13px;
	text-decoration: none;
}

.pf-wrap .pf-footer-links a:hover {
	color: var(--pf-ink);
}

.pf-globe {
	font-size: 14px;
}

.pf-aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.pf-aside-card {
	background: #fff;
	border: 1px solid var(--pf-line-soft);
	border-radius: 20px;
	padding: 22px;
}

.pf-wrap .pf-aside-title {
	color: var(--pf-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 14px;
}

.pf-aside-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pf-aside-item-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.pf-aside-item-text {
	color: var(--pf-ink-soft);
	display: block;
	font-size: 13px;
	margin-top: 2px;
}

.pf-aside-note {
	color: var(--pf-ink-muted);
	font-size: 12px;
	margin: 0;
}

@media (max-width: 1000px) {
	.pf-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.pf-wrap .pf-form-title {
		font-size: 34px;
	}

	.pf-actions {
		padding-top: 32px;
	}
}

@media (max-width: 700px) {
	.pf-wrap {
		padding: 24px 12px 56px;
	}
	.pf-card {
		border-radius: 20px;
		padding: 20px;
	}

	.pf-footer {
		margin: 28px -20px 0;
		padding: 18px 20px 0;
	}

	.pf-col-3,
	.pf-col-4,
	.pf-col-6,
	.pf-col-8 {
		grid-column: span 12;
	}

	.pf-grid {
		gap: 16px 12px;
	}

	.pf-steps {
		gap: 18px;
	}

	.pf-chips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pf-handlings {
		grid-template-columns: minmax(0, 1fr);
	}

	.pf-actions {
		gap: 12px;
	}

	.pf-wrap .pf-button {
		justify-content: center;
		width: 100%;
	}

	.pf-wrap .pf-form-title {
		font-size: 28px;
	}
}

/**
 * Brand colours, last word.
 *
 * The theme and the Elementor kit style bare `a` and `button` elements with
 * selectors that can match or beat the ones above, and the stylesheet that made
 * the buttons hover pink could not be located. This block therefore re-states
 * the brand colours with `!important` so no external rule can repaint a link or
 * a button, whatever it is and whenever it loads.
 *
 * The one exception is the consent button: it lives inside FinX's kiipr iframe,
 * which this stylesheet cannot reach at all.
 *
 * Order matters here: the generic rule comes first so the scoped ones below it
 * win, `!important` declarations being resolved by source order.
 */

.pf-wrap a {
	color: var(--pf-link) !important;
}

.pf-wrap a:hover,
.pf-wrap a:focus-visible,
.pf-wrap a:active {
	color: var(--pf-link-hover) !important;
	text-decoration: underline;
}

.pf-wrap .pf-hero-links a {
	color: var(--pf-blue-700) !important;
}

.pf-wrap .pf-hero-links a:hover,
.pf-wrap .pf-hero-links a:focus-visible,
.pf-wrap .pf-hero-links a:active,
.pf-wrap .pf-footer-links a:hover,
.pf-wrap .pf-footer-links a:focus-visible,
.pf-wrap .pf-footer-links a:active,
.pf-wrap .pf-back:hover,
.pf-wrap .pf-back:focus-visible,
.pf-wrap .pf-back:active {
	color: var(--pf-link-hover) !important;
}

.pf-wrap .pf-footer-links a {
	color: var(--pf-ink-muted) !important;
}

.pf-wrap .pf-back {
	background: none !important;
	border: 0 !important;
	color: var(--pf-ink-soft) !important;
}

.pf-wrap .pf-button,
.pf-wrap .pf-button:hover,
.pf-wrap .pf-button:focus-visible,
.pf-wrap .pf-button:active {
	background: var(--pf-blue) !important;
	color: var(--pf-on-blue) !important;
}

.pf-wrap .pf-button:hover,
.pf-wrap .pf-button:focus-visible,
.pf-wrap .pf-button:active {
	background: var(--pf-blue-dark) !important;
}

.pf-field input:focus,
.pf-field select:focus,
.pf-chip:has(input:focus-visible) {
	box-shadow: 0 0 0 3px var(--pf-focus-ring) !important;
}
