/**
 * Floating labels for marketing lead-form v2 only.
 * Values match modules/event-registration (not another university's styles).
 */

.lead-form-sf-floating {
	--er-form-arrow-url: url("../../../../../../mu-plugins/modules/event-registration/frontend/assets/img/form-arrow.svg");
	background: #fff;
	color: #333333;
	box-sizing: border-box;
}

.lead-form-sf-floating .form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	box-sizing: border-box;
}

.lead-form-sf-floating .form-grid-full,
.lead-form-sf-floating .field {
	width: 100%;
	box-sizing: border-box;
}

.lead-form-sf-floating .lp-form-footer .cta,
.lead-form-sf-floating .cta-submit .cta,
.lead-form-sf-floating .cta-submit input[type="submit"],
.lead-form-sf-floating .cta-submit button[type="submit"] {
	background: #b01c2e !important;
	border: 1px solid #b01c2e !important;
	border-radius: 4px !important;
	color: #fff !important;
	display: inline-block;
	padding: 16px 24px !important;
	font-family: "Sora", sans-serif !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	height: auto;
	margin-top: 0;
}

.lead-form-sf-floating .lp-form-footer .cta:hover,
.lead-form-sf-floating .cta-submit .cta:hover,
.lead-form-sf-floating .cta-submit input[type="submit"]:hover,
.lead-form-sf-floating .cta-submit button[type="submit"]:hover {
	background: #881321;
	border-color: #881321;
	color: #fff;
}

.lead-form-sf-floating .city-autocomplete {
	position: relative;
	width: 100%;
}

.lead-form-sf-floating .city-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1000;
	max-height: 336px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e3e6e5;
}

.lead-form-sf-floating .city-dropdown .city-item {
	padding: 8px 16px;
	color: #333333;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
	background: #fff;
	border-bottom: 1px solid #e3e6e5;
}

.lead-form-sf-floating .city-dropdown .city-item:hover,
.lead-form-sf-floating .city-dropdown .city-item.active {
	background: #e3e6e5;
}

@media (max-width: 768px) {
	.lead-form-sf-floating .form-grid {
		grid-template-columns: 1fr;
	}
}

.lead-form-sf-floating .floating-field {
	position: relative;
	width: 100%;
	margin: 0;
}

.lead-form-sf-floating .required,
.lead-form-sf-floating .city-required-star {
	display: none !important;
}

.lead-form-sf-floating .floating-label {
	position: absolute;
	top: 50%;
	left: 10px;
	z-index: 3;
	max-width: calc(100% - 36px);
	margin: 0 !important;
	width: auto !important;
	overflow: hidden;
	color: #333333;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
	transform: translateY(-50%);
	transition: color 0.15s ease, font-size 0.15s ease, font-weight 0.15s ease, line-height 0.15s ease, top 0.15s ease, transform 0.15s ease;
}

.lead-form-sf-floating .floating-field input,
.lead-form-sf-floating .floating-field select,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid .floating-field input,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid .floating-field select,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid-full .floating-field input,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid-full .floating-field select,
#lead-form-sf-marketing-hero.lead-form-sf-floating .lead-form-sf-enquiring-for-wrap .floating-field select {
	width: 100%;
	height: 46px;
	min-height: 46px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 8px;
	border: 1px solid #E3E6E5;
	border-radius: 4px;
	background-color: #fff;
	color: #333333;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	box-sizing: border-box;
}

.lead-form-sf-floating select,
#lead-form-sf-marketing-hero.lead-form-sf-floating select.form-control {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: #fff var(--er-form-arrow-url) no-repeat right 16px center;
}

.lead-form-sf-floating .floating-field input::placeholder,
.lead-form-sf-floating .floating-field input::-webkit-input-placeholder {
	color: transparent;
}

.lead-form-sf-floating .floating-field input::-moz-placeholder {
	color: transparent;
	opacity: 1;
}

.lead-form-sf-floating .floating-field input:-webkit-autofill,
.lead-form-sf-floating .floating-field input:-webkit-autofill:hover,
.lead-form-sf-floating .floating-field input:-webkit-autofill:focus,
.lead-form-sf-floating .floating-field select:-webkit-autofill {
	animation-name: onAutoFillStart;
	-webkit-text-fill-color: #262626;
	box-shadow: 0 0 0 1000px #ffffff inset;
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset;
	transition: background-color 9999s ease-out;
}

.lead-form-sf-floating .floating-field:not(.floating-field--select):focus-within .floating-label,
.lead-form-sf-floating .floating-field.is-filled .floating-label,
.lead-form-sf-floating .floating-field:has(input:not(:placeholder-shown)) .floating-label,
.lead-form-sf-floating .floating-field:has(input:-webkit-autofill) .floating-label {
	top: 5px;
	color: #9a9a9a;
	font-size: 11px;
	font-weight: 400;
	line-height: 14px;
	transform: none;
}

.lead-form-sf-floating .floating-field:not(.floating-field--select):focus-within input,
.lead-form-sf-floating .floating-field.is-filled input,
.lead-form-sf-floating .floating-field:has(input:not(:placeholder-shown)) input,
.lead-form-sf-floating .floating-field:has(input:-webkit-autofill) input,
.lead-form-sf-floating .floating-field.is-filled select {
	padding-top: 16px;
	padding-right: 32px;
	padding-bottom: 2px;
}

