/* TenderPipe Upgrade Page Styles */

/* CSS Variables */
:root {
  --tp-primary: #0066CC;
  --tp-accent: #FF6B35;
  --tp-accent-dark: #E55A2B;
  --tp-accent-light: #FF8555;
  --tp-secondary: #00A3BF;
  --tp-success: #10B981;
  --tp-error: #EF4444;
  --tp-warning: #F59E0B;
  --tp-bg: #fbfcfd;
  --tp-surface: #ffffff;
  --tp-border: #e5e7eb;
  --tp-text: #1a1f24;
  --tp-text-muted: #6b7280;
  --tp-radius: 12px;
  --tp-radius-lg: 16px;
  --tp-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --tp-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --tp-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
.tenderpipe-upgrade-page * {
	box-sizing: border-box;
}

.tenderpipe-upgrade-page body {
	font-family: var(--tp-font-family);
	line-height: 1.6;
	color: var(--tp-text);
	margin: 0;
	padding: 0;
}

.tp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header Styles - Match Landing Page */
.tp-header {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #e5e7eb;
	z-index: 1000;
}

.tp-header.scrolled {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tp-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 0;
}

.tp-header-logo a {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.tp-header-nav {
	display: flex;
	align-items: center;
	gap: 2.5rem;
}

.tp-nav-link {
	color: #374151;
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	transition: color 0.2s ease;
	padding: 0.5rem 0.75rem;
	white-space: nowrap;
}

.tp-nav-link:hover {
	color: var(--tp-accent);
}

.tp-header-nav .tp-btn,
.tp-header-nav .tp-btn-primary,
.tp-header-nav .tp-btn-sm {
	padding: 0.75rem 1.75rem;
	font-size: 1rem;
	font-weight: 600;
	min-width: auto;
	width: auto;
	white-space: nowrap;
}

.tp-mobile-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.tp-mobile-menu-toggle span {
	width: 24px;
	height: 2px;
	background: var(--tp-text);
	transition: all 0.2s ease;
	border-radius: 2px;
}

@media (max-width: 991px) {
	.tp-header-nav {
		gap: 2rem;
	}

	.tp-nav-link {
		font-size: 0.9375rem;
		padding: 0.375rem 0.5rem;
	}

	.tp-header-nav .tp-btn,
	.tp-header-nav .tp-btn-primary,
	.tp-header-nav .tp-btn-sm {
		padding: 0.625rem 1.5rem;
		font-size: 0.9375rem;
	}
}

@media (max-width: 767px) {
	.tp-header-content {
		padding: 1rem 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.tp-header-nav {
		display: none;
	}

	.tp-mobile-menu-toggle {
		display: flex;
	}

	.tp-header-nav.active {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: white;
		padding: 1.5rem;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
		border-top: 1px solid #e5e7eb;
		gap: 0.5rem;
		z-index: 999;
	}

	.tp-header-nav.active .tp-nav-link {
		width: 100%;
		padding: 0.75rem;
		text-align: center;
	}

	.tp-header-nav.active .tp-btn,
	.tp-header-nav.active .tp-btn-primary,
	.tp-header-nav.active .tp-btn-sm {
		width: 100%;
		margin-top: 0.5rem;
	}
}

/* Hero Section - Enhanced with Visual Interest */
.tp-upgrade-hero {
	background:
		radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
		linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #fef3f0 100%);
	padding: 3rem 0 3.5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Decorative floating shapes */
.tp-upgrade-hero::before {
	content: '';
	position: absolute;
	top: 10%;
	left: 5%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	animation: float 6s ease-in-out infinite;
	pointer-events: none;
}

.tp-upgrade-hero::after {
	content: '';
	position: absolute;
	top: 20%;
	right: 8%;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	animation: float 8s ease-in-out infinite reverse;
	pointer-events: none;
}

.tp-hero-content {
	position: relative;
	z-index: 1;
}

/* Add decorative elements container */
.tp-hero-content::before {
	content: '🚀';
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 3rem;
	opacity: 0.15;
	animation: bounce 2s ease-in-out infinite;
}

/* Additional decorative shapes */
.tp-upgrade-hero .tp-container::before {
	content: '';
	position: absolute;
	bottom: 15%;
	left: 10%;
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
	border-radius: 20% 80% 70% 30% / 30% 70% 80% 20%;
	animation: morph 10s ease-in-out infinite;
	pointer-events: none;
}

.tp-upgrade-hero .tp-container::after {
	content: '';
	position: absolute;
	bottom: 20%;
	right: 15%;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 100%);
	border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
	animation: morph 12s ease-in-out infinite reverse;
	pointer-events: none;
}

@keyframes morph {
	0%, 100% {
		border-radius: 20% 80% 70% 30% / 30% 70% 80% 20%;
		transform: rotate(0deg);
	}
	50% {
		border-radius: 80% 20% 30% 70% / 70% 30% 20% 80%;
		transform: rotate(180deg);
	}
}

.tp-hero-title {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, var(--tp-primary) 0%, var(--tp-accent) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1.3; /* Fixed from 1.15 to prevent cutoff */
	animation: fadeInUp 0.6s ease-out;
	letter-spacing: -0.02em;
	padding-bottom: 0.1em; /* Extra padding to prevent descenders from cutting off */
}

.tp-hero-subtitle {
	font-size: 1.25rem;
	color: #475569;
	max-width: 700px;
	margin: 0 auto 3rem;
	line-height: 1.7;
	font-weight: 400;
	animation: fadeInUp 0.6s ease-out 0.1s both;
}

.tp-current-plan-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	font-weight: 600;
	background: white;
	padding: 1rem 2rem;
	border-radius: 50px;
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.08),
		0 0 0 1px rgba(0, 0, 0, 0.05);
	animation: fadeInUp 0.6s ease-out 0.2s both;
}

.tp-current-label {
	color: var(--tp-text-muted);
	font-size: 0.9375rem;
}

.tp-current-tier {
	color: white;
	font-weight: 700;
	text-transform: capitalize;
	padding: 0.375rem 1rem;
	background: linear-gradient(135deg, var(--tp-accent) 0%, var(--tp-accent-dark) 100%);
	border-radius: 20px;
	font-size: 0.9375rem;
	box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.tp-current-usage {
	color: var(--tp-text-muted);
	font-size: 0.9rem;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float {
	0%, 100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-20px) scale(1.05);
	}
}

@keyframes bounce {
	0%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(-10px);
	}
}

