/* ============================================
   Pricing Page Specific Styles - Specifys.ai
   ============================================
   Styles specific to the pricing.html page
   These styles were moved from inline <style> tag to improve maintainability
*/

/* Pricing Page Styles - Specifys.ai Design System */
.pricing-page {
  min-height: 100vh;
  background: #ffffff;
}

.pricing-hero {
  background: #ffffff;
  padding: 100px 0 40px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  margin-top: 60px;
}

.pricing-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pricing-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: #333;
}

.pricing-hero p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-hero p.hero-subtitle {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #999;
  font-weight: 400;
}

.pricing-container {
  padding: 60px 0;
  background: #ffffff;
}

.pricing-alert {
  display: none;
  max-width: 600px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.pricing-alert[data-type="success"] {
  background: #d1fae5;
  color: #065f46;
}

.pricing-alert[data-type="error"] {
  background: #fee2e2;
  color: #b91c1c;
}

.pricing-alert[data-type="info"] {
  background: #e0f2fe;
  color: #0369a1;
}

.pricing-container .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 2px solid #FF6B35;
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.05);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
  border-color: #FF6B35;
}

.pricing-card.single,
.pricing-card.pack,
.pricing-card.pro {
  border-color: #FF6B35;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.pricing-card.pro:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
  border-color: #FF6B35;
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FF6B35;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.plan-badge.best-value {
  background: #FF6B35;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: #FF6B35;
  color: white;
}

.toggle-btn:hover {
  color: #FF6B35;
}

.toggle-btn.active:hover {
  color: white;
  background: #FF8551;
}

/* Plan Details - Show/Hide */
.pricing-card.pro .plan-details {
  display: none !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

.pricing-card.pro .plan-details.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.plan-header {
  margin-bottom: 24px;
}

.plan-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

/* Ensure consistent height for features list to prevent button movement when switching plans */
/* Monthly has 7 items, yearly has 8 items - add padding to monthly to match yearly height */
.pricing-card.pro #pro-monthly .plan-features {
  padding-bottom: 40px; /* Approximate height of one list item to compensate for missing "17% Savings" item */
}

.plan-header h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: #FF6B35;
  font-weight: 700;
}

.plan-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 24px;
}

.price {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}

.currency {
  font-size: 1rem;
  color: #666;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: #FF6B35;
  margin: 0 4px;
}

.period {
  font-size: 0.9rem;
  color: #666;
}

.savings-badge {
  background: #FF6B35;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin: 8px 0;
  text-align: center;
  width: 100%;
  min-height: 28px;
  box-sizing: border-box;
  line-height: 20px;
}

/* Reserve space for savings-badge area to prevent button movement when switching plans */
/* Add invisible placeholder that mimics savings-badge in monthly view */
.pricing-card.pro #pro-monthly .plan-cta::after {
  content: '';
  display: block;
  min-height: 28px;
  margin: 8px 0;
  visibility: hidden;
  pointer-events: none;
  flex-shrink: 0;
  order: 1; /* Place between price and button */
}

/* Set button order in monthly view so it comes after the spacer */
.pricing-card.pro #pro-monthly .plan-cta .btn {
  order: 2;
}

/* Ensure yearly view doesn't show the placeholder and resets button order */
.pricing-card.pro #pro-yearly .plan-cta::after {
  display: none;
}

.pricing-card.pro #pro-yearly .plan-cta .btn {
  order: 0; /* Reset to default order */
}

.features-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: none; /* Hide the label for cleaner look */
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
  color: #333;
}

.plan-features li i {
  font-size: 18px;
  margin-right: 12px;
  width: 24px;
}

.plan-features li i.fa-check-circle {
  color: #FF6B35;
}

.plan-features li i.fa-times-circle,
.plan-features li i.fas.fa-times-circle {
  color: #dee2e6;
}

.disabled-feature {
  opacity: 0.6;
}

.plan-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.plan-cta .price {
  margin-bottom: 8px;
}

/* Pricing-specific button styles */
/* These override base button styles for pricing page */
/* Button styles moved to assets/css/components/buttons.css */
/* Pricing page specific button overrides are now in buttons.css */
/* Loading state styles moved to buttons.css */

.btn.loading .btn-spinner {
  display: inline-block;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pricing-faq {
  background: #f5f5f5;
  padding: 60px 0;
}

.pricing-faq .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pricing-faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
  font-weight: 700;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
}

.faq-item p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.pricing-cta {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8551 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.pricing-cta .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pricing-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: white;
}

.pricing-cta p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: white;
  color: #FF6B35;
  border-color: white;
}

.cta-buttons .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .pricing-card.pro {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 60px 0 30px;
    margin-top: 60px;
  }
  
  .pricing-hero h1 {
    font-size: 2rem;
  }
  
  .pricing-container {
    padding: 40px 0;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .pricing-card {
    padding: 32px 24px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pricing-cta {
    padding: 60px 0;
  }
  
  .pricing-cta h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pricing-hero {
    padding: 40px 0 20px;
  }
  
  .pricing-hero h1 {
    font-size: 1.75rem;
  }
  
  .pricing-container {
    padding: 30px 0;
  }
  
  .pricing-card {
    padding: 20px;
  }
  
  .amount {
    font-size: 1.75rem;
  }
}
