/* eg-modal-contact.css
   Mini-form contatti in finestra modale, richiamabile da un link in qualsiasi
   pagina del sito. Stili autonomi (prefisso .egmc-) per funzionare anche nelle
   pagine che non caricano sky-forms.css.
   Vedi: assets/js/eg-modal-contact.js, phplib/modal_contact_sendmail.php */

.egmc-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10500;
	display: none;
	overflow-y: auto;
	padding: 30px 15px;
	background: rgba(30, 39, 46, 0.65);
	opacity: 0;
	transition: opacity 0.25s ease;
	-webkit-overflow-scrolling: touch;
}

.egmc-overlay.egmc-open {
	display: block;
}

.egmc-overlay.egmc-visible {
	opacity: 1;
}

/* blocco lo scroll della pagina sottostante mentre il modale è aperto */
body.egmc-noscroll {
	overflow: hidden;
}

.egmc-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	transform: translateY(-18px);
	transition: transform 0.25s ease;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	text-align: left;
}

.egmc-overlay.egmc-visible .egmc-dialog {
	transform: translateY(0);
}

.egmc-header {
	padding: 18px 50px 18px 25px;
	border-bottom: 1px solid #eee;
	border-top: 3px solid #72c02c;
}

.egmc-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	color: #445;
	line-height: 1.3;
}

.egmc-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 34px;
	color: #999;
	cursor: pointer;
}

.egmc-close:hover {
	color: #333;
}

.egmc-body {
	padding: 20px 25px 25px;
}

.egmc-field {
	margin-bottom: 14px;
}

.egmc-field > label {
	display: block;
	margin-bottom: 5px;
	font-weight: 400;
	color: #777;
}

.egmc-req {
	color: #d9534f;
}

.egmc-input,
.egmc-textarea {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: #444;
	box-shadow: none;
}

.egmc-input:focus,
.egmc-textarea:focus {
	border-color: #72c02c;
	outline: none;
}

.egmc-textarea {
	min-height: 120px;
	resize: vertical;
}

.egmc-check {
	display: block;
	position: relative;
	padding-left: 26px;
	margin-bottom: 16px;
	font-weight: 400;
	color: #777;
	cursor: pointer;
}

.egmc-check input {
	position: absolute;
	top: 3px;
	left: 0;
	margin: 0;
}

.egmc-captcha-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.egmc-captcha-row .egmc-input {
	max-width: 160px;
	text-transform: uppercase;
}

.egmc-captcha-img {
	width: 100px;
	height: 32px;
	border: 1px solid #ddd;
	cursor: pointer;
}

.egmc-captcha-reload {
	border: 0;
	background: none;
	padding: 0;
	color: #72c02c;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
}

.egmc-error {
	display: none;
	margin-top: 4px;
	color: #d9534f;
	font-size: 13px;
}

.egmc-field.egmc-has-error .egmc-input,
.egmc-field.egmc-has-error .egmc-textarea {
	border-color: #d9534f;
}

.egmc-field.egmc-has-error .egmc-error {
	display: block;
}

.egmc-alert {
	display: none;
	margin-bottom: 14px;
	padding: 10px 12px;
	border-left: 3px solid #d9534f;
	background: #fdf1f0;
	color: #a94442;
}

.egmc-alert.egmc-shown {
	display: block;
}

.egmc-submit {
	border: 0;
	padding: 9px 20px;
	background: #2b3e50;
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease;
}

.egmc-submit:hover {
	background: #72c02c;
}

.egmc-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.egmc-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: #999;
}

/* honeypot antispam: invisibile ma non display:none (i bot lo ignorerebbero) */
.egmc-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.egmc-success {
	display: none;
	padding: 35px 25px 40px;
	text-align: center;
}

.egmc-success i,
.egmc-success .egmc-tick {
	display: inline-block;
	width: 54px;
	height: 54px;
	margin-bottom: 15px;
	border-radius: 50%;
	background: #72c02c;
	color: #fff;
	font-size: 28px;
	line-height: 54px;
	font-style: normal;
}

.egmc-success p {
	margin: 0;
	font-size: 17px;
	color: #445;
}

.egmc-sent .egmc-body {
	display: none;
}

.egmc-sent .egmc-success {
	display: block;
}

@media (max-width: 600px) {
	.egmc-overlay {
		padding: 0;
	}

	.egmc-dialog {
		max-width: none;
	}

	.egmc-captcha-row {
		flex-wrap: wrap;
	}
}
