/* All rules are scoped under #acp-overlay and use !important on key properties
   so theme/Elementor styles can't override the popup. */

#acp-overlay, #acp-overlay * { box-sizing: border-box; }

#acp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 25, 45, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: inherit;
}

#acp-overlay .acp-modal {
	background: #fff;
	border-radius: 14px;
	max-width: 860px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#acp-overlay .acp-close {
	position: absolute !important;
	top: 12px !important;
	right: 14px !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: #eef0f5 !important;
	color: #333 !important;
	font-size: 22px !important;
	line-height: 34px !important;
	text-align: center !important;
	cursor: pointer;
	z-index: 5;
}
#acp-overlay .acp-close:hover { background: #dfe3ec !important; }

#acp-overlay .acp-modal-inner { display: flex; flex-wrap: wrap; }
#acp-overlay .acp-left,
#acp-overlay .acp-right { flex: 1 1 320px; padding: 40px; }
#acp-overlay .acp-left { display: flex; flex-direction: column; justify-content: center; }

/* Logo */
#acp-overlay .acp-logo { margin: 0 0 8px; }
#acp-overlay .acp-logo img {
	display: block !important;
	width: 110px !important;
	max-width: 110px !important;
	height: auto !important;
	margin: 0 !important;
}

#acp-overlay .acp-headline {
	font-size: 28px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	color: #1f3f8a !important;
	margin: 18px 0 10px !important;
	padding: 0 !important;
}
#acp-overlay .acp-divider { width: 60px; height: 3px; background: #aa925c; margin-bottom: 22px; }

#acp-overlay .acp-callback { display: flex; align-items: center; gap: 14px; }
#acp-overlay .acp-callback-icon {
	width: 44px; height: 44px; border-radius: 50%;
	background: #aa925c; color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px; flex-shrink: 0;
}
#acp-overlay .acp-callback div { color: #4a5568; font-size: 15px; }
#acp-overlay .acp-callback strong { color: #aa925c !important; font-size: 18px; font-weight: 700; }

/* Fields */
#acp-overlay .acp-field { position: relative; margin: 0 0 16px !important; }

#acp-overlay .acp-field input[type="text"],
#acp-overlay .acp-field input[type="email"],
#acp-overlay .acp-field input[type="tel"],
#acp-overlay .acp-field select {
	display: block !important;
	width: 100% !important;
	height: 52px !important;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	line-height: normal !important;
	font-size: 15px !important;
	font-family: inherit !important;
	color: #1a2438 !important;
	background-color: #fff !important;
	border: 1px solid #d3d8e1 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	text-indent: 0 !important;
}

#acp-overlay .acp-field select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	padding-right: 42px !important;
	text-overflow: ellipsis;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a8496' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
}
#acp-overlay .acp-field select option { color: #1a2438; }

#acp-overlay .acp-field input::placeholder { color: #7a8496 !important; opacity: 1; }

#acp-overlay .acp-field input:focus,
#acp-overlay .acp-field select:focus {
	outline: none !important;
	border-color: #aa925c !important;
	box-shadow: 0 0 0 3px rgba(170, 146, 92, 0.22) !important;
}

#acp-overlay .acp-checkbox-field {
	display: flex !important;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 16px;
	margin: 0 0 18px !important;
	border: 1px solid #d3d8e1;
	border-radius: 8px;
	font-size: 15px;
	color: #1a2438;
	background: #fff;
}
#acp-overlay .acp-checkbox-field input { width: 18px; height: 18px; margin: 0; }

#acp-overlay .acp-recaptcha-field { margin-bottom: 18px !important; }

#acp-overlay .acp-hp {
	position: absolute !important; left: -9999px !important;
	width: 1px !important; height: 1px !important; opacity: 0 !important;
}

#acp-overlay .acp-submit {
	display: block !important;
	width: 100% !important;
	height: 54px !important;
	padding: 0 !important;
	background: #1f3f8a !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background 0.2s ease;
}
#acp-overlay .acp-submit:hover { background: #162d66 !important; }
#acp-overlay .acp-submit:disabled { opacity: 0.6; cursor: not-allowed; }

#acp-overlay .acp-message { margin-top: 12px; font-size: 14px; text-align: center; }
#acp-overlay .acp-message.acp-success { color: #1a7d3a; }
#acp-overlay .acp-message.acp-error { color: #c0392b; }

@media (max-width: 640px) {
	#acp-overlay .acp-left,
	#acp-overlay .acp-right { padding: 24px; }
	#acp-overlay .acp-logo img { width: 90px !important; max-width: 90px !important; }
}
