﻿/* Checkout & Pricing Page Stylesheet */

.checkout-page {
  background-color: #f8fafc;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.checkout-main {
  padding: 150px 0 90px;
}

/* Page Header */
.checkout-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.checkout-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.checkout-header p {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Report Summary Panel */
.checkout-report-summary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.summary-details h2 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.summary-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.summary-meta strong {
  color: #374151;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 60px;
}

/* Pricing Card base */
.pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

/* Tag Badge */
.discount-badge {
  position: absolute;
  top: 24px;
  left: 36px;
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Header */
.card-header-info {
  margin-top: 20px;
  margin-bottom: 30px;
}

.card-header-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px 0;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.original-price {
  font-size: 20px;
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 600;
}

.discounted-price {
  font-size: 32px;
  font-weight: 800;
  color: #0783df;
}

/* Card Body Features */
.card-features-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 30px;
  min-height: 42px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.check-icon-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #10b981;
  font-size: 11px;
  font-weight: 800;
}

/* Card Actions */
.pricing-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  width: 100%;
  height: 48px;
  background-color: #0783df;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(7, 131, 223, 0.15);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pricing-action-btn:hover {
  background-color: #0060b0;
  box-shadow: 0 8px 20px rgba(7, 131, 223, 0.25);
  transform: translateY(-1px);
}

.pricing-action-btn:active {
  transform: scale(0.98);
}

.pricing-action-btn .btn-circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.2s ease;
}

.pricing-action-btn .chevron-svg {
  width: 10px;
  height: 10px;
}

.pricing-action-btn:hover .btn-circle-arrow {
  background-color: #ffffff;
  color: #0783df;
}

/* Middle Highlighted Card Styles */
.pricing-card.highlighted {
  background: linear-gradient(135deg, #0d7be3 0%, #0056b3 100%);
  border-color: #0783df;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(7, 131, 223, 0.2);
}

.pricing-card.highlighted:hover {
  box-shadow: 0 20px 45px rgba(7, 131, 223, 0.3);
}

.pricing-card.highlighted h3,
.pricing-card.highlighted .discounted-price,
.pricing-card.highlighted .features-list li {
  color: #ffffff;
}

.pricing-card.highlighted .original-price {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-card.highlighted .card-features-description {
  color: #e0f2fe;
}

.pricing-card.highlighted .check-icon-green {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pricing-card.highlighted .pricing-action-btn {
  background-color: #ffffff;
  color: #0783df;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.pricing-card.highlighted .pricing-action-btn:hover {
  background-color: #f8fafc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card.highlighted .pricing-action-btn .btn-circle-arrow {
  border-color: #0783df;
  color: #0783df;
}

.pricing-card.highlighted .pricing-action-btn:hover .btn-circle-arrow {
  background-color: #0783df;
  color: #ffffff;
}

/* Payment Drawer Panel */
.payment-section-drawer {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.04);
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.payment-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}

.payment-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.payment-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.payment-header p strong {
  color: #0783df;
}

.paypal-buttons-container-wrapper {
  margin: 20px 0 0 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Loading Spinner */
.checkout-loading {
  text-align: center;
  padding: 100px 0;
  color: #6b7280;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid #f1f5f9;
  border-top-color: #0783df;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .pricing-card {
    padding: 36px 24px;
  }
}

@media (max-width: 640px) {
  .checkout-report-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  
  .payment-section-drawer {
    padding: 24px 20px;
  }
}
