/* Buy-Now Simulateur - Styles */

.buy-now-simulator-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.buy-now-sim-step.active .step-number {
	background: #0B2149 !important;
	color: white !important;
}

.buy-now-sim-step.completed .step-number {
	background: #D4A858 !important;
	color: #0B2149 !important;
}

.buy-now-sim-step-content {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.buy-now-sim-results {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.buy-now-sim-score-card {
	background: linear-gradient(135deg, #0B2149 0%, #1a3a6b 100%) !important;
	color: white !important;
	padding: 2rem !important;
	border-radius: 12px !important;
	text-align: center !important;
	margin-bottom: 2rem !important;
	position: relative;
	z-index: 1;
}

.buy-now-sim-score-card h2 {
	color: white !important;
	font-size: 1.2rem !important;
	font-weight: 600 !important;
	opacity: 0.9 !important;
	margin: 0 0 1rem 0 !important;
	font-family: 'Poppins', sans-serif !important;
}

.buy-now-sim-score-global {
	font-size: 4rem !important;
	font-weight: bold !important;
	margin: 1rem 0 !important;
	color: white !important;
}

.buy-now-sim-score-wording {
	font-size: 1.5rem !important;
	opacity: 0.9 !important;
	margin-bottom: 1rem !important;
	color: white !important;
}

.buy-now-sim-scores-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.buy-now-sim-score-item {
	background: #F5F5F7;
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
}

.buy-now-sim-score-item h3 {
	font-family: 'Poppins', sans-serif;
	color: #0B2149;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.buy-now-sim-score-value {
	font-size: 2.5rem;
	font-weight: bold;
	color: #0B2149;
}

.buy-now-sim-ai-section {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	margin-bottom: 2rem;
	border-left: 4px solid #D4A858;
}

.buy-now-sim-ai-section h3 {
	font-family: 'Poppins', sans-serif;
	color: #0B2149;
	margin-bottom: 1rem;
}

.buy-now-sim-ai-section p {
	color: #666;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.buy-now-sim-recommendations {
	background: #F5F5F7;
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 1rem;
}

.buy-now-sim-recommendations ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.buy-now-sim-recommendations li {
	padding: 0.8rem 0;
	border-bottom: 1px solid #ddd;
	color: #666;
}

.buy-now-sim-recommendations li:last-child {
	border-bottom: none;
}

.buy-now-sim-feedback {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	margin-top: 2rem;
	border: 2px solid #D4A858;
}

.buy-now-sim-feedback h3 {
	font-family: 'Poppins', sans-serif;
	color: #0B2149;
	margin-bottom: 1rem;
}

.buy-now-sim-feedback-buttons {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

.buy-now-sim-feedback-btn {
	padding: 10px 20px !important;
	border: 2px solid #0B2149 !important;
	background: white !important;
	color: #0B2149 !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	font-weight: 600 !important;
	transition: all 0.2s !important;
	font-size: 1rem !important;
	position: relative !important;
	z-index: 10 !important;
	pointer-events: auto !important;
}

.buy-now-sim-feedback-btn:hover {
	background: #f0f0f0 !important;
	border-color: #1a3a6b !important;
}

.buy-now-sim-feedback-btn.active {
	background: #0B2149 !important;
	color: white !important;
	border-color: #0B2149 !important;
}

.buy-now-sim-feedback-btn.active:hover {
	background: #1a3a6b !important;
	border-color: #1a3a6b !important;
}

.buy-now-sim-feedback-buttons {
	position: relative !important;
	z-index: 10 !important;
}

.buy-now-feedback,
.buy-now-sim-feedback {
	position: relative !important;
	z-index: 1 !important;
}

#buy-now-sim-feedback-submit {
	background: #0B2149 !important;
	color: white !important;
	padding: 12px 30px !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
}

#buy-now-sim-feedback-submit:hover {
	background: #1a3a6b !important;
}

#buy-now-sim-feedback-submit:disabled {
	background: #ccc !important;
	cursor: not-allowed !important;
	opacity: 0.6 !important;
}

.buy-now-sim-loading {
	text-align: center;
	padding: 3rem;
	color: #666;
}

.buy-now-sim-loading::after {
	content: '';
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0B2149;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 1rem;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
	.buy-now-sim-steps {
		flex-direction: column;
		gap: 1rem;
	}
	
	.buy-now-sim-scores-grid {
		grid-template-columns: 1fr;
	}
	
	.buy-now-sim-score-global {
		font-size: 3rem;
	}
}

/* Tooltip Styles */
.buy-now-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: #D4A858;
	color: #0B2149;
	border-radius: 50%;
	font-size: 12px;
	font-weight: bold;
	margin-left: 8px;
	cursor: help;
	position: relative;
	transition: all 0.2s ease;
}

