/**
 * Public form builder styles.
 */

.afb {
	--afb-form-max-width: 529px;
	--afb-orange: #fa4616;
	--afb-orange-hover: #e43d10;
	--afb-navy: #051528;
	--afb-dark: #2f3341;
	--afb-text: #1e2430;
	--afb-muted: #667085;
	--afb-line: #d9dee7;
	--afb-line-soft: #e9edf3;
	--afb-white: #ffffff;
	--afb-error: #d92d20;
	--afb-success: #1f8f5f;
	--afb-shadow: 0 148px 41px rgba(0, 0, 0, 0), 0 95px 38px rgba(0, 0, 0, 0.01), 0 53px 32px rgba(0, 0, 0, 0.02), 0 24px 24px rgba(0, 0, 0, 0.03), 0 6px 13px rgba(0, 0, 0, 0.04);
	color: var(--afb-text);
	font-family: "Proxima Nova", Inter, Arial, Helvetica, sans-serif;
	width: 100%;
}

.afb-form {
	background: unset !important;
}

.afb--horizontal {
	--afb-form-max-width: 680px;
}

/* Theme columns that default to 529px (e.g. ADV hero `.right`). */
.right:has(.afb--horizontal) {
	max-width: 680px;
}

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

.afb-card,
.afb-thanks {
	-webkit-backdrop-filter: blur(17.5px);
	backdrop-filter: blur(17.5px);
	background: rgba(255, 255, 255, 0.63);
	border: 3px solid rgba(255, 255, 255, 0.50);
	border-radius: 15px;
	box-shadow: var(--afb-shadow);
	max-width: var(--afb-form-max-width);
	overflow: hidden;
	width: 100%;
}

