:root {
	--primary-bg-color: #b20000;
	--primary-border-color: #b20000;
	--secondary-border-color: #1b1b1b;
	--primary-text-color: #1b1b1b;
	--light-bg-color: rgba(229, 240, 234, 1);

	--success-bg-color: #dff2bf;
	--success-text-color: #270;
	--just-thecolor-white: #fff;

	--error-bg-color: #ffbaba;
	--error-text-color: #d8000c;
}

h4.anw-heading-form {
	font-family: 'Magazine Headline', serif;
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 0.5px;
	line-height: 140%;
	margin: 0;
	padding: 0;
}

.anw-featured-image {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.anw-signup-form  {
	padding-left: 0 !important;
}

.anw-featured-image img {
	border-radius: 8px;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.anw-heading-form {
	font-size: 1.25em;
	font-weight: bold;
	margin-bottom: 10px;
}

.anw-signup-form {
	flex: 1;
}

.anw-signup-form button,
.anw-signup-form button:focus,
.anw-signup-form button:focus-visible {
	background-color: #b20000;
	border-radius: 5px;
	border: 1px solid #b20000;
	color: #fff !important;
	font-family: 'Newsroom', sans-serif;
	font-size: 16px;
	font-weight: 500;
	margin-top: 10px;
	outline: none;
	padding: 5px 40px;
	text-align: center;
	text-decoration: none !important;
	width: max-content;
}

.anw-signup-form form {
	flex-direction: column;
	gap: 0px;
	text-align: center;
}

.anw-signup-form h3 {
	font-size: 1.5em;
	margin-bottom: 10px;
}

.anw-signup-form input[type="email"] {
	border-radius: 5px;
	border: 1px solid #1b1b1b;
	color: #1b1b1b !important;
	font-family: Tiempos, sans-serif;
	font-size: 16px;
	font-weight: 300;
	margin-top: 10px;
	outline: none;
	padding: 5px 25px;
	position: relative;
	text-decoration: none !important;
	transition: background-color .3s;
}

.anw-widget-container {
	align-items: center;
	background-image: url(https://unherd.com/wp-content/uploads/2025/01/email_signup_box.jpg);
	background-size: cover;
	border-radius: 20px;
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 100px 0;
	min-height: 370px;
	padding: 20px 60px;
	width: 100%;
}
.single-post .anw-widget-container {
	margin: 20px 0;
	min-height: 265px;
}
.single-post .iframe-blind {
	display: none;
}
@media (max-width: 992px) {
	.single-post .anw-widget-container {
		margin: 60px 0;
	}
	.single-post .col-sm-8.anw-signup-form {
		margin-top:220px;
	}
}
@media (max-width: 798px) {
	.single-post .col-sm-8.anw-signup-form {
		margin-top:160px;
	}
}
@media (max-width: 420px) {
	.single-post .col-sm-8.anw-signup-form {
		margin-top:80px;
	}
}


.anw-message {
	border-radius: 10em;
	font-family: 'Newsroom', sans-serif;
	font-size: 14px;
	font-weight: 300;
	margin: auto;
	max-width: 800px;
	padding: 5px 40px;
	text-align: center;
	width: max-content;
}

.anw-message-error {
	background-color: #ffbaba;
	color: #d8000c;
}

.anw-message-success {
	background-color: #dff2bf;
	color: #270;
}

.message-container iframe {
	border: 0;
}

.iframe-blind {
	display: block;
    width: 100%;
    background: white;
    height: 44px;
    position: absolute;
}

@media (max-width: 992px) {
	.iframe-blind { width: calc(100% - 20px) !important; }

	h4.anw-heading-form {
		font-size: 20px;
	}

	.anw-featured-image {
		max-width: 100% !important;
	}

	.col-sm-8.anw-signup-form { margin-top: 120px; }

	.anw-signup-form {
		border-radius: 15px !important;
		margin-top: -40px;
		max-width: 100% !important;
		padding: 40px 20px !important;
		text-align: center;
		z-index: 0;
	}

	.anw-signup-form button {
		margin: auto;
	}

	.anw-signup-form form {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.anw-signup-form,
	.anw-widget-container {
		display: block;
	}

	.anw-widget-container {
		background-image: url('https://unherd.com/wp-content/uploads/2025/01/email_signup_boxbg.jpg');
		background-color: #f4f0ed;
		background-size: 130%;
		background-repeat: no-repeat;
		width: 100%;
		margin-bottom: 10px;
		padding: 0 !important;
		background-position: top center;
	}

	.anw-message {
		line-height: 1.2em;
		width: auto;
	}
}