/* ==========================================================================
   "Join the Newsletter!" opt-in section + black separator
   (matches the iconicriviera.com homepage 1:1)
   ========================================================================== */

/* --- Section shell ------------------------------------------------------ */
.opt-in-form {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	text-align: center;
	padding: 45px 20px 55px;
	margin: 0;
	clear: both;
}

/* --- Blue script heading (WildSpirit, same as footer headings) ----------- */
.opt-in-form h4.widget-title {
	font-family: "WS", "WildSpirit", cursive;
	font-size: 49px;
	line-height: 1.5;
	font-weight: 400;
	color: #1167b1;
	text-align: center;
	text-transform: none;
	background: none !important;
	border: none !important;
	margin: 0 0 5px;
	padding: 0.25em 0.5em;
}

/* --- Subtext -------------------------------------------------------------- */
.opt-in-form .form-container {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}
.opt-in-form .form-container > p {
	margin: 0 0 22px;
	text-align: center;
}

/* --- Email Subscribers form (when the plugin is active) ------------------- */
.opt-in-form .form-container form {
	margin: 0 auto;
	text-align: center;
}
.opt-in-form .form-container input[type="text"],
.opt-in-form .form-container input[type="email"] {
	display: inline-block;
	width: 100%;
	max-width: 340px;
	padding: 11px 20px;
	margin: 5px auto;
	border: 1px solid #000;
	border-radius: 28px;
	background: #fff;
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;
}
.opt-in-form .form-container input[type="submit"],
.opt-in-form .form-container button[type="submit"] {
	display: inline-block;
	padding: 11px 34px;
	margin: 10px auto 0;
	border: none;
	border-radius: 28px;
	background: #1167b1;
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.opt-in-form .form-container input[type="submit"]:hover,
.opt-in-form .form-container button[type="submit"]:hover {
	background: #0d548f;
}
.opt-in-form .form-container .es_subscription_message,
.opt-in-form .form-container .es_success_message {
	margin-top: 10px;
}

/* --- Substack fallback embed ---------------------------------------------- */
.opt-in-form .form-container iframe {
	display: block;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
}

/* --- Black separator bar (the original .nl-optin strip) ------------------- */
.nl-optin {
	display: block;
	width: 100%;
	background: #333;
	line-height: 1;
	padding: 0 !important;
	margin: 0 !important;
	clear: both;
}
.nl-optin .mauticform_wrapper {
	height: 0;
	padding: 10px !important;
	margin: 0 auto;
	overflow: hidden;
}

/* --- Mobile ---------------------------------------------------------------- */
@media screen and (max-width: 720px) {
	.opt-in-form {
		padding: 35px 15px 40px;
	}
	.opt-in-form h4.widget-title {
		font-size: 38px;
	}
}