.lead-form-sf-floating .floating-field--select:not(.is-filled) .floating-label {
	opacity: 0;
}

.lead-form-sf-floating .floating-field--select.is-filled .floating-label {
	opacity: 1;
}

.lead-form-sf-floating .floating-field.is-filled .floating-label {
	color: #333333;
	font-size: 10px;
	font-weight: 400;
	line-height: 14px;
}

.lead-form-sf-floating .floating-field.is-filled input,
.lead-form-sf-floating .floating-field.is-filled select,
.lead-form-sf-floating .floating-field:has(input:-webkit-autofill) input {
	color: #262626;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.lead-form-sf-floating .floating-field--phone .iti {
	position: relative;
	display: block;
	width: 100%;
}

.lead-form-sf-phone-dial-code-only .floating-field--phone .iti__flag,
.lead-form-sf-floating .floating-field--phone .iti__flag {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
}

.lead-form-sf-floating .floating-field--phone .iti__arrow,
.lead-form-sf-floating .floating-field--phone .iti__flag-container {
	pointer-events: none;
}

.lead-form-sf-floating .floating-field--phone .iti__arrow {
	display: none !important;
}

.lead-form-sf-floating .floating-field--phone .floating-label {
	left: 64px;
	max-width: calc(100% - 96px);
}

.lead-form-sf-floating .floating-field--phone .iti__flag-container {
	position: absolute !important;
	top: 0;
	bottom: 0;
	left: 0;
	right: auto;
	width: auto;
	height: 100%;
	padding: 0;
	display: flex;
	align-items: center;
	background: transparent !important;
	background-color: transparent !important;
}

.lead-form-sf-floating .floating-field--phone .iti--separate-dial-code .iti__selected-flag,
.lead-form-sf-floating .floating-field--phone .iti--separate-dial-code .iti__selected-flag:hover {
	height: 46px;
	padding: 0 12px 0 10px !important;
	border-right: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	position: relative;
	background: transparent !important;
	background-color: transparent !important;
}

.lead-form-sf-floating .floating-field--phone .iti--separate-dial-code .iti__selected-flag::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 1px;
	height: 24px;
	margin-top: -12px;
	background: #e5e5e5;
	pointer-events: none;
}

.lead-form-sf-floating .floating-field--phone .iti__selected-dial-code {
	margin-left: 0;
	color: #333333;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.lead-form-sf-floating .floating-field--phone.is-filled .iti__selected-dial-code,
.lead-form-sf-floating .floating-field--phone:focus-within .iti__selected-dial-code {
	color: #333333;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.lead-form-sf-floating .city-dropdown,
.lead-form-sf-floating .validation-error + .city-dropdown,
#lead-form-sf-marketing-hero.lead-form-sf-floating .validation-error + .city-dropdown {
	top: 100% !important;
}

.lead-form-sf-floating .consent-text,
.lead-form-sf-floating .consent-copy,
.lead-form-sf-floating.register-form .consent-copy,
.lead-form-sf-floating .form-note,
.lead-form-sf-floating .consent-copy p,
.lead-form-sf-floating .consent-copy span,
.lead-form-sf-floating .consent-copy a,
#lead-form-sf-marketing-hero.lead-form-sf-floating .consent-text,
#lead-form-sf-marketing-hero.lead-form-sf-floating .consent-copy,
#lead-form-sf-marketing-hero.lead-form-sf-floating .consent-copy p,
#lead-form-sf-marketing-hero.lead-form-sf-floating .consent-copy span,
#lead-form-sf-marketing-hero.lead-form-sf-floating .consent-copy a,
#lead-form-sf-marketing-lp-program-cards.lead-form-sf-floating .consent-text .consent-copy,
#lead-form-sf-marketing-lp-program-cards.lead-form-sf-floating .consent-copy p,
#lead-form-sf-marketing-lp-program-cards.lead-form-sf-floating .consent-copy a {
	color: #333333;
	font-family: "Open Sans", sans-serif;
	font-size: 14px !important;
	font-weight: 400;
	line-height: 20px !important;
}

.lead-form-sf-floating .consent-copy a,
.lead-form-sf-floating .form-note a,
#lead-form-sf-marketing-hero.lead-form-sf-floating .consent-copy a {
	color: #B01C2E;
	font-size: 14px !important;
	line-height: 20px !important;
}

#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid .field .floating-field input.error,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid .field .floating-field select.error,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid-full .field .floating-field select.error {
	margin-bottom: 0 !important;
}

@keyframes onAutoFillStart {
	from {
		opacity: 1;
	}

	to {
		opacity: 1;
	}
}

.lead-form-sf-floating.register-form .field .floating-label {
	z-index: 3;
	width: auto !important;
	margin: 0 !important;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #333333;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field select {
	height: 46px;
	min-height: 46px;
	padding: 8px;
	padding-right: 32px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #333333;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field:not(.floating-field--select):focus-within input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field.is-filled input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field:has(input:not(:placeholder-shown)) input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field:has(input:-webkit-autofill) input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field.is-filled select {
	padding-top: 16px;
	padding-right: 32px;
	padding-bottom: 2px;
	padding-left: 8px;
	color: #262626;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field--phone input {
	background-color: #ffffff;
}

