.jb-af {
	--jb-navy: #08293d;
	--jb-blue: #164c67;
	--jb-gold: #d4a62a;
	--jb-text: #294653;
	--jb-muted: #687b85;
	--jb-line: #d8e2e6;
	--jb-soft: #f4f7f8;
	width: min(100%, 960px);
	margin: 0 auto;
	color: var(--jb-text);
	font-family: inherit;
	scroll-margin-top: 24px;
}

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

.jb-af__intro {
	padding: clamp(26px, 5vw, 52px);
	color: #fff;
	background: linear-gradient(135deg, var(--jb-navy), var(--jb-blue));
	border-radius: 18px 18px 0 0;
}

.jb-af__intro h2 {
	margin: 3px 0 10px;
	color: #fff;
	font-size: clamp(28px, 5vw, 44px);
	line-height: 1.12;
}

.jb-af__intro p {
	max-width: 680px;
	margin: 0;
	line-height: 1.65;
}

.jb-af__intro .jb-af__eyebrow {
	color: #f0d98d;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.jb-af__progress {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin: 0;
	padding: 18px clamp(18px, 4vw, 38px);
	list-style: none;
	background: #fff;
	border: 1px solid var(--jb-line);
	border-top: 0;
}

.jb-af__progress li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--jb-muted);
	font-size: 13px;
	font-weight: 700;
}

.jb-af__progress span {
	display: grid;
	width: 27px;
	height: 27px;
	place-items: center;
	border: 2px solid var(--jb-line);
	border-radius: 50%;
	background: #fff;
	font-size: 12px;
}

.jb-af__progress .is-active {
	color: var(--jb-navy);
}

.jb-af__progress .is-active span,
.jb-af__progress .is-complete span {
	color: #fff;
	background: var(--jb-navy);
	border-color: var(--jb-navy);
}

.jb-af__form {
	background: #fff;
	border: 1px solid var(--jb-line);
	border-top: 0;
	border-radius: 0 0 18px 18px;
	box-shadow: 0 16px 44px rgba(8, 41, 61, .09);
}

.jb-af__step {
	padding: clamp(26px, 5vw, 48px);
}

.jb-af.is-enhanced .jb-af__step:not(.is-active) {
	display: none;
}

.jb-af__section-heading {
	margin-bottom: 26px;
}

