/* SIMATA Popup — all classes prefixed with simata-popup- */

.simata-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(39,39,39,0.75); /* #3 — stronger overlay */
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
}
.simata-popup-overlay.is-visible { opacity: 1; }

.simata-popup-modal {
	background: #FFFDFA;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.12);
	width: 100%;
	max-width: 490px; /* #9 — more breathing room */
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	transform: translateY(14px);
	transition: transform 0.3s ease;
}
.simata-popup-overlay.is-visible .simata-popup-modal { transform: translateY(0); }

/* Close button: soft translucent circle, refined */
.simata-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0,0,0,0.28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	font-weight: 300;
	line-height: 1;
	color: #fff;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 2;
	transition: background 0.2s, transform 0.2s;
}
.simata-popup-close:hover {
	background: rgba(0,0,0,0.45);
	transform: scale(1.05);
}

/* Hero image */
.simata-popup-hero {
	border-bottom: 1px solid #F0E8DD; /* #8 — separator line between image and form */
}
.simata-popup-hero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px 6px 0 0;
}

/* Body */
.simata-popup-body { padding: 32px 40px 40px; }

.simata-popup-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	color: #272727;
	text-align: center;
	margin: 0 0 12px;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.simata-popup-subhead {
	font-size: 14px;
	line-height: 1.65;
	color: rgba(39,39,39,0.75);
	text-align: center;
	margin: 0 0 24px;
}

/* Fields */
.simata-popup-field { margin-bottom: 20px; } /* #7 — more space between fields */

.simata-popup-field label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #272727;
	margin-bottom: 6px;
}

.simata-popup-field input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #D8C9B8;
	border-radius: 4px;
	padding: 12px 14px;
	font-family: 'Alegreya Sans', Georgia, sans-serif;
	font-size: 15px;
	color: #272727;
	background: #FFFDFA;
	outline: none;
	transition: border-color 0.2s;
	min-height: 48px;
	-webkit-appearance: none;
}
.simata-popup-field input:focus { border-color: #997C60; }
.simata-popup-field input.has-error { border-color: #c0392b; }

.simata-popup-error {
	font-size: 12px;
	color: #c0392b;
	margin-top: 5px;
	display: none;
}
.simata-popup-error.is-visible { display: block; }

/* Consent */
.simata-popup-consent {
	font-size: 11px;
	line-height: 1.55;
	color: rgba(39,39,39,0.55);
	text-align: center;
	margin: 16px 0;
}
/* #2 — Privacy Policy link: clearly visible, legal requirement */
.simata-popup-consent a {
	color: rgba(39,39,39,0.70);
	font-weight: 500;
	text-decoration: underline;
}

/* Submit */
.simata-popup-submit {
	width: 100%;
	background: #272727;
	color: #FFFDFA;
	border: none;
	border-radius: 4px;
	padding: 14px 20px;
	font-family: 'Alegreya Sans', Georgia, sans-serif;
	font-size: 15px;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: opacity 0.2s;
	min-height: 48px;
}
.simata-popup-submit:hover { opacity: 0.82; }
.simata-popup-submit:disabled { opacity: 0.45; cursor: default; }

.simata-popup-footer-text {
	font-size: 11px;
	color: rgba(39,39,39,0.4);
	text-align: center;
	margin: 14px 0 0;
}

/* Success state */
.simata-popup-form-wrap.is-hidden { display: none; }

.simata-popup-success {
	padding: 48px 40px;
	text-align: center;
	display: none;
}
.simata-popup-success.is-visible { display: block; }

.simata-popup-success h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	color: #272727;
	margin: 0 0 14px;
}
.simata-popup-success p {
	font-size: 14px;
	line-height: 1.7;
	color: rgba(39,39,39,0.72);
	margin: 0 0 28px;
}

.simata-popup-continue {
	background: none;
	border: 1px solid #272727;
	border-radius: 4px;
	padding: 10px 30px;
	font-family: 'Alegreya Sans', Georgia, sans-serif;
	font-size: 14px;
	color: #272727;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.simata-popup-continue:hover { background: #272727; color: #FFFDFA; }

/* Mobile */
@media (max-width: 520px) {
	.simata-popup-modal   { max-width: 100%; }

	/* #4 — hero image capped at 220px, cropped to fit */
	.simata-popup-hero img {
		max-height: 220px;
		object-fit: cover;
		object-position: center;
	}

	/* #5 — smaller heading on mobile */
	.simata-popup-heading { font-size: 22px; }

	/* #6 — padding: top 28px, sides 24px, bottom 32px */
	.simata-popup-body    { padding: 28px 24px 32px; }

	.simata-popup-success { padding: 40px 24px; }
}
