/* ==========================================================================
   Marican Resources - Ultra-Premium 2026 WhatsApp Enquiry Form & Success Engine
   Military-Grade Architecture // Zero-Defect // 120fps Animation Fidelity
   ========================================================================== */

:root {
	--wa-emerald: #10b981;
	--wa-emerald-dark: #059669;
	--wa-emerald-light: #d1fae5;
	--wa-emerald-border: #34d399;
	--wa-brand-green: #25D366;
	--wa-brand-hover: #20bd5a;
	--wa-dark-badge: #111827;
	--wa-text-title: #111827;
	--wa-text-muted: #475569;
	--wa-text-subtle: #64748b;
	--wa-bg-card: #ffffff;
	--wa-border-light: #e2e8f0;
	--wa-border-hover: #cbd5e1;
	--wa-btn-secondary: #f8fafc;
	--wa-glow: rgba(34, 197, 94, 0.45);
	--wa-radius-card: 20px;
	--wa-radius-btn: 12px;
	--wa-radius-pill: 8px;
}

/* Container Wrapper */
.marican-form-container {
	position: relative;
	width: 100%;
}

/* Form transition wrapping */
.marican-wa-form {
	position: relative;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.marican-wa-form.form-submitting {
	pointer-events: none;
	opacity: 0.75;
}

/* Enhanced Form Input Styles */
.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group textarea {
	border: 1.5px solid transparent !important;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.contact-form .form-group input[type="text"]:focus,
.contact-form .form-group input[type="email"]:focus,
.contact-form .form-group textarea:focus {
	border-color: var(--wa-emerald) !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important;
	outline: none !important;
}

.contact-form .form-group input.error,
.contact-form .form-group textarea.error {
	border-color: #ef4444 !important;
	background-color: #fef2f2 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
	animation: wa-shake 0.35s ease-in-out;
}

.contact-form label.error {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #ef4444 !important;
	margin-top: 6px !important;
	display: block !important;
	text-transform: none !important;
	letter-spacing: 0.2px;
}

@keyframes wa-shake {

	0%,
	100% {
		transform: translateX(0);
	}

	20%,
	60% {
		transform: translateX(-6px);
	}

	40%,
	80% {
		transform: translateX(6px);
	}
}

/* ==========================================================================
   SUCCESS CARD (1:1 Exact Match with Reference Specification)
   ========================================================================== */

.enquiry-success-card {
	position: relative;
	width: 100%;
	background: var(--wa-bg-card);
	border-radius: var(--wa-radius-card);
	padding: 44px 36px;
	box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
	text-align: center;
	display: none;
	opacity: 0;
	transform: translateY(16px);
	z-index: 20;
	overflow: hidden;
}

/* Dark Circular Badge with Green Radial Aura */
.enquiry-success-icon-wrap {
	position: relative;
	width: 72px;
	height: 72px;
	margin: 0 auto 26px auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.enquiry-success-glow {
	position: absolute;
	width: 80px;
	height: 40px;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, var(--wa-glow) 0%, rgba(34, 197, 94, 0) 70%);
	filter: blur(10px);
	border-radius: 50%;
	pointer-events: none;
	animation: wa-pulse-glow 2.8s ease-in-out infinite;
}

@keyframes wa-pulse-glow {

	0%,
	100% {
		opacity: 0.7;
		transform: translateX(-50%) scale(1);
	}

	50% {
		opacity: 1;
		transform: translateX(-50%) scale(1.15);
	}
}

.enquiry-success-circle {
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--wa-dark-badge);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 25px -4px rgba(17, 24, 39, 0.35);
	z-index: 2;
}

/* SVG Checkmark Animation */
.enquiry-success-check {
	width: 36px;
	height: 36px;
}

.enquiry-check-path {
	stroke: #22c55e;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: wa-draw-check 0.65s cubic-bezier(0.65, 0, 0.45, 1) 0.25s forwards;
}

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

/* Title & Description */
.enquiry-success-title {
	font-family: inherit;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--wa-text-title);
	margin: 0 0 14px 0;
	letter-spacing: -0.02em;
}

.enquiry-success-desc {
	font-size: 16px;
	line-height: 1.6;
	color: var(--wa-text-muted);
	max-width: 480px;
	margin: 0 auto 28px auto;
	font-weight: 400;
}

/* Reference Box (Dashed Green Border) */
.enquiry-reference-box {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border: 1.5px dashed var(--main-color);
	background: #ffffff;
	border-radius: 12px;
	padding: 13px 24px;
	margin: 0 auto 32px auto;
	max-width: 100%;
	box-sizing: border-box;
}

.enquiry-reference-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--wa-text-muted);
	white-space: nowrap;
}

.enquiry-reference-badge {
	background-color: var(--main-color);
	color: var(--wa-btn-secondary);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.05em;
	padding: 6px 16px;
	border-radius: var(--wa-radius-pill);
	font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	display: inline-block;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	user-select: all;
	cursor: copy;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.enquiry-reference-badge:hover {
	transform: scale(1.02);
	background-color: #111827;
}

/* Action Buttons */
.enquiry-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	width: 100%;
}

.btn-start-another {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 26px;
	background: var(--wa-btn-secondary);
	border: 1.5px solid var(--wa-border-light);
	border-radius: var(--wa-radius-btn);
	color: #0f172a;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.btn-start-another:hover {
	background: #f1f5f9;
	border-color: var(--wa-border-hover);
	color: #0f172a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-start-another:active {
	transform: translateY(0);
}

.btn-open-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 28px;
	background: var(--wa-brand-green);
	border: none;
	border-radius: var(--wa-radius-btn);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.btn-open-whatsapp:hover {
	background: var(--wa-brand-hover);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(37, 211, 102, 0.48);
}

.btn-open-whatsapp:active {
	transform: translateY(0);
}

.whatsapp-btn-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Submit Button Loading Spinner */
.marican-submit-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: wa-spin 0.7s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

@keyframes wa-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive Touch-Friendly Adaptations */
@media (max-width: 767px) {
	.enquiry-success-card {
		padding: 32px 20px;
		border-radius: 16px;
	}

	.enquiry-success-title {
		font-size: 23px;
	}

	.enquiry-success-desc {
		font-size: 14.5px;
		margin-bottom: 22px;
	}

	.enquiry-reference-box {
		padding: 10px 16px;
		gap: 10px;
		margin-bottom: 24px;
	}

	.enquiry-reference-label {
		font-size: 14px;
	}

	.enquiry-reference-badge {
		font-size: 15px;
		padding: 5px 12px;
	}

	.enquiry-actions {
		flex-direction: column;
		width: 100%;
		gap: 12px;
	}

	.btn-start-another,
	.btn-open-whatsapp {
		width: 100%;
		height: 50px;
	}
}

/* Dark Mode Optimization */
.dark-body .enquiry-success-card {
	background: #1e293b;
	border-color: #334155;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dark-body .enquiry-success-title {
	color: #f8fafc;
}

.dark-body .enquiry-success-desc {
	color: #94a3b8;
}

.dark-body .enquiry-reference-box {
	background: #0f172a;
	border-color: #059669;
}

.dark-body .enquiry-reference-label {
	color: #cbd5e1;
}

.dark-body .btn-start-another {
	background: #0f172a;
	border-color: #334155;
	color: #f8fafc;
}

.dark-body .btn-start-another:hover {
	background: #1e293b;
	border-color: #475569;
}