.vetero-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.vetero-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.vetero-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 28, 49, 0.72);
	cursor: pointer;
}

.vetero-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 42px 42px 36px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	transform: translateY(20px);
	transition: transform 0.25s ease;
}

.vetero-modal.is-open .vetero-modal__dialog {
	transform: translateY(0);
}

.vetero-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: #2f4f85;
	font-family: Arial, sans-serif;
	font-size: 36px;
	font-weight: 300;
	line-height: 1;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.vetero-modal__close:hover,
.vetero-modal__close:focus-visible {
	color: #fff;
	background: #2f4f85;
	outline: none;
}

.vetero-modal__title {
	margin: 0 45px 28px 0;
	color: #2f4f85;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 600;
	line-height: 1.15;
}

.vetero-modal__form p {
	margin: 0 0 18px;
}

.vetero-modal__form label {
	display: block;
	color: #202938;
	font-weight: 500;
}

.vetero-modal__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.vetero-modal__form textarea,
.vetero-modal__form select {
	box-sizing: border-box;
	width: 100%;
	margin-top: 7px;
	padding: 13px 15px;
	color: #202938;
	font: inherit;
	background: #fff;
	border: 1px solid #ccd3df;
	border-radius: 8px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.vetero-modal__form textarea {
	min-height: 120px;
	resize: vertical;
}

.vetero-modal__form input:focus,
.vetero-modal__form textarea:focus,
.vetero-modal__form select:focus {
	border-color: #2f4f85;
	box-shadow: 0 0 0 3px rgba(47, 79, 133, 0.13);
}

.vetero-modal__form input[type="submit"] {
	min-height: 48px;
	padding: 12px 28px;
	color: #fff;
	font: inherit;
	font-weight: 500;
	background: #2f4f85;
	border: 1px solid #2f4f85;
	border-radius: 8px;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.vetero-modal__form input[type="submit"]:hover {
	background: #203d70;
	border-color: #203d70;
}

.vetero-modal__form .wpcf7-spinner {
	vertical-align: middle;
}

.vetero-modal__form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
}

.vetero-modal__form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 15px;
	border-radius: 8px;
}

body.vetero-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.vetero-modal {
		align-items: flex-start;
		padding: 12px;
	}

	.vetero-modal__dialog {
		max-height: calc(100vh - 24px);
		padding: 36px 22px 26px;
		border-radius: 14px;
	}

	.vetero-modal__title {
		margin-bottom: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vetero-modal,
	.vetero-modal__dialog {
		transition: none;
	}
}
