/* CFPro Direct Order - Frontend Styles */

.cfpro-do-button-wrap {
	display: inline-block;
	margin: 12px 0;
	width: 100%;
}

.cfpro-do-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 24px;
	font-family: 'Cairo', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	font-weight: 800;
	color: #ffffff !important;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.cfpro-do-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.cfpro-do-submit-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Modal Popup Overlay */
.cfpro-do-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(6px);
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.cfpro-do-popup-overlay.active {
	opacity: 1;
	visibility: visible;
}

.cfpro-do-popup-modal {
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	position: relative;
	transform: scale(0.92);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

.cfpro-do-popup-overlay.active .cfpro-do-popup-modal {
	transform: scale(1);
}

.cfpro-do-popup-header {
	padding: 20px 24px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cfpro-do-popup-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
}

.cfpro-do-popup-close {
	background: transparent;
	border: none;
	font-size: 24px;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	border-radius: 50%;
	transition: background 0.2s;
}

.cfpro-do-popup-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.cfpro-do-popup-body {
	padding: 24px;
}

.cfpro-do-form-group {
	margin-bottom: 16px;
}

.cfpro-do-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.cfpro-do-form-control {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	background: #f8fafc;
	transition: all 0.2s;
	box-sizing: border-box;
}

.cfpro-do-form-control:focus {
	outline: none;
	border-color: #25D366;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.cfpro-do-floating-anchor a:hover {
	transform: scale(1.12) rotate(8deg);
}

/* Animations */
@keyframes cfpro-do-pulse {
	0% { transform: scale(0.95); opacity: 0.8; }
	70% { transform: scale(1.4); opacity: 0; }
	100% { transform: scale(0.95); opacity: 0; }
}

@keyframes cfpro-do-float-pulse {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

@keyframes cfpro-do-pop-in {
	0% { transform: scale(0.8); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 580px) {
	.cfpro-do-popup-modal { width: 95% !important; max-height: 90vh !important; border-radius: 20px !important; }
	.cfpro-do-popup-fields-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
	.cfpro-do-popup-fields-grid > div { grid-column: 1 / -1 !important; }
}
