/*
 * Modal nativo dos 3 CTAs da ficha do empreendimento (ver lead-modal.js e
 * EQI_Empreendimento_Template::maybe_render_lead_modal()). Paleta oficial
 * da marca (ver também empreendimento-single.css): primary #014751, apoio
 * #042C3B, secondary #D9E74C, complementar #FF5B04, cream #FBECD7.
 */

body.eqi-lead-modal-open {
	overflow: hidden;
}

.eqi-lead-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
	background-color: rgba(4, 44, 59, 0.6);
}

.eqi-lead-modal-overlay.is-open {
	display: flex;
}

.eqi-lead-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: auto;
	padding: 36px 28px 28px;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(4, 44, 59, 0.35);
}

.eqi-lead-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #042c3b;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.eqi-lead-modal-close::before {
	content: '\00d7';
	font-size: 22px;
}

.eqi-lead-modal-close:hover {
	background-color: rgba(4, 44, 59, 0.08);
}

.eqi-lead-modal-title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	color: #042c3b;
	padding-right: 24px;
}

.eqi-lead-modal-subtitle {
	margin: 0 0 20px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: rgba(4, 44, 59, 0.75);
}

.eqi-lead-modal-field {
	margin-bottom: 16px;
}

.eqi-lead-modal-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #042c3b;
}

.eqi-lead-modal-field input {
	width: 100%;
	padding: 11px 14px;
	font-size: 1rem;
	color: #042c3b;
	background-color: #ffffff;
	border: 1px solid rgba(4, 44, 59, 0.2);
	border-radius: 6px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.eqi-lead-modal-field input:focus {
	outline: none;
	border-color: #014751;
}

.eqi-lead-modal-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.eqi-lead-modal-message {
	display: none;
	margin: 0 0 16px;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #014751;
}

.eqi-lead-modal-message.is-visible {
	display: block;
}

.eqi-lead-modal-message.is-error {
	color: #b32d2e;
}

/* Envio bem-sucedido: esconde os campos preenchidos, só a mensagem fica visível (o botão some via JS). */
.eqi-lead-modal-form.is-submitted .eqi-lead-modal-field {
	display: none;
}

.eqi-lead-modal-submit {
	width: 100%;
	padding: 13px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: #014751;
	background-color: #d9e74c;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.eqi-lead-modal-submit:hover:not(:disabled) {
	background-color: #ffffff;
	border-color: #014751;
	color: #014751;
}

.eqi-lead-modal-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 480px) {
	.eqi-lead-modal {
		padding: 30px 20px 22px;
	}
}
