@import "tailwindcss";

:root {
  /* Light Mahakal / Shiva — vibhuti ash, rudraksha saffron, neelakantha blue */
  --bg: #eef2f5;
  --bg-elevated: #ffffff;
  --ink: #1c2736;
  --muted: #5a6a7c;
  --gold: #b56f1c;
  --gold-soft: rgba(181, 111, 28, 0.14);
  --flame: #c45c28;
  --neela: #3d5f8f;
  --neela-soft: rgba(61, 95, 143, 0.12);
  --ash: #7a8796;
  --river: #4a6f8c;
  --line: rgba(28, 39, 54, 0.12);
  --danger: #c24b35;
  --ok: #2f7a5c;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --hero-ink: #f7f4ef;
  --hero-muted: rgba(247, 244, 239, 0.82);
}

@theme inline {
  --color-bg: var(--bg);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-gold: var(--gold);
  --color-flame: var(--flame);
  --color-river: var(--river);
  --font-sans: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(61, 95, 143, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(181, 111, 28, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(196, 92, 40, 0.08), transparent 45%),
    linear-gradient(180deg, #f7f8fa 0%, var(--bg) 40%, #e8edf2 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: #fff8ef;
}

.font-display {
  font-family: var(--font-display);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #d49a3d);
  color: #1c1408;
  box-shadow: 0 8px 24px rgba(181, 111, 28, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost {
  background: rgba(28, 39, 54, 0.05);
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  background: #fff;
}

.field input::placeholder {
  color: rgba(90, 106, 124, 0.55);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

.choice {
  border: 1px solid var(--line);
  background: #fbfcfd;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(194, 75, 53, 0.1);
  border: 1px solid rgba(194, 75, 53, 0.28);
  color: #8f2f22;
}

.alert-ok {
  background: rgba(47, 122, 92, 0.1);
  border: 1px solid rgba(47, 122, 92, 0.28);
  color: #1f5c42;
}

.alert-info {
  background: var(--neela-soft);
  border: 1px solid rgba(61, 95, 143, 0.28);
  color: #2a4468;
}

.progress-track {
  height: 4px;
  background: rgba(28, 39, 54, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neela), var(--gold));
  border-radius: 999px;
  transition: width 0.35s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatGlow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.05);
  }
}

.animate-rise {
  animation: rise 0.7s ease both;
}

.animate-rise-delay {
  animation: rise 0.85s ease 0.12s both;
}

.glow-orb {
  animation: floatGlow 7s ease-in-out infinite;
}

.trishul-mark {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  color: var(--gold);
  margin-right: 0.25rem;
}

.panel-surface {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(28, 39, 54, 0.06);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  .pass-page {
    min-height: auto !important;
    background: #fff !important;
  }

  .pass-page-inner {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .pass-print {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #222 !important;
    border-radius: 0 !important;
    max-width: 100%;
  }

  .pass-banner {
    height: 52px !important;
  }

  .pass-banner img {
    opacity: 0.35;
  }

  .pass-body {
    padding: 12px 14px !important;
    gap: 12px !important;
    grid-template-columns: 1fr 120px !important;
  }

  .pass-fields {
    gap: 6px 12px !important;
  }

  .pass-qr img {
    width: 110px !important;
    height: 110px !important;
  }

  .pass-note {
    margin-top: 8px !important;
    font-size: 10px !important;
  }

  a {
    text-decoration: none !important;
  }
}