/* Section Headers */
.tp-section-header {
	text-align: center;
	margin-bottom: 2rem;
}

.tp-section-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--tp-text);
}

.tp-section-subtitle {
	font-size: 1.125rem;
	color: var(--tp-text-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Pricing Section - Enhanced */
.tp-pricing-section,
.tp-pricing {
	padding: 5rem 0 4rem;
}

.tp-pricing-table {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 4rem;
}

/* Pricing Grid for Upgrade Page */
.tp-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
}

/* Enhanced Pricing Card */
.tp-pricing-card,
.tp-plan {
	background: var(--tp-surface);
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	position: relative;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid var(--tp-border);
}

.tp-pricing-card:hover,
.tp-plan:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	border-color: var(--tp-accent);
}

.tp-pricing-card.featured,
.tp-plan-featured {
	border-color: var(--tp-accent);
	background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, var(--tp-surface) 100%);
	box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.tp-pricing-card.featured:hover,
.tp-plan-featured:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 16px 48px rgba(255, 107, 53, 0.2);
}

.tp-pricing-card.current-plan,
.tp-plan-current {
	border-color: var(--tp-success);
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, var(--tp-surface) 100%);
}

.tp-plan-header,
.tp-pricing-header {
	text-align: center;
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--tp-border);
}

.tp-plan-name,
.tp-pricing-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--tp-text);
}

.tp-plan-price,
.tp-pricing-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tp-pricing-price {
	font-size: 3rem;
	font-weight: 700;
	color: var(--tp-accent);
	line-height: 1;
	display: block;
	margin: 0.75rem 0;
}

.tp-pricing-price small {
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--tp-text-muted);
	margin-left: 0.25rem;
}

.tp-price-original {
	font-size: 1rem;
	color: var(--tp-text-muted);
	text-decoration: line-through;
}

.tp-price-current {
	font-size: 3rem;
	font-weight: 700;
	color: var(--tp-accent);
	line-height: 1;
}