.lead-form-sf-floating.register-form .field .floating-field.is-filled .floating-label,
.lead-form-sf-floating.register-form .field .floating-field:not(.floating-field--select):focus-within .floating-label,
.lead-form-sf-floating.register-form .field .floating-field:has(input:not(:placeholder-shown)) .floating-label,
.lead-form-sf-floating.register-form .field .floating-field:has(input:-webkit-autofill) .floating-label {
	top: 5px;
	font-size: 11px;
	font-weight: 400;
	line-height: 14px;
	color: #9a9a9a;
	transform: none;
}

.lead-form-sf-floating.register-form .field .floating-field.is-filled .floating-label {
	color: #333333;
	font-size: 10px;
	line-height: 14px;
}

@media (max-width: 767px) {
	.lead-form-sf-floating .floating-field:not(.floating-field--select):focus-within .floating-label,
	.lead-form-sf-floating .floating-field.is-filled .floating-label,
	.lead-form-sf-floating .floating-field:has(input:not(:placeholder-shown)) .floating-label,
	.lead-form-sf-floating .floating-field:has(input:-webkit-autofill) .floating-label {
		font-size: 10px;
		line-height: 13px;
	}
}

/* Beat theme/modal rules so v2 controls match the event-registration form. */
.lead-form-sf-floating.register-form .form-sec .field .floating-field:not(.floating-field--phone) input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field select,
.modal .lead-form-sf-floating .floating-field:not(.floating-field--phone) input,
.modal .lead-form-sf-floating .floating-field select {
	height: 46px !important;
	min-height: 46px !important;
	padding: 8px 32px 8px 8px !important;
	border: 1px solid #E3E6E5 !important;
	border-radius: 4px !important;
	background-color: #ffffff !important;
	background-image: none !important;
	color: #333333 !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 24px !important;
	box-shadow: none !important;
}

.lead-form-sf-floating.register-form .field .floating-field--select::after,
.lead-form-sf-floating.register-form .field .floating-field:has(.lead-form-sf-city--show-arrow)::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	z-index: 4;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	background: var(--er-form-arrow-url) center / 24px 24px no-repeat;
	pointer-events: none;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field:not(.floating-field--phone):not(.floating-field--select).is-filled input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field:not(.floating-field--phone):not(.floating-field--select):focus-within input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field:not(.floating-field--phone):has(input:not(:placeholder-shown)) input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field.is-filled select,
.modal .lead-form-sf-floating .floating-field:not(.floating-field--phone).is-filled input,
.modal .lead-form-sf-floating .floating-field.is-filled select {
	padding: 16px 32px 2px 8px !important;
	color: #262626 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
}

.home .lead-form-sf-floating.register-form .form-sec .field #phone {
	padding-left: 52px !important;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field--phone input,
.modal .lead-form-sf-floating .floating-field--phone input {
	height: 46px !important;
	min-height: 46px !important;
	padding-top: 8px !important;
	padding-right: 16px !important;
	padding-bottom: 8px !important;
	border: 1px solid #E3E6E5 !important;
	border-radius: 4px !important;
	background-color: #ffffff !important;
	color: #333333 !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 24px !important;
	box-shadow: none !important;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field--phone.is-filled input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field--phone:focus-within input,
.modal .lead-form-sf-floating .floating-field--phone.is-filled input,
.modal .lead-form-sf-floating .floating-field--phone:focus-within input {
	padding-top: 16px !important;
	padding-bottom: 2px !important;
	color: #262626 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field input:-webkit-autofill,
.lead-form-sf-floating.register-form .form-sec .field .floating-field input:-webkit-autofill:hover,
.lead-form-sf-floating.register-form .form-sec .field .floating-field input:-webkit-autofill:focus,
.lead-form-sf-floating.register-form .form-sec .field .floating-field select:-webkit-autofill,
.modal .lead-form-sf-floating .floating-field input:-webkit-autofill,
.modal .lead-form-sf-floating .floating-field select:-webkit-autofill {
	-webkit-text-fill-color: #262626 !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	background-color: #ffffff !important;
	transition: background-color 9999s ease-out;
}

.lead-form-sf-floating.register-form .form-sec .field input.lead-form-sf-city--show-arrow,
.lead-form-sf-floating.register-form .form-sec .field input#city.lead-form-sf-city--show-arrow {
	background-color: #ffffff !important;
	background-image: none !important;
}

.lead-form-sf-floating.register-form .floating-label .required,
#lead-form-sf-marketing-hero.lead-form-sf-floating .floating-label span {
	color: inherit !important;
}

#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid,
.lead-form-sf-floating.register-form .form-grid,
.register-form-popup .lead-form-sf-floating.register-form .form-grid {
	column-gap: 16px !important;
	row-gap: 16px !important;
	gap: 16px !important;
	width: 100%;
	margin-bottom: 16px !important;
}

.lead-form-sf-floating.register-form .form-sec,
.lead-form-sf-floating.register-form .form-sec.lp-form-body,
.register-form-popup .lead-form-sf-floating.register-form .form-sec.lp-form-body {
	row-gap: 0 !important;
	gap: 0 !important;
}

.lead-form-sf-floating.register-form .form-sec > .form-grid,
.lead-form-sf-floating.register-form .form-sec > .form-grid-full {
	margin-bottom: 16px !important;
}

