/* CTAin popup styles */

.ctain-wrap {
	position: relative;
	display: inline-block;
}

.ctain-btn,
.ctain-submit {
	cursor: pointer;
	border: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.ctain-btn:hover,
.ctain-submit:hover {
	filter: brightness(1.08);
}

/* Kunci scroll halaman saat popup terbuka agar tidak "tenggelam" saat di-scroll. */
body.ctain-no-scroll {
	overflow: hidden !important;
}

.ctain-popup {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ctain-popup.is-open {
	visibility: visible;
	opacity: 1;
}

.ctain-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
}

.ctain-popup-card {
	position: relative;
	width: min(92vw, 400px);
	background: #ffffff;
	border-radius: 16px;
	padding: 28px 26px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	transform: translateY(10px) scale(0.98);
	transition: transform 0.2s ease;
	box-sizing: border-box;
	max-height: 90vh;
	overflow-y: auto;
}

.ctain-popup.is-open .ctain-popup-card {
	transform: translateY(0) scale(1);
}

.ctain-popup-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	color: #475569;
	padding: 6px;
	margin: 0;
	transition: color 0.15s ease;
	z-index: 2;
}

.ctain-popup-close:hover {
	color: #0f172a;
	background: transparent !important;
}

.ctain-popup-card h3 {
	margin: 0 0 16px;
	font-size: 20px;
	color: #0f172a;
}

.ctain-form .ctain-field {
	margin-bottom: 20px;
}

.ctain-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	line-height: 1.5;
}

.ctain-form input[type="text"],
.ctain-form input[type="email"],
.ctain-form input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	background: #f8fafc;
}

.ctain-form input:focus {
	outline: none;
	border-color: #2563eb;
	background: #ffffff;
}

.ctain-submit {
	width: 100%;
	margin-top: 18px;
	padding: 12px 24px;
}

.ctain-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.ctain-msg {
	display: none;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 14px;
}

.ctain-msg.is-visible {
	display: block;
}

.ctain-msg.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.ctain-msg.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ctain-submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}