/* ── Font ── */
.ejp-wrapper,
.ejp-popup-content {
	font-family: 'Inter', sans-serif;
}

/* ── Trigger Button ── */
.ejp-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	font-weight: 600;
	transition: opacity 0.2s, transform 0.2s;
	line-height: 1;
}
.ejp-trigger-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}
.ejp-btn-sm { padding: 10px 20px; font-size: 14px; }
.ejp-btn-md { padding: 14px 28px; font-size: 16px; }
.ejp-btn-lg { padding: 18px 36px; font-size: 18px; }

/* ── Overlay ── */
.ejp-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.6);
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.ejp-popup-overlay.ejp-active {
	display: flex;
}

/* ── Popup Content ── */
.ejp-popup-content {
	position: relative;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	animation: ejpSlideUp 0.3s ease;
}
@keyframes ejpSlideUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Close Button ── */
.ejp-close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	line-height: 1;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s, color 0.2s;
}
.ejp-close-btn:hover {
	background: #f0f0f0;
	color: #333;
}

/* ── Title & Subtitle ── */
.ejp-popup-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
}
.ejp-popup-subtitle {
	margin: 0 0 24px;
	color: #6b7280;
	font-size: 15px;
	line-height: 1.5;
}

/* ── Form Fields ── */
.ejp-fields-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.ejp-field-wrap {
	display: flex;
	flex-direction: column;
}
.ejp-field-w100 { flex: 0 0 100%; }
.ejp-field-w50  { flex: 0 0 calc(50% - 8px); }

.ejp-field-wrap label {
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}
.ejp-required { color: #ef4444; }

.ejp-field-wrap input,
.ejp-field-wrap textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fafafa;
	box-sizing: border-box;
}
.ejp-field-wrap input:focus,
.ejp-field-wrap textarea:focus {
	outline: none;
	border-color: #6C3CE1;
	box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
	background: #fff;
}
.ejp-field-wrap textarea {
	resize: vertical;
}

/* ── Submit Button ── */
.ejp-submit-btn {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 14px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
}
.ejp-submit-btn:hover {
	opacity: 0.9;
}
.ejp-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Message ── */
.ejp-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}
.ejp-message.ejp-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.ejp-message.ejp-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.ejp-popup-content {
		padding: 24px 20px;
	}
	.ejp-field-w50 {
		flex: 0 0 100%;
	}
}
