/* ==========================================================================
   Aashab Newsletter — Isolated Frontend Styles (Subscribe, Unsubscribe & 7s Popup)
   Unique Namespace: .anl-*
   ========================================================================== */

.anl-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

/* Dedicated Subscribe & Unsubscribe Page Card */
.anl-page-card {
	max-width: 720px;
	width: 100%;
	margin: 24px auto;
	background: #ffffff;
	border: 1px solid #dbe8e3;
	border-radius: 28px 12px 28px 12px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(6, 33, 25, 0.1);
	direction: rtl;
	text-align: right;
	position: relative;
}

.anl-page-head {
	background: linear-gradient(140deg, #062119 0%, #0d3b2e 58%, #16654e 100%);
	color: #ffffff;
	padding: 36px 32px;
	text-align: center;
}

.anl-page-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 14px;
	border-radius: 20px 8px 20px 8px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	color: #ffffff;
}

.anl-page-title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
	color: #ffffff;
	line-height: 1.4;
}

.anl-page-lead {
	margin: 0 auto;
	max-width: 560px;
	font-size: 0.96rem;
	line-height: 1.8;
	color: rgba(220, 239, 233, 0.92);
}

.anl-page-body {
	padding: 32px;
}

.anl-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.anl-benefit-item {
	background: #f1f8f5;
	border: 1px solid #dbe8e3;
	border-radius: 14px;
	padding: 14px 12px;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.84rem;
	font-weight: 700;
	color: #0a2e23;
}

.anl-benefit-item i {
	font-size: 1.15rem;
	color: #16654e;
	flex-shrink: 0;
}

/* Form Elements */
.anl-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.anl-field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.anl-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.anl-label {
	font-size: 0.86rem;
	font-weight: 700;
	color: #0a2e23;
}

.anl-input {
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1.5px solid #bdd5cc;
	background: #f8fbf9;
	color: #092019;
	font-size: 0.95rem;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.anl-input:focus {
	outline: none;
	border-color: #16654e;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(22, 101, 78, 0.14);
}

.anl-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 22px;
	border-radius: 999px;
	border: none;
	background: linear-gradient(135deg, #0d3b2e 0%, #16654e 100%);
	color: #ffffff;
	font-size: 0.96rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
	box-shadow: 0 8px 20px rgba(13, 59, 46, 0.22);
}

.anl-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(13, 59, 46, 0.28);
}

.anl-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.anl-danger-btn {
	background: linear-gradient(135deg, #7d1d1e 0%, #9e2a2b 100%);
	box-shadow: 0 8px 20px rgba(158, 42, 43, 0.22);
}

.anl-outline-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1.5px solid #0d3b2e;
	background: #ffffff;
	color: #0d3b2e;
	font-weight: 700;
	font-size: 0.9rem;
	font-family: inherit;
	cursor: pointer;
}

.anl-outline-btn:hover {
	background: #0d3b2e;
	color: #ffffff;
}

.anl-feedback {
	display: none;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.65;
}

.anl-feedback.is-success {
	display: block;
	background: #e7f6f0;
	color: #0d3b2e;
	border: 1px solid #62bca0;
}

.anl-feedback.is-error {
	display: block;
	background: #fdf2f2;
	color: #9e2a2b;
	border: 1px solid #e9b4b4;
}

.anl-footnote {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid #e6f0ec;
	text-align: center;
	font-size: 0.86rem;
	color: #425e55;
}

.anl-footnote a {
	color: #0d3b2e;
	font-weight: 700;
	text-decoration: underline;
}

.anl-resub-box {
	margin-top: 20px;
	text-align: center;
}

.anl-resub-box p {
	margin: 0 0 12px;
	color: #425e55;
	font-size: 0.9rem;
}

/* 7-Second First-Visit Dynamic Popup */
.anl-popup-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100005;
	background: rgba(6, 33, 25, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.anl-popup-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.anl-popup-modal {
	position: relative;
	width: 100%;
	max-width: 470px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 28px 10px 28px 10px;
	border: 1px solid #dbe8e3;
	box-shadow: 0 28px 64px rgba(6, 33, 25, 0.32);
	transform: translateY(20px) scale(0.96);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.anl-popup-backdrop.is-open .anl-popup-modal {
	transform: translateY(0) scale(1);
}

.anl-popup-close {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(6, 33, 25, 0.45);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.92rem;
	cursor: pointer;
}

.anl-popup-close:hover {
	background: #ffffff;
	color: #0d3b2e;
}

.anl-popup-top {
	background: linear-gradient(145deg, #062119 0%, #0d3b2e 55%, #16654e 100%);
	color: #ffffff;
	padding: 32px 26px 24px;
	text-align: center;
}

.anl-popup-emblem {
	width: 52px;
	height: 52px;
	margin: 0 auto 10px;
	border-radius: 18px 6px 18px 6px;
	background: rgba(255, 255, 255, 0.16);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.55rem;
}

.anl-popup-kicker {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: #a8dccb;
	margin-bottom: 6px;
}

.anl-popup-title {
	margin: 0 0 8px;
	font-size: 1.28rem;
	line-height: 1.4;
	color: #ffffff;
}

.anl-popup-sub {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.7;
	color: rgba(220, 239, 233, 0.9);
}

.anl-popup-body {
	padding: 24px 26px 22px;
}

.anl-popup-later {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 6px;
	border: none;
	background: transparent;
	color: #668077;
	font-size: 0.84rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.anl-popup-later:hover {
	color: #0d3b2e;
}

@media (max-width: 680px) {
	.anl-benefits,
	.anl-field-row {
		grid-template-columns: minmax(0, 1fr);
	}
	.anl-page-head,
	.anl-page-body {
		padding: 24px 18px;
	}
}