.lead-form-sf-floating.register-form .form-sec .field {
	margin-bottom: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.lead-form-sf-floating .consent-text,
.lead-form-sf-floating .form-note.consent-text {
	padding-top: 8px !important;
	margin-top: 0 !important;
}

.lead-form-sf-floating .lp-form-footer {
	padding-top: 24px !important;
}

#lead-form-sf-marketing-hero.lead-form-sf-floating.register-form,
.herosection-right .lead-form-sf-floating.register-form,
.lead-form-sf-floating.register-form {
	padding: 24px !important;
	box-sizing: border-box;
}

.lead-form-sf-floating.register-form .form-title,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-title,
.modal#register-form-popup .modal-right form.lead-form-sf-floating .form-title {
	width: auto !important;
	margin: 0 0 24px !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	text-align: left !important;
	color: #161B20 !important;
	font-family: "Sora", sans-serif !important;
	font-size: 32px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: 40px !important;
}

.lead-form-sf-floating.register-form .form-title h2,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-title h2,
.modal#register-form-popup .modal-right form.lead-form-sf-floating .form-title h2 {
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	color: #161B20 !important;
	font-family: "Sora", sans-serif !important;
	font-size: 32px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: 40px !important;
}

#lead-form-sf-marketing-hero.lead-form-sf-floating .form-sec,
.lead-form-sf-floating.register-form .form-sec,
.lead-form-sf-floating.register-form .form-sec.lp-form-body,
.register-form-popup .lead-form-sf-floating.register-form .form-sec.lp-form-body,
body .modal#register-form-popup form.lead-form-sf-floating .form-sec {
	display: flex;
	flex-wrap: wrap;
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
}

.lead-form-sf-floating .form-sec.row > .form-grid,
.lead-form-sf-floating .form-sec.row > .form-grid-full,
.lead-form-sf-floating .form-sec.row > .consent-text,
.lead-form-sf-floating .form-sec > .form-grid,
.lead-form-sf-floating .form-sec > .form-grid-full,
.lead-form-sf-floating .form-sec > .consent-text {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.lead-form-sf-floating.register-form .consent-text,
.lead-form-sf-floating.register-form .form-note.consent-text,
#lead-form-sf-marketing-hero.lead-form-sf-floating .consent-text {
	padding: 8px 0 0 !important;
}

.lead-form-sf-floating .lp-form-footer,
#lead-form-sf-marketing-hero.lead-form-sf-floating .lp-form-footer {
	padding: 24px 0 0 !important;
	margin: 0 !important;
}

/* Program card modal — submit (marketing LP .cta flex + 24px span breaks label / loader) */
#register-form-popup form.lead-form-sf-floating .lp-form-footer .cta-submit {
	display: block;
	width: 100%;
}

#register-form-popup form.lead-form-sf-floating .lp-form-footer .cta-submit button.cta {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	width: auto !important;
	min-width: 0;
	max-width: 100%;
	white-space: nowrap !important;
	box-sizing: border-box;
}

#register-form-popup form.lead-form-sf-floating .lp-form-footer .cta-submit button.cta > span {
	display: inline !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: none !important;
	white-space: nowrap !important;
	line-height: 24px !important;
}

@media (max-width: 991px) {
	#lead-form-sf-marketing-hero.lead-form-sf-floating.register-form,
	.herosection-right .lead-form-sf-floating.register-form,
	.lead-form-sf-floating.register-form {
		padding: 20px 16px !important;
	}
}

.lead-form-sf-floating .validation-error,
#lead-form-sf-marketing-hero.lead-form-sf-floating .validation-error,
.lead-form-sf-floating.register-form .form-sec .field .validation-error {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	margin-top: 4px;
	color: #B91C1C !important;
	font-family: "Open Sans", sans-serif;
	font-size: 14px !important;
	font-style: normal;
	font-weight: 400;
	line-height: 20px !important;
}

.lead-form-sf-floating .validation-error svg,
.lead-form-sf-floating .validation-error svg path {
	fill: #B91C1C;
	position: relative;
	top: 5px;
	flex: 0 0 auto;
}

.lead-form-sf-floating.register-form .form-sec .field .floating-field input.error,
.lead-form-sf-floating.register-form .form-sec .field .floating-field select.error,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid .field .floating-field input.error,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid .field .floating-field select.error,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid-full .field .floating-field input.error,
#lead-form-sf-marketing-hero.lead-form-sf-floating .form-grid-full .field .floating-field select.error {
	border: 1px solid #B91C1C !important;
	margin-bottom: 0 !important;
}

.lead-form-sf-floating .lead-form-sf-enquiring-for-wrap {
	display: none !important;
	width: 100%;
	margin-top: 0;
	box-sizing: border-box;
	position: relative;
}

.lead-form-sf-floating .lead-form-sf-enquiring-for-wrap.is-visible {
	display: grid !important;
	width: 100%;
	box-sizing: border-box;
}

.lead-form-sf-floating .city-autocomplete::after {
	display: none !important;
	content: none !important;
}

.lead-form-sf-floating input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	z-index: 3;
	background: #fff;
}

.lead-form-sf-floating input[type="search"]::-webkit-search-cancel-button,
.lead-form-sf-floating input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.lead-form-sf-floating input.lead-form-sf-city--show-arrow {
	padding-right: 50px !important;
}

/* Programme card popup — mobile-only layout (desktop unchanged via marketing style.css) */
@media (min-width: 768px) {
	#register-form-popup #modal-program-title.form-popup-title-mobile {
		display: none !important;
	}

	#register-form-popup .read-more-btn {
		display: none !important;
	}

	#register-form-popup .read-more-text {
		max-height: none !important;
		overflow: visible !important;
	}
}

