/* =====================================================================
   Fix Experts Pricing and Comparison for Elementor
   ===================================================================== */

/* ===== Pricing Table Card ===== */
.eptcp-pricing-table {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	position: relative;
	display: flex;
	flex-direction: column;
	/* Equal height by default; the "Equal Height" switch (default On) keeps this.
	   Turning it off adds .eptcp-pricing-table--auto-height below. */
	height: 100%;
}

/* Equal Height switch = Off. */
.eptcp-pricing-table.eptcp-pricing-table--auto-height {
	height: auto;
}

.eptcp-pricing-table--highlight {
	border: 2px solid #ea580c;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.eptcp-pricing-table__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #ea580c;
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 9999px;
	white-space: nowrap;
}

.eptcp-pricing-table__header {
	text-align: center;
	margin-bottom: 24px;
}

.eptcp-pricing-table__plan-name {
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
}

.eptcp-pricing-table__plan-subtitle {
	color: #6b7280;
	margin-bottom: 16px;
	/* Reserve room for ~2 lines so the price starts on the same line across
	   cards with different description lengths. Override via the
	   "Description Min Height" control. */
	min-height: 48px;
}

/* On mobile the cards are stacked, so no cross-card alignment is needed. */
@media (max-width: 767px) {
	.eptcp-pricing-table__plan-subtitle {
		min-height: 0;
	}
}

.eptcp-pricing-table__price {
	margin-bottom: 4px;
	line-height: 1.1;
	/* Flex removes the whitespace gap between the amount and the period,
	   and controls the spacing precisely via gap. */
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0 4px;
}

.eptcp-pricing-table__price-amount {
	font-size: 2.75rem;
	font-weight: 700;
	color: #111827;
}

.eptcp-pricing-table__original-price {
	font-size: 1.25rem;
	font-weight: 500;
	color: #9ca3af;
	text-decoration: line-through;
}

.eptcp-pricing-table__price-period {
	color: #6b7280;
}

.eptcp-pricing-table__features {
	list-style: none;
	margin: 8px 0 24px;
	padding: 0;
}

.eptcp-pricing-table__feature {
	display: flex;
	align-items: flex-start;
	margin-bottom: 14px;
}

.eptcp-pricing-table__feature:last-child {
	margin-bottom: 0;
}

.eptcp-pricing-table__feature--disabled {
	opacity: 0.55;
}

/* Included icon: check mark (default). */
.eptcp-pricing-table__feature::before {
	content: "\2714"; /* ✔ */
	color: #ea580c;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
	margin-right: 10px;
}

/* Not-included icon: cross. */
.eptcp-pricing-table__feature--no::before {
	content: "\2715"; /* ✕ */
	color: #c9433a;
}

.eptcp-pricing-table__feature-text {
	color: #374151;
}

.eptcp-pricing-table__feature-text > p {
	margin: 0;
}

.eptcp-pricing-table__feature-text--disabled {
	color: #9ca3af;
	text-decoration: line-through;
}

.eptcp-pricing-table__cta-button {
	display: block;
	text-align: center;
	width: 100%;
	background-color: #111827;
	color: #ffffff;
	padding: 13px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
	/* Pinned to the bottom of the card, below the features list. */
	margin-top: auto;
}

.eptcp-pricing-table__cta-button:hover {
	background-color: #1f2937;
	color: #ffffff;
}

.eptcp-pricing-table--highlight .eptcp-pricing-table__cta-button {
	background-color: #ea580c;
}

.eptcp-pricing-table--highlight .eptcp-pricing-table__cta-button:hover {
	background-color: #c2410c;
}

/* ===== Pricing Toggle / Section Header ===== */
.eptcp-section-header {
	text-align: center;
}

.eptcp-section-title {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
}

