.aido-form {
	--aido-form-visible-options: 7;
	--aido-phone-visible-countries: 6;
	--aido-form-select-panel-gap: 7px;
	--aido-phone-panel-gap: 7px;
	box-sizing: border-box;
	position: relative;
	width: 100%;
}

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

.aido-form__honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.aido-form__html {
	width: 100%;
	min-width: 0;
}

.aido-form__html > :first-child {
	margin-top: 0;
}

.aido-form__html > :last-child {
	margin-bottom: 0;
}

.aido-form__captcha-warning {
	width: 100%;
	margin-bottom: 12px;
	padding: 10px 12px;
	border: 1px solid #dba617;
	border-radius: 4px;
	background: #fff8df;
	color: #5f4700;
	font-size: 13px;
	line-height: 1.4;
}

.aido-form__visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.aido-form__fields {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--aido-form-column-gap, 16px);
	row-gap: 16px;
	width: 100%;
}

.aido-form__field {
	--aido-form-field-width: 100%;
	display: flex;
	flex: 0 0 calc(var(--aido-form-field-width) - (var(--aido-form-column-gap, 16px) * (1 - (var(--aido-form-field-width-number, 100) / 100))));
	flex-direction: column;
	gap: 0;
	min-width: 0;
	transition: opacity .22s ease, transform .22s ease;
}

.aido-form__field[hidden],
.aido-form__state[hidden],
.aido-form__select-menu[hidden] {
	display: none !important;
}

.aido-form__width-d-100 { --aido-form-field-width: 100%; --aido-form-field-width-number: 100; }
.aido-form__width-d-75 { --aido-form-field-width: 75%; --aido-form-field-width-number: 75; }
.aido-form__width-d-66 { --aido-form-field-width: 66.666%; --aido-form-field-width-number: 66.666; }
.aido-form__width-d-50 { --aido-form-field-width: 50%; --aido-form-field-width-number: 50; }
.aido-form__width-d-33 { --aido-form-field-width: 33.333%; --aido-form-field-width-number: 33.333; }
.aido-form__width-d-25 { --aido-form-field-width: 25%; --aido-form-field-width-number: 25; }

.aido-form__label,
.aido-form__choice-label {
	display: flex;
	align-items: center;
	gap: .55em;
	margin: 0;
}

.aido-form__field-error {
	color: #c62828;
}

.aido-form__required {
	font: inherit;
	color: inherit;
	margin-inline-start: 4px;
}

