/* Site-wide contact modal. Mirrors the home-page contact form fields
   (name, email, company, message). Opens from any .mm-open-contact button. */

.mm-contact-modal[hidden] { display: none; }

.mm-contact-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 180ms ease;
}

.mm-contact-modal.is-open {
	opacity: 1;
}

.mm-contact-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.mm-contact-modal__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	scrollbar-width: none;
	background: #0a0a0a;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 40px 40px 36px;
	color: #fff;
	transform: translateY(10px);
	transition: transform 220ms ease;
}

.mm-contact-modal__panel::-webkit-scrollbar { display: none; }

.mm-contact-modal.is-open .mm-contact-modal__panel {
	transform: translateY(0);
}

.mm-contact-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: color 160ms ease;
}

.mm-contact-modal__close:hover {
	color: #fff;
}

.mm-contact-modal__title {
	font-size: 26px;
	font-weight: 300;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 12px;
	padding-right: 30px;
	letter-spacing: -0.01em;
}

.mm-contact-modal__lede {
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 24px;
	font-weight: 300;
}

.mm-contact-modal__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mm-contact-modal__form input,
.mm-contact-modal__form textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 15px;
	font-weight: 300;
	padding: 0 16px;
	height: 52px;
	line-height: 52px;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: border-color 160ms ease, background 160ms ease;
}

.mm-contact-modal__form textarea {
	height: auto;
	min-height: 140px;
	line-height: 1.5;
	padding: 14px 16px;
	resize: vertical;
	font-family: inherit;
	font-weight: 300;
}

.mm-contact-modal__form input:focus,
.mm-contact-modal__form textarea:focus {
	border-color: rgba(0, 180, 255, 0.7);
	background: rgba(255, 255, 255, 0.06);
}

.mm-contact-modal__form input::placeholder,
.mm-contact-modal__form textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.mm-contact-modal__submit {
	align-self: flex-start;
	margin-top: 6px;
	color: #fff;
}

.mm-contact-modal__error {
	font-size: 13px;
	color: rgba(255, 120, 120, 0.95);
	padding: 4px 0;
}

.mm-contact-modal .mm-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.mm-contact-modal__thanks {
	text-align: center;
	padding: 24px 0 8px;
}

.mm-contact-modal__thanks-check {
	font-size: 64px;
	color: #4ade80;
	line-height: 1;
	margin-bottom: 20px;
}

.mm-contact-modal__thanks-headline {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

body.mm-contact-modal-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.mm-contact-modal__panel {
		padding: 32px 22px 26px;
	}
	.mm-contact-modal__title {
		font-size: 20px;
	}
	.mm-contact-modal__lede {
		font-size: 14px;
	}
}