@media (min-width: 768px) {
	/* Desktop: keep close aligned with form header (override lpstyle mobile btn-close bleed) */
	body.marketing-lp-ug-pg-template #register-form-popup > .modal-content.register-form-popup > .modal-inner > .btn-close,
	#register-form-popup > .modal-content.register-form-popup > .modal-inner > .btn-close {
		position: absolute !important;
		top: 32px !important;
		right: 32px !important;
		left: auto !important;
		width: 24px !important;
		height: 24px !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		background-position: center center !important;
		background-size: 24px 24px !important;
		background-image: url("../../../../images/marketing-lp/close.svg") !important;
	}
}

/* Card thank-you: mobile + tablet (≤991px), Figma layout */
@media (max-width: 991.98px) {
	#register-form-popup.lead-form-sf-pc-thankyou-active > .modal-content.register-form-popup > .modal-inner > .btn-close {
		display: none !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-head {
		display: grid !important;
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto;
		position: relative;
		padding: 24px 24px 0 !important;
		margin: 0;
		border-bottom: none !important;
		box-sizing: border-box;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-sf-pc-thankyou-head .lead-form-sf-pc-thankyou-close {
		display: block !important;
		position: static !important;
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		justify-self: end;
		width: 24px !important;
		height: 24px !important;
		min-width: 24px !important;
		min-height: 24px !important;
		padding: 0 !important;
		margin: 0 0 24px 0 !important;
		font-size: 0 !important;
		line-height: 0 !important;
		color: transparent !important;
		background: transparent url("../../../../images/marketing-lp/close.svg") center / 24px no-repeat !important;
		border: 0 !important;
		cursor: pointer;
		z-index: 2;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .form-title.thankyou-title,
	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .thankyou-title {
		grid-column: 1 / -1;
		grid-row: 2;
		font-size: 32px !important;
		line-height: 40px !important;
		padding: 0 0 24px 0 !important;
		margin: 0 !important;
		border: 0 !important;
		border-bottom: none !important;
		text-decoration: none !important;
		box-shadow: none !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		padding: 24px 0 32px !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas .cta {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
		white-space: normal !important;
		box-sizing: border-box;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas a.cta > span {
		white-space: normal !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .modal-right {
		padding: 0 24px !important;
		box-sizing: border-box;
		overflow-x: hidden !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline,
	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .register-form.register-form-tahnkyou-msg {
		overflow-x: hidden !important;
		max-width: 100%;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body {
		padding: 24px 0 0 !important;
	}
}

@media (max-width: 767.98px) {
	/* Mobile card popup: close top-right (beats lpstyle .modal-content .btn-close { width:100% }) */
	body.marketing-lp-ug-pg-template #register-form-popup > .modal-content.register-form-popup > .modal-inner > .btn-close,
	body #register-form-popup > .modal-content.register-form-popup > .modal-inner > .btn-close,
	#register-form-popup > .modal-content.register-form-popup > .modal-inner > .btn-close {
		position: absolute !important;
		top: 24px !important;
		right: 24px !important;
		left: auto !important;
		z-index: 3;
		width: 24px !important;
		height: 24px !important;
		min-height: 0 !important;
		max-width: 24px !important;
		padding: 0 !important;
		margin: 0 !important;
		line-height: 0 !important;
		background-position: center center !important;
		background-size: 24px 24px !important;
		background-image: url("../../../../images/marketing-lp/close-white.svg") !important;
	}

	#register-form-popup > .modal-content.register-form-popup > .modal-inner {
		position: relative;
	}

	#register-form-popup #modal-program-title.form-popup-title-mobile {
		display: block !important;
		width: 100%;
		margin: 0;
		padding: 72px 40px 0 0;
		color: #fff !important;
		font-family: "Sora", sans-serif !important;
		font-size: 32px !important;
		font-weight: 600 !important;
		line-height: 40px !important;
		box-sizing: border-box;
	}

	#register-form-popup .modal-right form.lead-form-sf-floating.lead-form-sf-pc-instance .form-title,
	#register-form-popup .modal-right form.lead-form-sf-floating.lead-form-sf-pc-instance .form-title h2 {
		display: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		overflow: hidden !important;
		visibility: hidden !important;
	}

	#register-form-popup .modal-right form.lead-form-sf-floating.lead-form-sf-pc-instance {
		padding: 24px 16px !important;
	}

	#register-form-popup .modal-right form.lead-form-sf-floating.lead-form-sf-pc-instance .form-title {
		margin-bottom: 0 !important;
	}

	#register-form-popup .read-more-btn:not([hidden]) {
		display: inline-flex !important;
		align-items: center;
	}

	#register-form-popup .modal-program {
		gap: 24px;
	}

	#register-form-popup .modal-left {
		padding: 0 24px 24px !important;
	}
}

#register-form-popup .lead-form-sf-pc-modal-forms > form.lead-form-sf-pc-instance:not(.is-active) {
	display: none !important;
}

#register-form-popup .lead-form-sf-pc-modal-forms > form.lead-form-sf-pc-instance.is-active {
	display: block !important;
}