.jb-af__section-heading > span {
	color: var(--jb-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.jb-af__section-heading h3 {
	margin: 5px 0 5px;
	color: var(--jb-navy);
	font-size: clamp(23px, 4vw, 31px);
	line-height: 1.2;
}

.jb-af__section-heading p {
	margin: 0;
	color: var(--jb-muted);
}

.jb-af fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.jb-af legend,
.jb-af__field > span {
	display: block;
	margin-bottom: 8px;
	color: var(--jb-navy);
	font-size: 14px;
	font-weight: 750;
}

.jb-af b {
	color: #b32d2e;
}

.jb-af__division {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 24px !important;
}

.jb-af__division legend {
	grid-column: 1 / -1;
}

.jb-af__division label {
	position: relative;
	display: block;
	cursor: pointer;
}

.jb-af__division input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.jb-af__division label > span {
	display: flex;
	min-height: 112px;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
	border: 2px solid var(--jb-line);
	border-radius: 12px;
	background: var(--jb-soft);
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.jb-af__division label:hover > span {
	transform: translateY(-2px);
	border-color: #9fb4be;
}

.jb-af__division input:checked + span {
	border-color: var(--jb-gold);
	background: #fffaf0;
	box-shadow: 0 0 0 3px rgba(212, 166, 42, .12);
}

.jb-af__division input:focus-visible + span {
	outline: 3px solid rgba(22, 76, 103, .26);
	outline-offset: 2px;
}

.jb-af__division strong {
	color: var(--jb-navy);
	font-size: 18px;
}

.jb-af__division small {
	margin-top: 5px;
	color: var(--jb-muted);
	line-height: 1.45;
}

.jb-af__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.jb-af__field {
	display: block;
	margin-bottom: 20px;
}

.jb-af__field input,
.jb-af__field select,
.jb-af__field textarea {
	width: 100%;
	margin: 0;
	padding: 13px 14px;
	color: var(--jb-text);
	background: #fff;
	border: 1px solid #bacbd2;
	border-radius: 8px;
	font: inherit;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.jb-af__field input:focus,
.jb-af__field select:focus,
.jb-af__field textarea:focus {
	outline: 0;
	border-color: var(--jb-blue);
	box-shadow: 0 0 0 3px rgba(22, 76, 103, .14);
}

.jb-af__field select:disabled {
	color: #82929a;
	background: #edf2f4;
	cursor: not-allowed;
}

.jb-af__field textarea {
	min-height: 150px;
	resize: vertical;
}

.jb-af__upload {
	display: flex;
	min-height: 130px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	border: 2px dashed #a9bcc4;
	border-radius: 10px;
	background: var(--jb-soft);
}

.jb-af__upload:hover {
	border-color: var(--jb-blue);
	background: #edf4f6;
}

.jb-af__upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.jb-af__upload strong {
	color: var(--jb-navy);
}

.jb-af__upload small {
	margin-top: 4px;
	color: var(--jb-muted);
}

.jb-af__file-list {
	margin: 9px 0 0;
	padding-left: 20px;
	color: var(--jb-muted);
	font-size: 13px;
}

.jb-af__upload-note {
	margin: 9px 2px 0;
	color: var(--jb-muted);
	font-size: 13px;
	line-height: 1.5;
}

.jb-af__contact-choice {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin: 4px 0 24px !important;
}

.jb-af__contact-choice legend {
	width: 100%;
}

.jb-af__contact-choice label {
	display: flex;
	align-items: center;
	gap: 7px;
}

.jb-af__privacy {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 16px;
	background: var(--jb-soft);
	border-radius: 9px;
	font-size: 14px;
	line-height: 1.55;
}

.jb-af__privacy input {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	margin-top: 2px;
}

.jb-af__privacy a {
	color: var(--jb-blue);
	font-weight: 700;
}

.jb-af__actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--jb-line);
}

.jb-af__button {
	min-height: 47px;
	padding: 11px 21px;
	cursor: pointer;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.jb-af__button:hover {
	transform: translateY(-1px);
}

.jb-af__button:disabled {
	cursor: wait;
	opacity: .65;
}

.jb-af__button--primary {
	color: #fff;
	background: var(--jb-navy);
}

.jb-af__button--primary:hover {
	background: var(--jb-blue);
}

.jb-af__button--secondary {
	color: var(--jb-navy);
	background: #e8eef1;
}

.jb-af__summary {
	overflow: hidden;
	border: 1px solid var(--jb-line);
	border-radius: 10px;
}

.jb-af__summary > div {
	display: grid;
	grid-template-columns: minmax(150px, 32%) 1fr;
	border-bottom: 1px solid var(--jb-line);
}

.jb-af__summary > div:last-child {
	border-bottom: 0;
}

.jb-af__summary strong,
.jb-af__summary span {
	padding: 11px 14px;
	white-space: pre-wrap;
}

.jb-af__summary strong {
	color: var(--jb-navy);
	background: var(--jb-soft);
}

.jb-af__required-note {
	color: var(--jb-muted);
	font-size: 12px;
}

.jb-af__notice {
	margin-bottom: 18px;
	padding: 15px 18px;
	border-radius: 9px;
	font-weight: 700;
}

.jb-af__notice--success {
	color: #155724;
	background: #dff3e4;
	border: 1px solid #b8dfc2;
}

.jb-af__notice--error {
	color: #842029;
	background: #f8d7da;
	border: 1px solid #f1aeb5;
}

.jb-af__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

@media (max-width: 720px) {
	.jb-af__progress {
		padding-inline: 10px;
	}

	.jb-af__progress li {
		flex-direction: column;
		gap: 4px;
		font-size: 10px;
	}

	.jb-af__division,
	.jb-af__grid {
		grid-template-columns: 1fr;
	}

	.jb-af__actions {
		flex-direction: column-reverse;
	}

	.jb-af__button {
		width: 100%;
	}

	.jb-af__summary > div {
		grid-template-columns: 1fr;
	}

	.jb-af__summary strong {
		padding-bottom: 5px;
	}

	.jb-af__summary span {
		padding-top: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jb-af *,
	.jb-af *::before,
	.jb-af *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
