/**
 * Geo-Pricing Cards Styles
 *
 * @package MasteriyoGeoPricing
 */

/* =========================================================
   CONTAINER
   ========================================================= */

.mgpb-pricing-cards {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 1rem 0;
}

/* =========================================================
   CARD GRID
   ========================================================= */

.mgpb-pricing-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

/* =========================================================
   INDIVIDUAL CARD
   ========================================================= */

.mgpb-pricing-card {
	background: #f7f5f1;
	border: none;
	border-radius: 16px;
	padding: 2.75rem 2rem 2.5rem;
	text-align: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s ease;
}

.mgpb-pricing-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* =========================================================
   CARD HEADER
   ========================================================= */

.mgpb-pricing-card__header {
	margin-bottom: 1.5rem;
}

.mgpb-pricing-cards .mgpb-pricing-card__title {
	font-family: 'Gotham', 'Gotham SSm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	color: #111827 !important;
	margin: 0 !important;
	padding: 0 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	line-height: 1.3 !important;
}

/* =========================================================
   PRICING
   ========================================================= */

.mgpb-pricing-card__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0;
	margin-bottom: 1.25rem;
}

.mgpb-pricing-cards .mgpb-pricing-card__currency {
	font-family: 'Gotham', 'Gotham SSm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	color: #111827 !important;
	align-self: flex-start;
	margin-top: 0.5rem;
	margin-right: 0.05em;
}

.mgpb-pricing-cards .mgpb-pricing-card__amount {
	font-family: 'Gotham', 'Gotham SSm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 30px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	color: #111827 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
}

.mgpb-pricing-cards .mgpb-pricing-card__period {
	font-family: 'Gotham', 'Gotham SSm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	color: #374151 !important;
	margin-left: 0.05em;
	align-self: flex-end;
	margin-bottom: 0.1875rem;
}

/* =========================================================
   DISCOUNT / STRIKETHROUGH
   ========================================================= */

.mgpb-pricing-card__original {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.125rem;
	width: 100%;
	text-decoration: line-through;
	color: #dc2626;
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.mgpb-pricing-card__original .mgpb-pricing-card__currency {
	font-size: 0.875rem;
	color: #dc2626;
}

.mgpb-pricing-card__original-amount {
	font-size: 1.5rem;
	font-weight: 600;
}

.mgpb-pricing-card__discount-label {
	display: inline-block;
	margin-top: 0.375rem;
	padding: 0.125rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
	background: #dc2626;
	border-radius: 999px;
}

/* =========================================================
   SUBTEXT
   ========================================================= */

.mgpb-pricing-cards .mgpb-pricing-card__sub {
	font-family: 'Gotham', 'Gotham SSm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	color: #374151 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

/* =========================================================
   SELECT BUTTON
   ========================================================= */

.mgpb-pricing-card__btn {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.75rem 2rem;
	background: #111827;
	color: #ffffff;
	font-family: 'Gotham', 'Gotham SSm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.mgpb-pricing-card__btn:hover {
	background: #374151;
	color: #ffffff;
	text-decoration: none;
}

.mgpb-pricing-card__btn:focus-visible {
	outline: 2px solid #111827;
	outline-offset: 2px;
}

/* =========================================================
   CTA SECTION
   ========================================================= */

.mgpb-pricing-cards__cta {
	text-align: center;
	margin-top: 2rem;
}

.mgpb-pricing-cards__cta-btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: #059669;
	color: #ffffff;
	font-family: 'Gotham', 'Gotham SSm', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.mgpb-pricing-cards__cta-btn:hover {
	background: #047857;
	color: #ffffff;
	text-decoration: none;
}

.mgpb-pricing-cards__cta-btn:focus-visible {
	outline: 2px solid #059669;
	outline-offset: 2px;
}

/* =========================================================
   LOADING STATE
   ========================================================= */

.mgpb-pricing-card__amount.mgpb-loading {
	opacity: 0.4;
	animation: mgpb-pulse 1.5s ease-in-out infinite;
}

@keyframes mgpb-pulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 0.7; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
	.mgpb-pricing-cards__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.mgpb-pricing-card {
		padding: 2rem 1.5rem;
	}

	.mgpb-pricing-cards .mgpb-pricing-card__amount {
		font-size: 26px !important;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.mgpb-pricing-cards__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}

	.mgpb-pricing-cards .mgpb-pricing-card__amount {
		font-size: 26px !important;
	}
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.mgpb-pricing-card {
		transition: none;
	}

	.mgpb-pricing-card__btn,
	.mgpb-pricing-cards__cta-btn {
		transition: none;
	}

	.mgpb-pricing-card__amount.mgpb-loading {
		animation: none;
		opacity: 0.5;
	}
}

@media (prefers-contrast: high) {
	.mgpb-pricing-card {
		border: 2px solid #000000;
	}

	.mgpb-pricing-card__btn {
		border: 2px solid #000000;
	}
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
	.mgpb-pricing-cards__grid {
		display: flex;
		gap: 1rem;
	}

	.mgpb-pricing-card {
		border: 1px solid #000;
		break-inside: avoid;
	}

	.mgpb-pricing-card__btn,
	.mgpb-pricing-cards__cta-btn {
		display: none;
	}
}
