* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f8f9;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.payment-form {
  width: 100%;
  max-width: 500px;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-bottom: 20px;
  color: #32325d;
  font-size: 24px;
  text-align: center;
}

h2 {
  margin-bottom: 15px;
  color: #32325d;
  font-size: 18px;
}

/* Payment Steps Indicator */
.payment-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e6ebf1;
  color: #6b7c93;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-bottom: 5px;
}

.step.active .step-number {
  background-color: #5469d4;
  color: white;
}

.step-connector {
  flex-grow: 1;
  height: 2px;
  background-color: #e6ebf1;
  margin: 0 10px;
}

.step.active + .step-connector {
  background-color: #5469d4;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7c93;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  font-size: 16px;
}

.amount-wrapper {
  position: relative;
}

.currency {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7c93;
}

#amount {
  padding-left: 24px;
}

#card-element {
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background-color: #fff;
}

#card-errors {
  color: #fa755a;
  font-size: 14px;
  margin-top: 8px;
}

.button-group {
  display: flex;
  justify-content: space-between;
}

button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #5469d4;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button.secondary {
  background-color: #f7f8f9;
  color: #5469d4;
  border: 1px solid #5469d4;
}

button:hover {
  background-color: #4a5fc1;
}

button.secondary:hover {
  background-color: #edf0f7;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-group button {
  width: 48%;
}

#spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

.payment-section {
  margin-top: 20px;
}

#payment-message {
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
}

#payment-message.success {
  background-color: #e8f4ee;
  color: #1e7c45;
}

#payment-message.error {
  background-color: #fde9eb;
  color: #e25950;
}

#payment-message.processing {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.order-summary {
  padding: 15px;
  background-color: #f7f8f9;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

#confirmation-content {
  text-align: center;
  padding: 20px 0;
}

#confirmation-content .icon {
  font-size: 48px;
  color: #1e7c45;
  margin-bottom: 15px;
}

#confirmation-content h3 {
  color: #1e7c45;
  margin-bottom: 15px;
}

#confirmation-content .transaction-id {
  background-color: #e8f4ee;
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  margin: 15px 0;
}

/* Additional styles for trial subscription elements */
.trial-badge {
  background-color: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.trial-description {
  margin-bottom: 20px;
  color: #4a4a4a;
}

.subscription-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.subscription-option {
  display: flex;
  align-items: flex-start;
}

.subscription-option input[type="radio"] {
  margin-top: 8px;
}

.plan-label {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  flex-grow: 1;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscription-option input[type="radio"]:checked + .plan-label {
  border-color: #3498db;
  box-shadow: 0 0 0 1px #3498db;
  background-color: #f8f9fa;
}

.plan-name {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.plan-price {
  display: block;
  font-size: 16px;
  color: #2980b9;
  margin-bottom: 8px;
}

.plan-features {
  display: block;
  font-size: 14px;
  color: #7f8c8d;
}

.trial-notice {
  background-color: #f8f9fa;
  border-left: 4px solid #4CAF50;
  padding: 10px 15px;
  margin: 15px 0;
  font-size: 14px;
}

.trial-reminder {
  display: flex;
  align-items: center;
  background-color: #fdf6e3;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
}

.trial-icon {
  font-size: 24px;
  margin-right: 12px;
}

.trial-info {
  background-color: #f0f8ff;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}

#payment-message.info {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 20px;
}

#check-status-button {
  margin-top: 8px;
}

/* Add these styles to your existing CSS file */

.subscription-status {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 6px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.no-sub-badge, .active-badge, .status-badge {
  background-color: #6c757d;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.active-badge {
  background-color: #28a745;
}

.subscription-plan-display {
  margin-top: 10px;
}

.plan-card {
  display: block;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #f8f9fa;
}

.plan-description {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #6c757d;
}