.eptcp-section-subtitle {
	color: #6b7280;
	max-width: 640px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.eptcp-toggle-wrap {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.eptcp-toggle-label {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #374151;
	user-select: none;
}

.eptcp-toggle-badge {
	font-size: 0.75rem;
	font-weight: 600;
	color: #15803d;
	background-color: #dcfce7;
	padding: 3px 10px;
	border-radius: 9999px;
	white-space: nowrap;
}

.eptcp-toggle {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 28px;
	flex-shrink: 0;
	cursor: pointer;
}

.eptcp-toggle-input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	margin: 0;
	cursor: pointer;
	z-index: 1;
}

.eptcp-toggle-slider {
	position: absolute;
	inset: 0;
	background-color: #d1d5db;
	border-radius: 9999px;
	transition: background-color 0.25s ease;
	pointer-events: none;
}

.eptcp-toggle-slider::before {
	content: '';
	position: absolute;
	height: 20px;
	width: 20px;
	left: 4px;
	top: 4px;
	background-color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.25s ease;
}

.eptcp-toggle-input:checked + .eptcp-toggle-slider {
	background-color: #ea580c;
}

.eptcp-toggle-input:checked + .eptcp-toggle-slider::before {
	transform: translateX(24px);
}

.eptcp-toggle-input:focus-visible + .eptcp-toggle-slider {
	outline: 2px solid #ea580c;
	outline-offset: 2px;
}

/* ===== Monthly / Yearly show-hide ===== */
.eptcp-price-yearly,
.eptcp-period-yearly {
	display: none !important;
}

body.eptcp-yearly-active .eptcp-price-monthly,
body.eptcp-yearly-active .eptcp-period-monthly {
	display: none !important;
}

body.eptcp-yearly-active .eptcp-price-yearly {
	display: inline !important;
}

body.eptcp-yearly-active span.eptcp-period-yearly {
	display: inline !important;
}

body.eptcp-yearly-active div.eptcp-period-yearly {
	display: block !important;
}

/* =====================================================================
   Compare Plans
   ===================================================================== */
.eptcp-compare__header {
	text-align: center;
	margin-bottom: 24px;
}

.eptcp-compare__title {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px;
}

.eptcp-compare__subtitle {
	color: #6b7280;
	margin: 0 auto;
	max-width: 640px;
	line-height: 1.6;
}

/* Scroll container: enables horizontal scrolling on tablet if needed. */
.eptcp-compare__scroll {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background-color: #ffffff;
}

/* Per-plan cards are the mobile layout; hidden on desktop/tablet. */
.eptcp-compare__cards {
	display: none;
}

.eptcp-compare__table {
	width: 100%;
	border-collapse: collapse;
	background-color: #ffffff;
}

.eptcp-compare__table th,
.eptcp-compare__table td {
	padding: 15px 20px;
	text-align: center;
	vertical-align: middle;
}

/* First column (feature names) stays left-aligned. */
.eptcp-compare__table thead th:first-child,
.eptcp-compare__table tbody th:first-child {
	text-align: left;
}

.eptcp-compare__feature-col,
.eptcp-compare__feature-label {
	min-width: 190px;
}

/* Table head */
.eptcp-compare__table thead th {
	background-color: #17233b;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
}

.eptcp-compare__table thead th.eptcp-compare__col--highlight {
	color: #f97316;
}

/* Table body */
.eptcp-compare__table tbody tr {
	border-bottom: 1px solid #e5e7eb;
	transition: background-color 0.15s ease;
}

.eptcp-compare__table tbody tr:last-child {
	border-bottom: none;
}

.eptcp-compare__table tbody th {
	font-weight: 600;
	color: #334155;
	background-color: #ffffff;
}

.eptcp-compare__table tbody tr:hover,
.eptcp-compare__table tbody tr:hover th {
	background-color: #f8fafc;
}

.eptcp-compare__table tbody td.eptcp-compare__col--highlight {
	background-color: rgba(249, 115, 22, 0.06);
}

.eptcp-compare__cell-text {
	color: #1f2937;
}

.eptcp-compare__cell-text--muted {
	color: #9ca3af;
}

.eptcp-compare__mark {
	display: inline-block;
	line-height: 1;
	font-size: 1.1rem;
}

.eptcp-compare__mark--check {
	color: #ea580c;
	font-weight: 700;
}

.eptcp-compare__mark--cross {
	color: #9ca3af;
}

.eptcp-compare__mark--dash {
	color: #9ca3af;
}

/* Sticky first column so the feature name stays visible while scrolling. */
.eptcp-compare__table thead th:first-child,
.eptcp-compare__table tbody th:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
}

.eptcp-compare__table thead th:first-child {
	z-index: 3;
}

/* =====================================================================
   Responsive
   ===================================================================== */

