/* ======================================
   CONTACT FORM POPUP (SMALL + HEADER SAFE)
====================================== */
.dr1048contactformpopup2 {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: flex-start; /* ⬅️ not centered */
	padding-top: 120px; /* ⬅️ header visible */
	padding-left: 16px;
	padding-right: 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .3s ease, visibility .3s ease;
	box-sizing: border-box;
	overflow-x: hidden;
}

/* Active */
.dr1048contactformpopup2.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ======================================
   OVERLAY REMOVED COMPLETELY
====================================== */
.dr1048contactformpopup2 .popup-overlay {
	display: none !important;
}

/* ======================================
   SMALL POPUP CONTAINER
====================================== */
.dr1048contactformpopup2 .popup-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 420px; /* ⬅️ smaller popup */
	max-height: 80vh;
	overflow-y: auto;
	overflow-x: hidden;
	border-radius: 18px;
	padding: 0;
	transform: translateY(20px) scale(.96);
	opacity: 0;
	transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .35s
		ease;
}

/* Animate in */
.dr1048contactformpopup2.active .popup-content {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* ======================================
   CLOSE BUTTON
====================================== */
.dr1048contactformpopup2 .popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1c1c22;
	color: #f5e8c7;
	font-size: 18px;
	font-weight: 700;
	z-index: 3;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .7), inset 0 0 0 1px
		rgba(255, 255, 255, .06);
	transition: transform .25s ease, background .25s ease;
}

.dr1048contactformpopup2 .popup-close:hover {
	background: #d4af37;
	color: #121216;
	transform: rotate(90deg);
}

/* ======================================
   MOBILE SAFETY
====================================== */
@media ( max-width : 768px) {
	.dr1048contactformpopup2 {
		padding-top: 90px;
	}
	.dr1048contactformpopup2 .popup-content {
		max-width: 100%;
		max-height: 85vh;
	}
}