/* Kiemelt üzenet / hírlevél sáv — a Kiemelt üzenet blokk és a lábléc hírlevél-sávja (template-parts/newsletter.php) */
.otthonizei-newsletter {
	position: relative;
	overflow: hidden;
}

.otthonizei-newsletter__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.otthonizei-newsletter__overlay {
	position: absolute;
	inset: 0;
	background-color: #000;
}

.otthonizei-newsletter__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--content-size, 760px) + 30px);
	margin-inline: auto;
	padding-inline: 15px;
}

.otthonizei-newsletter--align-center .otthonizei-newsletter__content {
	text-align: center;
}

/* Balra igazítva a tartalom a széles konténer bal szélére kerül */
.otthonizei-newsletter--align-left .otthonizei-newsletter__inner {
	max-width: calc(var(--wp--style--global--wide-size, 1360px) + 30px);
}

.otthonizei-newsletter--align-left .otthonizei-newsletter__content {
	max-width: var(--wp--style--global--content-size, 760px);
}

.otthonizei-newsletter__content > :first-child {
	margin-top: 0;
}

.otthonizei-newsletter__content > :last-child {
	margin-bottom: 0;
}

.otthonizei-newsletter__content > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.otthonizei-newsletter__title {
	margin-bottom: 0;
}

.otthonizei-newsletter__text {
	margin-bottom: 0;
}

/* Gombok: elsődleges (tömör) + másodlagos (körvonalas) */
.otthonizei-newsletter__content > .otthonizei-newsletter__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: var(--wp--preset--spacing--40);
}

.otthonizei-newsletter--align-center .otthonizei-newsletter__buttons {
	justify-content: center;
}

.otthonizei-newsletter__button {
	display: inline-block;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.otthonizei-newsletter .otthonizei-newsletter__button--secondary {
	border-color: currentColor;
	background-color: transparent;
	color: inherit;
}

/* ---------- Fekete és kép háttér: világos szöveg ---------- */
.otthonizei-newsletter--dark {
	background-color: #000;
}

.otthonizei-newsletter--image {
	background-color: #000;
}

.otthonizei-newsletter--dark,
.otthonizei-newsletter--image,
.otthonizei-newsletter--dark :where(h1, h2, h3, p),
.otthonizei-newsletter--image :where(h1, h2, h3, p) {
	color: #f9f9f9;
}

.otthonizei-newsletter--dark .is-style-eyebrow,
.otthonizei-newsletter--dark .is-style-eyebrow-left,
.otthonizei-newsletter--image .is-style-eyebrow,
.otthonizei-newsletter--image .is-style-eyebrow-left {
	color: #f9f9f9;
}

/* Sötét alapon blush gomb, kép fölött fehér (mint a nyitó szekcióban) */
.otthonizei-newsletter--dark .otthonizei-newsletter__button--primary {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	color: #000;
}

.otthonizei-newsletter--image .otthonizei-newsletter__button--primary {
	border-color: #fff;
	background-color: #fff;
	color: #000;
}

.otthonizei-newsletter--dark .otthonizei-newsletter__button--primary:hover {
	border-color: #fff;
	background-color: #fff;
	color: #000;
}

.otthonizei-newsletter--image .otthonizei-newsletter__button--primary:hover {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	color: #000;
}

.otthonizei-newsletter--dark .otthonizei-newsletter__button--secondary:hover,
.otthonizei-newsletter--image .otthonizei-newsletter__button--secondary:hover {
	border-color: #fff;
	background-color: #fff;
	color: #000;
}

/* ---------- Blush és törtfehér: sötét szöveg, fekete gomb ---------- */
.otthonizei-newsletter--accent {
	background-color: var(--wp--preset--color--accent);
}

.otthonizei-newsletter--light {
	background-color: var(--wp--preset--color--base-2);
}

.otthonizei-newsletter--accent,
.otthonizei-newsletter--accent :where(h1, h2, h3, p) {
	color: #000;
}

.otthonizei-newsletter--accent .is-style-eyebrow,
.otthonizei-newsletter--accent .is-style-eyebrow-left {
	border-bottom-color: #000;
}

.otthonizei-newsletter--accent .is-style-eyebrow::after,
.otthonizei-newsletter--accent .is-style-eyebrow-left::after {
	border-top-color: #000;
}

.otthonizei-newsletter--accent .otthonizei-newsletter__button--primary,
.otthonizei-newsletter--light .otthonizei-newsletter__button--primary {
	border-color: #000;
	background-color: #000;
	color: #fff;
}

.otthonizei-newsletter--accent .otthonizei-newsletter__button--primary:hover,
.otthonizei-newsletter--light .otthonizei-newsletter__button--primary:hover {
	border-color: var(--wp--preset--color--dark);
	background-color: var(--wp--preset--color--dark);
}

.otthonizei-newsletter--accent .otthonizei-newsletter__button--secondary,
.otthonizei-newsletter--light .otthonizei-newsletter__button--secondary {
	color: #000;
}

.otthonizei-newsletter--accent .otthonizei-newsletter__button--secondary:hover,
.otthonizei-newsletter--light .otthonizei-newsletter__button--secondary:hover {
	border-color: #000;
	background-color: #000;
	color: #fff;
}

/* ---------- Feliratkozó űrlap (rövidkód, pl. Contact Form 7) ----------
   E-mail mező + gomb egy sorban, alatta a hozzájárulás és a válaszüzenet. */
.otthonizei-newsletter__content > .otthonizei-newsletter__form {
	margin-block-start: var(--wp--preset--spacing--40);
}

.otthonizei-newsletter__form form,
.otthonizei-newsletter__form p {
	margin: 0;
}

.otthonizei-newsletter__form .otthonizei-subscribe__row {
	display: flex;
	max-width: 520px;
}

.otthonizei-newsletter--align-center .otthonizei-newsletter__form .otthonizei-subscribe__row,
.otthonizei-newsletter--align-center .otthonizei-newsletter__form .otthonizei-subscribe__consent {
	margin-inline: auto;
}

.otthonizei-newsletter__form .otthonizei-subscribe__row > p {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
}

.otthonizei-newsletter__form .wpcf7-form-control-wrap {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.otthonizei-newsletter__form input[type="email"],
.otthonizei-newsletter__form input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--contrast);
	border-right: 0;
	border-radius: 0;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--meta);
	font-size: var(--wp--preset--font-size--small);
}

