/* public/styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #333;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
}

.payment-container {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  box-shadow: 0 4px 6px #0000001a;
}

h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

h2 {
  color: #666;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  font-size: 1rem;
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  color: #444;
  margin-bottom: .25rem;
  font-size: .875rem;
  font-weight: 500;
}

input, select {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  padding: .75rem;
  transition: border-color .2s, box-shadow .2s;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px #4f46e51a;
}

input::placeholder {
  color: #aaa;
}

.submit-button {
  color: #fff;
  cursor: pointer;
  background: #4f46e5;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 1rem;
  transition: background-color .2s;
  font-size: 1rem;
  font-weight: 600;
}

.submit-button:hover {
  background: #4338ca;
}

.submit-button:disabled {
  cursor: not-allowed;
  background: #9ca3af;
}

.payment-status {
  text-align: center;
  border-radius: 8px;
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.payment-status.success {
  color: #065f46;
  background: #d1fae5;
}

.payment-status.error {
  color: #991b1b;
  background: #fee2e2;
}

.payment-status.processing {
  color: #92400e;
  background: #fef3c7;
}

#status-icon {
  margin-bottom: .5rem;
  font-size: 2rem;
}

.hidden {
  display: none !important;
}

.loading {
  position: fixed;
  display: flex;
  z-index: 1000;
  background: #ffffffe6;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.spinner {
  animation: spin 1s linear infinite;
  border: 4px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

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

@media (width <= 600px) {
  .payment-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
