/* ============================================
   Shopify-Style Checkout — style.css
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a1a;
}

/* ── Input Fields ─────────────────────────── */
.checkout-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  font-size: 0.875rem;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

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

.checkout-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.checkout-input:hover:not(:focus) {
  border-color: #9ca3af;
}

select.checkout-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Stripe Card Element ──────────────────── */
.stripe-element {
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 42px;
}

.stripe-element.StripeElement--focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.stripe-element.StripeElement--invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ── Submit Button ────────────────────────── */
#submit-btn {
  font-family: inherit;
  letter-spacing: 0.01em;
}

#submit-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

#submit-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}

#submit-btn:disabled {
  pointer-events: none;
}

/* ── Sections ─────────────────────────────── */
section {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 2rem;
}

section:last-of-type {
  border-bottom: none;
}

/* ── Breadcrumb ───────────────────────────── */
nav a {
  color: #3b82f6;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* ── Scrollbar (Webkit) ───────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f9fafb;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

/* ── Radio Inputs ─────────────────────────── */
input[type="radio"] {
  accent-color: #3b82f6;
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: #3b82f6;
  cursor: pointer;
}

/* ── Animations ───────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* ── Mobile ───────────────────────────────── */
@media (max-width: 1024px) {
  main {
    padding-top: 0.5rem;
  }
}