.tp-price-frequency {
	font-size: 1rem;
	color: var(--tp-text-muted);
}

.tp-pricing-description {
	color: var(--tp-text-muted);
	font-size: 0.9375rem;
	margin: 0;
	line-height: 1.5;
}

.tp-plan-badge,
.tp-pricing-badge {
	background: linear-gradient(135deg, var(--tp-accent) 0%, var(--tp-accent-dark) 100%);
	color: white;
	padding: 0.375rem 1rem;
	border-radius: 50px;
	font-size: 0.6875rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tp-badge-popular {
	background: linear-gradient(135deg, var(--tp-accent) 0%, var(--tp-accent-dark) 100%);
}

.tp-badge-current {
	background: linear-gradient(135deg, var(--tp-success) 0%, #059669 100%);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tp-plan-features,
.tp-pricing-features {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem 0;
}

.tp-pricing-features li {
	display: flex;
	align-items: flex-start;
	padding: 0.625rem 0;
	color: var(--tp-text);
	font-size: 0.9375rem;
	line-height: 1.4;
	gap: 0.625rem;
}

.tp-pricing-features li::before {
	content: '✓';
	color: var(--tp-success);
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 185, 129, 0.1);
	border-radius: 50%;
	margin-top: 0.125rem;
}

.tp-feature-included,
.tp-feature-excluded {
	display: flex;
	align-items: flex-start;
	padding: 0.875rem 0;
	gap: 0.75rem;
}

.tp-feature-included:last-child,
.tp-feature-excluded:last-child {
	border-bottom: none;
}

.tp-feature-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 700;
	font-size: 1rem;
	margin-top: 0.125rem;
}

.tp-feature-included .tp-feature-icon {
	color: var(--tp-success);
	background: rgba(16, 185, 129, 0.1);
}

.tp-feature-excluded .tp-feature-icon {
	color: var(--tp-text-muted);
	background: var(--tp-bg);
	opacity: 0.5;
}

.tp-plan-cta {
	text-align: center;
}

/* Enhanced Button Styles */
.tp-btn,
.tp-pricing-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 1rem;
	line-height: 1;
	min-height: 48px;
	width: 100%;
	white-space: nowrap;
	color: #ffffff !important;
}

.tp-btn:disabled,
.tp-pricing-cta:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

.tp-btn-primary,
.tp-pricing-cta {
	background: linear-gradient(135deg, var(--tp-accent) 0%, var(--tp-accent-dark) 100%);
	color: white;
	border: none;
	box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

.tp-btn-primary:hover:not(:disabled),
.tp-pricing-cta:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.tp-btn-primary:active:not(:disabled),
.tp-pricing-cta:active:not(:disabled) {
	transform: translateY(0);
}

.tp-btn-secondary {
	background-color: var(--tp-accent);
	color: #ffffff !important;
	border: 2px solid var(--tp-accent);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tp-btn-secondary:hover:not(:disabled) {
	background-color: var(--tp-accent-dark);
	border-color: var(--tp-accent-dark);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tp-btn-outline {
	background-color: var(--tp-primary);
	color: #ffffff !important;
	border: 2px solid var(--tp-primary);
	box-shadow: none;
}

.tp-btn-outline:hover:not(:disabled) {
	background-color: var(--tp-accent);
	color: #ffffff !important;
	border-color: var(--tp-accent);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tp-btn-large {
	padding: 1.125rem 2.5rem;
	font-size: 1.125rem;
	min-height: 54px;
}

/* Features Section */
.tp-features-section {
	padding: 4rem 0;
	background: var(--tp-bg);
}

.tp-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.tp-feature {
	text-align: center;
	padding: 2rem;
	background: var(--tp-surface);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow-sm);
}

.tp-feature-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	display: block;
}

.tp-feature-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--tp-primary);
}

.tp-feature-description {
	color: var(--tp-text-muted);
	line-height: 1.6;
}

/* FAQ Section */
.tp-faq-section {
	padding: 4rem 0;
}

.tp-faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.tp-faq-item {
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	margin-bottom: 1rem;
	overflow: hidden;
}

.tp-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	cursor: pointer;
	background: var(--tp-surface);
	transition: background 0.2s ease;
}

