/* sezer.in — Bülten formu
 *
 * Bu dosya --sz-* TOKEN TANIMLAMAZ, yalnızca kullanır. Sahibi
 * mu-plugins/assets/sezerin-design.css (wp_head:199). Burada :root altında
 * değişken tanımlanırsa koyu tema değerleri ezilir ve koyu zeminde koyu yeşil
 * üretilir. Yedek değerler yalnızca tasarım dosyası bir sebeple yüklenmezse
 * devreye girer.
 *
 * Yüklenme sırası: wp_head:202 — temanın dist CSS'inden sonra, bu yüzden
 * özgüllük savaşına gerek yok. Blok temanın .subscribe bloğunun yerini alır
 * (o blok ön yüzde Redux filtresiyle kapatılıyor).
 */

.sz-sub {
	background: var(--sz-footer-bg, #0f1a17);
	color: var(--sz-footer-text-soft, #c3cdc8);
	border-radius: var(--sz-r-5, 20px) var(--sz-r-5, 20px) 0 0;
	padding: var(--sz-s-9, 64px) var(--sz-s-5, 24px);
	margin-top: var(--sz-s-8, 48px);
}

.sz-sub__inner {
	max-width: var(--sz-container, 1140px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--sz-s-7, 40px);
	align-items: start;
}

.sz-sub__title {
	margin: 0 0 var(--sz-s-3, 12px);
	font-family: var(--sz-font-head, inherit);
	font-size: clamp(22px, 1rem + 1.1vw, 30px);
	line-height: 1.2;
	color: var(--sz-footer-text, #f2f6f4);
	text-shadow: none;
}

.sz-sub__lead {
	margin: 0;
	font-size: clamp(14px, .85rem + .2vw, 16px);
	line-height: 1.6;
	color: var(--sz-footer-text-soft, #c3cdc8);
	max-width: 46ch;
	text-shadow: none;
}

/* --- Form --------------------------------------------------------------- */

.sz-sub__form {
	margin: 0;
}

.sz-sub__label {
	display: block;
	margin-bottom: var(--sz-s-2, 8px);
	font-size: 13px;
	font-weight: var(--sz-weight-medium, 500);
	color: var(--sz-footer-text, #f2f6f4);
	letter-spacing: .01em;
}

.sz-sub__control {
	display: flex;
	gap: var(--sz-s-2, 8px);
	flex-wrap: wrap;
}

.sz-sub__input {
	flex: 1 1 220px;
	min-width: 0;
	height: var(--sz-ctl-h-lg, 52px);
	padding: 0 var(--sz-s-4, 16px);
	font-size: 16px; /* 16px altı iOS'ta otomatik yakınlaştırma tetikler */
	font-family: inherit;
	color: var(--sz-footer-text, #f2f6f4);
	background: rgba(255, 255, 255, .08);
	border: 1px solid var(--sz-footer-hairline, rgba(255, 255, 255, .16));
	border-radius: var(--sz-r-3, 10px);
	box-shadow: none;
	text-shadow: none;
	transition: border-color var(--sz-dur-2, .18s) var(--sz-ease-out, ease),
		background-color var(--sz-dur-2, .18s) var(--sz-ease-out, ease);
}

.sz-sub__input::placeholder {
	color: var(--sz-footer-muted, #8b9995);
	opacity: 1;
	text-shadow: none;
}

.sz-sub__input:hover {
	background: rgba(255, 255, 255, .11);
}

.sz-sub__input:focus {
	outline: none;
	border-color: var(--sz-footer-link, #6ee7b7);
	background: rgba(255, 255, 255, .14);
}

.sz-sub__submit {
	flex: 0 0 auto;
	height: var(--sz-ctl-h-lg, 52px);
	min-width: 132px;
	padding: 0 var(--sz-s-5, 24px);
	font: inherit;
	font-size: 15px;
	font-weight: var(--sz-weight-semibold, 600);
	color: var(--sz-on-accent, #fff);
	background: var(--sz-accent-strong, #047857);
	border: 0;
	border-radius: var(--sz-r-3, 10px);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sz-s-2, 8px);
	transition: background-color var(--sz-dur-2, .18s) var(--sz-ease-out, ease);
}

.sz-sub__submit:hover,
.sz-sub__submit:focus-visible {
	background: var(--sz-accent-deep, #065f46);
}

.sz-sub__submit[disabled] {
	opacity: .6;
	cursor: progress;
}

/* Yükleniyor göstergesi — yalnızca gönderim sırasında görünür. */
.sz-sub__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: var(--sz-r-pill, 999px);
	animation: sz-sub-spin .7s linear infinite;
}

.sz-sub__form.is-busy .sz-sub__spinner {
	display: block;
}

@keyframes sz-sub-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sz-sub__spinner {
		animation-duration: 2.4s;
	}

	.sz-sub__input,
	.sz-sub__submit {
		transition: none;
	}
}

/* --- Açık rıza kutusu ---------------------------------------------------- */

.sz-sub__consent {
	display: flex;
	gap: var(--sz-s-3, 12px);
	margin-top: var(--sz-s-4, 16px);
	font-size: 13px;
	line-height: 1.55;
	color: var(--sz-footer-muted, #8b9995);
	cursor: pointer;
	text-shadow: none;
}

.sz-sub__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--sz-accent-strong, #047857);
	cursor: pointer;
}

.sz-sub__policy {
	color: var(--sz-footer-link, #6ee7b7);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.sz-sub__policy:hover {
	color: var(--sz-footer-link-hover, #a7f3d0);
}

/* --- Durum satırı -------------------------------------------------------- */

.sz-sub__status {
	margin: var(--sz-s-3, 12px) 0 0;
	min-height: 1.4em;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sz-footer-text, #f2f6f4);
	text-shadow: none;
}

.sz-sub__status.is-error {
	color: #fca5a5;
}

.sz-sub__status.is-ok {
	color: var(--sz-footer-link, #6ee7b7);
}

/* --- Bal küpü: gözden ve ekran okuyucudan gizli, display:none DEĞİL ------- */

.sz-sub__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Sayfa üstü bildirim ------------------------------------------------- */

.sz-sub-notice {
	background: var(--sz-accent-soft, #ecfdf5);
	color: var(--sz-accent-soft-text, #065f46);
	border-bottom: 1px solid var(--sz-border, rgba(0, 0, 0, .1));
	font-size: 15px;
	line-height: 1.5;
}

.sz-sub-notice--err {
	background: var(--sz-surface-2, #f7f7f6);
	color: var(--sz-danger, #b91c1c);
}

.sz-sub-notice__inner {
	max-width: var(--sz-container, 1140px);
	margin: 0 auto;
	padding: var(--sz-s-3, 12px) var(--sz-s-5, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sz-s-4, 16px);
}

.sz-sub-notice a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sz-sub-notice__close {
	flex: 0 0 auto;
	width: var(--sz-tap, 44px);
	height: var(--sz-tap, 44px);
	font-size: 22px;
	line-height: 1;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	border-radius: var(--sz-r-2, 8px);
}

.sz-sub-notice__close:hover {
	background: rgba(0, 0, 0, .06);
}

/* --- Odak: a11y katmanı outline'ı zaten veriyor, burada yalnızca offset --- */

.sz-sub :focus-visible {
	outline-offset: 2px;
}

/* --- Dar ekran ----------------------------------------------------------- */

@media (max-width: 860px) {
	.sz-sub {
		padding: var(--sz-s-7, 40px) var(--sz-s-5, 24px);
		border-radius: 0;
	}

	.sz-sub__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--sz-s-5, 24px);
	}
}

@media (max-width: 480px) {
	.sz-sub__control {
		flex-direction: column;
	}

	.sz-sub__submit {
		width: 100%;
	}
}
