/* TOPOSEL - "message sent" popup (Contact Us page and Home "Get In Touch" form). All screen sizes. */
.toposel-form-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}
.toposel-form-popup[hidden] {
	display: none;
}
.toposel-form-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 11, 14, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.toposel-form-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 40px 32px 32px;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 24px 60px rgba(9, 11, 14, 0.25);
	color: #090B0E;
	text-align: center;
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	transition: opacity 0.2s ease, transform 0.2s ease;
	outline: none;
}
.toposel-form-popup.is-open .toposel-form-popup__backdrop,
.toposel-form-popup.is-open .toposel-form-popup__dialog {
	opacity: 1;
	transform: none;
}
.toposel-form-popup__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 0 18px;
	border-radius: 50%;
	background: #E9F8EF;
	color: #1E9E57;
}
.toposel-form-popup__title {
	margin: 0 0 10px;
	color: #090B0E;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}
.toposel-form-popup__text {
	margin: 0 0 26px;
	color: #4A4F57;
	font-size: 16px;
	line-height: 1.55;
}
.toposel-form-popup__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 12px 28px;
	border: 0;
	border-radius: 50px;
	background: #4f2fd9;
	color: #FFFFFF;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
/* Same purple as the site's "Contact Us" button (#4f2fd9), also while focused: the button is focused when the
   popup opens, and the theme's (Astra) button:focus colour used to turn it dark. Hover = the site buttons' hover. */
.toposel-form-popup .toposel-form-popup__btn,
.toposel-form-popup .toposel-form-popup__btn:focus,
.toposel-form-popup .toposel-form-popup__btn:active {
	border: 0;
	background: #4f2fd9;
	color: #FFFFFF;
	box-shadow: none;
}
@media (hover: hover) {
	.toposel-form-popup .toposel-form-popup__btn:hover {
		background: #2807f2;
		color: #FFFFFF;
	}
}
.toposel-form-popup .toposel-form-popup__btn:focus-visible {
	outline: 3px solid rgba(79, 47, 217, 0.35);
	outline-offset: 2px;
}
html.toposel-form-popup-open,
html.toposel-form-popup-open body {
	overflow: hidden;
}

/* Dropdowns in the contact forms (Contact Us page and Home "Get In Touch"): one chevron for both, pointing up while
   the list is open (.toposel-select-open, set by form-success.js) and down again once a choice is made or it closes. */
.tsl-home .tsl-contact__form .wpcf7 select,
.toposel-page--contact .toposel-contact__form .wpcf7 select {
	padding-right: 36px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23090B0E' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	cursor: pointer;
}
.tsl-home .tsl-contact__form .wpcf7 select.toposel-select-open,
.toposel-page--contact .toposel-contact__form .wpcf7 select.toposel-select-open {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5 6 1.5l5 5' fill='none' stroke='%23090B0E' stroke-width='1.8'/%3E%3C/svg%3E");
}

@media (max-width: 480px) {
	.toposel-form-popup__dialog {
		padding: 34px 20px 24px;
		border-radius: 14px;
	}
	.toposel-form-popup__icon {
		width: 60px;
		height: 60px;
		margin-bottom: 14px;
	}
	.toposel-form-popup__icon svg {
		width: 44px;
		height: 44px;
	}
	.toposel-form-popup__title {
		font-size: 21px;
	}
	.toposel-form-popup__text {
		font-size: 15px;
		margin-bottom: 22px;
	}
	.toposel-form-popup__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.toposel-form-popup__backdrop,
	.toposel-form-popup__dialog {
		transition: none;
	}
}
