/**
 * AskAny Dynamic Pricing Modal Styles
 * 
 * Styles for the dynamic pricing modal with countdown timer
 * Based on React PremiumModal component design
 * 
 * @package Askany
 * @since 1.9.0
 */

/* ==================== Pricing Modal ==================== */
.askany-pricing-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: askany-modal-fade-in 0.3s ease;
}

@keyframes askany-modal-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.askany-pricing-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.askany-pricing-modal-content {
	position: relative;
	background: white;
	border-radius: 24px;
	max-width: 510px;
	width: 70%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
	animation: askany-modal-slide-up 0.4s ease;
}

@keyframes askany-modal-slide-up {
	from {
		transform: translateY(40px) scale(0.95);
		opacity: 0;
	}

	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.askany-pricing-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(0, 0, 0, 0.1);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
}

.askany-pricing-modal-close:hover {
	background: rgba(0, 0, 0, 0.2);
	transform: rotate(90deg);
}

/* ==================== Pricing Header ==================== */
.askany-pricing-header {
	text-align: center;
	padding: 15px 25px 15px;
	background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
	color: white;
	border-radius: 24px 24px 0 0;
	position: relative;
}

.premium-crown {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 5px;
	animation: pulse-glow 3s ease-in-out infinite;
}

.premium-crown svg {
	fill: #FCD34D;
	stroke: #FCD34D;
	width: 36px;
	height: 36px;
}

@keyframes pulse-glow {

	0%,
	100% {
		box-shadow: 0 0 15px rgba(252, 211, 77, 0.2);
		transform: scale(1);
	}

	50% {
		box-shadow: 0 0 25px rgba(252, 211, 77, 0.4);
		transform: scale(1.03);
	}
}

.askany-pricing-header h2 {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 700;
	color: white;
	line-height: 1.3;
}

.askany-pricing-header p {
	margin: 0;
	font-size: 15px;
	opacity: 0.92;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.95);
}

/* ==================== Pricing Offer (with Countdown) ==================== */
.askany-pricing-offer {
	padding: 15px;
	background: #FAFAFA;
	text-align: center;
}

.premium-offer-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #EF4444;
	color: white;
	padding: 8px 18px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 0px;
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.premium-offer-badge svg {
	width: 16px;
	height: 16px;
}

/* ==================== Countdown Timer ==================== */
.askany-pricing-countdown {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 30px 0;
}

.countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: white;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	padding: 5px 5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	min-width: 55px;
	transition: all 0.3s ease;
}

.countdown-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.countdown-number {
	font-size: 20px;
	font-weight: 700;
	color: #4F46E5;
	line-height: 1;
	margin-bottom: 6px;
}

.countdown-label {
	font-size: 10px;
	color: #6B7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.countdown-separator {
	font-size: 28px;
	font-weight: 600;
	color: #9CA3AF;
	margin: 0 4px;
}

.countdown-ended {
	color: #DC2626;
	font-weight: 600;
	font-size: 16px;
}

.premium-offer-text {
	font-size: 15px;
	color: #374151;
	margin: 0px 0 0;
	line-height: 1.5;
}

.premium-offer-text strong {
	color: #DC2626;
	font-size: 20px;
	font-weight: 700;
}

/* ==================== Basic Offer (No Countdown) ==================== */
.askany-pricing-basic-offer {
	padding: 40px;
	background: white;
}

.askany-value-props {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
}

.value-prop {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	text-align: left;
	padding: 16px;
	background: #F9FAFB;
	border-radius: 10px;
	border: 1px solid #E5E7EB;
	transition: all 0.3s ease;
}

.value-prop:hover {
	background: #F3F4F6;
	border-color: #D1D5DB;
}

.value-icon {
	flex-shrink: 0;
	stroke: #4F46E5;
	background: #EEF2FF;
	border-radius: 10px;
	padding: 10px;
	width: 44px;
	height: 44px;
}

.value-content h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
	line-height: 1.3;
}