/* Branded success modal, used by index.html (Contact Us) and plan-request.html
   (Subscription Request) in place of frappe.msgprint's plain default dialog.
   Reuses the .sk-modal/.sk-modal-backdrop/.sk-modal-card/.sk-modal-close chrome
   landing.css already defines - only the icon,
   draw-in animation and copy below are new. */

.cp-success-card {
	max-width: 420px;
	text-align: center;
	padding: 40px 32px 32px;
	animation: cp-modal-in 0.25s ease-out;
}

.cp-success-icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 20px;
}

.cp-success-icon svg {
	width: 100%;
	height: 100%;
}

.cp-success-icon-circle {
	fill: none;
	stroke: var(--sk-accent);
	stroke-width: 3;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: cp-circle 0.5s ease-out forwards;
}

.cp-success-icon-check {
	fill: none;
	stroke: var(--sk-accent);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 34;
	stroke-dashoffset: 34;
	animation: cp-check 0.35s 0.45s ease-out forwards;
}

.cp-success-title {
	color: var(--sk-primary);
	font-size: 1.5rem;
	margin: 0 0 10px;
}

.cp-success-message {
	color: #5b6472;
	font-size: 0.98rem;
	line-height: 1.6;
	margin: 0 0 24px;
}

.cp-success-close {
	width: 100%;
}

@keyframes cp-circle {
	to { stroke-dashoffset: 0; }
}

@keyframes cp-check {
	to { stroke-dashoffset: 0; }
}

@keyframes cp-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.cp-success-card,
	.cp-success-icon-circle,
	.cp-success-icon-check {
		animation: none !important;
		stroke-dashoffset: 0 !important;
	}
}