/* Tablet */
@media (max-width: 1024px) {
	.eptcp-compare__table th,
	.eptcp-compare__table td {
		padding: 14px 16px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.eptcp-section-title,
	.eptcp-compare__title {
		font-size: 1.5rem;
	}

	.eptcp-pricing-table {
		padding: 24px;
		height: auto;
	}

	.eptcp-pricing-table__price-amount {
		font-size: 2.25rem;
	}

	/* ---- Pricing cards: force them to stack (one below another) on mobile ----
	   When the cards are placed inside an Elementor flex container/columns, make
	   each card take the full width so they never squeeze into a single row. */
	.elementor-widget-eptcp_pricing_table {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}

	/* Switch the flex container that holds the cards to a vertical stack. */
	.e-con:has(> .elementor-widget-eptcp_pricing_table),
	.e-con-inner:has(> .elementor-widget-eptcp_pricing_table),
	.elementor-container:has(> .elementor-column > .elementor-widget-wrap > .elementor-widget-eptcp_pricing_table) {
		flex-direction: column !important;
		flex-wrap: wrap !important;
	}

	/* Legacy column layout: make each column full width. */
	.elementor-column:has(.elementor-widget-eptcp_pricing_table) {
		width: 100% !important;
	}

	/* ---- Compare Plans: swap the table for one card per plan ---- */
	.eptcp-compare__scroll {
		display: none;
	}

	.eptcp-compare__cards {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.eptcp-compare__card {
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		overflow: hidden;
		background-color: #ffffff;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	}

	.eptcp-compare__card--highlight {
		border: 2px solid #ea580c;
		box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	}

	.eptcp-compare__card-head {
		background-color: #17233b;
		color: #ffffff;
		font-weight: 700;
		font-size: 1.125rem;
		text-align: center;
		padding: 14px 18px;
	}

	.eptcp-compare__card--highlight .eptcp-compare__card-head {
		background-color: #ea580c;
	}

	.eptcp-compare__card-list {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.eptcp-compare__card-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 18px;
		border-bottom: 1px solid #f1f5f9;
	}

	.eptcp-compare__card-row:last-child {
		border-bottom: none;
	}

	.eptcp-compare__card-label {
		flex: 1 1 auto;
		text-align: left;
		color: #6b7280;
		font-weight: 500;
	}

	.eptcp-compare__card-value {
		text-align: right;
		color: #1f2937;
		font-weight: 600;
	}
}

/* Small phones */
@media (max-width: 480px) {
	.eptcp-compare__table tbody td {
		padding: 8px 14px;
	}

	.eptcp-compare__table tbody th {
		padding: 12px 14px 6px;
	}
}

/* =====================================================================
   FAQ (accordion)
   ===================================================================== */
.eptcp-faq__header {
	text-align: center;
	margin-bottom: 32px;
}

.eptcp-faq__eyebrow {
	display: block;
	color: #ea580c;
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.eptcp-faq__title {
	font-size: 2.25rem;
	font-weight: 800;
	color: #111827;
	margin: 0 0 6px;
	line-height: 1.15;
}

.eptcp-faq__subtitle {
	color: #6b7280;
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.6;
}

.eptcp-faq__item {
	background-color: #ffffff;
	border: 1px solid #f1e6dc;
	border-radius: 12px;
	margin-bottom: 16px;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
	overflow: hidden;
}

.eptcp-faq__item:last-child {
	margin-bottom: 0;
}

.eptcp-faq__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	margin: 0;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}

/* Keep the button see-through so the item's own (customizable) background shows.
   Uses !important to beat themes that colour every <button> with a global colour. */
.eptcp-faq .eptcp-faq__question,
.eptcp-faq .eptcp-faq__question:hover,
.eptcp-faq .eptcp-faq__question:focus,
.eptcp-faq .eptcp-faq__question:active {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.eptcp-faq__question:focus-visible {
	outline: 2px solid #ea580c;
	outline-offset: -2px;
}

.eptcp-faq__q-text {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.4;
}

/* Toggle icon: a "+" that rotates into an "×" when open. */
.eptcp-faq__icon {
	position: relative;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #fdece1;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.eptcp-faq__icon::before,
.eptcp-faq__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: #ea580c;
	transition: background-color 0.25s ease;
}

.eptcp-faq__icon::before {
	width: 12px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.eptcp-faq__icon::after {
	width: 2px;
	height: 12px;
	transform: translate(-50%, -50%);
}

.eptcp-faq__item--open .eptcp-faq__icon {
	background-color: #ea580c;
	transform: rotate(45deg);
}

.eptcp-faq__item--open .eptcp-faq__icon::before,
.eptcp-faq__item--open .eptcp-faq__icon::after {
	background-color: #ffffff;
}

.eptcp-faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.eptcp-faq__answer-inner {
	padding: 0 24px 20px;
	color: #6b7280;
	line-height: 1.65;
}

.eptcp-faq__answer-inner > p:first-child {
	margin-top: 0;
}

.eptcp-faq__answer-inner > p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.eptcp-faq__title {
		font-size: 1.6rem;
	}

	.eptcp-faq__question {
		padding: 16px 18px;
	}

	.eptcp-faq__answer-inner {
		padding: 0 18px 16px;
	}
}