/* Program / sticky modals use .custom-modal > .modal-content (not Bootstrap .modal-dialog) */
#register-form-popup.lead-form-sf-pc-thankyou-active > .modal-content.register-form-popup,
#register-form-popup.lead-form-sf-pc-thankyou-active .modal-dialog.register-form-popup,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active > .modal-content,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .modal-dialog.register-form-popup {
	max-width: 720px;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .modal-inner,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .modal-inner {
	background: #fff !important;
}

#register-form-popup.lead-form-sf-pc-thankyou-active > .modal-content.register-form-popup > .modal-inner > .btn-close,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active > .btn-close {
	display: none !important;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline {
	display: block !important;
	width: 100%;
	box-sizing: border-box;
	padding: 0 !important;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .register-form.register-form-tahnkyou-msg,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .register-form.register-form-tahnkyou-msg {
	padding: 0 !important;
	width: 100%;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-head,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 32px 32px 24px;
	box-sizing: border-box;
	border-bottom: 1px solid #e3e6e5;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .form-title.thankyou-title,
#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .thankyou-title {
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	color: #0b0c0c !important;
	font-family: "Sora", sans-serif !important;
	font-size: 32px !important;
	font-weight: 600 !important;
	line-height: 40px !important;
	flex: 1 1 auto;
	min-width: 0;
}

#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .form-title.thankyou-title,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .thankyou-title {
	margin: 0;
	padding: 0 48px 0 0 !important;
	border: 0 !important;
	color: #0b0c0c !important;
	font-family: "Sora", sans-serif !important;
	font-size: 32px !important;
	font-weight: 600 !important;
	line-height: 40px !important;
	flex: 1 1 auto;
	min-width: 0;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-close,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-close {
	display: block !important;
	flex: 0 0 auto;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #0b0c0c;
	cursor: pointer;
	padding: 0;
	margin: 0;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body {
	padding: 24px 32px 0 !important;
	margin: 0;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0 !important;
	row-gap: 0 !important;
	width: 100%;
	box-sizing: border-box;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .success-note,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .success-note {
	width: 100%;
	padding: 0;
	margin: 0;
	color: #333;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 24px;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .success-note p,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .success-note p {
	margin: 0 0 1em;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .success-note p:last-child,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .success-note p:last-child {
	margin-bottom: 0;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .modal-left,
#register-form-popup.lead-form-sf-pc-thankyou-active .title-with-button,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .modal-left,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .title-with-button {
	display: none !important;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .modal-right,
#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-sf-pc-modal-forms,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .modal-right,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .modal-body,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-sf-pc-modal-forms {
	width: 100% !important;
	display: block !important;
}

#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-sf-pc-modal-forms > form.lead-form-sf-pc-instance,
#register-form-popup.lead-form-sf-pc-thankyou-active form[data-lead-form-sf-marketing].lead-form-sf-pc-instance,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active form[data-lead-form-sf-marketing].lead-form-sf-pc-instance,
#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active form.lead-form-sf-pc-instance {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	pointer-events: none !important;
}

#course_dialog.course-dialog--sf-thankyou .course-dialog__wrapper {
	grid-template-columns: 1fr !important;
	min-height: 0 !important;
}

#course_dialog.course-dialog--sf-thankyou .course-dialog__left,
#course_dialog.course-dialog--sf-thankyou .course-title-lp {
	display: none !important;
}

#course_dialog.course-dialog--sf-thankyou .lp-modal-header {
	display: flex !important;
	justify-content: flex-end;
	align-items: center;
	border-bottom: none;
	padding: 1rem 1.25rem 0;
	min-height: 0;
	position: relative;
	z-index: 5;
}

#course_dialog.course-dialog--sf-thankyou .lp-modal-header .course-title {
	display: none !important;
	margin: 0;
}

#course_dialog.course-dialog--sf-thankyou .course-dialog__right {
	width: 100%;
	padding: 0 1.5rem 1.5rem;
	box-sizing: border-box;
}

#course_dialog.course-dialog--sf-thankyou {
	max-width: min(40rem, calc(100vw - 2rem)) !important;
	width: 100%;
}

#course_dialog.course-dialog--sf-thankyou .course-form-wrapper {
	padding: 0 !important;
}

#course_dialog.course-dialog--sf-thankyou:has(.lead-form-sf-pc-thankyou-head) .lp-modal-header {
	display: none !important;
}

#course_dialog.course-dialog--sf-thankyou .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-close {
	display: none;
}

#course_dialog.course-dialog--sf-thankyou .lead-form-thankyou-inline .lp-form-body,
#course_dialog.course-dialog--sf-thankyou .lead-form-thankyou-inline .lp-form-footer {
	margin-top: 0;
	padding-top: 0;
}

#course_dialog.course-dialog--sf-thankyou #cardModal .course-dialog__right {
	padding: 1.5rem !important;
}

#lp_modal_dialog.lp-modal-sf-thankyou .lp-modal-course-details-wrapper,
#lp_modal_dialog.lp-modal-sf-thankyou .lp-modal-form-wrapper > h2 {
	display: none !important;
}

#lp_modal_dialog.lp-modal-sf-thankyou .lp-modal-course-main-wrapper {
	display: block !important;
	flex-wrap: nowrap !important;
}

#lp_modal_dialog.lp-modal-sf-thankyou .lp-modal-form-wrapper {
	width: 100% !important;
	padding: 24px;
	box-sizing: border-box;
}

