/* Free Visa Consultation – front end.
   Typography (font family, headings, colours of body text) is inherited from the theme. */

/* Plugin list items: full reset with !important so theme/page list styles can't leak in.
   More specific plugin rules below (also !important) then apply the real styling. */
.fvb-checklist:is(#fvb-x, *) li,
.fvb-steps:is(#fvb-x, *) li,
.fvb-bk-meta:is(#fvb-x, *) li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
	text-indent: 0 !important;
	text-align: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: normal !important;
	line-height: inherit !important;
	color: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}
.fvb-checklist:is(#fvb-x, *) li::before,
.fvb-steps:is(#fvb-x, *) li::before {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	text-indent: 0 !important;
	font-family: inherit !important;
	font-style: normal !important;
	text-decoration: none !important;
	clip: auto !important;
	clip-path: none !important;
}
.fvb-checklist:is(#fvb-x, *) li::marker,
.fvb-steps:is(#fvb-x, *) li::marker,
.fvb-bk-meta:is(#fvb-x, *) li::marker { content: "" !important; }
.fvb-checklist:is(#fvb-x, *) li::after,
.fvb-steps:is(#fvb-x, *) li::after,
.fvb-bk-meta:is(#fvb-x, *) li::after { content: none !important; display: none !important; }
.fvb-bk-meta:is(#fvb-x, *) li::before { content: none !important; display: none !important; }

.fvb-container {
	container-type: inline-size;
	container-name: fvc;
	margin: 0 0 2rem;
}

/* Mobile-first: one column in DOM order (intro paragraph → form → rest of content). */
.fvb-wrap {
	--fvb-accent: #1f5fbf;
	--fvb-border: #d5dbe5;
	--fvb-muted: #6b7385;
	--fvb-error: #c62828;
	--fvb-radius: 10px;
	--fvb-tint: #f3f7fd;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 1.75rem;
	align-items: start;
}

/* Wide container: content on the left, form on the right spanning both rows. */
@container fvc (min-width: 820px) {
	.fvb-wrap {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
		grid-template-rows: auto 1fr;
		grid-template-areas: "lead form" "rest form";
		column-gap: 2.5rem;
		row-gap: 0;
	}
	.fvb-content--lead { grid-area: lead; }
	.fvb-content--rest { grid-area: rest; margin-top: 1.5rem; }
	.fvb-wrap .fvb-form-card { grid-area: form; }
	.fvb-wrap--no-rest { grid-template-areas: "lead form"; grid-template-rows: auto; }
	.fvb-wrap--form-only { grid-template-columns: minmax(0, 760px); grid-template-areas: "form"; }
}

/* Older browsers without container queries. */
@supports not (container-type: inline-size) {
	@media (min-width: 1024px) {
		.fvb-wrap {
			grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
			grid-template-rows: auto 1fr;
			grid-template-areas: "lead form" "rest form";
			column-gap: 2.5rem;
			row-gap: 0;
		}
		.fvb-content--lead { grid-area: lead; }
		.fvb-content--rest { grid-area: rest; margin-top: 1.5rem; }
		.fvb-wrap .fvb-form-card { grid-area: form; }
		.fvb-wrap--no-rest { grid-template-areas: "lead form"; grid-template-rows: auto; }
		.fvb-wrap--form-only { grid-template-columns: minmax(0, 760px); grid-template-areas: "form"; }
	}
}

@supports (background: color-mix(in srgb, red 10%, white)) {
	.fvb-wrap {
		--fvb-tint: color-mix(in srgb, var(--fvb-accent) 7%, #fff);
	}
}

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

.fvb-content {
	min-width: 0;
}

.fvb-content > :first-child { margin-top: 0; }
.fvb-content > :last-child { margin-bottom: 0; }

.fvb-form-card {
	min-width: 0;
	background: #fff;
	color: #1d2433;
	border: 1px solid var(--fvb-border);
	border-top: 4px solid var(--fvb-accent);
	border-radius: var(--fvb-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: 0 10px 30px -12px rgba(20, 35, 70, 0.18);
	scroll-margin-top: 90px;
}

.fvb-wrap--form-only .fvb-form-card {
	max-width: 760px;
}

/* ---------- Intro content ---------- */


.fvb-lead {
	font-size: 1.15em;
	line-height: 1.6;
}

.fvb-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 2rem;
}

.fvb-feature {
	background: #fff;
	border: 1px solid var(--fvb-border);
	border-radius: var(--fvb-radius);
	padding: 1.15rem 1.2rem;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.fvb-feature:hover {
	transform: translateY(-2px);
	border-color: var(--fvb-accent);
	box-shadow: 0 8px 22px -12px rgba(20, 35, 70, 0.25);
}

.fvb-feature h3 {
	margin: .55rem 0 .4rem;
	font-size: 1.05em;
	line-height: 1.35;
}

.fvb-feature p {
	margin: 0;
	font-size: .94em;
	line-height: 1.6;
}

.fvb-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--fvb-tint);
	font-size: 22px;
	line-height: 1;
}

.fvb-highlight {
	background: var(--fvb-tint);
	border-left: 5px solid var(--fvb-accent);
	border-radius: var(--fvb-radius);
	padding: 1.4rem 1.5rem;
	margin: 2rem 0;
}

.fvb-highlight h2 { margin-top: 0; }

.fvb-checklist {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: .55rem 1.25rem;
}

.fvb-checklist:is(#fvb-x, *) li {
	position: relative !important;
	padding-left: 1.75rem !important;
	margin: 0 !important;
}

.fvb-checklist:is(#fvb-x, *) li::before {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	top: .2em !important;
	width: 1.15em !important;
	height: 1.15em !important;
	border-radius: 50% !important;
	background: var(--fvb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat !important;
}

.fvb-disclaimer {
	font-size: .82em;
	color: var(--fvb-muted);
	margin-bottom: 0;
}

.fvb-steps {
	list-style: none;
	counter-reset: fvb-step;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
}

.fvb-steps:is(#fvb-x, *) li {
	counter-increment: fvb-step !important;
	position: relative !important;
	margin: 0 !important;
	padding: 3.1rem 1rem 1rem !important;
	border: 1px dashed var(--fvb-border) !important;
	border-radius: var(--fvb-radius) !important;
	font-size: .94em !important;
	line-height: 1.55 !important;
}

.fvb-steps:is(#fvb-x, *) li::before {
	content: counter(fvb-step) !important;
	position: absolute !important;
	top: 1rem !important;
	left: 1rem !important;
	width: 1.8rem !important;
	height: 1.8rem !important;
	border-radius: 50% !important;
	background: var(--fvb-accent) !important;
	color: #fff !important;
	font-weight: 700 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.fvb-steps strong {
	display: block;
	margin-bottom: .2rem;
}

/* ---------- Form ---------- */

.fvb-form-title {
	margin: 0 0 .35rem;
	font-size: 1.45em;
	line-height: 1.3;
}

.fvb-form-intro {
	margin: 0 0 1.25rem;
	color: var(--fvb-muted);
	font-size: .95em;
}

.fvb-form { margin: 0; }

.fvb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0 1rem;
}

.fvb-field {
	margin: 0 0 1.05rem;
	min-width: 0;
}

.fvb-field > label,
.fvb-fieldset legend {
	display: block;
	margin: 0 0 .4rem;
	font-size: .9em;
	font-weight: 600;
	color: #1d2433;
}

.fvb-req { color: var(--fvb-error); }

.fvb-optional {
	font-weight: 400;
	color: var(--fvb-muted);
	font-size: .92em;
}

.fvb-form input[type="text"],
.fvb-form input[type="email"],
.fvb-form input[type="tel"],
.fvb-form select,
.fvb-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	margin: 0;
	padding: .65rem .85rem;
	font: inherit;
	font-size: 16px; /* prevents iOS zoom */
	line-height: 1.4;
	color: #1d2433;
	background-color: #fff;
	border: 1px solid var(--fvb-border);
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fvb-form textarea {
	min-height: 110px;
	resize: vertical;
}

.fvb-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.4rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7385' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .8rem center;
	background-size: 16px;
	cursor: pointer;
}

.fvb-form input::placeholder,
.fvb-form textarea::placeholder { color: #9aa3b2; opacity: 1; }

.fvb-form input:focus,
.fvb-form select:focus,
.fvb-form textarea:focus {
	outline: none;
	border-color: var(--fvb-accent);
	box-shadow: 0 0 0 3px rgba(31, 95, 191, .18);
}

@supports (background: color-mix(in srgb, red 10%, white)) {
	.fvb-form input:focus,
	.fvb-form select:focus,
	.fvb-form textarea:focus {
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--fvb-accent) 22%, transparent);
	}
}

/* Phone with fixed +44 prefix */
.fvb-wrap .fvb-form .fvb-phone {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--fvb-border);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fvb-wrap .fvb-form .fvb-phone:focus-within {
	border-color: var(--fvb-accent);
	box-shadow: 0 0 0 3px rgba(31, 95, 191, .18);
}

.fvb-wrap .fvb-form .fvb-phone-prefix {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: .4rem;
	margin: 0;
	padding: 0 .9rem;
	background: #f5f7fa;
	border-right: 1px solid var(--fvb-border);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	white-space: nowrap;
	color: #1d2433;
}

.fvb-wrap .fvb-form .fvb-flag {
	font-size: 18px;
	line-height: 1;
}

.fvb-wrap .fvb-form .fvb-phone input[type="tel"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding-left: .85rem;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.fvb-wrap .fvb-form .fvb-phone input[type="tel"]:focus { box-shadow: none; }

/* Date inputs with calendar icon */
.fvb-date { position: relative; }

.fvb-form .fvb-date input {
	padding-right: 2.6rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7385' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .8rem center;
	background-size: 18px;
	cursor: pointer;
}

.fvb-hint {
	display: block;
	margin-top: .35rem;
	font-size: .8em;
	color: var(--fvb-muted);
}

/* WhatsApp toggle card */
.fvb-wrap .fvb-form .fvb-wa-toggle {
	position: relative;
	display: flex;
	align-items: center;
	gap: .85rem;
	margin: -.2rem 0 1.05rem;
	padding: .8rem 1rem;
	background: #f2fbf5;
	border: 1.5px solid #bfe5cc;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 400;
	line-height: 1.35;
	user-select: none;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.fvb-wrap .fvb-form .fvb-wa-toggle:hover {
	border-color: #25d366;
}

/* Real checkbox stays accessible but visually hidden */
.fvb-wrap .fvb-form .fvb-wa-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.fvb-wa-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
}

.fvb-wa-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .1rem;
}

.fvb-wa-text strong {
	font-size: .95em;
	font-weight: 700;
	color: #1d2433;
}

.fvb-wa-text small {
	font-size: .8em;
	color: var(--fvb-muted);
}

.fvb-wa-box {
	flex: 0 0 auto;
	position: relative;
	width: 26px;
	height: 26px;
	border: 2px solid #9fb2a6;
	border-radius: 7px;
	background: #fff;
	transition: background-color .15s ease, border-color .15s ease;
}

.fvb-wa-box::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 3px;
	width: 7px;
	height: 13px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}

.fvb-wa-input:checked ~ .fvb-wa-box {
	background: #25d366;
	border-color: #25d366;
}

.fvb-wa-input:checked ~ .fvb-wa-box::after {
	transform: rotate(45deg) scale(1);
}

.fvb-wrap .fvb-form .fvb-wa-toggle:has(.fvb-wa-input:checked) {
	background: #e3f7ea;
	border-color: #25d366;
}

.fvb-wrap .fvb-form .fvb-wa-toggle:has(.fvb-wa-input:focus-visible) {
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .35);
}

.fvb-wa-number[hidden] { display: none; }

.fvb-wa-number:not([hidden]) {
	animation: fvb-slide .2s ease-out;
}

@keyframes fvb-slide {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.fvb-fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 .1rem;
	min-width: 0;
}

.fvb-fieldset legend { padding: 0; }

.fvb-sublabel {
	font-weight: 500 !important;
	color: var(--fvb-muted) !important;
	font-size: .82em !important;
}

/* Errors */
.fvb-error {
	display: block;
	margin-top: .35rem;
	color: var(--fvb-error);
	font-size: .84em;
	line-height: 1.4;
}

.fvb-error:empty { display: none; }

.fvb-wrap .fvb-form .fvb-field.has-error input,
.fvb-wrap .fvb-form .fvb-field.has-error select,
.fvb-wrap .fvb-form .fvb-field.has-error textarea,
.fvb-wrap .fvb-form .fvb-field.has-error .fvb-phone {
	border-color: var(--fvb-error);
}

.fvb-wrap .fvb-form .fvb-field.has-error .fvb-phone input { border-color: transparent; }

.fvb-notice {
	padding: .75rem 1rem;
	border-radius: 8px;
	margin: 0 0 1rem;
	font-size: .92em;
}

.fvb-notice[hidden] { display: none; }

.fvb-notice--error {
	background: #fdecea;
	color: #8e1c1c;
	border: 1px solid #f5c2c0;
}

/* Honeypot */
.fvb-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit */
.fvb-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	width: 100%;
	min-height: 52px;
	margin: .5rem 0 0;
	padding: .8rem 1.25rem;
	border: 0;
	border-radius: 8px;
	background: var(--fvb-accent);
	color: #fff;
	font: inherit;
	font-size: 1.02em;
	font-weight: 700;
	letter-spacing: .01em;
	cursor: pointer;
	transition: filter .15s ease, transform .1s ease;
}

.fvb-submit:hover { filter: brightness(1.08); }
.fvb-submit:active { transform: translateY(1px); }
.fvb-submit:focus-visible { outline: 3px solid var(--fvb-accent); outline-offset: 3px; }
.fvb-submit[disabled] { opacity: .75; cursor: wait; }

.fvb-submit.is-loading::before {
	content: "";
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fvb-spin .7s linear infinite;
}

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

.fvb-privacy {
	margin: .8rem 0 0;
	text-align: center;
	font-size: .82em;
	color: var(--fvb-muted);
}

/* Success */
.fvb-success {
	text-align: center;
	padding: 1.5rem .5rem;
	outline: none;
}

.fvb-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e7f6ec;
	color: #1e8e3e;
	animation: fvb-pop .35s ease-out;
}

.fvb-success-text {
	font-size: 1.05em;
	line-height: 1.6;
}

@keyframes fvb-pop {
	from { transform: scale(.6); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.fvb-feature,
	.fvb-success-icon,
	.fvb-submit.is-loading::before { transition: none; animation: none; }
}

@media (max-width: 600px) {
	.fvb-highlight { padding: 1.1rem 1.1rem; }
}

/* ---------- jQuery UI datepicker (scoped) ---------- */

.fvb-datepicker.ui-datepicker {
	display: none;
	z-index: 99999 !important;
	width: 300px;
	max-width: calc(100vw - 24px);
	padding: .75rem;
	margin-top: 6px;
	background: #fff;
	border: 1px solid #d5dbe5;
	border-radius: 10px;
	box-shadow: 0 14px 34px -10px rgba(20, 35, 70, .28);
	font-family: inherit;
	font-size: 14px;
	color: #1d2433;
}

.fvb-datepicker .ui-datepicker-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: .25rem 2.25rem .6rem;
}

.fvb-datepicker .ui-datepicker-title {
	font-weight: 700;
	line-height: 1.8;
}

.fvb-datepicker .ui-datepicker-prev,
.fvb-datepicker .ui-datepicker-next {
	position: absolute;
	top: .15rem;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	text-indent: -9999px;
	overflow: hidden;
}

.fvb-datepicker .ui-datepicker-prev { left: 0; }
.fvb-datepicker .ui-datepicker-next { right: 0; }

.fvb-datepicker .ui-datepicker-prev::after,
.fvb-datepicker .ui-datepicker-next::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #1d2433;
	border-left: 2px solid #1d2433;
	transform: translate(-30%, -50%) rotate(-45deg);
}

.fvb-datepicker .ui-datepicker-next::after { transform: translate(-70%, -50%) rotate(135deg); }

.fvb-datepicker .ui-datepicker-prev:hover,
.fvb-datepicker .ui-datepicker-next:hover { background: #f0f3f8; }

.fvb-datepicker .ui-state-disabled.ui-datepicker-prev,
.fvb-datepicker .ui-state-disabled.ui-datepicker-next { opacity: .3; cursor: default; background: none; }

.fvb-datepicker .ui-datepicker-prev span,
.fvb-datepicker .ui-datepicker-next span { display: none; }

.fvb-datepicker table.ui-datepicker-calendar {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.fvb-datepicker .ui-datepicker-calendar th,
.fvb-datepicker .ui-datepicker-calendar td {
	padding: 2px;
	border: 0;
	background: none;
	text-align: center;
}

.fvb-datepicker .ui-datepicker-calendar th {
	font-size: 12px;
	font-weight: 600;
	color: #6b7385;
	padding-bottom: 6px;
}

.fvb-datepicker .ui-datepicker-calendar td a,
.fvb-datepicker .ui-datepicker-calendar td span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	border-radius: 8px;
	text-decoration: none;
	color: #1d2433;
	box-shadow: none;
}

.fvb-datepicker .ui-datepicker-calendar td a:hover { background: #eef2f8; }

.fvb-datepicker .ui-datepicker-calendar td.ui-datepicker-today a {
	box-shadow: inset 0 0 0 1px var(--fvb-accent, #1f5fbf);
	font-weight: 700;
}

.fvb-datepicker .ui-datepicker-calendar td a.ui-state-active {
	background: var(--fvb-accent, #1f5fbf);
	color: #fff;
	font-weight: 700;
}

.fvb-datepicker .ui-datepicker-calendar td.ui-state-disabled span {
	color: #c3c9d4;
	cursor: not-allowed;
}

.fvb-datepicker .ui-datepicker-other-month span { visibility: hidden; }