.otthonizei-newsletter__form input[type="submit"],
.otthonizei-newsletter__form button[type="submit"] {
	flex: 0 0 auto;
	min-height: 48px;
	margin: 0;
	padding: 0.75rem 1.75rem;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--meta);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.otthonizei-newsletter__form input[type="submit"]:hover,
.otthonizei-newsletter__form button[type="submit"]:hover {
	border-color: var(--wp--preset--color--dark);
	background-color: var(--wp--preset--color--dark);
}

/* Sötét és képes háttéren: fehér keret, blush gomb */
.otthonizei-newsletter--dark .otthonizei-newsletter__form input[type="email"],
.otthonizei-newsletter--image .otthonizei-newsletter__form input[type="email"] {
	border-color: var(--wp--preset--color--base);
}

.otthonizei-newsletter--dark .otthonizei-newsletter__form input[type="submit"],
.otthonizei-newsletter--image .otthonizei-newsletter__form input[type="submit"] {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.otthonizei-newsletter--dark .otthonizei-newsletter__form input[type="submit"]:hover,
.otthonizei-newsletter--image .otthonizei-newsletter__form input[type="submit"]:hover {
	border-color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--base);
}

.otthonizei-newsletter__form .otthonizei-subscribe__consent {
	max-width: 520px;
	margin-top: 0.85rem;
	font-family: var(--wp--preset--font-family--meta);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	opacity: 0.85;
}

.otthonizei-newsletter__form .otthonizei-subscribe__consent a {
	color: inherit;
	text-decoration: underline;
}

.otthonizei-newsletter__form .wpcf7-list-item {
	margin: 0;
}

.otthonizei-newsletter__form .wpcf7-list-item input {
	margin: 0 0.4rem 0 0;
	vertical-align: -1px;
}

.otthonizei-newsletter__form .wpcf7-spinner {
	position: absolute;
	margin: 0.85rem 0 0 0.5rem;
}

.otthonizei-newsletter__form .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	font-family: var(--wp--preset--font-family--meta);
	font-size: var(--wp--preset--font-size--x-small);
	text-align: left;
}

.otthonizei-newsletter__form .wpcf7 form .wpcf7-response-output {
	max-width: 520px;
	margin: 1rem 0 0;
	padding: 0.6rem 1rem;
	border-width: 1px;
	font-family: var(--wp--preset--font-family--meta);
	font-size: var(--wp--preset--font-size--x-small);
}

.otthonizei-newsletter--align-center .otthonizei-newsletter__form .wpcf7 form .wpcf7-response-output {
	margin-inline: auto;
}

@media (max-width: 479px) {
	.otthonizei-newsletter__form .otthonizei-subscribe__row > p {
		flex-direction: column;
		gap: 0.5rem;
	}

	.otthonizei-newsletter__form input[type="email"] {
		border-right-width: 1px;
		border-right-style: solid;
	}
}

/* ---------- Lábléc fölötti állandó sáv (footer.php) ----------
   Sötét háttérnél ugyanaz a vékony elválasztó, mint a lábléc előnyök sávja alatt. */
.site-newsletter.otthonizei-newsletter--dark,
.site-newsletter.otthonizei-newsletter--image {
	border-bottom: 1px solid #2a2a2a;
}