.afb-card__head {
	background: linear-gradient(180deg, rgba(5, 21, 40, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
	border-bottom: 1px solid var(--afb-line-soft);
	padding: 16px 24px 14px;
}

.afb-card__kicker {
	color: var(--afb-orange);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0;
}

.afb-progress-meta {
	align-items: center;
	color: var(--afb-muted);
	display: flex;
	font-size: 13px;
	font-weight: 700;
	gap: 12px;
	justify-content: space-between;
	margin: 10px 0;
}

.afb-progress-track {
	background: #eef2f7;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.afb-progress-fill {
	background: linear-gradient(90deg, var(--afb-orange), #ff7a52);
	border-radius: inherit;
	height: 100%;
	width: 100%;
}

.afb-card__body {
	padding: 32px;
}

.afb-step {
	display: none;
}

.afb-step.is-active {
	display: block;
}

.afb-back-button {
	align-items: center;
	background: transparent;
	border: 3px solid transparent;
	border-radius: 999px;
	color: #132858;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 18px;
	font-weight: 800;
	gap: 12px;
	line-height: 24px;
	margin: 0 0 16px;
	min-height: 44px;
	padding: 7px 18px 7px 10px;
	transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease;
}

.afb-back-button__icon {
	border: solid currentColor;
	border-width: 0 0 3px 3px;
	display: inline-block;
	height: 12px;
	transform: rotate(45deg);
	width: 12px;
}

.afb-back-button:hover {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: #fa4616;
}

.afb-back-button:active {
	color: #051528;
}

.afb-back-button:focus {
	background: transparent;
	border-color: #001e5b;
	box-shadow: none;
	color: #132858;
	outline: none;
}

.afb-back-button:disabled {
	color: #a6adbd;
	cursor: not-allowed;
	opacity: 1;
}

.afb-step__subtitle {
	font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.16px;
    color: #051528;
	margin: 0;
    margin-top: 16px;
	max-width: 95%;
}

.afb-step__title {
	font-size: 28px;
	font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: 0.4px;
    color: #051528;
	margin: 0;
}

.afb-field-group {
	margin-top: 18px;
}

.afb--horizontal .afb-field-group {
	column-gap: 16px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afb--horizontal .afb-field:not(.afb-field--half) {
	grid-column: 1 / -1;
}

.afb-field,
.afb-choice-group {
	margin-top: 16px;
}

.afb-label {
	color: var(--afb-dark);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	margin-bottom: 8px;
}

.afb-input,
.afb-select,
.afb-textarea {
	align-items: center;
	align-self: stretch;
	background: var(--afb-white);
	border: 1px solid #6c7284;
	border-radius: 8px;
	color: #6c7284;
	display: flex;
	font: inherit;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	gap: 8px;
	height: 48px;
	letter-spacing: 0.16px;
	line-height: 24px;
	min-height: 48px;
	outline: none;
	padding: 2px 16px;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
	white-space: nowrap;
	width: 100%;
}

/* Keep default border + radius even if theme overrides form controls. */
.afb .afb-input,
.afb .afb-select,
.afb .afb-textarea {
	border: 1px solid #6c7284 !important;
	border-radius: 8px !important;
}

.afb-input::placeholder,
.afb-textarea::placeholder {
	color: #6c7284;
	opacity: 1;
}

.afb-input:hover,
.afb-select:hover,
.afb-textarea:hover {
	background: var(--afb-white);
	border-color: #6c7284;
}

.afb .afb-input:hover,
.afb .afb-select:hover,
.afb .afb-textarea:hover {
	border-color: #6c7284 !important;
}

.afb-input:focus,
.afb-select:focus,
.afb-textarea:focus {
	background: var(--afb-white);
	border-color: #6c7284;
	box-shadow: 0 0 0 2px #001e5b;
}

/* Extra specificity to survive theme-wide focus overrides. */
.afb .afb-input:focus,
.afb .afb-select:focus,
.afb .afb-textarea:focus {
	border-color: #6c7284 !important;
	box-shadow: 0 0 0 2px #001e5b !important;
}

.afb-input:disabled,
.afb-select:disabled,
.afb-textarea:disabled {
	background: rgba(255, 255, 255, 0.38);
	color: #6c7284;
	cursor: not-allowed;
	opacity: 1;
}

.afb-textarea {
	min-height: 120px;
	white-space: normal;
	resize: vertical;
}

.afb-character-count {
	color: #6c7284;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	margin-top: 8px;
}

.afb-phone {
	display: grid;
	gap: 8px;
	grid-template-columns: 104px 1fr;
	position: relative;
}

.afb-phone .afb-input-shell {
	min-width: 0;
}

.afb-phone-country {
	position: relative;
	z-index: 2;
}

.afb-phone-country__button {
	align-items: center;
	background: var(--afb-white);
	border: 1px solid #6c7284;
	border-radius: 8px;
	color: #6c7284;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	gap: 8px;
	height: 48px;
	justify-content: space-between;
	letter-spacing: 0.16px;
	line-height: 24px;
	min-height: 48px;
	padding: 2px 14px;
	text-align: left;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
	white-space: nowrap;
	width: 100%;
}

.afb-phone-country__button:focus,
.afb-phone-country.is-open .afb-phone-country__button {
	background: var(--afb-white);
	border-color: #6c7284;
	box-shadow: 0 0 0 2px #001e5b;
	color: #051528;
	outline: none;
}

.afb-phone-country__button:hover {
	background: var(--afb-white);
	border-color: #6c7284;
	color: #051528;
	outline: none;
}

.afb-phone-country__chevron {
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	display: inline-block;
	height: 9px;
	margin-top: -4px;
	transform: rotate(45deg);
	width: 9px;
}

.afb-phone-country.is-open .afb-phone-country__chevron {
	margin-top: 4px;
	transform: rotate(225deg);
}

.afb-phone-country__menu {
	background: #ffffff;
	border: 1px solid rgba(108, 114, 132, 0.35);
	border-radius: 8px;
	box-shadow: 0 18px 38px rgba(5, 21, 40, 0.18);
	left: 0;
	margin-top: 12px;
	max-height: 264px;
	min-width: min(24vw, calc(100vw - 40px));
	overflow-y: auto;
	padding: 8px;
	position: absolute;
	top: 100%;
	z-index: 20;
}

.afb-phone-country__option {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	height: 28px;
	letter-spacing: 0.16px;
	line-height: 24px;
	padding: 2px 8px;
	text-align: left;
	width: 100%;
	font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.14px;
    color: #051528;
	box-shadow: none;
}

.afb-phone-country__option:hover,
.afb-phone-country__option:focus {
	background: rgba(250, 70, 22, 0.10);
	outline: none;
}

.afb-phone-country__option.is-selected {
	background: #fa4616;
	color: #ffffff;
}

.afb-phone__country-select {
	align-items: center;
	appearance: none;
	background: var(--afb-white);
	border: 1px solid #6c7284;
	border-radius: 8px;
	color: #6c7284;
	display: inline-flex;
	font-size: 16px;
	font-weight: 400;
	height: 48px;
	letter-spacing: 0.16px;
	line-height: 24px;
	min-height: 48px;
	padding: 2px 16px;
	padding-right: 30px;
	white-space: nowrap;
	width: 100%;
	background-image: linear-gradient(45deg, transparent 50%, #6c7284 50%), linear-gradient(135deg, #6c7284 50%, transparent 50%);
	background-position: calc(100% - 22px) 21px, calc(100% - 15px) 21px;
	background-size: 7px 7px, 7px 7px;
	background-repeat: no-repeat;
}

.afb-phone__country-select:focus {
	background-color: var(--afb-white);
	border-color: #6c7284;
	box-shadow: 0 0 0 2px #001e5b;
	outline: none;
}

.afb-phone__country-select:hover {
	background-color: var(--afb-white);
	border-color: #6c7284;
	outline: none;
}

.afb-phone__country-select:focus {
	background-image: linear-gradient(45deg, transparent 50%, #051528 50%), linear-gradient(135deg, #051528 50%, transparent 50%);
	color: #051528;
}

.afb-phone__country-select option {
	background: #ffffff;
	color: #051528;
	font-size: 16px;
	line-height: 24px;
}

.afb-phone__country-select option:checked {
	background: #fa4616;
	color: #ffffff;
}

.afb-input-shell {
	position: relative;
	width: 100%;
}

.afb-input-shell__icon {
	display: none;
	height: 16px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	z-index: 1;
}

.afb-input-shell__icon--error {
	left: 16px;
}

.afb-input-shell__icon--success {
	right: 16px;
}

.afb-input-shell--textarea .afb-input-shell__icon {
	top: 16px;
	transform: none;
}

.afb-field.is-error .afb-input-shell__icon--error {
	display: block;
}

.afb-field.is-valid .afb-input-shell__icon--success,
.afb-field.is-validated .afb-input-shell__icon--success {
	display: block;
}

.afb-field.is-error::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px; 
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.38462 0C3.32308 0 0 3.32308 0 7.38462C0 11.4462 3.32308 14.7692 7.38462 14.7692C11.4462 14.7692 14.7692 11.4462 14.7692 7.38462C14.7692 3.32308 11.4462 0 7.38462 0ZM1.84618 7.38459C1.84618 4.33844 4.33848 1.84613 7.38464 1.84613C8.58464 1.84613 9.69233 2.21536 10.5846 2.86151L2.86156 10.5846C2.21541 9.69228 1.84618 8.58459 1.84618 7.38459ZM7.38449 12.9231C6.18449 12.9231 5.0768 12.5539 4.18449 11.9077L11.9076 4.18464C12.5537 5.07695 12.923 6.18464 12.923 7.38464C12.923 10.4308 10.4306 12.9231 7.38449 12.9231Z' fill='%23DA3003'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none; 
    z-index: 2;
}

.afb-field.is-validated:not(.is-error)::after,
.afb-field.is-valid:not(.is-error)::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 16px;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.0018 0.615234C3.9095 0.615234 0.617188 3.90754 0.617188 7.99985C0.617188 12.0922 3.9095 15.3845 8.0018 15.3845C12.0941 15.3845 15.3864 12.0922 15.3864 7.99985C15.3864 3.90754 12.0941 0.615234 8.0018 0.615234ZM12.125 6.154L7.41735 10.9232C7.23273 11.1078 6.92504 11.1078 6.74043 10.9232L4.15581 8.30784C3.9712 8.12323 3.9712 7.81554 4.15581 7.63092L4.83273 6.954C5.01735 6.76938 5.32504 6.76938 5.50966 6.954L6.8635 8.33861C6.98658 8.46169 7.20197 8.46169 7.32504 8.33861L10.7712 4.76938C10.9558 4.58477 11.2635 4.58477 11.4481 4.76938L12.125 5.44631C12.3404 5.63092 12.3404 5.93861 12.125 6.154Z' fill='%232D984A'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	z-index: 2;
}

.afb-field.is-error[data-afb-field="phone_number"]::after {
	left: 128px;
}

.afb-field.is-error,
.afb-field.is-validated,
.afb-field.is-valid {
	position: relative;
}

.afb-field.is-error input {
	padding-left: 36px;
}

.afb-field.is-error .afb-input-shell .afb-input,
.afb-field.is-error .afb-input-shell .afb-select,
.afb-field.is-error .afb-input-shell .afb-textarea,
.afb-field.is-error .afb-input,
.afb-field.is-error .afb-select,
.afb-field.is-error .afb-textarea,
.afb-field.is-error .afb-phone__country-select,
.afb-field.is-error .afb-phone-country__button {
	background-color: rgba(250, 70, 22, 0.10);
	border-color: #da3003;
	box-shadow: none;
}

.afb-field.is-error .afb-input-shell .afb-input,
.afb-field.is-error .afb-input-shell .afb-select,
.afb-field.is-error .afb-input-shell .afb-textarea {
	padding-left: 40px;
}

.afb-field.is-valid .afb-input-shell .afb-input,
.afb-field.is-valid .afb-input-shell .afb-select,
.afb-field.is-valid .afb-input-shell .afb-textarea,
.afb-field.is-valid .afb-input,
.afb-field.is-valid .afb-select,
.afb-field.is-valid .afb-textarea,
.afb-field.is-validated .afb-input-shell .afb-input,
.afb-field.is-validated .afb-input-shell .afb-select,
.afb-field.is-validated .afb-input-shell .afb-textarea,
.afb-field.is-validated .afb-input,
.afb-field.is-validated .afb-select,
.afb-field.is-validated .afb-textarea {
	padding-right: 40px;
}

.afb .afb-field.is-error .afb-input-shell .afb-input,
.afb .afb-field.is-error .afb-input-shell .afb-select,
.afb .afb-field.is-error .afb-input-shell .afb-textarea,
.afb .afb-field.is-error .afb-input,
.afb .afb-field.is-error .afb-select,
.afb .afb-field.is-error .afb-textarea,
.afb .afb-field.is-error .afb-phone-country__button {
	border-color: #da3003 !important;
}

.afb-field.is-error .afb-input-shell .afb-input:hover,
.afb-field.is-error .afb-input-shell .afb-select:hover,
.afb-field.is-error .afb-input-shell .afb-textarea:hover,
.afb-field.is-error .afb-input:hover,
.afb-field.is-error .afb-select:hover,
.afb-field.is-error .afb-textarea:hover,
.afb-field.is-error .afb-input-shell .afb-input:focus,
.afb-field.is-error .afb-input-shell .afb-select:focus,
.afb-field.is-error .afb-input-shell .afb-textarea:focus,
.afb-field.is-error .afb-input:focus,
.afb-field.is-error .afb-select:focus,
.afb-field.is-error .afb-textarea:focus,
.afb .afb-field.is-error .afb-input-shell .afb-input:hover,
.afb .afb-field.is-error .afb-input-shell .afb-select:hover,
.afb .afb-field.is-error .afb-input-shell .afb-textarea:hover,
.afb .afb-field.is-error .afb-input:hover,
.afb .afb-field.is-error .afb-select:hover,
.afb .afb-field.is-error .afb-textarea:hover,
.afb .afb-field.is-error .afb-input-shell .afb-input:focus,
.afb .afb-field.is-error .afb-input-shell .afb-select:focus,
.afb .afb-field.is-error .afb-input-shell .afb-textarea:focus,
.afb .afb-field.is-error .afb-input:focus,
.afb .afb-field.is-error .afb-select:focus,
.afb .afb-field.is-error .afb-textarea:focus {
	background-color: rgba(250, 70, 22, 0.10);
	border-color: #da3003 !important;
	box-shadow: none !important;
}

.afb-feedback {
	color: #da3003;
	display: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 4px 0 0;
	padding: 0;
}

.afb-field.is-error .afb-feedback {
	display: block;
}

.tabs-text {
	margin-top: 32px;
	margin-bottom: 8px;
	line-height: 18px;
    font-size: 13px;
    color: #051528;
}

.afb-request-type {
	background: transparent;
	border: 0;
	border-radius: 8px;
	display: inline-grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 0px;
	max-width: 100%;
	overflow: hidden;
	width: 100%;
}

.afb-request-type span {
	font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
	font-family: 'Inter';
}

.afb--horizontal .afb-request-type {
	max-width: none;
}

.afb-request-type label {
	align-items: center;
	background: var(--afb-white);
	border: 1px solid #6c7284;
	border-left: 0;
	color: var(--afb-dark);
	cursor: pointer;
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	height: 32px;
	justify-content: center;
	line-height: 1.2;
	min-height: 32px;
	padding: 6px 10px;
	position: relative;
	text-align: center;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.afb-request-type label:first-child {
	border-left: 1px solid #6c7284;
	border-radius: 8px 0 0 8px;
}

.afb-request-type label:last-child {
	border-radius: 0 8px 8px 0;
}

.afb-request-type input,
.afb-choice input,
.afb-chip input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.afb-request-type label.is-active {
	background: var(--afb-navy);
	border-color: var(--afb-navy);
	color: var(--afb-white);
}

.afb-choice-list {
	display: grid;
	gap: 10px;
	margin-top: 8px;
}

.afb-choice-list--cards {
	gap: 12px;
}

.afb-choice {
	align-items: flex-start;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	display: flex;
	gap: 8px;
	padding: 0;
	position: relative;
	transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.afb-choice:hover {
	border-color: #6c7284;
}

.afb-choice__mark {
	background: var(--afb-white);
	border: 1px solid #6c7284;
	border-radius: 999px;
	flex: 0 0 auto;
	height: 16px;
	margin-top: 3px;
	position: relative;
	width: 16px;
}

.afb-choice input:checked + .afb-choice__mark {
	background: var(--afb-white);
	border-color: #001e5b;
	box-shadow: inset 0 0 0 4px var(--afb-white);
}

.afb-choice input:checked + .afb-choice__mark::after {
	background: #001e5b;
	border-radius: inherit;
	content: "";
	inset: 3px;
	position: absolute;
}

.afb-choice:has(input[type="checkbox"]) .afb-choice__mark {
	border-radius: 3px;
}

.afb-choice:has(input[type="checkbox"]:checked) .afb-choice__mark {
	background: #001e5b;
	border-color: #001e5b;
	box-shadow: none;
}

.afb-choice:has(input[type="checkbox"]:checked) .afb-choice__mark::after {
	background: transparent;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	border-radius: 0;
	content: "";
	height: 9px;
	inset: 1px auto auto 5px;
	position: absolute;
	transform: rotate(45deg);
	width: 5px;
}

.afb-choice--card {
	align-items: center;
	background: var(--afb-white);
	border: 1px solid #6c7284;
	border-radius: 8px;
	gap: 8px;
	min-height: 36px;
	padding: 8px;
}

.afb-choice--card:hover {
	border-color: #6c7284;
	box-shadow: 0 0 0 2px #001e5b;
}

.afb-choice--card:has(input:checked) {
	background: linear-gradient(0deg, rgba(250, 70, 22, 0.10) 0%, rgba(250, 70, 22, 0.10) 100%), #fff;
	border-color: #da3003;
	box-shadow: 0 0 4px rgba(250, 70, 22, 0.50);
}

.afb-choice--card .afb-choice__mark {
	background: var(--afb-white);
	border-color: #6c7284;
	height: 16px;
	margin-top: 0;
	width: 16px;
}

.afb-choice--card input:checked + .afb-choice__mark {
	background: #fa4616;
	border-color: #6c7284;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25) inset, 0 0.5px 2px rgba(0, 0, 0, 0.50) inset, 2px 2px 5px rgba(0, 0, 0, 0.10) inset;
}

.afb-choice--card input:checked + .afb-choice__mark::after {
	background: #fff;
	inset: 4px;
}

.afb-choice input:checked + .afb-choice__mark {
	background: #132858;
	border-color: #6c7284;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25) inset, 0 0.5px 2px rgba(0, 0, 0, 0.50) inset, 2px 2px 5px rgba(0, 0, 0, 0.10) inset;
}

.afb-choice.active .afb-choice__text {
	color: #051528;
}

.afb-choice input:checked + .afb-choice__mark::after {
	background: #fff;
	inset: 4px;
}

.afb-choice__text {
	color: #6C7284;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.16px;
	line-height: 24px;
}

.afb-custom-select {
    position: relative;
    width: 100%;
    font-family: var(--jv-font-sans), sans-serif;
}

.afb-custom-select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #6C7284;
    border-radius: 12px;
    color: #A0AEC0;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.afb-custom-select__button:focus,
.afb-custom-select__button[aria-expanded="true"] {
    outline: none !important;
    border-color: #CBD5E1;
}

.afb-custom-select__button.has-value {
    color: #1A1A1A;
}

.afb-custom-select__chevron {
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
}

.afb-custom-select__button[aria-expanded="true"] .afb-custom-select__chevron {
    transform: rotate(180deg);
}

/* Выпадающее меню */
.afb-custom-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    z-index: 999;
    box-shadow: 0px 10px 25px -5px rgba(0, 0, 0, 0.05), 
                0px 8px 10px -6px rgba(0, 0, 0, 0.05),
                0px 0px 1px 0px rgba(0, 0, 0, 0.1);
}

.afb-custom-select__menu[hidden] {
    display: none !important;
}

/* Опции списка */
.afb-custom-select__option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #4A5568;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
	padding: 3px 7px;
	box-shadow: none;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0.14px;
}

/* Твой кастомный Ховер #FA4616 */
.afb-custom-select__option:hover {
    background: #FA4616 !important;
    color: #ffffff !important; /* Белый текст для контраста на оранжевом */
}

/* Выбранный элемент в списке */
.afb-custom-select__option.is-selected {
    background: #FA4616 !important;
    color: #fff !important;
    font-weight: 500;
}

.afb-custom-select__button:focus, .afb-custom-select__button:hover {
	background: none;
}

.afb-custom-select__button span {
	color: #6C7284;
}

/* Стилизация скроллбара */
.afb-custom-select__menu::-webkit-scrollbar {
    width: 6px;
}
.afb-custom-select__menu::-webkit-scrollbar-track {
    background: transparent;
}
.afb-custom-select__menu::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.afb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.afb-chip {
	align-items: center;
	background: var(--afb-white);
	border: 1px solid #6c7284;
	border-radius: 8px;
	color: #051528;
	cursor: pointer;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	height: 32px;
	justify-content: center;
	letter-spacing: 0.16px;
	line-height: 16px;
	min-height: 32px;
	padding: 0 16px;
	position: relative;
	transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.afb-chip:hover {
	border-color: #6c7284;
	box-shadow: 0 0 0 2px #001e5b;
}

.afb-chip.is-active {
	background: linear-gradient(0deg, rgba(250, 70, 22, 0.10) 0%, rgba(250, 70, 22, 0.10) 100%), #fff;
	border-color: #da3003;
	box-shadow: 0 0 4px rgba(250, 70, 22, 0.50);
	color: #051528;
}

.afb-chip.is-disabled,
.afb-chip:has(input:disabled) {
	background: rgba(108, 114, 132, 0.24);
	border-color: transparent;
	box-shadow: none;
	color: #6c7284;
	cursor: not-allowed;
	opacity: 0.72;
}

.afb-nav {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 24px;
	width: 100%;
}

.afb-nav--end {
	justify-content: flex-end;
	margin-top: 32px;
}

.afb-nav--stack {
	align-items: stretch;
	flex-direction: column;
}

.afb-btn {
	align-items: center;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	height: 52px;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
	min-height: 52px;
	padding: 0 22px;
	text-align: center;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.afb-btn:disabled {
	cursor: not-allowed;
	opacity: 1;
}

.afb-btn--primary,
.afb-btn--orange-bg {
	background: var(--afb-orange);
	border: 0;
	color: var(--afb-white);
	outline: none;
}

.afb-btn--primary:hover,
.afb-btn--orange-bg:hover {
	background: #da3003;
	box-shadow: 0 2px 0 #b22904;
}

.afb-btn--primary:active,
.afb-btn--orange-bg:active {
	background: #fa4616;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.08), inset 0 0.5px 2px rgba(0, 0, 0, 0.35);
}

.afb-btn--primary:focus,
.afb-btn--orange-bg:focus {
	background: #fa4616;
	box-shadow: 0 0 0 2px #da3003 inset, 0 0 0 4px #fff inset;
}

.afb-btn--primary:disabled,
.afb-btn--orange-bg:disabled {
	background: #e5e5e5;
	box-shadow: none;
	color: #fff;
}

.afb-btn--orange-border {
	background: #fff;
	border: 1px solid #fa4616;
	color: #fa4616;
}

.afb-btn--orange-border:hover {
	border-color: #da3003;
	box-shadow: 0 1.5px 0 #b22904;
}

.afb-btn--orange-border:active {
	border-color: #da3003;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.08), inset 0 0.5px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(0, 0, 0, 0.15);
	color: #da3003;
}

.afb-btn--orange-border:focus {
	border: 3px solid #da3003;
	box-shadow: none;
}

.afb-btn--orange-border:disabled {
	background: #fff;
	border-color: #e5e5e5;
	box-shadow: none;
	color: #e5e5e5;
}

.afb-btn--orange-inverse {
	background: #fa4616;
	border: 1px solid #fff;
	color: #fff;
}

.afb-btn--orange-inverse:hover {
	background: #fa4616;
	box-shadow: 0 1.5px 0 #b22904;
}

.afb-btn--orange-inverse:active {
	background: #fa4616;
	border-color: #fff;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15), inset 0 0.5px 2px rgba(0, 0, 0, 0.4);
}

.afb-btn--orange-inverse:focus {
	background: #fa4616;
	border: 3px solid #fff;
	box-shadow: none;
}

.afb-btn--orange-inverse:disabled {
	background: #b22904;
	border-color: #b22904;
	box-shadow: none;
	color: #da3003;
}

.afb-btn--blue-bg {
	background: #051528;
	border: 0;
	color: #fff;
	outline: none;
}

.afb-btn--blue-bg:hover {
	background: #132858;
	box-shadow: 0 2px 0 #6c7284;
}

.afb-btn--blue-bg:active {
	background: #051528;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.08), inset 0 0.5px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

.afb-btn--blue-bg:focus {
	background: #051528;
	box-shadow: 0 0 0 2px #051528 inset, 0 0 0 4px #fff inset;
}

.afb-btn--blue-bg:disabled {
	background: #e5e5e5;
	box-shadow: none;
	color: #fff;
}

.afb-btn--blue-border {
	background: #fff;
	border: 1px solid #051528;
	color: #051528;
}

.afb-btn--blue-border:hover {
	border-color: #132858;
	box-shadow: 0 1.5px 0 #6c7284;
}

.afb-btn--blue-border:active {
	border-color: #0c2340;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.08), inset 0 0.5px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

.afb-btn--blue-border:focus {
	border: 3px solid #0c2340;
	box-shadow: none;
}

.afb-btn--blue-border:disabled {
	background: #fff;
	border-color: #dfe0e1;
	box-shadow: none;
	color: #e5e5e5;
}

.afb-btn--blue-inverse {
	background: #051528;
	border: 1px solid #fff;
	color: #fff;
}

.afb-btn--blue-inverse:hover {
	background: #051528;
	box-shadow: 0 1.5px 0 #6c7284;
}

.afb-btn--blue-inverse:active {
	background: #051528;
	border-color: #fff;
	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15), inset 0 0.5px 2px rgba(0, 0, 0, 0.4);
}

.afb-btn--blue-inverse:focus {
	background: #051528;
	border: 3px solid #fff;
	box-shadow: none;
}

.afb-btn--blue-inverse:disabled {
	background: #132858;
	border-color: #132858;
	box-shadow: none;
	color: #051528;
}

.afb-btn--secondary,
.afb-btn--ghost {
	background: var(--afb-white);
	border-color: var(--afb-navy);
	color: var(--afb-navy);
}

.afb-btn--back {
	border-color: var(--afb-line);
	font-size: 14px;
	font-weight: 700;
	height: 40px;
	min-height: 40px;
	padding: 0 16px;
}

.afb-btn--full {
	width: 100%;
	font-family: 'Inter';
}

.afb-privacy {
	color: var(--afb-muted);
	font-size: 12px;
	line-height: 1.55;
	margin-top: 14px;
}

.afb-privacy a {
	color: inherit;
	text-decoration: underline;
}

.afb-helper-text {
	color: var(--afb-muted);
	font-size: 13px;
	line-height: 1.5;
}

.afb-divider {
	border: 0;
	border-top: 1px solid var(--afb-line-soft);
	margin: 6px 0 2px;
}

.afb-field--accordion {
	margin: 0;
	padding: 0;
}

.afb-accordion {
	border-bottom: 1px solid var(--afb-line-soft);
}

.afb-accordion__trigger {
	align-items: center;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--afb-orange);
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 12px;
	padding: 14px 0;
	text-align: left;
	width: 100%;
}

.afb-accordion__trigger:hover,
.afb-accordion__trigger:active,
.afb-accordion__trigger:focus {
	background: transparent;
	box-shadow: none;
	color: var(--afb-orange);
	opacity: 1;
	outline: none;
}

.afb-accordion__number {
	align-items: center;
	background: var(--afb-orange);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 40px;
	font-size: 24px;
	font-weight: 800;
	height: 40px;
	justify-content: center;
	line-height: 1;
	width: 40px;
}

.afb-accordion__title {
	flex: 1 1 auto;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
}

.afb-accordion__icon {
	flex: 0 0 20.31px;
	height: 20.31px;
	position: relative;
	width: 20.31px;
}

.afb-accordion__icon::before,
.afb-accordion__icon::after {
	background: #051528;
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
}

.afb-accordion__icon::before {
	height: 2px;
	transform: translate(-50%, -50%);
	width: 20.31px;
}

.afb-accordion__icon::after {
	height: 20.31px;
	transform: translate(-50%, -50%);
	width: 2px;
}

.afb-accordion.is-open .afb-accordion__icon::after {
	display: none;
}

.afb-accordion__trigger:hover .afb-accordion__icon::before,
.afb-accordion__trigger:hover .afb-accordion__icon::after,
.afb-accordion__trigger:active .afb-accordion__icon::before,
.afb-accordion__trigger:active .afb-accordion__icon::after,
.afb-accordion__trigger:focus .afb-accordion__icon::before,
.afb-accordion__trigger:focus .afb-accordion__icon::after {
	background: #051528;
}

.afb-accordion__panel {
	padding: 2px 0 16px;
}

.afb-accordion__panel > .afb-field:first-child {
	margin-top: 0;
}

.afb-accordion--bordered {
	border: 2px solid rgba(255, 255, 255, 0.50);
	border-radius: 8px;
}

/* Toggle field */
.afb-toggle {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
}

.afb-toggle__input {
	clip: rect(0, 0, 0, 0);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.afb-toggle__track {
	background: #6C7284;
	border-radius: 999px;
	flex: 0 0 44px;
	height: 24px;
	position: relative;
	transition: background 180ms ease;
	width: 44px;
}

.afb-toggle__thumb {
	background: #fff;
    border-radius: 999px;
    height: 19px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform 180ms ease;
    width: 18px;
}

.afb-toggle__thumb::after {
	border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    content: "";
    height: 10px;
    left: -72%;
    position: absolute;
    top: 3px;
    transform: rotate(45deg);
    width: 5px;
}

.afb-toggle__label {
	color: var(--afb-text);
	font-size: 14px;
	line-height: 1.4;
}

/* Style 1 — active state */
.afb-toggle__input:checked + .afb-toggle__track {
	border-color: #132858;
	background: #132858;
}

.afb-toggle__input:checked + .afb-toggle__track .afb-toggle__thumb {
	transform: translateX(20px);
	left: 4px;
}

.afb-toggle__input:checked + .afb-toggle__track .afb-toggle__thumb::after {
	border-color: #fff;
}

/* Style 2 — muted */
.afb-toggle-wrap--muted .afb-toggle__track {
	background: #132858;
	box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.25) inset, 0 0.5px 2px 0 rgba(0, 0, 0, 0.50) inset, 2px 2px 5px 0 rgba(0, 0, 0, 0.10) inset;
}

.afb-toggle-wrap--muted .afb-toggle__input:checked + .afb-toggle__track {
	background: #132858;
	box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.25) inset, 0 0.5px 2px 0 rgba(0, 0, 0, 0.50) inset, 2px 2px 5px 0 rgba(0, 0, 0, 0.10) inset;
}

.afb-toggle-wrap--muted .afb-toggle__input:checked + .afb-toggle__track .afb-toggle__thumb::after {
	border-color: #6c7284;
}

.afb-legal-note {
	color: var(--afb-muted);
	font-size: 12px;
	line-height: 1.55;
}

.afb-back-wrap {
	display: flex;
	justify-content: flex-start;
	margin: 24px 0 20px;
}

.afb-upload {
	margin: 18px 0 4px;
}

.afb-file-name {
	color: var(--afb-muted);
	font-size: 13px;
	margin-top: 8px;
}

.afb-file-upload {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}

.afb-file-upload .afb-file-name {
	margin-top: 0;
}

.afb-hp {
	height: 1px;
	left: -10000px;
	opacity: 0;
	position: absolute;
	top: auto;
	width: 1px;
}

.afb-thanks {
	padding: 30px;
}

.afb-thanks__badge {
	background: rgba(31, 143, 95, 0.10);
	border-radius: 999px;
	color: var(--afb-success);
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 18px;
	min-height: 38px;
	padding: 0 14px;
	text-transform: uppercase;
	align-items: center;
}

.afb-thanks__title {
	color: var(--afb-orange);
	font-size: 40px;
	letter-spacing: 0;
	line-height: 1;
	margin: 0;
}

.afb-thanks__text {
	color: #475467;
	font-size: 18px;
	line-height: 1.6;
	margin: 18px 0 0;
}

@media (max-width: 767px) {
	.afb-card__head,
	.afb-card__body,
	.afb-thanks {
		padding-left: 20px;
		padding-right: 20px;
	}

	.afb--horizontal .afb-field-group {
		grid-template-columns: 1fr;
	}

	.afb--horizontal .afb-field--half {
		grid-column: 1 / -1;
	}

	.afb-phone {
		grid-template-columns: 1fr;
		display: flex;
	}

	.afb-phone-country__menu {
		min-width: 100%;
		width: 74vw;
	}

	.afb-request-type {
		grid-template-columns: 1fr;
		max-width: none;
	}

	.afb-request-type label {
		border-left: 1px solid #6c7284;
		border-top: 0;
	}

	.afb-request-type label:first-child {
		border-radius: 8px 8px 0 0;
		border-top: 1px solid #6c7284;
	}

	.afb-request-type label:last-child {
		border-radius: 0 0 8px 8px;
	}

	.afb-nav {
		flex-direction: column-reverse;
	}

	.afb-nav .afb-btn,
	.afb-upload .afb-btn {
		width: 100%;
	}

	.afb-thanks__title {
		font-size: 34px;
	}
}
