.checkoutcontainer1 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, system-ui, sans-serif;
  background: #f0f2f5;
}
.checkoutcontainer {
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px;
  width: 100%;
}
#CheckoutContainer {
  overflow-y: auto; /* Enable vertical scrolling */
  max-height: 100vh; /* Limit to viewport height */
}
.oneDivToRuleThemAll {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eaeaea;
}

.bigButtonToGoBack {
  background-color: transparent;
  color: #fe0000;
  border: none;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.bigButtonToGoBack:hover {
  background-color: rgba(254, 0, 0, 0.1);
  transform: translateX(-2px);
}

/* Update the h2 styling to match */
.oneDivToRuleThemAll h2 {
  color: #1a237e;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.checkoutcontainer1 .card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.checkoutcontainer1 h2 {
  color: #fe0000; /* Updated primary color */
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.checkoutcontainer1 .steps {
  margin-bottom: 20px;
  padding: 12px;
  background: #ffe5e5; /* Adjusted for new primary color */
  border-radius: 8px;
  font-size: 14px;
  color: #fe0000; /* Updated primary color */
}

.checkoutcontainer1 .form-group {
  margin-bottom: 20px;
  position: relative;
}

.checkoutcontainer1 label {
  display: block;
  margin-bottom: 8px;
  color: #455a64;
  font-weight: 500;
}

.checkoutcontainer1 input {
  width: 90%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.checkoutcontainer1 input:focus {
  border-color: #fe0000; /* Updated primary color */
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.1); /* Updated primary color */
}

.checkoutcontainer1 .btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.checkoutcontainer1 .btn-primary {
  background: #fe0000; /* Updated primary color */
  color: white;
}

.checkoutcontainer1 .btn-primary:hover:not(:disabled) {
  background: #e60000; /* Darker shade for hover state */
  transform: translateY(-1px);
}

.checkoutcontainer1 .btn:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}

.checkoutcontainer1 .verification-area,
.checkoutcontainer1 .order-details {
  display: none;
  animation: slideIn 0.3s ease;
}

.checkoutcontainer1 .message {
  padding: 16px;
  margin: 16px 0;
  border-radius: 12px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.checkoutcontainer1 .message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.checkoutcontainer1 .message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.checkoutcontainer1 .message.info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

.checkoutcontainer1 .loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg); /* Corrected typo */
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