.aido-form__control-shell,
.aido-form__select-toggle {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	border: 1px solid #b8b8b8;
	background: transparent;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.aido-form__control-shell.aido-form__icon-after,
.aido-form__select-toggle.aido-form__icon-after {
	flex-direction: row;
}

.aido-form__control-shell.aido-form__icon-after .aido-form__field-icon,
.aido-form__select-toggle.aido-form__icon-after .aido-form__field-icon {
	order: 3;
}

.aido-form__control,
.aido-form__native-select {
	font: inherit;
}

.aido-form__control {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 1.5em;
	margin: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
}

.aido-form__control:not(.iti__tel-input) {
	padding: 0 !important;
}

.aido-form__control-shell .iti {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

.aido-form__control-shell .iti input.aido-form__control {
	width: 100%;
	padding-top: 0 !important;
	padding-right: 0 !important;
	padding-bottom: 0 !important;
}

.aido-form .iti__country-selector {
	z-index: 120;
	display: flex;
	flex-direction: column;
	width: var(--aido-phone-panel-width, 100%) !important;
	min-width: 0 !important;
	max-width: var(--aido-phone-panel-width, 100%) !important;
	box-sizing: border-box;
	color: #222;
	overflow: visible;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.aido-form .iti--inline-country-selector:not(.iti--detached-country-selector) .iti__country-selector {
	top: calc(var(--aido-phone-field-bottom-offset, 100%) + var(--aido-phone-panel-gap)) !important;
	left: var(--aido-phone-panel-left-offset, 0px) !important;
	right: auto !important;
	bottom: auto !important;
}

.aido-form .iti__country-selector.iti__hide {
	display: none !important;
}

.aido-form .iti__country-list {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	max-height: min(260px, 45vh);
}

.aido-form .iti__search-input-wrapper {
	--aido-phone-search-icon-size: 17px;
	--aido-phone-search-icon-color: currentColor;
	--aido-phone-search-icon-offset: 10px;
	--aido-phone-search-icon-gap: 10px;
	--aido-phone-search-padding-top: 10px;
	--aido-phone-search-padding-right: 10px;
	--aido-phone-search-padding-bottom: 10px;
	--aido-phone-search-padding-left: 0px;
	z-index: 2;
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	overflow: visible;
	background: transparent;
	border: 0;
}

.aido-form .iti__search-input {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid #b8b8b8;
	border-radius: 10px;
	padding-top: var(--aido-phone-search-padding-top);
	padding-right: var(--aido-phone-search-padding-right);
	padding-bottom: var(--aido-phone-search-padding-bottom);
	padding-left: calc(
		var(--aido-phone-search-padding-left) +
		var(--aido-phone-search-icon-offset) +
		var(--aido-phone-search-icon-size) +
		var(--aido-phone-search-icon-gap)
	);
}

.aido-form .iti__search-icon {
	left: var(--aido-phone-search-icon-offset);
}

.aido-form .iti__search-icon-svg {
	width: var(--aido-phone-search-icon-size);
	height: var(--aido-phone-search-icon-size);
	stroke: var(--aido-phone-search-icon-color);
}

.aido-form .iti__country-list {
	margin: 0;
	border: 1px solid #b8b8b8;
	border-radius: 10px;
}

/* El borde del listado telefónico contiene también la barra AiDo. */
.aido-form .iti__country-selector.aido-custom-scrollbar--active > .iti__country-list.aido-custom-scrollbar__viewport {
	width: 100%;
	max-width: 100%;
}

.aido-form .iti__country-selector.aido-custom-scrollbar--active > .iti__country-list > .iti__country,
.aido-form .iti__country-selector.aido-custom-scrollbar--active > .iti__country-list > .iti__no-results {
	box-sizing: border-box;
	width: calc(100% - var(--aido-scrollbar-width) - var(--aido-scrollbar-gap));
	max-width: calc(100% - var(--aido-scrollbar-width) - var(--aido-scrollbar-gap));
}

.aido-form .iti__search-input {
	font: inherit;
}

textarea.aido-form__control {
	min-height: 110px;
	resize: vertical;
}

.aido-form__field-icon,
.aido-form__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
}

.aido-form__field-icon svg,
.aido-form__button-icon svg,
.aido-form__state-media svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aido-form__field-error {
	display: block;
	width: 100%;
	min-height: 0;
	font-size: .82em;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.aido-form__field-error:empty {
	display: none;
}

.aido-form--hide-field-errors .aido-form__field-error {
	display: none !important;
}

.aido-form__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.aido-form__choice-label input {
	margin: 0;
}

.aido-form__select {
	position: relative;
	width: 100%;
	z-index: 1;
}

.aido-form__select.is-open {
	z-index: 50;
}

.aido-form__native-select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.aido-form__select-toggle {
	position: relative;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.aido-form__select-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aido-form__select-arrow {
	width: .65em;
	height: .65em;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-20%);
	transition: transform .2s ease;
}

.aido-form__select.is-open .aido-form__select-arrow {
	transform: rotate(225deg) translate(-10%, -10%);
}

.aido-form__select-menu {
	position: absolute;
	top: calc(100% + var(--aido-form-select-panel-gap));
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	max-height: 320px;
	overflow: auto;
	padding: 7px;
	border: 1px solid #b8b8b8;
	background: #fff;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
}

.aido-form__select-option {
	display: flex;
	align-items: center;
	width: 100%;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.aido-form__select-check {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-left: auto;
	line-height: 1;
}

.aido-form__select-option.is-selected .aido-form__select-check {
	display: inline-flex;
}

.aido-form__select-check svg,
.aido-phone-country-check-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aido-phone-country-check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.aido-form__range-wrap {
	align-items: center;
}

.aido-form__range {
	flex: 1 1 auto;
	min-width: 70px;
	accent-color: currentColor;
}

.aido-form__range-output {
	display: inline-flex;
	align-items: baseline;
	gap: .18em;
	white-space: nowrap;
}

.aido-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin-top: 18px;
}

.aido-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	border: 1px solid transparent;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.aido-form__button:disabled {
	cursor: wait;
	opacity: .65;
}

.aido-form__button.is-loading .aido-form__button-icon {
	animation: aido-form-pulse .8s ease-in-out infinite alternate;
}

.aido-form__states {
	margin-top: 16px;
}

.aido-form__state {
	display: flex;
	flex-direction: column;
	gap: 7px;
	animation: aido-form-state-in .28s ease both;
}

.aido-form__state-media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	height: auto;
}

.aido-form__state-title,
.aido-form__state-text {
	display: block;
}

@keyframes aido-form-state-in {
	from { opacity: 0; transform: translateY(7px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes aido-form-pulse {
	to { transform: scale(.82); opacity: .55; }
}

@media (max-width: 1024px) {
	.aido-form__width-t-100 { --aido-form-field-width: 100%; --aido-form-field-width-number: 100; }
	.aido-form__width-t-75 { --aido-form-field-width: 75%; --aido-form-field-width-number: 75; }
	.aido-form__width-t-66 { --aido-form-field-width: 66.666%; --aido-form-field-width-number: 66.666; }
	.aido-form__width-t-50 { --aido-form-field-width: 50%; --aido-form-field-width-number: 50; }
	.aido-form__width-t-33 { --aido-form-field-width: 33.333%; --aido-form-field-width-number: 33.333; }
	.aido-form__width-t-25 { --aido-form-field-width: 25%; --aido-form-field-width-number: 25; }
}

@media (max-width: 767px) {
	.aido-form__width-m-100 { --aido-form-field-width: 100%; --aido-form-field-width-number: 100; }
	.aido-form__width-m-75 { --aido-form-field-width: 75%; --aido-form-field-width-number: 75; }
	.aido-form__width-m-66 { --aido-form-field-width: 66.666%; --aido-form-field-width-number: 66.666; }
	.aido-form__width-m-50 { --aido-form-field-width: 50%; --aido-form-field-width-number: 50; }
	.aido-form__width-m-33 { --aido-form-field-width: 33.333%; --aido-form-field-width-number: 33.333; }
	.aido-form__width-m-25 { --aido-form-field-width: 25%; --aido-form-field-width-number: 25; }
}

@media (prefers-reduced-motion: reduce) {
	.aido-form *,
	.aido-form *::before,
	.aido-form *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