.tp-faq-question:hover {
	background: var(--tp-bg);
}

.tp-faq-question h4 {
	margin: 0;
	font-size: 1.1rem;
	color: var(--tp-primary);
}

.tp-faq-toggle {
	font-size: 1.5rem;
	color: var(--tp-accent);
	transition: transform 0.2s ease;
}

.tp-faq-item.active .tp-faq-toggle {
	transform: rotate(45deg);
}

.tp-faq-answer {
	padding: 0 1.5rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.tp-faq-item.active .tp-faq-answer {
	padding: 0 1.5rem 1.5rem;
	max-height: 200px;
}

.tp-faq-answer p {
	margin: 0;
	color: var(--tp-text-muted);
	line-height: 1.6;
}

/* Modal Styles */
.tp-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.tp-modal.show {
	display: flex;
}

.tp-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.tp-modal-content {
	background: var(--tp-surface);
	border-radius: var(--tp-radius-lg);
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	z-index: 1;
	box-shadow: var(--tp-shadow);
}

.tp-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid var(--tp-border);
}

.tp-modal-title {
	margin: 0;
	font-size: 1.5rem;
	color: var(--tp-primary);
}

.tp-modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--tp-text-muted);
	padding: 0.5rem;
	border-radius: var(--tp-radius);
	transition: background 0.2s ease;
}

.tp-modal-close:hover {
	background: var(--tp-bg);
}

.tp-modal-body {
	padding: 1.5rem;
}

/* Form Styles */
.tp-upgrade-summary {
	background: var(--tp-bg);
	padding: 1rem;
	border-radius: var(--tp-radius);
	margin-bottom: 1.5rem;
}

.tp-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
}

.tp-summary-label {
	color: var(--tp-text-muted);
}

.tp-summary-value {
	font-weight: 600;
	color: var(--tp-primary);
}

.tp-summary-value-price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	color: var(--tp-primary);
}

.tp-summary-value-price .tp-price-original {
	color: var(--tp-text-muted);
	text-decoration: line-through;
	font-size: 0.95rem;
}

.tp-summary-value-price .tp-price-current {
	font-size: 1.35rem;
	font-weight: 700;
}

.tp-summary-value-price .tp-price-frequency {
	color: var(--tp-text-muted);
	font-size: 0.85rem;
	font-weight: 500;
}

.tp-form-group {
	margin-bottom: 1.5rem;
}

.tp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.tp-form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--tp-primary);
}

.tp-form-group input,
.tp-form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid var(--tp-border);
	border-radius: var(--tp-radius);
	font-size: 1rem;
	transition: border-color 0.2s ease;
	font-family: var(--tp-font-family);
}

.tp-form-group input:focus,
.tp-form-group textarea:focus {
	outline: none;
	border-color: var(--tp-accent);
}

.tp-card-element {
	border: 2px solid var(--tp-border);
	border-radius: var(--tp-radius);
	padding: 1rem;
}

.tp-card-placeholder {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tp-card-input {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
}

.tp-card-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.tp-card-expiry,
.tp-card-cvc {
	padding: 0.5rem;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
}

.tp-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
}

.tp-checkbox-label input[type="checkbox"] {
	margin-top: 0.25rem;
}

.tp-form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.tp-form-actions .tp-btn {
	flex: 1;
}

/* Notification Styles */
.tp-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2000;
	max-width: 400px;
}

.tp-notification-content {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow);
}

.tp-notification.success .tp-notification-content {
	background: var(--tp-success);
	color: white;
}

.tp-notification.error .tp-notification-content {
	background: var(--tp-error);
	color: white;
}

.tp-notification-icon {
	font-size: 1.25rem;
}

/* Footer Styles */
.tp-upgrade-footer {
	background: var(--tp-primary);
	color: white;
	padding: 3rem 0 1rem;
}

.tp-footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.tp-footer-section h4 {
	margin-bottom: 1rem;
	color: white;
}

.tp-footer-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tp-footer-section ul li {
	margin-bottom: 0.5rem;
}

.tp-footer-section a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tp-footer-section a:hover {
	color: white;
}

.tp-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
}

/* Loading States */
.tp-btn .tp-btn-spinner {
	display: none;
}

.tp-btn.loading .tp-btn-text {
	display: none;
}

