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

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  min-height: 100vh;
  color: #1f2937;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

/* Main Content */
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
}

.card-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

/* Tab Styles - Updated for 3 tabs */
.tab-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem;
  gap: 0.125rem;
}

.tab-btn {
  padding: 0.75rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
  text-align: center;
  line-height: 1.2;
}

.tab-btn.active {
  background: white;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
  color: #374151;
}

/* Form Styles */
.card-body {
  padding: 0 2rem 2rem;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* Info Box */
.info-box {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
}

.info-box p {
  font-size: 0.875rem;
  color: #1e40af;
  margin: 0;
}

.info-box.roga91 {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.info-box.roga91 p {
  color: #166534;
}

.info-box.national {
  background: #fef3c7;
  border-color: #fde68a;
}

.info-box.national p {
  color: #92400e;
}

/* Error Message */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  padding: 0.75rem;
  color: #dc2626;
  font-size: 0.875rem;
}

/* Submit Button */
.submit-btn {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  background: #1d4ed8;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-btn.roga91 {
  background: #16a34a;
}

.submit-btn.roga91:hover:not(:disabled) {
  background: #15803d;
}

.submit-btn.national {
  background: #d97706;
}

.submit-btn.national:hover:not(:disabled) {
  background: #b45309;
}

/* Loading Spinner */
.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
  text-align: center;
  margin-top: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .logo {
    font-size: 2rem;
  }

  .payment-card {
    margin: 0;
    max-width: 100%;
  }

  .card-header,
  .card-body {
    padding: 1.5rem;
  }

  .tab-btn {
    font-size: 0.7rem;
    padding: 0.625rem 0.375rem;
  }
}

@media (max-width: 480px) {
  .tab-container {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .tab-btn {
    font-size: 0.875rem;
    padding: 0.75rem;
  }
}

/* Success/Error Pages */
.status-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.status-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  text-align: center;
  max-width: 28rem;
  width: 100%;
}

.status-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.success-icon {
  background: #dcfce7;
  color: #16a34a;
}

.error-icon {
  background: #fef2f2;
  color: #dc2626;
}

.status-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.success-title {
  color: #166534;
}

.error-title {
  color: #991b1b;
}

.status-message {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.action-btn {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.action-btn:hover {
  background: #1d4ed8;
}