#lp_modal_dialog.lp-modal-sf-thankyou .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-close {
	display: none;
}

/* Hero column — inline thank-you after submit (same v2 markup as program popup) */
.herosection-right .lead-form-thankyou-inline--v2,
#hero-lead-form .lead-form-thankyou-inline--v2 {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 24px !important;
	background: #fff;
}

.herosection-right .lead-form-thankyou-inline--v2 .register-form.register-form-tahnkyou-msg,
#hero-lead-form .lead-form-thankyou-inline--v2 .register-form.register-form-tahnkyou-msg {
	padding: 0 !important;
	width: 100%;
}

.herosection-right .lead-form-thankyou-inline--v2 .form-title.thankyou-title,
#hero-lead-form .lead-form-thankyou-inline--v2 .form-title.thankyou-title {
	margin: 0 0 24px !important;
	padding: 0 0 24px !important;
	border-bottom: 1px solid #e3e6e5 !important;
	color: #161b20 !important;
	font-family: "Sora", sans-serif !important;
	font-size: 32px !important;
	font-weight: 600 !important;
	line-height: 40px !important;
}

.herosection-right .lead-form-thankyou-inline--v2 .lp-form-body,
#hero-lead-form .lead-form-thankyou-inline--v2 .lp-form-body {
	padding: 0 !important;
	margin: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0 !important;
	row-gap: 0 !important;
}

.herosection-right .lead-form-thankyou-inline--v2 .success-note,
#hero-lead-form .lead-form-thankyou-inline--v2 .success-note {
	color: #333;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 24px;
}

.herosection-right .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas,
#hero-lead-form .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas {
	padding: 24px 0 0 !important;
}

#LPFormsection .LP-inline-sideform .lead-form-thankyou-inline {
	padding: 2rem;
}

#LPFormsection .LP-inline-sideform .lead-form-thankyou-inline .thankyou-title {
	color: #0B0C0C;
	padding: 3rem;
	padding-left: 0;
	border-bottom: 1px solid #e3e6e5;
}

#LPFormsection .LP-inline-sideform .lead-form-thankyou-inline .success-note {
	color: #0B0C0C;
	display: block;
	width: 100%;
}

#LPFormsection .LP-inline-sideform .lead-form-thankyou-inline .success-note p {
	margin: 0 0 1em;
}

#LPFormsection .LP-inline-sideform .lead-form-thankyou-inline .success-note p:last-child {
	margin-bottom: 0;
}

#LPFormsection .LP-inline-sideform .lead-form-thankyou-inline .success-note strong {
	display: block;
	margin-bottom: 8px;
}

.lead-form-sf-floating ~ .lead-form-thankyou-inline .download-link,
.lead-form-thankyou-inline .download-link {
	padding-top: 0;
}

.lead-form-thankyou-inline .download-link a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #B01C2E;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 24px;
	font-family: "Inter", sans-serif;
	text-decoration: none;
}

.lead-form-thankyou-inline .download-link a:hover {
	color: #B01C2E;
}

.lead-form-thankyou-inline .thankyou-secondary-ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-top: 16px;
}

.lead-form-thankyou-inline .thankyou-secondary-ctas .download-link {
	margin: 0;
	padding: 0;
}

.lead-form-thankyou-inline .thankyou-secondary-ctas .download-link a {
	min-height: 44px;
}

.lead-form-thankyou-inline .thankyou-secondary-ctas .lead-form-sf-book-a-call-icon,
.lead-form-thankyou-inline .thankyou-secondary-ctas .lead-form-sf-prospectus-download-icon,
.lead-form-thankyou-inline .thankyou-secondary-ctas .lead-form-sf-chat-link-icon {
	flex-shrink: 0;
}

.lead-form-thankyou-inline .thankyou-secondary-ctas .lead-form-sf-chat-link-icon,
.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .lead-form-sf-chat-link-icon {
	width: 24px;
	height: 24px;
}

.lead-form-thankyou-inline .download-link a:hover .lead-form-sf-chat-link-icon path {
	fill: #B01C2E;
}

/* v2 thank-you: Book a call + Chat with us, then Apply + Prospectus buttons */
.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	width: 100%;
	margin-top: 16px;
}

.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .download-link {
	margin: 0;
	padding: 0;
}

.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .download-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #B01C2E;
	text-decoration: none;
}

.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .download-link a svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .download-link a .lead-form-sf-chat-link-icon {
	width: 24px;
	height: 24px;
}

.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .download-link a span {
	text-decoration: underline;
	text-decoration-style: solid;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .download-link a:hover,
.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 .download-link a:hover span {
	color: #881321;
	text-decoration: underline;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	padding: 24px 32px 32px !important;
	margin: 0;
	border: 0;
	width: 100%;
	box-sizing: border-box;
}

#lp-sticky-cta-modal.lp-sticky-cta-thankyou-active .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas,
#lp-sticky-cta-modal.lp-sticky-cta-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas {
	padding: 24px 0 32px !important;
}

