* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  padding: 20px;
}

/* Hide navigation menu on checkout page */
body.checkout-page .nav,
body.checkout-page .menu-toggle {
  display: none !important;
}

.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

.checkout-header {
  background: transparent;
  color: #2c3e50;
  padding: 40px;
  text-align: center;
}

.checkout-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.checkout-header p {
  font-size: 1.1rem;
  color: #495057;
}

.trial-header {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 25px;
  display: inline-block;
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.pricing-section {
  padding: 40px;
  background: #f8f9fa;
  border-right: 1px solid #e9ecef;
}

.payment-section {
  padding: 40px;
}

.features-list {
  margin-bottom: 20px;
}

.main-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.main-features li {
  padding: 4px 0;
  color: #495057;
  position: relative;
  padding-left: 25px;
  font-weight: 500;
}

.main-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0f62fe;
  font-weight: bold;
  font-size: 16px;
}

.main-features li.guarantee {
  font-weight: 600;
  color: #299399;
  border-top: 1px solid #e9ecef;
  margin-top: 8px;
  padding-top: 12px;
}

.main-features li.guarantee::before {
  content: '🛡️';
  font-size: 14px;
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.plan-option {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.plan-option.compact {
  padding: 20px 15px;
}

.plan-option:hover {
  border-color: #0f62fe;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 98, 254, 0.15);
}

.plan-option.selected {
  border-color: #0f62fe;
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.05), rgba(41, 147, 153, 0.05));
}

.plan-option.selected::after {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  background: #0f62fe;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f62fe;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6c757d;
}

.plan-price .then {
  font-size: 0.8rem;
  font-weight: 400;
  color: #6c757d;
  font-style: italic;
}

.plan-period {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.3;
}

.popular-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.payment-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0f62fe;
}

#card-element {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
}

#card-element.StripeElement--focus {
  border-color: #0f62fe;
}

.subscribe-btn {
  width: 100%;
  background: #cdff00;
  color: #00253b;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0, 37, 59, 0.15);
}

.subscribe-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 37, 59, 0.25);
}

.subscribe-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 10px;
  padding: 10px;
  background: #f8d7da;
  border-radius: 4px;
  display: none;
}

.success-message {
  color: #155724;
  font-size: 0.9rem;
  margin-top: 10px;
  padding: 10px;
  background: #d4edda;
  border-radius: 4px;
  display: none;
}

.security-info {
  margin-top: 20px;
  padding: 15px;
  background: #e8f4fd;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0c5460;
}

.security-info strong {
  color: #0c5460;
}

@media (max-width: 768px) {
  .checkout-content {
    grid-template-columns: 1fr;
  }
  
  .pricing-section {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .checkout-header h1 {
    font-size: 2rem;
  }
  
  .pricing-section, .payment-section {
    padding: 30px 20px;
  }

  .plan-selector {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-features {
    padding: 20px;
  }

  .plan-option.compact {
    padding: 18px 12px;
  }
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
