/**
 * GluJoy form layout fixes — MailerPress homepage + footer.
 * Fixes white-on-white inputs and broken grid spacing.
 */

/* —— Homepage / content area opt-in (white background) —— */
.entry-content .mailerpress-optin-form,
.single-content .mailerpress-optin-form,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
	gap: 12px !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 920px;
	margin: 0 auto;
	flex-wrap: nowrap !important;
	flex-direction: row !important;
}

.entry-content .mailerpress-optin-form__field,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form__field {
	flex: unset !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.entry-content .mailerpress-optin-form__field label,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form__field label {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

.entry-content .mailerpress-optin-form__field input,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form__field input {
	width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	line-height: 48px !important;
	border: 1px solid #d4d4d4 !important;
	border-radius: 2px !important;
	background: #f5f5f5 !important;
	color: #222222 !important;
	text-align: left !important;
	padding: 0 16px !important;
	font-size: 15px !important;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.entry-content .mailerpress-optin-form__field input::placeholder,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form__field input::placeholder {
	color: #757575 !important;
	opacity: 1 !important;
}

.entry-content .mailerpress-optin-form__submit,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form__submit {
	flex: unset !important;
	width: auto !important;
	margin: 0 !important;
	display: flex !important;
	align-items: stretch !important;
}

.entry-content .mailerpress-optin-form__submit button,
.entry-content .mailerpress-optin-form button[type="submit"],
.kadence-column2_ee7cd5-30 .mailerpress-optin-form__submit button,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form button[type="submit"] {
	width: 100% !important;
	min-width: 140px !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 2px !important;
	background: #3d998e !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.entry-content .mailerpress-optin-form__submit button:hover,
.kadence-column2_ee7cd5-30 .mailerpress-optin-form__submit button:hover {
	background: #2f7a71 !important;
	color: #ffffff !important;
}

@media (max-width: 767px) {
	.entry-content .mailerpress-optin-form,
	.kadence-column2_ee7cd5-30 .mailerpress-optin-form {
		grid-template-columns: 1fr !important;
	}

	.entry-content .mailerpress-optin-form__submit button,
	.kadence-column2_ee7cd5-30 .mailerpress-optin-form__submit button {
		width: 100% !important;
	}
}

/* —— Footer newsletter (dark bar) — light text, compact form —— */
.gj-ar-footer-newsletter {
	background: #2f2f2f !important;
	color: #ffffff !important;
}

.gj-ar-footer-newsletter .mailerpress-optin-form,
.gj-footer-optin .mailerpress-optin-form,
.mailerpress-optin-form--footer {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: none !important;
	grid-template-columns: none !important;
}

.gj-ar-footer-newsletter .mailerpress-optin-form__field label,
.gj-footer-optin .mailerpress-optin-form__field label {
	display: none !important;
}

.gj-ar-footer-newsletter .mailerpress-optin-form__field input,
.gj-footer-optin .mailerpress-optin-form__field input {
	height: 48px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	color: #222222 !important;
	text-align: left !important;
	padding: 0 16px !important;
	font-size: 15px !important;
}

.gj-ar-footer-newsletter .mailerpress-optin-form__field input::placeholder,
.gj-footer-optin .mailerpress-optin-form__field input::placeholder {
	color: #757575 !important;
	opacity: 1 !important;
}

.gj-ar-footer-newsletter .mailerpress-optin-form__submit button,
.gj-footer-optin .mailerpress-optin-form__submit button,
.gj-ar-footer-newsletter .mailerpress-optin-form button[type="submit"] {
	height: 48px !important;
	min-width: 120px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #daaf53 !important;
	color: #1a1a1a !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	padding: 0 22px !important;
}

.gj-ar-footer-newsletter .mailerpress-optin-form__submit button:hover,
.gj-footer-optin .mailerpress-optin-form__submit button:hover {
	background: #e8c56e !important;
	color: #1a1a1a !important;
}

/* —— Card titles stay dark & readable —— */
.home .kb-posts .entry-title,
.home .kb-posts .entry-title a {
	color: #1a1a1a !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Never print escaped newlines if any leak into freeform HTML */
.entry-content > br + br {
	display: none;
}
