/* dlepnl-front.css — فرم عضویت خبرنامه (درون‌قالبی + پاپ‌آپ)
   خودکفا، خوانا روی هر پس‌زمینه. رنگ تأکید از متغیر --dnlf-accent می‌آید
   (از تنظیمات تعیین می‌شود). چهار استایل: navy | light | minimal | inline
   و custom برای CSS دستی. */

.dnlf-band, .dnlf-pop { --dnlf-accent: #f6a609; }

/* ───────── ساختار پایه ───────── */
.dnlf-band { padding: 0; }
.dnlf-card {
	display: flex; flex-wrap: wrap; align-items: center; gap: 24px 34px;
	border-radius: 18px; padding: 30px 34px; position: relative; overflow: hidden;
}
.dnlf-copy { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.dnlf-form { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.dnlf-eyebrow {
	font: 700 12px/1 inherit; letter-spacing: .12em;
	color: var(--dnlf-accent); display: inline-block; margin-bottom: 10px;
}
.dnlf-title { margin: 0 0 8px; font-size: clamp(19px, 3vw, 24px); font-weight: 800; line-height: 1.5; }
.dnlf-lead { margin: 0; font-size: 14px; line-height: 2; opacity: .92; }
.dnlf-row { display: flex; gap: 10px; }
.dnlf-input {
	flex: 1 1 auto; min-width: 0; background: #fff; color: #1f2937;
	border: 1px solid #d7dbe6; border-radius: 12px; padding: 13px 15px;
	font: inherit; font-size: 14px; outline: none; transition: box-shadow .16s, border-color .16s;
}
.dnlf-input::placeholder { color: #8b95a7; opacity: 1; }
.dnlf-input:focus { border-color: var(--dnlf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dnlf-accent) 40%, transparent); }
.dnlf-btn {
	flex: 0 0 auto; border: 0; cursor: pointer;
	background: var(--dnlf-accent); color: #1a1204;
	font: inherit; font-weight: 800; font-size: 14px;
	padding: 13px 26px; border-radius: 12px; transition: transform .12s, filter .12s;
}
.dnlf-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.dnlf-btn:disabled { opacity: .6; cursor: default; transform: none; }
.dnlf-hp {
	position: absolute !important; left: -9999px !important; top: auto !important;
	width: 1px !important; height: 1px !important; overflow: hidden !important;
	opacity: 0 !important; pointer-events: none !important;
}
.dnlf-msg { margin-top: 12px; font-size: 13px; line-height: 1.9; min-height: 20px; opacity: .9; }
.dnlf-msg.ok  { color: #16a34a; }
.dnlf-msg.err { color: #dc2626; }

/* ───────── استایل: navy (تیره) ───────── */
.dnlf--navy .dnlf-card {
	background: linear-gradient(135deg, #1a2e66 0%, #24356f 60%, #1f2c5c 100%);
	color: #eef1fb; box-shadow: 0 18px 40px -20px rgba(26, 46, 102, .5);
}
.dnlf--navy .dnlf-card::before {
	content: ""; position: absolute; inset-inline-end: -70px; top: -70px;
	width: 240px; height: 240px; border-radius: 50%;
	background: var(--dnlf-accent); opacity: .16; pointer-events: none;
}
.dnlf--navy .dnlf-title { color: #fff; }
.dnlf--navy .dnlf-lead  { color: #c4cdea; }
.dnlf--navy .dnlf-input { border-color: #fff; }
.dnlf--navy .dnlf-msg.ok  { color: #7ee2a8; }
.dnlf--navy .dnlf-msg.err { color: #ff9d9d; }

/* ───────── استایل: light (روشن) ───────── */
.dnlf--light .dnlf-card {
	background: #fff; color: #2b3648; border: 1px solid #e3e8ef;
	box-shadow: 0 12px 34px -18px rgba(24, 39, 75, .22);
}
.dnlf--light .dnlf-title { color: #1a2e66; }
.dnlf--light .dnlf-lead  { color: #5b6779; }
.dnlf--light .dnlf-input { background: #f7f9fc; }

/* ───────── استایل: minimal (بدون کارت) ───────── */
.dnlf--minimal .dnlf-card { background: none; padding: 8px 0; gap: 16px 28px; box-shadow: none; }
.dnlf--minimal .dnlf-title { font-size: 18px; }
.dnlf--minimal .dnlf-lead  { font-size: 13px; }

/* ───────── استایل: inline (تک‌ردیفه فشرده) ───────── */
.dnlf--inline .dnlf-card { background: #f7f9fc; border: 1px solid #e3e8ef; padding: 18px 22px; gap: 14px 22px; border-radius: 14px; }
.dnlf--inline .dnlf-copy { flex: 1 1 240px; }
.dnlf--inline .dnlf-eyebrow { display: none; }
.dnlf--inline .dnlf-title { font-size: 16px; margin: 0; }
.dnlf--inline .dnlf-lead { display: none; }
.dnlf--inline .dnlf-form { flex: 1 1 300px; }

/* ───────── استایل: stacked (عمودی و وسط‌چین — فیلد و دکمه زیر هم) ───────── */
.dnlf--stacked .dnlf-card {
	flex-direction: column; align-items: center; text-align: center;
	background: #fff; color: #2b3648; border: 1px solid #e3e8ef;
	box-shadow: 0 12px 34px -18px rgba(24, 39, 75, .22);
	max-width: 460px; margin: 0 auto; padding: 30px 28px; gap: 6px;
}
.dnlf--stacked .dnlf-copy, .dnlf--stacked .dnlf-form { flex: none; width: 100%; }
.dnlf--stacked .dnlf-title { color: #1a2e66; }
.dnlf--stacked .dnlf-lead { color: #5b6779; }
.dnlf--stacked .dnlf-form { margin-top: 16px; }
.dnlf--stacked .dnlf-row { flex-direction: column; gap: 10px; }
.dnlf--stacked .dnlf-input { text-align: center; }
.dnlf--stacked .dnlf-btn { width: 100%; }
.dnlf--stacked .dnlf-input { background: #f7f9fc; }

/* ───────── استایل: edge (باکس با نوار رنگی کناری، تخت) ───────── */
.dnlf--edge .dnlf-card {
	background: #fff; color: #2b3648;
	border: 1px solid #e3e8ef; border-inline-start: 5px solid var(--dnlf-accent);
	border-radius: 6px; box-shadow: none; padding: 26px 28px;
}
.dnlf--edge .dnlf-title { color: #1a2e66; }
.dnlf--edge .dnlf-lead { color: #5b6779; }
.dnlf--edge .dnlf-input { background: #f7f9fc; border-radius: 6px; }
.dnlf--edge .dnlf-btn { border-radius: 6px; }

@media (max-width: 560px) {
	.dnlf-card { padding: 24px 20px; }
	.dnlf-row { flex-direction: column; }
	.dnlf-btn { width: 100%; }
}

/* ───────── پاپ‌آپ ───────── */
.dnlf-pop[hidden] { display: none !important; }
.dnlf-pop {
	position: fixed; inset: 0;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100%; height: 100%;
	z-index: 2147483000; display: flex;
	align-items: center; justify-content: center; padding: 20px;
	opacity: 0; transition: opacity .28s; box-sizing: border-box;
}
.dnlf-pop.is-open { opacity: 1; }
.dnlf-pop-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.dnlf-pop-card {
	position: relative; z-index: 1; width: 100%; max-width: 440px;
	transform: translateY(14px) scale(.98); transition: transform .28s;
	border-radius: 18px; overflow: hidden;
}
.dnlf-pop.is-open .dnlf-pop-card { transform: none; }
.dnlf-pop .dnlf-card { display: block; padding: 30px 28px; }
.dnlf-pop .dnlf-copy, .dnlf-pop .dnlf-form { flex: none; }
.dnlf-pop .dnlf-form { margin-top: 18px; }
.dnlf-pop .dnlf-row { flex-direction: column; }
.dnlf-pop .dnlf-btn { width: 100%; }
.dnlf-pop-x {
	position: absolute; inset-inline-end: 12px; top: 10px; z-index: 2;
	width: 30px; height: 30px; border: 0; border-radius: 8px; cursor: pointer;
	background: rgba(0, 0, 0, .12); color: #fff; font-size: 20px; line-height: 1;
}
.dnlf--light .dnlf-pop-x, .dnlf--minimal .dnlf-pop-x { background: rgba(0, 0, 0, .08); color: #333; }
.dnlf-pop-x:hover { background: rgba(0, 0, 0, .22); }
.dnlf-pop.dnlf--minimal .dnlf-pop-card, .dnlf-pop.dnlf--inline .dnlf-pop-card { background: #fff; }
.dnlf-pop.dnlf--minimal .dnlf-card, .dnlf-pop.dnlf--inline .dnlf-card { background: #fff; color: #2b3648; border: 0; }