.tp-btn.loading .tp-btn-spinner {
	display: inline-block;
}

/* Contact Form Section at Bottom */
.tp-contact-section {
	padding: 3rem 0;
	background: linear-gradient(135deg, var(--tp-primary) 0%, var(--tp-secondary) 100%);
}

.tp-contact-section .tp-section-header {
	color: var(--tp-white);
	margin-bottom: 3rem;
}

.tp-contact-section .tp-section-title {
	color: var(--tp-white);
}

.tp-contact-section .tp-section-subtitle {
	color: rgba(255, 255, 255, 0.95);
}

.tp-contact-form-wrapper {
	max-width: 1000px;
	margin: 0 auto;
	background: var(--tp-surface);
	border: 2px solid var(--tp-border);
	border-radius: 16px;
	padding: 2.5rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Design - Enhanced */
@media (max-width: 1100px) {
	.tp-pricing-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem;
	}
}

@media (max-width: 992px) {
	.tp-container {
		padding: 0 16px;
	}

	.tp-header-nav {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.tp-pricing-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.tp-contact-form-wrapper {
		padding: 2rem;
	}

	.tp-contact-section {
		padding: 3rem 0;
	}

	.tp-pricing-table {
		grid-template-columns: 1fr;
	}

	.tp-pricing-card,
	.tp-plan {
		padding: 1.75rem;
	}

	.tp-pricing-features li,
	.tp-plan-features li {
		padding: 0.5rem 0;
	}

	.tp-pricing-card.featured,
	.tp-plan-featured {
		transform: none;
	}

	.tp-pricing-price {
		font-size: 2.75rem;
	}

	.tp-pricing-price small {
		font-size: 1rem;
	}

	.tp-features-grid {
		grid-template-columns: 1fr;
	}

	.tp-form-row {
		grid-template-columns: 1fr;
	}

	.tp-form-actions {
		flex-direction: column;
	}

	.tp-modal-content {
		width: 95%;
		margin: 1rem;
	}

	.tp-footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.tp-cta-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.tp-cta-buttons .tp-btn {
		width: 100%;
	}

	.tp-cta-title {
		font-size: var(--tp-font-size-2xl);
	}

	.tp-cta-subtitle {
		font-size: var(--tp-font-size-base);
	}
}

@media (max-width: 480px) {
	.tp-upgrade-hero {
		padding: 2.5rem 0 3.5rem;
	}

	.tp-upgrade-hero::before,
	.tp-upgrade-hero::after {
		width: 80px;
		height: 80px;
	}

	.tp-hero-content::before {
		font-size: 1.5rem;
		top: -25px;
	}

	.tp-hero-title {
		font-size: 2rem;
		margin-bottom: 1rem;
		line-height: 1.3;
	}

	.tp-hero-subtitle {
		font-size: 1rem;
		margin-bottom: 2rem;
		padding: 0 0.5rem;
	}

	.tp-current-plan-info {
		font-size: 0.875rem;
		padding: 0.75rem 1.25rem;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.tp-current-tier {
		padding: 0.25rem 0.75rem;
		font-size: 0.875rem;
	}

	.tp-section-title {
		font-size: 1.75rem;
	}

	.tp-section-subtitle {
		font-size: 1rem;
	}

	.tp-pricing-card,
	.tp-plan {
		padding: 1.5rem;
	}

	.tp-pricing-header,
	.tp-plan-header {
		margin-bottom: 1.25rem;
		padding-bottom: 0.75rem;
	}

	.tp-pricing-features,
	.tp-plan-features {
		margin-bottom: 1.25rem;
	}

	.tp-pricing-price {
		font-size: 2.25rem;
	}

	.tp-pricing-price small {
		font-size: 0.875rem;
	}

	.tp-pricing-title {
		font-size: 1.5rem;
	}

	.tp-pricing-features li,
	.tp-plan-features li {
		font-size: 0.9375rem;
		padding: 0.75rem 0;
	}

	.tp-btn,
	.tp-pricing-cta {
		padding: 0.875rem 1.5rem;
		font-size: 0.9375rem;
	}

	.tp-contact-form-wrapper {
		padding: 1.5rem;
	}

	.tp-pricing-features li,
	.tp-plan-features li {
		font-size: 0.9375rem;
		padding: 0.5rem 0;
	}

	.tp-contact-section {
		padding: 3rem 0;
	}
}

/* Animation Classes */
.tp-fade-in {
	animation: fadeIn 0.3s ease-in;
}

.tp-slide-up {
	animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Focus Styles for Accessibility */
.tp-btn:focus,
.tp-form-group input:focus,
.tp-form-group textarea:focus {
	outline: 2px solid var(--tp-accent);
	outline-offset: 2px;
}

.tp-modal-close:focus {
	outline: 2px solid var(--tp-accent);
	outline-offset: 2px;
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Improved Focus States for Accessibility */
.tp-btn:focus-visible,
.tp-pricing-cta:focus-visible,
.tp-nav-link:focus-visible,
a:focus-visible {
	outline: 3px solid var(--tp-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--tp-primary);
	outline-offset: 2px;
}

/* Improved Color Contrast */
.tp-pricing-description,
.tp-hero-subtitle {
	color: #475569; /* Better contrast for readability */
}

/* Loading State Improvements */
.tp-btn.loading {
	position: relative;
	pointer-events: none;
}

.tp-btn.loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 0.6s linear infinite;
	right: 1rem;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Skeleton Loading for Cards (Optional Enhancement) */
.tp-pricing-card.loading {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Scrollbar Styling for Modal */
.tp-modal-content::-webkit-scrollbar {
	width: 8px;
}

.tp-modal-content::-webkit-scrollbar-track {
	background: var(--tp-bg);
	border-radius: 4px;
}

.tp-modal-content::-webkit-scrollbar-thumb {
	background: var(--tp-border);
	border-radius: 4px;
}

.tp-modal-content::-webkit-scrollbar-thumb:hover {
	background: var(--tp-text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.tp-cta-section {
	background: linear-gradient(135deg, var(--tp-primary) 0%, var(--tp-secondary) 100%);
	color: var(--tp-white);
	text-align: center;
	padding: var(--tp-spacing-5xl) 0;
}

.tp-cta-title {
	font-size: var(--tp-font-size-4xl);
	font-weight: var(--tp-font-weight-bold);
	color: var(--tp-white);
	margin-bottom: var(--tp-spacing-lg);
}

.tp-cta-subtitle {
	font-size: var(--tp-font-size-xl);
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: var(--tp-spacing-2xl);
}

.tp-cta-buttons {
	display: flex;
	gap: var(--tp-spacing-md);
	justify-content: center;
	flex-wrap: wrap;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.tp-footer {
	background-color: var(--tp-gray-900);
	color: var(--tp-gray-300);
	padding: var(--tp-spacing-3xl) 0 var(--tp-spacing-xl);
	text-align: center;
}

.tp-footer-content {
	margin-bottom: var(--tp-spacing-lg);
}

.tp-footer-title {
	font-size: var(--tp-font-size-lg);
	color: var(--tp-white);
	margin-bottom: var(--tp-spacing-sm);
}

.tp-footer-text {
	font-size: var(--tp-font-size-base);
	margin-bottom: var(--tp-spacing-sm);
}

.tp-footer-link {
	color: var(--tp-secondary);
	text-decoration: none;
	transition: color var(--tp-transition-fast);
}

.tp-footer-link:hover {
	color: var(--tp-secondary-light);
}

.tp-footer-copyright {
	font-size: var(--tp-font-size-sm);
	color: var(--tp-gray-500);
	padding-top: var(--tp-spacing-lg);
	border-top: 1px solid var(--tp-gray-800);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	:root {
		--tp-border: #000000;
		--tp-text-muted: #000000;
	}

	.tp-btn,
	.tp-pricing-cta {
		border: 2px solid currentColor;
	}

	.tp-pricing-card,
	.tp-plan {
		border: 3px solid currentColor;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.tp-pricing-card:hover,
	.tp-plan:hover,
	.tp-btn:hover,
	.tp-pricing-cta:hover {
		transform: none;
	}
}

/* Print Styles */
@media print {
	.tp-header,
	.tp-contact-sidebar,
	.tp-btn,
	.tp-pricing-cta {
		display: none;
	}

	.tp-pricing-card,
	.tp-plan {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}

