/*!
 * Enzo — modals styles (conditionally enqueued)
 * Selectors preserved from main.css.
 */

.enzo-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
}

.enzo-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	overflow: hidden;
	border-radius: 20px;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.enzo-video-modal__content {
	aspect-ratio: 16 / 9;
	background: #000;
}

.enzo-video-modal__content iframe,
.enzo-video-modal__content video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.enzo-video-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 768px) {
.enzo-video-modal {
		padding: 16px;
	}
.enzo-video-modal__dialog {
		border-radius: 16px;
	}
.enzo-video-modal__close {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}
}

.product-quote-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(67, 71, 74, 0.72);
}

.product-quote-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(620px, 100%);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 24px;
	border-radius: 20px;
	background: var(--white);
	box-shadow: var(--enzo-shadow);
	outline: none;
}

.product-quote-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.product-quote-modal__title {
	margin: 0;
	color: var(--dark);
	font-size: 24px;
	line-height: 1.3;
}

.product-quote-modal__close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--white);
	color: var(--dark);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.product-quote-modal__close:hover,
.product-quote-modal__close:focus-visible {
	border-color: var(--primary);
	color: var(--primary);
}

.product-quote-modal__body {
	display: grid;
	gap: 16px;
}

.product-quote-modal__product {
	margin: 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--light);
	color: var(--text);
	font-size: 15px;
	line-height: 1.5;
}

.product-quote-modal__form .wpcf7,
.product-quote-modal__form .wpcf7-form {
	margin: 0;
	padding-bottom: 0;
}

.product-quote-modal__form .enzo-cf7-stack {
	gap: 16px;
	margin-bottom: 0;
	padding-bottom: 0;
}

.product-quote-modal__form .wpcf7 input[type="text"],
.product-quote-modal__form .wpcf7 input[type="email"],
.product-quote-modal__form .wpcf7 input[type="tel"],
.product-quote-modal__form .wpcf7 input[type="url"],
.product-quote-modal__form .wpcf7 textarea,
.product-quote-modal__form .wpcf7 select {
	width: 100%;
}

.product-quote-modal__form .wpcf7 textarea {
	min-height: 140px;
	height: 140px;
	resize: vertical;
}

.product-quote-modal__form .quote-form-row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.product-quote-modal__form .wpcf7-response-output {
	margin-bottom: 0;
}

@media (max-width: 768px) {
.product-quote-modal {
		padding: 16px;
		align-items: flex-end;
	}
.product-quote-modal__dialog {
		width: 100%;
		max-height: calc(100dvh - 32px);
		padding: 18px;
		border-radius: 16px;
	}
.product-quote-modal__title {
		font-size: 20px;
	}
.product-quote-modal__close {
		width: 44px;
		height: 44px;
	}
.product-quote-modal__form .quote-form-row--two {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
.product-quote-modal__form .wpcf7 textarea {
		min-height: 120px;
		height: 120px;
	}
}

.enzo-video-modal[hidden] {
	display: none;
}

.enzo-video-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	height: 100dvh;
	margin: 0;
	padding: 24px;
}

body.is-video-modal-open {
	overflow: hidden;
}

/* Product quote modal */

.product-quote-modal[hidden] {
	display: none;
}

.product-quote-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

body.is-product-quote-modal-open {
	overflow: hidden;
}
