/* «بینش» hub «خبرنامه سایکو» — Figma 712:4484. Photos on the right, the title, sentence and form on the left. */
.wp-block-post-content > .scico-insights-newsletter { margin-block-start: 0; }

.scico-insights-newsletter { box-sizing: border-box; margin-block-start: 0; padding: 8px 96px 104px; background: #fff; scroll-margin-top: 24px; }
.scico-insights-newsletter__inner { display: flex; align-items: center; justify-content: center; gap: 60px; }

.scico-insights-newsletter__content { display: flex; flex: 0 1 484px; min-width: 0; flex-direction: column; gap: 48px; }
/* Figma: the title on the right, the sentence beside it, bottoms aligned. */
.scico-insights-newsletter__head { display: flex; align-items: flex-end; gap: 16px; }
.scico-insights-newsletter__title { display: flex; flex: 0 0 auto; flex-direction: column; margin: 0; color: var(--insights-newsletter-titleColor, #4c504a); font-size: var(--insights-newsletter-titleSize, 34px); font-weight: var(--insights-newsletter-titleWeight, 800); line-height: 1.25; text-align: right; }
.scico-insights-newsletter__title-bottom { font-weight: var(--insights-newsletter-titleBottomWeight, 600); }
.scico-insights-newsletter__text { flex: 1 1 auto; margin: 0; color: var(--insights-newsletter-textColor, #4c504a); font-size: var(--insights-newsletter-textSize, 15px); line-height: 1.75; text-align: right; }

.scico-insights-newsletter__form { position: relative; display: flex; flex-direction: column; gap: 12px; }
.scico-insights-newsletter__field { box-sizing: border-box; width: 100%; height: 56px; margin: 0; padding: 0 24px; border: 1px solid transparent; border-radius: 8px; background: var(--insights-newsletter-fieldBackground, #f3efe5); color: #1a1a1a; font-family: inherit; font-size: var(--insights-newsletter-fieldSize, 16px); text-align: right; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
/* Right to left while it shows the Persian placeholder; an email address is typed left to right. */
.scico-insights-newsletter__field:not(:placeholder-shown) { direction: ltr; text-align: left; }
/* Figma #929292 is too faint for a placeholder; #707070 keeps 4.5:1 on #f3efe5. */
.scico-insights-newsletter__field::placeholder { color: #707070; opacity: 1; }
.scico-insights-newsletter__field:focus { border-color: var(--insights-newsletter-buttonBackground, #4c504a); outline: none; background: #fff; box-shadow: 0 0 0 3px rgb(76 80 74 / 18%); }
.scico-insights-newsletter__field[aria-invalid="true"] { border-color: #b32d2e; }
.scico-insights-newsletter__error { margin: -4px 0 0; color: #b32d2e; font-size: 13px; line-height: 1.6; text-align: right; }
.scico-insights-newsletter__error[hidden] { display: none; }
.scico-insights-newsletter__error:focus { outline: none; }
.scico-insights-newsletter__button { box-sizing: border-box; width: 100%; height: 56px; margin: 0; padding: 0 24px; border: 0; border-radius: 8px; background: var(--insights-newsletter-buttonBackground, #4c504a); color: var(--insights-newsletter-buttonColor, #fff); font-family: inherit; font-size: var(--insights-newsletter-buttonSize, 16px); font-weight: 700; cursor: pointer; transition: background-color 200ms ease, opacity 200ms ease; }
.scico-insights-newsletter__button:focus-visible { outline: 2px solid var(--insights-newsletter-buttonBackground, #4c504a); outline-offset: 3px; }
.scico-insights-newsletter__button[disabled] { cursor: progress; opacity: .7; }

.scico-insights-newsletter__success { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: 8px; background: var(--insights-newsletter-fieldBackground, #f3efe5); color: var(--insights-newsletter-textColor, #4c504a); font-size: var(--insights-newsletter-textSize, 15px); line-height: 1.7; text-align: right; }
.scico-insights-newsletter__success:focus { outline: none; }
.scico-insights-newsletter__success p { margin: 0; }
.scico-insights-newsletter__success-title { color: var(--insights-newsletter-titleColor, #4c504a); font-size: 18px; font-weight: 800; }

/* The two photos: Figma group 349×336, the back one at (153, 55), the front one tilted −9.08°. */
.scico-insights-newsletter__photos { position: relative; order: -1; flex: 0 0 349px; width: 349px; height: 336px; }
.scico-insights-newsletter__photo { position: absolute; display: block; width: 196px; height: 280px; border-radius: 8px; object-fit: cover; transition: filter 400ms ease, transform 400ms ease; }
.scico-insights-newsletter__photo.is-back { top: 55px; left: 153px; }
.scico-insights-newsletter__photo.is-front { top: 14px; left: 21px; transform: rotate(-9.08deg); box-shadow: 0 12px 28px rgb(35 38 33 / 12%); }
.scico-insights-newsletter.is-grayscale .scico-insights-newsletter__photo { filter: grayscale(1); }

/* Editor notice when the forms plugin is not active. */
.scico-insights-newsletter__notice { margin: 0; padding: 24px; border: 1px dashed #c8c8c8; border-radius: 8px; background: #fafafa; color: #4c504a; text-align: right; direction: rtl; }

@media (hover: hover) {
	.scico-insights-newsletter__button:not([disabled]):hover { background: color-mix(in srgb, var(--insights-newsletter-buttonBackground, #4c504a) 85%, #000); }
	.scico-insights-newsletter.is-grayscale .scico-insights-newsletter__photos:hover .scico-insights-newsletter__photo { filter: grayscale(0); }
	.scico-insights-newsletter__photos:hover .is-front { transform: rotate(-12deg) translateY(-4px); }
}

@media (hover: none) {
	.scico-insights-newsletter.is-grayscale .scico-insights-newsletter__photo { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
	.scico-insights-newsletter__field,
	.scico-insights-newsletter__button,
	.scico-insights-newsletter__photo { transition: none; }
	.scico-insights-newsletter__photos:hover .is-front { transform: rotate(-9.08deg); }
}

@media (max-width: 1100px) {
	.scico-insights-newsletter { padding: 0 32px 88px; }
	.scico-insights-newsletter__inner { gap: 40px; }
}

/* Stacked: photos above, centred. */
@media (max-width: 860px) {
	.scico-insights-newsletter__inner { flex-direction: column; gap: 32px; }
	.scico-insights-newsletter__content { flex-basis: auto; width: min(100%, 520px); gap: 32px; }
}

@media (max-width: 600px) {
	.scico-insights-newsletter { padding: 0 16px 64px; }
	.scico-insights-newsletter__photos { transform: scale(.8); margin-block: -34px; }
	.scico-insights-newsletter__head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.scico-insights-newsletter__title { font-size: min(var(--insights-newsletter-titleSize, 34px), 28px); }
	.scico-insights-newsletter__field,
	.scico-insights-newsletter__button { height: 52px; }
}