.buy-now-tooltip-icon:hover {
	transform: scale(1.1);
	background: #0B2149;
	color: #D4A858;
}

.buy-now-tooltip-icon::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 150%;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	background: #0B2149;
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	width: max-content;
	max-width: 250px;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	pointer-events: none;
	z-index: 1000;
	font-weight: normal;
	line-height: 1.4;
}

.buy-now-tooltip-icon:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.buy-now-tooltip-icon::before {
	content: '';
	position: absolute;
	bottom: 120%;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	border: 6px solid transparent;
	border-top-color: #0B2149;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.buy-now-tooltip-icon:hover::before {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Additional Responsive styles */
@media (max-width: 768px) {
	.step-number {
		margin-bottom: 0 !important;
	}
}

/* Page Content Styles - Intro & Extras */
.buy-now-simulator-intro {
	padding: 60px 20px 40px;
	background: white;
	text-align: center;
}

.buy-now-simulator-intro h1 {
	font-family: 'Poppins', sans-serif; /* You might need to enqueue this font if not present */
	color: var(--color-primary);
	font-size: 2.8rem;
	margin-bottom: 1.5rem;
}

.buy-now-simulator-intro p {
	font-size: 1.2rem;
	color: #666;
	line-height: 1.7;
	margin-bottom: 2rem;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.buy-now-tip-box {
	background: #F5F5F7;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 2rem;
	text-align: left;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.buy-now-simulator-main {
	padding: 40px 20px;
	background: var(--color-bg);
}

.buy-now-masterclass {
	padding: 80px 20px;
	background: #F8F9FA; /* Contrast background to make cards pop */
}

.buy-now-masterclass h2 {
	font-family: 'Poppins', sans-serif;
	color: var(--color-primary);
	font-size: 2rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

.buy-now-masterclass-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 3rem !important; /* increased gap */
	max-width: 1200px !important;
	margin: 0 auto !important;
	align-items: stretch !important;
}

/* NUCLEAR FIX: Hide anything that is not a card */
.buy-now-masterclass-grid > :not(.buy-now-masterclass-card) {
	display: none !important;
}

/* Responsive Grid for Masterclass */
@media (max-width: 992px) {
	.buy-now-masterclass-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.buy-now-masterclass-grid {
		grid-template-columns: 1fr !important;
	}
}

.buy-now-masterclass-card {
	background: white;
	padding: 2.5rem;
	border-radius: 20px; /* softer formatting */
	border: 1px solid rgba(0,0,0,0.03);
	box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* nicer initial shadow */
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* bouncy transition */
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	cursor: default;
}

/* Gradient top border that is always visible but gets brighter on hover */
.buy-now-masterclass-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 6px;
	background: linear-gradient(90deg, #D4A858, #0B2149);
	opacity: 0.7;
	transition: opacity 0.3s ease, height 0.3s ease;
}

.buy-now-masterclass-card:hover {
	transform: translateY(-12px); /* larger lift */
	box-shadow: 0 20px 60px rgba(11, 33, 73, 0.15); /* stronger shadow */
}

.buy-now-masterclass-card:hover::before {
	opacity: 1;
	height: 8px; /* thickens on hover */
}

.buy-now-masterclass-card h3 {
	font-family: 'Poppins', sans-serif;
	color: var(--color-primary);
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.buy-now-security {
	padding: 80px 20px;
	background: var(--color-primary);
	color: white;
	text-align: center;
}

.buy-now-security h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: white;
}

.buy-now-security-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-top: 3rem;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

/* NUCLEAR FIX: Hide anything that is not a security item */
.buy-now-security-grid > :not(.buy-now-security-item) {
	display: none !important;
}

.buy-now-security-item .icon {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	display: inline-block;
}

.buy-now-security-item h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.3rem;
	margin-bottom: 1rem;
	color: var(--color-secondary);
}

.buy-now-security-footer {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	opacity: 0.8;
}

.buy-now-security-footer a {
	color: var(--color-secondary);
	text-decoration: none;
	border-bottom: 1px dotted var(--color-secondary);
}

@media (max-width: 768px) {
    .buy-now-simulator-intro h1 { font-size: 2rem; }
}

/* --- PRICING TABLE STYLES --- */
.buy-now-pricing-container {
	padding: 40px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.buy-now-pricing-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	margin-top: 2rem;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.buy-now-pricing-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

@media (max-width: 600px) {
	.buy-now-pricing-grid {
		grid-template-columns: 1fr;
	}
}

.buy-now-pricing-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

.buy-now-pricing-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.buy-now-pricing-card.featured {
	border: 2px solid #D4A858;
	transform: scale(1.02);
	box-shadow: 0 10px 40px rgba(212, 168, 88, 0.15);
	z-index: 2;
}

.buy-now-pricing-card.featured:hover {
	transform: scale(1.02) translateY(-8px);
}

.pricing-header {
	padding: 2rem;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
}

.pricing-plan-name {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
	color: #0B2149;
}

.pricing-price {
	font-size: 2.5rem;
	font-weight: 800;
	color: #0B2149;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
}

.pricing-currency {
	font-size: 1.2rem;
	vertical-align: top;
	margin-top: -10px;
}

.pricing-period {
	font-size: 0.9rem;
	color: #666;
	font-weight: normal;
}

.pricing-features {
	padding: 2rem;
	flex-grow: 1;
}

.pricing-features ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pricing-features li {
	margin-bottom: 1rem;
	color: #555;
	font-size: 0.95rem;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
}

.pricing-features li strong {
	color: #0B2149;
}

.pricing-icon {
	margin-right: 10px;
	font-size: 1.1rem;
	min-width: 24px;
}

.pricing-footer {
	padding: 2rem;
	text-align: center;
	background: #fafafa;
}

/* Card Specific Styles */
/* Free */
.buy-now-pricing-card.free .pricing-header { background: #f8f9fa; }
.buy-now-pricing-card.free .pricing-price { color: #666; }

/* Starter */
.buy-now-pricing-card.starter .pricing-header { background: #eef2ff; }
.buy-now-pricing-card.starter .pricing-plan-name { color: #0B2149; }

/* Pro */
.buy-now-pricing-card.pro .pricing-header {
	background: #0B2149;
	color: white;
}
.buy-now-pricing-card.pro .pricing-plan-name,
.buy-now-pricing-card.pro .pricing-price {
	color: white;
}
.buy-now-pricing-card.pro .pricing-period { color: rgba(255,255,255,0.7); }

/* Expert */
.buy-now-pricing-card.expert {
	background: #0B2149;
	color: white;
	border: 1px solid #D4A858;
}
.buy-now-pricing-card.expert .pricing-header {
	background: linear-gradient(135deg, #0B2149 0%, #061229 100%);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.buy-now-pricing-card.expert .pricing-plan-name { color: #D4A858; }
.buy-now-pricing-card.expert .pricing-price { color: white; }
.buy-now-pricing-card.expert .pricing-period { color: rgba(255,255,255,0.7); }
.buy-now-pricing-card.expert .pricing-features li { color: rgba(255,255,255,0.9); }
.buy-now-pricing-card.expert .pricing-features li strong { color: white; }
.buy-now-pricing-card.expert .pricing-footer { background: rgba(0,0,0,0.2); }

/* Badges */
.pricing-badge {
	display: inline-block;
	background: #D4A858;
	color: #0B2149;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* --- MASTERCLASS MODAL --- */
.buy-now-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(11, 33, 73, 0.7);
	backdrop-filter: blur(4px);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.buy-now-modal-content {
	background: white;
	width: 100%;
	max-width: 600px;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	position: relative;
	overflow: hidden;
	animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
	from { transform: translateY(50px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.buy-now-modal-header {
	background: #0B2149;
	padding: 1.5rem 2rem;
	color: white;
	position: relative;
}

.buy-now-modal-header h3 {
	margin: 0;
	color: white;
	font-family: 'Poppins', sans-serif;
	font-size: 1.4rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.buy-now-modal-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: rgba(255,255,255,0.1);
	border: none;
	color: white;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	transition: background 0.2s;
}

.buy-now-modal-close:hover {
	background: rgba(255,255,255,0.3);
}

.buy-now-modal-body {
	padding: 2rem;
	color: #333;
	line-height: 1.6;
	max-height: 70vh;
	overflow-y: auto;
}

.buy-now-masterclass-def {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	color: #0B2149;
	font-weight: 500;
}

.buy-now-masterclass-example {
	background: #F0F4C3;
	border-left: 4px solid #AFB42B;
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 0 8px 8px 0;
	color: #555;
	font-size: 0.95rem;
}

.buy-now-masterclass-tip {
	background: #E3F2FD;
	border-left: 4px solid #2196F3;
	padding: 1rem 1.5rem;
	border-radius: 0 8px 8px 0;
	color: #0d47a1;
	font-weight: 500;
	font-size: 0.95rem;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.buy-now-masterclass-tip::before {
	content: '💡';
	font-size: 1.2rem;
}
