/* Contact form popup (contact-form.js). Colours follow the site template (#6699cc / #336699). */
.wz-contact {
	--wz-accent: #6699cc;
	--wz-accent-dark: #336699;
	--wz-text: #333;
	--wz-muted: #6b7280;
	--wz-border: #c9d1d9;
	--wz-error: #b42318;
	--wz-ok: #067647;
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: Arial, Helvetica, sans-serif;
}
.wz-contact[hidden] { display: none; }
html.wz-contact-open { overflow: hidden; }

.wz-contact__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .55);
}

.wz-contact__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 460px;
	max-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	margin: 0;
	padding: 24px 24px 20px;
	background: #fff;
	color: var(--wz-text);
	border-top: 4px solid var(--wz-accent);
	border-radius: 6px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.wz-contact__title {
	margin: 0 32px 16px 0;
	font-size: 20px;
	line-height: 1.3;
	color: var(--wz-text);
}
[dir="rtl"] .wz-contact__title { margin: 0 0 16px 32px; }

.wz-contact__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wz-muted);
	font-size: 26px;
	line-height: 32px;
	cursor: pointer;
}
[dir="rtl"] .wz-contact__close { right: auto; left: 12px; }
.wz-contact__close:hover { color: var(--wz-text); }

.wz-contact__field {
	display: block;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wz-text);
}
.wz-contact__field span { color: var(--wz-error); }

/* !important beats the template's fixed widths and heights of inputs. */
.wz-contact__field input,
.wz-contact__field textarea {
	display: block;
	box-sizing: border-box !important;
	max-width: 100%;
	width: 100% !important;
	height: auto !important;
	margin: 4px 0 0 !important;
	padding: 8px 10px !important;
	border: 1px solid var(--wz-border);
	border-radius: 4px;
	background: #fff;
	color: var(--wz-text);
	font: 400 15px/1.4 Arial, Helvetica, sans-serif;
	box-shadow: none;
}
.wz-contact__field textarea { resize: vertical; min-height: 110px; }
.wz-contact__field input:focus,
.wz-contact__field textarea:focus {
	border-color: var(--wz-accent);
	outline: 2px solid rgba(0, 136, 204, .25);
	outline-offset: 0;
}
[dir="rtl"] .wz-contact__field input[dir="ltr"] { text-align: right; }

.wz-contact__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wz-contact__status {
	min-height: 0;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.4;
}
.wz-contact__status:empty { display: none; }
.wz-contact__status--error { color: var(--wz-error); }
.wz-contact__status--ok { color: var(--wz-ok); font-weight: 600; }

.wz-contact__send {
	display: inline-block;
	padding: 9px 22px;
	border: 0;
	border-radius: 4px;
	background: var(--wz-accent);
	color: #fff;
	font: 600 15px/1.4 Arial, Helvetica, sans-serif;
	cursor: pointer;
}
.wz-contact__send:hover { background: var(--wz-accent-dark); }
.wz-contact__send:disabled { opacity: .6; cursor: default; }
.wz-contact__send:focus-visible,
.wz-contact__close:focus-visible { outline: 2px solid var(--wz-accent); outline-offset: 2px; }

/* The footer "Write a letter" button keeps the template look (.btn.btn-primary). */
.static-mail-btn { text-decoration: none !important; }
