/* Newsletter page — page-specific overrides only. Auto-enqueued by
   functions.php because this file exists and the page slug is "newsletter".
   Does not edit any shared file (ib-flex.css / core-layouts.php). */

/* Hero split_content section's image_position ACF field is set to "right",
   which renders image-left/text-right (document order, no flip). The live
   prod page has text on the left and the photo on the right. Rather than
   edit page content/ACF data, force the correct visual order here — same
   trick as the object-position fix on /quiet-your-mind-workbook/. Scoped to
   the first section of this page only. */
main.ib-page > section:first-of-type.ib-split--right .ib-split__inner {
	direction: rtl;
}
main.ib-page > section:first-of-type.ib-split--right .ib-split__inner > * {
	direction: ltr;
}

/* Live page (post-86.css, element 68199d9a) puts a 25%-opacity pattern
   texture over the navy cta_band and narrows its content column to 800px.
   Reproduced here, scoped to this page only. */
.ib-cta {
	position: relative;
	overflow: hidden;
}
.ib-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('/wp-content/uploads/2026/02/IntraBalance_Patterns_5-scaled.png');
	background-size: cover;
	background-position: center center;
	opacity: 0.25;
	pointer-events: none;
}
.ib-cta .ib-container {
	max-width: 800px;
	position: relative;
}

/* The text_block section directly below the cta_band exists only to host the
   signup-card placeholder (see seed-newsletter.php, section 3). Drop its own
   padding so the card can sit close under the navy band, then pull the card
   up so it reads as one continuous "hero + floating card" moment, matching
   the live page's nested layout as closely as the flex-layout system allows. */
.ib-textblock:has(.ib-newsletter-card) {
	padding-top: 0;
}

.ib-newsletter-card {
	max-width: 460px;
	margin: -90px auto 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 20px 50px rgba(20, 74, 127, 0.25);
	padding: 40px 36px;
	text-align: center;
	position: relative;
	z-index: 1;
}
.ib-newsletter-card__title {
	font-family: var(--ib-font-heading);
	font-size: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ib-text);
	margin: 0 0 12px;
}
.ib-newsletter-card__sub {
	font-size: 15px;
	color: #666;
	margin: 0 0 24px;
}
.ib-newsletter-card__field {
	background: #eee;
	color: #888;
	text-align: left;
	font-size: 14px;
	border-radius: 3px;
	padding: 13px 16px;
	margin-bottom: 12px;
}
.ib-newsletter-card__question {
	text-align: left;
	font-size: 14px;
	color: var(--ib-text);
	margin: 12px 0 10px;
}
.ib-newsletter-card__radio {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	font-size: 14px;
	color: var(--ib-text);
	margin-bottom: 8px;
}
.ib-newsletter-card__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid #999;
	display: inline-block;
	flex: none;
}
.ib-newsletter-card__submit {
	display: inline-block;
	width: 100%;
	background: var(--ib-navy);
	color: #fff;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 4px;
	margin-top: 16px;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.ib-newsletter-card {
		margin-top: -60px;
		max-width: calc(100% - 40px);
	}
}
