.zform {
	--zform-accent: #f25083;
	accent-color: var(--zform-accent);
	--zform-bg: #fff;
	--zform-max-width: 480px;
	--zform-radius: 10px;
	--zform-padding: 2rem;
	--zform-overlay: rgba(0, 0, 0, 0.25);
	--zform-close-color: #fff;
	--zform-close-bg: var(--zform-accent);
	--zform-scrollbar-bg: transparent;
	--zform-scrollbar-color: var(--zform-accent);
	--zform-scrollbar-width: 6px;
	--zform-scrollbar-radius: 3px;
	--zform-input-radius: 24px;
	--zform-input-color-text: #000;
	--zform-input-color-border: #f0f0f0;
	--zform-input-color-bg: #f5f5f5;
	--zform-submit-color: #fff;
	--zform-submit-bg: var(--zform-accent);
}
.zform * {
	box-sizing: border-box;
}

.zform p {
	position: relative;
	display: block;
	margin: 0 0 1rem 0;
}

.zform__popup--opened {
	overflow-y: hidden;
}

.zform__popup::-webkit-scrollbar {
	width: var(--zform-scrollbar-width);
}

.zform__popup::-webkit-scrollbar-track {
	background: var(--zform-scrollbar-bg);
	border-radius: var(--zform-scrollbar-radius);
}

.zform__popup::-webkit-scrollbar-thumb {
	background: var(--zform-scrollbar-color);
	border-radius: var(--zform-scrollbar-radius);
}

.zform__popup::-webkit-scrollbar-thumb:hover {
	background: var(--zform-scrollbar-color);
}

.zform__btn {
	text-align: center;
}

.zform__btn > a:not(.hide, .hidden) {
	display: inline-flex;
	margin: 1rem 0;
	padding: 1rem 2rem;
	cursor: pointer;
}

.zform__overlay {
	position: fixed;
	z-index: -1;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s;
	background: var(--zform-overlay);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	display: block;
}

.zform__wrapper.active .zform__overlay {
	z-index: 1008;
	opacity: 1;
}

.zform__popup {
	position: fixed;
	z-index: -1;
	background: var(--zform-bg);
	top: 50%;
	left: 50%;
	width: var(--zform-max-width);
	max-width: 90vw;
	height: auto;
	max-height: 90vh;
	overflow-x: hidden;
	overflow-y: auto;
	transform: translate(-50%, -50%);
	margin: 0;
	padding: var(--zform-padding);
	opacity: 0;
	transition: opacity 0.3s;
	display: block;
	border-radius: var(--zform-radius);
}

.zform__wrapper.active .zform__popup {
	z-index: 1009;
	opacity: 1;
}

.zform__close {
	position: absolute;
	top: 0;
	right: 0;
	width: var(--zform-padding);
	height: var(--zform-padding);
	background: var(--zform-close-bg);
	color: var(--zform-close-color);
	border-radius: 0 0 0 var(--zform-radius);
	cursor: pointer;
}

.zform__close::before,
.zform__close::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 0px;
	top: 50%;
	left: 50%;
	border-top: 2px solid;
	transform: translate(-50%, -50%) rotate(45deg) scale(0.8);
}

.zform__close::after {
	transform: translate(-50%, -50%) rotate(-45deg) scale(0.8);
}

.zform__title {
	position: relative;
	max-width: var(--zform-max-width);
	margin: 0 auto 1rem;
	display: block;
	text-align: center;
	font-size: 2rem;
	line-height: 1.4;
}
.zform__text {
	position: relative;
	max-width: var(--zform-max-width);
	margin: 1rem auto;
	display: block;
	text-align: center;
	font-size: 1rem;
	line-height: 1.4;
}

.zform__form {
	position: relative;
	max-width: var(--zform-max-width);
	margin: 0 auto;
}

.zform__form label {
	padding: 0 0 0 1rem;
	display: block;
	position: relative;
	font-size: 1rem;
	line-height: 1.4;
}
.zform__form label em,
.zform__form label i {
	font-style: normal;
	color: var(--zform-accent);
	margin-left: 4px;
}

.zform__form input[type="text"],
.zform__form input[type="email"],
.zform__form select {
	position: relative;
	margin: 0;
	padding: 1rem 2rem 1rem 1rem;
	max-width: 100%;
	width: 100%;
	border-radius: var(--zform-input-radius);
	border: 1px solid transparent;
	font-size: 1rem;
	line-height: 1;
	color: var(--zform-input-color-text);
	background: var(--zform-input-color-bg);
	box-shadow: inset 0 0 0 1px var(--zform-input-color-border);
}
.zform__form input[type="text"]:focus,
.zform__form input[type="email"]:focus,
.zform__form select:focus {
	outline: 1px solid;
}

.zform__form .error,
.zform__form .error_iti {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
	color: red;
	position: relative;
	bottom: 0;
	left: 0;
}

.zform__form input[type="radio"] {
	width: auto;
	margin: 4px;
}

.zform__form input[type="radio"] + label {
	padding: 0;
	display: inline-flex;
	align-items: center;
	font-size: 1rem;
}

