/* New Post Alerts – subscribe form */
.afpp-form {
	--afpp-color: #25d366;
	--afpp-ink: #10231c;
	--afpp-muted: #5b6b66;
	--afpp-line: #dfe7e4;
	box-sizing: border-box;
	max-width: 560px;
	margin: 2em 0;
	padding: 22px;
	border: 1px solid var(--afpp-line);
	border-radius: 16px;
	background: #fff;
	color: var(--afpp-ink);
	font-size: 15px;
	line-height: 1.45;
	box-shadow: 0 10px 30px -18px rgba(16, 35, 28, .35);
}
.afpp-form *, .afpp-form *::before, .afpp-form *::after { box-sizing: border-box; }
.afpp-form [hidden] { display: none !important; }
.afpp-form__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.afpp-form__icon {
	flex: 0 0 auto; display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 12px;
	background: var(--afpp-color); color: #fff;
}
.afpp-wa-icon { width: 26px; height: 26px; display: block; }
.afpp-form__title { margin: 0 !important; font-size: 18px; font-weight: 700; line-height: 1.3; }
.afpp-form__text { margin: 4px 0 0 !important; color: var(--afpp-muted); font-size: 14px; }
.afpp-form__row { margin-bottom: 10px; }
.afpp-input {
	width: 100%; min-height: 46px; margin: 0; padding: 10px 14px;
	border: 1px solid var(--afpp-line); border-radius: 10px;
	background: #fff; color: var(--afpp-ink); font: inherit;
}
.afpp-input:focus { outline: none; border-color: var(--afpp-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--afpp-color) 22%, transparent); }
.afpp-phone { display: flex; align-items: stretch; }
.afpp-phone__code {
	display: flex; flex: 0 0 auto; align-items: center; padding: 0 12px; white-space: nowrap;
	border: 1px solid var(--afpp-line); border-right: 0; border-radius: 10px 0 0 10px;
	background: #f4f7f6; color: var(--afpp-muted); font-weight: 600;
}
.afpp-phone__code + .afpp-input { border-radius: 0 10px 10px 0; }
.afpp-input--code { font-size: 22px; letter-spacing: .4em; text-align: center; }
.afpp-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; color: var(--afpp-muted); font-size: 13px; cursor: pointer; }
.afpp-consent input { margin: 3px 0 0; accent-color: var(--afpp-color); }
.afpp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; min-height: 46px; margin: 0; padding: 10px 18px;
	border: 0; border-radius: 10px; cursor: pointer;
	background: var(--afpp-color); color: #fff; font: inherit; font-weight: 700;
	transition: filter .15s ease;
}
.afpp-btn:hover, .afpp-btn:focus { filter: brightness(.93); color: #fff; }
.afpp-btn[disabled] { opacity: .65; cursor: wait; }
.afpp-msg { margin: 12px 0 0 !important; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: #eefaf2; color: #0b5d2c; }
.afpp-msg.is-error { background: #fdeeee; color: #9b1c1c; }
.afpp-form.is-done .afpp-step { display: none; }
.afpp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.afpp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pro fields */
.afpp-choices { margin: 4px 0 12px; padding: 0; border: 0; }
.afpp-choices legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.afpp-choices__list { display: flex; flex-wrap: wrap; gap: 6px; }
.afpp-pill { position: relative; }
.afpp-pill input { position: absolute; opacity: 0; }
.afpp-pill span {
	display: inline-block; padding: 6px 12px; border: 1px solid var(--afpp-line); border-radius: 999px;
	font-size: 13px; cursor: pointer; background: #fff;
}
.afpp-pill input:checked + span { border-color: var(--afpp-color); background: color-mix(in srgb, var(--afpp-color) 14%, #fff); font-weight: 600; }
.afpp-pill input:focus-visible + span { outline: 2px solid var(--afpp-color); outline-offset: 2px; }

/* Floating button + modal */
.afpp-fab {
	--afpp-color: #25d366;
	position: fixed; right: 20px; bottom: 20px; z-index: 99990;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--afpp-color); color: #fff; font: 600 15px/1 system-ui, sans-serif;
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
}
.afpp-fab .afpp-wa-icon { width: 22px; height: 22px; }
.afpp-modal { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; padding: 16px; }
.afpp-modal[hidden] { display: none; }
.afpp-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 20, 16, .55); }
.afpp-modal__panel { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; }
.afpp-modal__panel .afpp-form { margin: 0; }
.afpp-modal__close {
	position: absolute; top: 8px; right: 10px; z-index: 1;
	width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
	background: transparent; color: #5b6b66; font-size: 24px; line-height: 1;
}
@media (max-width: 480px) {
	.afpp-form { padding: 18px; }
	.afpp-fab span { display: none; }
	.afpp-fab { padding: 14px; }
}
