/* ZEG team-member contact modal */

.zeg-contact-dialog {
	width: min(560px, calc(100vw - 2rem));
	max-width: 560px;
	max-height: min(90vh, calc(100% - 2rem));
	padding: 0;
	border: none;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	color: #1d2327;
	background: #f4f4ff;         /* pale tint, matches the Solutions popup */
	overflow: hidden;            /* clip the scrollbar so all 4 corners stay rounded */
}

/* Inner scroll area: keeps the rounded dialog corners intact when content overflows */
.zeg-contact-body {
	overflow-y: auto;
	padding: 2rem;
}

.zeg-contact-dialog::backdrop {
	background: rgba(10, 40, 40, 0.45);
	backdrop-filter: blur(3px);
}

/* Only displayed (as a flex column) when actually open; closed dialog stays display:none */
.zeg-contact-dialog[open] {
	display: flex;
	flex-direction: column;
	animation: zeg-dialog-in 0.18s ease-out;
}
@keyframes zeg-dialog-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Close button — teal corner tab with white × */
.zeg-contact-close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #fff;
	background: #19837c;
	border-radius: 0 14px 0 22px;   /* top-right matches dialog corner, bottom-left rounded tab */
}
.zeg-contact-close:hover { background: #146b65; }
.zeg-contact-close svg { width: 24px; height: 24px; }

.zeg-contact-heading {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	color: #19837c;
}
.zeg-contact-intro {
	margin: 0 0 1.25rem;
	color: #556;
	font-size: 0.95rem;
}

.zeg-contact-row {
	display: flex;
	gap: 1rem;
}
.zeg-contact-row > .zeg-contact-field { flex: 1; }

.zeg-contact-field {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
}
.zeg-contact-field label {
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0;
	color: #374151;
}
.zeg-contact-field input,
.zeg-contact-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 12px;
	border: 1px solid #d2edeb;       /* matches Solutions form */
	border-radius: 3px;              /* matches Solutions form */
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
	background: #fff;
	color: #1f2124;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.zeg-contact-field input:focus,
.zeg-contact-field textarea:focus {
	outline: none;
	border-color: #19837c;
	box-shadow: 0 0 0 3px rgba(25, 131, 124, 0.18);
}
.zeg-contact-field textarea { resize: vertical; min-height: 72px; }

/* Honeypot: visually & a11y hidden, still in the DOM for bots */
.zeg-contact-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.zeg-contact-status {
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
	min-height: 1.2em;
}
.zeg-contact-status.is-pending { color: #556; }
.zeg-contact-status.is-error   { color: #b91c1c; }
.zeg-contact-status.is-success { color: #0f7a4d; font-weight: 600; font-size: 1rem; }

.zeg-contact-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

/* Buttons — match the Solutions popup submit button */
.zeg-contact-btn-primary,
.zeg-contact-btn-secondary {
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid transparent;
}
.zeg-contact-btn-primary {
	/* !important beats the theme rule ".elementor-kit-7 [type=submit]:hover" (spec 0,3,0) */
	background: #19837c !important;
	color: #fff;
	padding: 7px 26px;
}
.zeg-contact-btn-primary:hover { background: #EC9600 !important; }   /* orange hover */
.zeg-contact-btn-primary:disabled { opacity: 0.6; cursor: default; }
.zeg-contact-btn-secondary {
	background: #fff;
	color: #515962;
	border-color: #d2edeb;
	padding: 7px 20px;
}
.zeg-contact-btn-secondary:hover { background: #f1f5f5; }

@media (max-width: 540px) {
	.zeg-contact-body { padding: 1.5rem; }
	.zeg-contact-row { flex-direction: column; gap: 0; }
}