.zform__form input[type="radio"] + label svg {
	margin: 0 5px;
	opacity: 0.7;
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
}
.zform__form input[type="radio"]:checked + label svg {
	opacity: 1;
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}
.zform__connect {
	margin: 0.5rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
	position: relative;
}
.zform__payment > *,
.zform__connect > * {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 5px 10px 5px 0;
	border-radius: var(--zform-input-radius);
	border: none;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--zform-input-color-text);
	box-shadow: none;
	background: none;
	width: auto;
}

.zform__payment > * {
	width: 100%;
}

.zform__payment input[type="radio"] + label {
	padding-left: 5px;
}

.zform__payment,
.zform__connect {
	padding: 0.5rem;
	border-radius: var(--zform-input-radius);
	background: var(--zform-input-color-bg);
	box-shadow: inset 0 0 0 1px var(--zform-input-color-border);
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
}
.zform__payment {
	flex-direction: column;
}

.zform__submit {
	text-align: center;
}
.zform .zform__submit button {
	color: var(--zform-submit-color);
	background: var(--zform-submit-bg);
	border: 0;
	border-radius: var(--zform-input-radius);
	box-shadow: none;
	margin: 0 auto;
	padding: 1rem 2rem;
	width: 100%;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}
.zform .zform__submit button[disabled],
.zform .zform__submit button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
	color: var(--zform-submit-color);
	background: var(--zform-submit-bg);
}

.zform .zform__policy {
	padding: 0;
	text-align: center;
	font-size: 1rem;
	display: flex;
	position: relative;
	align-items: flex-start;
	flex-wrap: wrap;
	text-align: left;
}

.zform__policy a {
	font-size: inherit;
	font-weight: inherit;
	text-decoration: underline !important;
	white-space: nowrap;
	color: var(--zform-accent);
}
.zform__policy input[type="checkbox"] {
	position: relative;
	z-index: 1;
	margin: 0;
	flex: 1;
	width: 1.25rem;
	height: 1.25rem;
}
.zform__policy span {
	flex: 10;
	font-size: 0.8em;
	line-height: 1.5;
	min-width: calc(100% - 2rem);
	max-width: calc(100% - 2rem);
	width: calc(100% - 2rem);
}
.zform__policy .zform__message {
	padding-left: 2rem;
}

.zform__form:after {
	content: "";
	position: absolute;
	z-index: 2;
	display: none;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.zform__form:before {
	content: "";
	position: absolute;
	z-index: 3;
	display: none;
	top: 50%;
	left: 50%;
	width: 100px;
	height: 100px;
	margin: -50px 0 0 -50px;
	border-radius: 150px;
	border: 10px solid #ccc;
	border-top-color: var(--zform-accent);

	-webkit-animation: anim-rotate linear 1s infinite;
	animation: anim-rotate linear 1s infinite;
}

.zform__form.disabled {
	opacity: 1;
}
.zform__form.disabled:after {
	display: block;
}
.zform__form.disabled:before {
	display: block;
}
@-webkit-keyframes anim-rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
@keyframes anim-rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.zform .iti {
	width: 100%;
}
.zform .iti__selected-country {
	padding: 0 !important;
}
.zform .iti__flag-container .iti__selected-flag {
	background: none !important;
	padding: 0 1rem;
}
.zform .iti--allow-dropdown input[type="text"] {
	padding-left: 50px !important;
}
.zform #phone_iti-error {
	display: none !important;
}

.zform__group {
	position: relative;
	margin-bottom: 1rem;
}

.zform__radio {
	padding: 0.5rem 0;
	border-radius: var(--zform-input-radius);
	background: var(--zform-input-color-bg);
	box-shadow: inset 0 0 0 1px var(--zform-input-color-border);
}

.zform__message {
	display: block;
	height: 0;
	overflow: hidden;
	padding: 0 1rem;
	font-size: 0.85em;
	color: var(--zform-accent);
	transition: all 0.5s;
}

form.form-not-valid .zform__group.field-not-valid .zform__message {
	/*display: block;*/
	height: auto;
	-webkit-animation: horizontal-shaking 1s linear;
	animation: horizontal-shaking 1s linear;
}
@-webkit-keyframes horizontal-shaking {
	0%,
	40% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(5px);
	}
	70% {
		transform: translateX(-5px);
	}
	90% {
		transform: translateX(5px);
	}
	100% {
		transform: translateX(0);
	}
}
@keyframes horizontal-shaking {
	0%,
	40% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(5px);
	}
	70% {
		transform: translateX(-5px);
	}
	90% {
		transform: translateX(5px);
	}
	100% {
		transform: translateX(0);
	}
}

.icon-valid {
	position: absolute;
	z-index: 1;
	/*top: 2.4rem;*/
	bottom: 1.2rem;
	right: 1rem;
	display: none;
}
.zform__group.field-valid .icon-valid {
	display: block;
}
.zform__policy .icon-valid {
	display: none !important;
}

.zform__group.field-valid .zform__radio + .icon-valid {
	bottom: auto;
	top: 0.25rem;
}
