/* =====================================================
   Callback popup — thiết kế fb 4.docx (updated UI)
   ===================================================== */

/* Dialog container */
.pj-callback-popup {
	width: min(460px, calc(100% - 24px));
	max-height: 95dvh;
	padding: 0;
	border: 0;
	border-radius: 20px;
	color: #071a3a;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0,0,0,.22);
	overflow: visible;
}
.pj-callback-popup::backdrop {
	background: rgba(0, 20, 50, 0.65);
}

/* ── Top banner ── */
.pj-callback-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #f50087;
	border-radius: 20px 20px 0 0;
	padding: 10px 20px;
}
.pj-callback-banner-icon {
	display: flex;
	align-items: center;
}
.pj-callback-banner-text {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
}

/* ── Close button ── */
.pj-callback-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #3d5a80;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
	z-index: 10;
}
.pj-callback-close:hover { background: #f4f7fb; }

/* ── Body ── */
.pj-callback-body {
	padding: 0 28px 28px;
	position: relative;
	overflow: hidden;
}

/* ── Hero area (sparkles + bubbles + text) ── */
.pj-callback-hero {
	position: relative;
	padding: 18px 0 10px;
	min-height: 110px;
}

/* Sparkles (left decoration) */
.pj-sparkles {
	position: absolute;
	left: -10px;
	top: 10px;
	width: 60px;
	pointer-events: none;
	user-select: none;
}

/* Chat bubbles (right decoration) */
.pj-chat-bubbles {
	position: absolute;
	right: -10px;
	top: 4px;
	width: 72px;
	pointer-events: none;
	user-select: none;
}

/* Eyebrow + headings */
.pj-callback-titles {
	padding-left: 44px; /* clear sparkles */
	padding-right: 60px; /* clear bubbles */
}
.pj-callback-heading-black {
	font-size: 30px;
	font-weight: 900;
	line-height: 1.15;
	color: #0d1b2e;
	margin: 0 0 2px;
	font-style: italic;
}
.pj-callback-heading-pink {
	font-size: 26px;
	font-weight: 900;
	line-height: 1.2;
	color: #f50087;
	margin: 0 0 10px;
	font-style: italic;
}
.pj-callback-desc {
	font-size: 13.5px;
	color: #60728e;
	margin: 0 0 20px;
	line-height: 1.55;
	padding-left: 0;
}

/* ── Inputs ── */
.pj-callback-form {
	display: grid;
	gap: 12px;
}
.pj-callback-input {
	width: 100%;
	border: 1.5px solid #d6e0ef;
	border-radius: 10px;
	padding: 13px 16px;
	font-size: 15px;
	color: #071a3a;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
.pj-callback-input::placeholder { color: #9bafc7; }
.pj-callback-input:focus {
	outline: none;
	border-color: #f50087;
	box-shadow: 0 0 0 3px rgba(245,0,135,.1);
}

/* ── Submit button ── */
.pj-callback-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #e0006e 0%, #f50087 60%, #c8006a 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: filter .15s, transform .1s;
	letter-spacing: .01em;
}
.pj-callback-submit:hover  { filter: brightness(1.08); }
.pj-callback-submit:active { transform: scale(.98); }
.pj-callback-submit svg { flex-shrink: 0; }

/* ── Bottom texts ── */
.pj-callback-privacy {
	font-size: 12px;
	color: #9bafc7;
	text-align: center;
	margin: 14px 0 6px;
	line-height: 1.5;
}
.pj-callback-browse {
	display: block;
	width: 100%;
	background: none;
	border: 0;
	font-size: 13.5px;
	color: #2563eb;
	text-align: center;
	cursor: pointer;
	padding: 2px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.pj-callback-browse:hover { color: #1d4ed8; }

/* Prevent body scroll while open */
body:has(.pj-callback-popup[open]) { overflow: hidden; }

/* Mobile */
@media (max-width: 500px) {
	.pj-callback-body { padding: 0 18px 22px; }
	.pj-callback-heading-black { font-size: 26px; }
	.pj-callback-heading-pink  { font-size: 22px; }
	.pj-callback-titles { padding-left: 36px; padding-right: 50px; }
}
