/* payment.css - Styles for payment system */

/* Container for payment pages */
.payment-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #ffffff;
  padding-top: 20px; /* Reduce from 40px */
}

/* Add this to your payment.css or create a fix.css file */
.sub_page .hero_area {
  min-height: auto;
  margin-bottom: 0;
}

/* Payment page header */
.payment-header {
  text-align: center;
  margin-bottom: 40px;
}

.payment-header h1 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 32px;
}

.payment-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* Pricing table styles */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 40px 0;
}

.pricing-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  width: 280px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: #ffd700;
}

.pricing-card.popular {
  position: relative;
  border: 2px solid #ffd700;
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-tag {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #ffd700;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 20px;
}

.pricing-card h3 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 15px;
}

.price {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.price span {
  font-size: 16px;
  font-weight: normal;
  color: #999;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  min-height: 150px;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
  font-size: 16px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-btn {
  display: inline-block;
  background-color: #5f5f5f;
  color: #ffd700;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pricing-btn:hover {
  background-color: #8f8f8f;
  color: #ffd700;
  text-decoration: none;
}

/* Checkout styles */
.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #333;
}

.checkout-header {
  margin-bottom: 30px;
  text-align: center;
}

.checkout-header h2 {
  color: #ffd700;
  margin-bottom: 10px;
}

.plan-overview {
  background-color: #252525;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.plan-overview h3 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 20px;
}

.plan-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.plan-details strong {
  color: #ffd700;
}

/* Payment form styles */
.payment-form {
  margin-top: 30px;
}

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

.form-row label {
  display: block;
  margin-bottom: 8px;
  color: #ffd700;
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: #252525 !important;
  border: 1px solid #333;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 16px;
}

/* Stripe Elements styling */
.StripeElement {
  background-color: #252525;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #333;
  box-shadow: 0 1px 3px 0 #000;
  transition: box-shadow 150ms ease;
}

.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
  border-color: #ffd700;
}

.StripeElement--invalid {
  border-color: #fa755a;
}

.StripeElement--webkit-autofill {
  background-color: #252525 !important;
}

/* Submit button */
.payment-submit-btn {
  background-color: #5f5f5f;
  color: #ffd700;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
   width: 200px !important; /* Change this value to your desired width */
  margin: 0 auto !important; /* This centers the button */
  display: block !important;
  transition: background-color 0.3s ease;
}

.payment-submit-btn:hover {
  background-color: #8f8f8f;
}

.payment-submit-btn:disabled {
  background-color: #444;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Success/error messages */
.payment-message {
  text-align: center;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.payment-message.success {
  background-color: rgba(75, 181, 67, 0.2);
  border: 1px solid #4bb543;
  color: #4bb543;
}

.payment-message.error {
  background-color: rgba(250, 117, 90, 0.2);
  border: 1px solid #fa755a;
  color: #fa755a;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .pricing-table {
    gap: 15px;
  }
  
  .pricing-card {
    width: 45%;
    min-width: 250px;
  }
  
  .pricing-card.popular {
    transform: scale(1.03);
  }
  
  .pricing-card.popular:hover {
    transform: scale(1.03) translateY(-10px);
  }
}

@media (max-width: 768px) {
  .payment-container {
    padding: 20px 10px;
  }
  
  .pricing-card {
    width: 100%;
    max-width: 350px;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
  
  .checkout-container {
    padding: 20px 15px;
  }
}

/* Dashboard styles */
.usage-dashboard {
  margin-top: 40px;
}

.usage-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #333;
}

.usage-card h3 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 20px;
}

.usage-meter {
  height: 20px;
  background-color: #252525;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.usage-progress {
  height: 100%;
  background-color: #ffd700;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.usage-progress.warning {
  background-color: #ff9800;
}

.usage-progress.critical {
  background-color: #f44336;
}

.usage-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
}

.usage-actions {
  text-align: center;
  margin-top: 20px;
}

/* Payment history table */
.payment-history {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.payment-history th, 
.payment-history td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.payment-history th {
  color: #ffd700;
  font-weight: 500;
}

.payment-history tr:last-child td {
  border-bottom: none;
}

.payment-history tr:hover {
  background-color: #252525;
}

.invoice-link {
  color: #ffd700;
  text-decoration: none;
}

.invoice-link:hover {
  text-decoration: underline;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.paid {
  background-color: rgba(75, 181, 67, 0.2);
  color: #4bb543;
}

.status-badge.pending {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-badge.failed {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

/* If section has margin causing gaps */
.service_section.layout_padding {
  padding-top: 0;
}

/* Improve Stripe Elements container */
#card-element {
  padding: 12px;
  background-color: #252525;
  border-radius: 4px;
  border: 1px solid #333;
  min-height: 45px; /* Add minimum height */
  width: 100%;
}

/*#card-element {
  background-color: #ffffff !important;
  border: 1px solid #ced4da !important;
  padding: 10px !important;
  min-height: 40px !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100%;
}*/

/* Make sure the form has proper width */
#payment-form {
  width: 100%;
}

/* Improve visibility of card errors */
#card-errors {
  color: #fa755a;
  margin-top: 10px;
  font-size: 14px;
}

/* Add a spinner animation for better UX */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

.hidden {
  display: none;
}

/* Additional styles for the enhanced checkout form */

/* Form sections */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.form-section h4 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 18px;
}

.form-section:last-child {
  border-bottom: none;
}

