.epd-card {
	--epd-primary: #65308F;
	--epd-accent: #f5821f;
	display: flex; align-items: flex-end; justify-content: space-between;
	background: #f8f8fa; border: 1px solid #e5e5eb; border-radius: 12px;
	padding: 35px 40px 25px 40px; width: 100%; max-width: 950px;
	margin: 0 auto; box-sizing: border-box; position: relative; overflow: hidden;
	font-family: inherit;
	box-shadow: 0 10px 30px rgba(101,48,143,.08), 0 1px 3px rgba(0,0,0,.05);
	transition: all .3s ease;
}
.epd-card:hover {
	box-shadow: 0 15px 35px rgba(101,48,143,.12), 0 3px 6px rgba(0,0,0,.06);
	transform: translateY(-2px);
}
.epd-left { display: flex; flex-direction: column; position: relative; z-index: 2; }
.epd-title-box { position: relative; margin-bottom: 5px; min-height: 50px; display: flex; align-items: center; }
.epd-main-title {
	position: relative; z-index: 2;
	font-size: 55px !important; font-weight: 900 !important;
	color: #2b303a; letter-spacing: 3px;
	margin: 0 !important; line-height: 1 !important;
}
.epd-main-title::before {
	content: attr(data-text);
	position: absolute; top: 50%; left: 2px; transform: translateY(-55%);
	font-size: 1.05em; font-weight: 900; color: transparent;
	-webkit-text-stroke: 1px rgba(120,120,120,.22);
	z-index: -1; line-height: 1; letter-spacing: 2px; white-space: nowrap;
}
.epd-sub-title {
	font-size: 13px; font-weight: 600; color: #4a4a5e;
	letter-spacing: 5px; text-transform: uppercase; margin: 8px 0 20px 0;
}
.epd-decor { display: flex; width: 130px; height: 3px; border-radius: 2px; overflow: hidden; margin-bottom: 15px; }
.epd-decor-gray { flex: 2; background: #999; }
.epd-decor-accent { flex: 1; background: var(--epd-accent); }
.epd-right { position: relative; z-index: 2; }

.epd-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: transparent; color: var(--epd-primary);
	border: 1px solid var(--epd-primary); border-radius: 6px;
	padding: 12px 24px; font-size: 14px; font-weight: 600;
	font-family: inherit; text-decoration: none; cursor: pointer;
	transition: all .3s ease; line-height: 1.2;
}
.epd-btn:hover, .epd-btn:focus {
	background: var(--epd-primary); color: #fff; border-color: var(--epd-primary);
	box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.epd-btn svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 768px) {
	.epd-card { flex-direction: column; align-items: flex-start; padding: 25px 20px; gap: 20px; }
	.epd-main-title { font-size: 30px !important; }
	.epd-sub-title { font-size: 11px; letter-spacing: 4px; }
	.epd-decor { margin-bottom: 0; }
	.epd-right { width: 100%; }
	.epd-btn { width: 100%; justify-content: center; }
}

/* ===== POPUP ===== */
.epd-overlay {
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(25,18,40,.55);
	display: none; align-items: center; justify-content: center;
	padding: 16px; box-sizing: border-box;
}
.epd-overlay.is-open { display: flex; }
.epd-modal {
	position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
	background: #fff; border-radius: 14px; padding: 30px 28px 26px;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
	font-family: inherit; box-sizing: border-box;
	animation: epd-in .22s ease;
}
@keyframes epd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.epd-modal *, .epd-modal *::before, .epd-modal *::after { box-sizing: border-box; }
.epd-close {
	position: absolute; top: 10px; right: 12px; width: 34px; height: 34px;
	border: 0; background: transparent; font-size: 26px; line-height: 1;
	color: #777; cursor: pointer; border-radius: 50%; padding: 0;
}
.epd-close:hover { background: #f0edf5; color: #333; }
.epd-modal .epd-title { margin: 0 0 6px !important; font-size: 21px !important; font-weight: 800 !important; color: #2b303a !important; line-height: 1.3 !important; }
.epd-modal .epd-desc { margin: 0 0 18px !important; font-size: 14px !important; color: #5a5a6e !important; line-height: 1.5 !important; }
.epd-field { margin-bottom: 14px; }
.epd-field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #2b303a; }
.epd-field label em { color: #e03131; font-style: normal; }
.epd-field input {
	width: 100%; height: 44px; padding: 0 14px;
	border: 1px solid #d6d2e0; border-radius: 8px; background: #fff;
	font-size: 15px; font-family: inherit; color: #2b303a; outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.epd-field input:focus { border-color: var(--epd-primary); box-shadow: 0 0 0 3px rgba(101,48,143,.15); }
.epd-field.has-error input { border-color: #e03131; }
.epd-error { display: none; margin-top: 4px; font-size: 12px; color: #e03131; }
.epd-field.has-error .epd-error { display: block; }
.epd-submit {
	width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 8px;
	background: var(--epd-primary); color: #fff; font-size: 15px; font-weight: 700;
	font-family: inherit; cursor: pointer; transition: filter .2s;
}
.epd-submit:hover { filter: brightness(.85); }
.epd-submit[disabled] { opacity: .65; cursor: wait; }
.epd-note { margin: 12px 0 0; font-size: 12px; color: #8a8a9c; text-align: center; }
.epd-success { display: none; text-align: center; padding: 10px 0 4px; }
.epd-success .epd-ok { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #e9f7ee; color: #2f9e57; font-size: 30px; line-height: 56px; }
.epd-modal.is-done form, .epd-modal.is-done > .epd-title, .epd-modal.is-done > .epd-desc { display: none !important; }
.epd-modal.is-done .epd-success { display: block; }
.epd-success a { color: var(--epd-primary); font-weight: 600; }

/* Form ngoài (shortcode / template) */
.epd-modal.is-done .epd-ext { display: none !important; }
.epd-ext .elementor-widget-container, .epd-ext .elementor-section, .epd-ext .e-con { padding-left: 0; padding-right: 0; }
.epd-ext input[type="submit"], .epd-ext button[type="submit"] { cursor: pointer; }