/* Program card thank-you (desktop): one row, align with body copy (no double horizontal padding) */
@media (min-width: 992px) {
	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas,
	#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center;
		justify-content: flex-start;
		gap: 16px;
		width: 100%;
		margin: 0;
		padding: 24px 0 32px !important;
		box-sizing: border-box;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas .cta,
	#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas .cta {
		width: auto !important;
		max-width: none !important;
		flex: 0 0 auto !important;
		white-space: nowrap;
	}
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas .cta {
	width: auto;
	min-width: 0;
	max-width: 100%;
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	padding: 16px 24px !important;
	border-radius: 4px;
	border: 1px solid #b01c2e;
	background: #b01c2e !important;
	color: #fff !important;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

/* Override marketing LP .cta / a.cta>span (24px icon box) on thank-you footer buttons */
.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta > span {
	display: inline !important;
	width: auto !important;
	height: auto !important;
	min-width: 0;
	flex: 0 1 auto !important;
	padding: 0 !important;
	white-space: nowrap;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta svg {
	position: static !important;
	left: 0 !important;
	width: 20px !important;
	height: 20px !important;
	flex-shrink: 0;
	opacity: 1 !important;
	visibility: visible !important;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta:hover svg {
	left: 0 !important;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas .cta:hover {
	background: #881321;
	border-color: #881321;
	color: #fff;
	text-decoration: none;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta.cta-secondary {
	background: #fff !important;
	color: #b01c2e !important;
	border: 1px solid #b01c2e !important;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta.cta-secondary:hover {
	background: #881321 !important;
	color: #fff !important;
	border-color: #881321 !important;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta.cta-secondary svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta.cta-secondary svg path {
	fill: #b01c2e;
}

.lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta.cta-secondary:hover svg path {
	fill: #fff;
}

@media (max-width: 768px) {
	#course_dialog.course-dialog--sf-thankyou {
		max-width: none !important;
		width: 100vw !important;
	}

	#LPFormsection .LP-inline-sideform .lead-form-thankyou-inline .thankyou-title {
		padding: 1rem;
		font-size: 1.75rem;
		line-height: 2.25rem;
	}

	.lead-form-thankyou-inline .thankyou-secondary-ctas,
	.lead-form-thankyou-inline--v2 .lead-form-thankyou-ctas--v2 {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	/* Hero only: stack footer CTAs on small screens; card popup stays in a row */
	.herosection-right .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas,
	#hero-lead-form .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-head,
	#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lead-form-sf-pc-thankyou-head {
		padding: 24px 24px 0;
	}

	#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .form-title.thankyou-title {
		font-size: 24px !important;
		line-height: 32px !important;
		padding-right: 40px !important;
	}

	.herosection-right .lead-form-thankyou-inline--v2 .form-title.thankyou-title,
	#hero-lead-form .lead-form-thankyou-inline--v2 .form-title.thankyou-title {
		font-size: 24px !important;
		line-height: 32px !important;
		padding-right: 0 !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .form-title.thankyou-title,
	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .thankyou-title {
		padding-right: 0 !important;
	}

	.herosection-right .lead-form-thankyou-inline--v2,
	#hero-lead-form .lead-form-thankyou-inline--v2 {
		padding: 20px 16px !important;
	}

	.herosection-right .lead-form-thankyou-inline--v2 .form-title.thankyou-title,
	#hero-lead-form .lead-form-thankyou-inline--v2 .form-title.thankyou-title {
		padding-right: 0 !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body,
	#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body {
		padding: 24px 24px 0 !important;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas,
	#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body > .lp-form-footer.lead-form-thankyou-footer-ctas {
		padding: 24px 0 24px !important;
	}

	.herosection-right .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas .cta,
	#hero-lead-form .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas .cta {
		width: 100%;
		max-width: 380px;
		white-space: normal;
	}

	.herosection-right .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta > span,
	#hero-lead-form .lead-form-thankyou-inline--v2 .lp-form-footer.lead-form-thankyou-footer-ctas a.cta > span {
		white-space: normal;
	}

	#register-form-popup.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body,
	#lp-sticky-cta-modal.lead-form-sf-pc-thankyou-active .lead-form-thankyou-inline .lp-form-body {
		row-gap: 0 !important;
		gap: 0 !important;
	}
}

/* Filled controls: same stack as event registration (small label, value below). */
.lead-form-sf-floating .floating-field.is-filled .floating-label,
.lead-form-sf-floating.register-form .field .floating-field.is-filled .floating-label,
#lead-form-sf-marketing-hero.lead-form-sf-floating .floating-field.is-filled .floating-label {
	top: 5px !important;
	color: #333333 !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	line-height: 14px !important;
	transform: none !important;
}

.lead-form-sf-floating .floating-field:not(.floating-field--phone).is-filled input,
.lead-form-sf-floating .floating-field.is-filled select,
.lead-form-sf-floating.register-form .form-sec .field .floating-field:not(.floating-field--phone).is-filled input,
.lead-form-sf-floating.register-form .form-sec .field .floating-field.is-filled select,
.modal .lead-form-sf-floating .floating-field:not(.floating-field--phone).is-filled input,
.modal .lead-form-sf-floating .floating-field.is-filled select {
	height: 46px !important;
	min-height: 46px !important;
	padding: 16px 32px 2px 8px !important;
	color: #262626 !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
}

.lead-form-sf-floating .floating-field--phone.is-filled input {
	padding-top: 14px !important;
	padding-bottom: 0 !important;
	color: #262626 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
}

.lead-form-sf-floating .floating-field--phone:not(.is-filled) input,
.lead-form-sf-floating .floating-field--phone:not(.is-filled) input[type="tel"] {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 24px !important;
	color: #333333 !important;
}