/* Form groups and rows */
.form-row {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group.half {
  width: calc(50% - 8px);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff !important;
  font-size: 16px !important;
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: #515151 !important;
  border: 1px solid #333;
  border-radius: 4px;
  color: #ffffff;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #ffd700;
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-left: 15px; /* Add more left padding */
  padding-right: 40px;
  text-align: left; /* Ensure text is left-aligned */
  text-overflow: ellipsis; /* Add ellipsis for overflow text */
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: visible; /* Allow text to be visible when dropdown is open */
  color: #ffffff; /* Ensure text is visible against background */
}

/* Error messages */
.error-message {
  color: #f44336;
  font-size: 12px;
  margin-top: 5px;
  min-height: 15px;
}

/* Terms agreement */
.terms-agreement {
  margin-top: 40px !important;
  margin-bottom: 20px;
  font-size: 12px;
  color: #999;
}

.terms-agreement a {
  color: #ffd700;
  text-decoration: none;
}

.terms-agreement a:hover {
  text-decoration: underline;
}

/* checkout-footer */
.checkout-footer {
  margin-bottom: 5px;
  font-size: 12px;
  color: #999;
}

/* Required field indicator */
label[for]:after {
  content: " *";
  color: #f44336;
}

label[for="address2"]:after {
  content: none;
}

/* Make the form responsive */
@media (max-width: 768px) {
  .form-group.half {
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* More specific selectors to override Bootstrap */
#payment-form .form-control,
.checkout-container .form-control {
  width: 100%;
  padding: 12px;
  background-color: #515151 !important;
  border: 1px solid #333;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

#payment-form select.form-control,
.checkout-container select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-left: 15px;
  padding-right: 40px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: visible;
  color: #ffffff !important;
  width: 100% !important;
  display: block !important;
}

/* Fix the text display for select options */
#payment-form select.form-control option,
.checkout-container select.form-control option {
  background-color: #515151;
  color: #ffffff;
  padding: 8px;
}

/* Fix for placeholder text color */
#payment-form .form-control::placeholder,
.checkout-container .form-control::placeholder {
  color: #aaa !important;
}

#payment-form label,
.checkout-container label {
  color: #ffffff !important;
  font-size: 16px !important;
  display: block;
  margin-bottom: 8px;
}

/* Super-specific override for country dropdown */
/* Improved styling for the country dropdown */
#payment-form select#country.form-control,
.checkout-container select#country.form-control {
  background-color: #353535 !important; /* Slightly darker for better contrast */
  color: #ffffff !important;
  border: 1px solid #444 !important;
  height: auto !important;
  padding: 10px 40px 10px 15px !important; /* Slightly reduced padding */
  font-size: 16px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 100% !important;
  display: block !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease-in-out !important;
}

/* Add hover effect */
#payment-form select#country.form-control:hover,
.checkout-container select#country.form-control:hover {
  border-color: #555 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Add focus effect */
#payment-form select#country.form-control:focus,
.checkout-container select#country.form-control:focus {
  border-color: #ffd700 !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2) !important;
  outline: none !important;
}

/* Make text inputs match the select styling */
#payment-form input.form-control,
.checkout-container input.form-control {
  background-color: #353535 !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
  height: auto !important;
  padding: 10px 15px !important;
  font-size: 16px !important;
  width: 100% !important;
  display: block !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease-in-out !important;
}

/* Add hover effect to inputs */
#payment-form input.form-control:hover,
.checkout-container input.form-control:hover {
  border-color: #555 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Add focus effect to inputs */
#payment-form input.form-control:focus,
.checkout-container input.form-control:focus {
  border-color: #ffd700 !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2) !important;
  outline: none !important;
}

.empty-state {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 20px 0;
}

.empty-state p {
  margin-bottom: 15px;
  color: #aaa;
}

.small-btn {
  display: inline-block;
  background-color: #555;
  color: #ffd700;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.9em;
  text-decoration: none;
  margin-top: 10px;
}

.small-btn:hover {
  background-color: #666;
  color: #ffd700;
  text-decoration: none;
}

.status-badge.free {
  background-color: #555;
  color: white;
}

.payment-type-selector {
      text-align: center;
      margin: 30px 0;
      padding: 20px;
      background-color: #2a2a2a;
      border-radius: 10px;
    }
    
    .payment-type-toggle {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 15px;
    }
    
    .payment-type-label {
      display: block;
      padding: 15px 25px;
      border: 2px solid #5f5f5f;
      border-radius: 8px;
      cursor: pointer;
      position: relative;
      width: 250px;
      transition: all 0.3s ease;
    }
    
    .payment-type-label.active {
      border-color: #ffd700;
      background-color: rgba(255, 215, 0, 0.1);
    }
    
    .payment-type-label input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
    
    .payment-type-text {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
    }
    
    .payment-type-description {
      font-size: 0.8em;
      color: #aaa;
    }
    
    /* Plan comparison table */
    .plan-comparison {
      margin: 40px 0;
    }
    
    .comparison-table-container {
      overflow-x: auto;
    }
    
    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 20px;
      color: #ffffff;
    }
    
    .comparison-table th,
    .comparison-table td {
      padding: 15px;
      text-align: left;
      border-bottom: 1px solid #444;
    }
    
    .comparison-table thead {
      background-color: #2a2a2a;
    }
    
    .comparison-table th {
      font-weight: 600;
    }
    
    .comparison-table tr:nth-child(even) {
      background-color: #222;
    }