/* TAI Modern Contact Pop-up
   Fonts (MalmoSans Pro) are already loaded by the theme; we just call them. */

/* ---- Trigger link ---- */

a.tai-contact-link {
	display: inline-block;
	padding: 7px 20px 5px 20px;
	background-color: #c2e6e9;
	font-family: "MalmoSansPro-Bold", "Avenir Next", Avenir, sans-serif;
	font-size: 14px;
	color: #0e1b25;
	text-decoration: none;
	cursor: pointer;
}

a.tai-contact-link:hover {
	color: #ffffff;
}

a.tai-contact-link--plain {
	padding: 0;
	background: none;
	color: #0e1b25;
}

a.tai-contact-link--plain:hover {
	color: #3eb2bf;
}

/* ---- Overlay ---- */

.tai-contact-overlay[hidden] {
	display: none;
}

.tai-contact-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 20px;
}

.tai-contact-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.6);
}

.tai-contact-panel {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 380px;
	max-width: 100%;
	margin: auto;
	padding: 24px 30px 30px;
	background-color: #0e1b25;
	text-align: center;
	font-family: "MalmoSansPro-Regular", "Avenir Next", Avenir, sans-serif;
	font-size: 14px;
	color: #ffffff;
}

.tai-contact-panel *,
.tai-contact-panel *:before,
.tai-contact-panel *:after {
	box-sizing: border-box;
}

/* ---- Close ---- */

.tai-contact-close {
	position: absolute;
	top: 4px;
	right: 8px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.tai-contact-close:hover,
.tai-contact-close:focus {
	color: #c2e6e9;
	background: none;
}

/* ---- Heading and intro ---- */

.tai-contact-panel .tai-contact-heading {
	margin: 0;
	padding: 0;
	font-family: "MalmoSansPro-Bold", "Avenir Next", Avenir, sans-serif;
	font-weight: normal;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
	color: #c2e6e9;
}

.tai-contact-panel .tai-contact-intro {
	width: 320px;
	max-width: 100%;
	margin: 14px auto 0;
	font-size: 14px;
	line-height: 1.7;
	text-align: left;
	color: #ffffff;
}

/* ---- Form ---- */

.tai-contact-form {
	width: 320px;
	max-width: 100%;
	margin: 0 auto;
	text-align: left;
}

.tai-contact-form label {
	display: block;
	width: 310px;
	max-width: 100%;
	margin: 0 0 10px;
	font-family: "MalmoSansPro-Regular", "Avenir Next", Avenir, sans-serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.6;
	color: #ffffff;
}

.tai-contact-form > label:first-child {
	margin-top: 12px;
}

.tai-contact-form input[type="text"],
.tai-contact-form input[type="email"],
.tai-contact-form input[type="tel"],
.tai-contact-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 4px;
	padding: 5px 5px 0 5px;
	font-family: "MalmoSansPro-Regular", "Avenir Next", Avenir, sans-serif;
	font-size: 11px;
	color: #0e1b25;
	background-color: #ffffff;
	border: 1px solid #0e1b25;
	border-radius: 0;
	box-shadow: none;
}

.tai-contact-form input[type="text"],
.tai-contact-form input[type="email"],
.tai-contact-form input[type="tel"] {
	height: 22px;
}

.tai-contact-form textarea {
	min-height: 90px;
	resize: vertical;
}

.tai-contact-form input:focus,
.tai-contact-form textarea:focus {
	outline: 2px solid #c2e6e9;
	outline-offset: 1px;
}

.tai-contact-form .tai-invalid {
	border-color: #c2e6e9;
	box-shadow: 0 0 0 1px #c2e6e9;
}

.tai-contact-check {
	position: relative;
	top: 5px;
	font-size: 10px !important;
	line-height: 1.5;
}

.tai-contact-check input {
	float: left;
	width: auto;
	height: auto;
	margin: 1px 10px 0 0;
}

/* Honeypot */

.tai-contact-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Messages ---- */

.tai-contact-error {
	margin: 12px 0 0;
	font-size: 11px;
	line-height: 1.6;
	color: #c2e6e9;
}

.tai-contact-error[hidden] {
	display: none;
}

/* ---- Submit ---- */

.tai-contact-submit {
	display: block;
	width: 130px;
	height: 32px;
	margin: 22px auto 0;
	padding: 0;
	font-family: "MalmoSansPro-Regular", "Avenir Next", Avenir, sans-serif;
	font-size: 14px;
	line-height: 25px;
	text-align: center;
	text-transform: uppercase;
	color: #ffffff;
	background-color: transparent;
	border: 1px solid #ffffff;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
}

.tai-contact-submit:hover {
	color: #ffffff;
	background-color: #0e1b25;
	border-color: #c2e6e9;
}

.tai-contact-submit[disabled] {
	opacity: 0.5;
	cursor: default;
}

/* ---- Thank you ---- */

.tai-contact-thanks[hidden] {
	display: none;
}

.tai-contact-thanks {
	padding: 14px 0 10px;
}

.tai-contact-thanks p {
	width: 320px;
	max-width: 100%;
	margin: 18px auto 0;
	font-size: 14px;
	line-height: 1.9;
	color: #ffffff;
}

.tai-contact-body[hidden] {
	display: none;
}

/* ---- Phones ---- */

@media only screen and (max-width: 768px) {
	.tai-contact-panel {
		padding: 20px 18px 24px;
	}

	.tai-contact-panel .tai-contact-intro,
	.tai-contact-form,
	.tai-contact-form label {
		width: 100%;
	}
}

/* ---- Optional CAPTCHA (Cloudflare Turnstile) ---- */

.tai-contact-turnstile {
	display: flex;
	justify-content: center;
	margin: 14px 0 0;
	min-height: 0;
}

.tai-contact-turnstile:empty {
	margin: 0;
}
