:root {
  --temple-maroon: #800000;
  --temple-gold: #d4af37;
  --temple-saffron: #f39c12;
  --temple-light-blue: #5dade2;
  --bg-soft: #f8f9fa;
}

body {
  background-color: var(--bg-soft);
  font-family: 'Inter', sans-serif;
  color: #333;
}

.temple-font {
  font-family: 'Marcellus', serif;
}

.hero-banner {
  position: relative;
  background: #ffffff;
  color: var(--temple-maroon);
  padding: 60px 20px 90px 20px;
  border-bottom: 4px solid var(--temple-gold);
}

.hero-banner .lead,
.hero-banner .small {
  color: #555;
}

.site-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

@media (max-width: 576px) {
  .site-logo { height: 40px; top: 10px; right: 10px; }
  .hero-banner { padding: 50px 14px 70px 14px; }
}

.registration-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-top: -60px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 40px;
}

.card-header-accent {
  background: var(--temple-maroon);
  color: white;
  padding: 24px 30px;
  border-bottom: 4px solid var(--temple-gold);
}

/* Light alternative to .card-header-accent, used throughout the wizard so
   the page isn't a stack of solid maroon bars - white background, a gold
   rule, and colored heading text instead. .card-header-accent itself stays
   untouched since the admin pages still use it. */
.card-header-light {
  background: #fff;
  color: var(--temple-maroon);
  padding: 20px 30px 16px;
  border-bottom: 2px solid var(--temple-gold);
}
.card-header-light h2 {
  color: var(--temple-maroon);
}

.card-body {
  padding: 30px;
}

.card-footer {
  background: var(--bg-soft);
  padding: 20px 30px;
  border-top: 1px solid #eee;
}

.section-title {
  font-family: 'Marcellus', serif;
  color: var(--temple-maroon);
  border-bottom: 2px solid var(--temple-gold);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.section-title-blue {
  color: var(--temple-light-blue);
}

.text-info-blue {
  color: var(--temple-light-blue);
}

.btn-temple {
  background: var(--temple-maroon);
  border-color: var(--temple-maroon);
  color: white;
}
.btn-temple:hover {
  background: #5c0000;
  border-color: #5c0000;
  color: white;
}
.btn-temple:disabled {
  opacity: 0.6;
}

.seva-meta {
  color: #777;
  font-size: 0.85rem;
}

.badge-full {
  background: #999 !important;
}

.qty-input {
  width: 64px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--temple-maroon);
  color: var(--temple-maroon);
}
.btn-outline:hover { background: #fdf6f6; color: var(--temple-maroon); }

/* ======================================================================
   Registration wizard (public/index.html only - admin pages don't use any
   of the below, only the shared classes above).
   ====================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 10px;
}
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.site-header .brand img { height: 42px; width: 42px; border-radius: 8px; object-fit: cover; }
.site-header .brand h1 { font-size: 1.2rem; color: var(--temple-maroon); margin: 0; }
.site-header .brand-tag { font-size: 0.7rem; color: #888; }
.site-nav { display: flex; gap: 20px; font-size: 0.86rem; }
.site-nav a { color: #333; text-decoration: none; }
.site-nav a.active { color: var(--temple-maroon); font-weight: 600; border-bottom: 2px solid var(--temple-maroon); padding-bottom: 3px; }

.reg-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 36px 24px;
  background: var(--bg-soft);
  border-bottom: 3px solid var(--temple-gold);
}
.reg-hero .eyebrow { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: #888; }
.reg-hero h1 { font-size: 2rem; color: var(--temple-maroon); line-height: 1.15; margin: 4px 0 10px; }
.reg-hero h1 small { display: block; font-size: 1.05rem; color: var(--temple-gold); font-weight: normal; margin-top: 4px; }
.reg-hero .lead { color: #555; max-width: 52ch; }
.reg-hero .muted { color: #888; }
.hero-info { display: flex; gap: 22px; margin: 14px 0; flex-wrap: wrap; font-size: 0.85rem; }
.hero-info div { display: flex; gap: 8px; align-items: flex-start; }
.hero-note {
  background: #fff;
  border: 1px solid #ecdfb8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #666;
  max-width: 54ch;
  margin-bottom: 14px;
}
.reg-hero-art {
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
  display: flex; align-items: center; justify-content: center;
}
.reg-hero-art img {
  max-width: 82%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18));
}

.steps {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 26px 16px; max-width: 560px; margin: 0 auto;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.8rem; color: #999; }
.step .circle {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #e7dcc4;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #999; background: #fff;
}
.step.active .circle, .step.done .circle { background: var(--temple-maroon); border-color: var(--temple-maroon); color: #fff; }
.step.active .label { color: var(--temple-maroon); font-weight: 700; }
.step-line { flex: 1; height: 2px; background: #e7dcc4; max-width: 90px; }
.step-line.done { background: var(--temple-maroon); }

.layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.layout.single-column { grid-template-columns: 1fr; }
.layout.single-column .sidebar { display: none; }
.sidebar .registration-card { position: sticky; top: 16px; }

/* .registration-card's -60px top margin exists to float the card up over a
   tall hero-banner (admin pages still rely on this). The wizard sits below
   a slim step-indicator row instead, not a hero - that same negative margin
   was pulling every step's card up into the indicator circles. */
#wizard .registration-card { margin-top: 0; }

/* Only the current wizard step is ever shown - goToStep() toggles .visible
   on the one matching [data-step-panel]. Without this rule all three steps
   render stacked on the page at once, which is why the indicator looked
   "stuck" - Step 1's content was still sitting right there the whole time. */
[data-step-panel] { display: none; }
[data-step-panel].visible { display: block; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field.full { grid-column: 1 / -1; }

.family-box { margin-top: 24px; border-top: 1px dashed #e7dcc4; padding-top: 18px; }
.family-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.family-head h4 { font-size: 0.95rem; margin: 0; }
.family-head p { font-size: 0.78rem; color: #888; margin: 2px 0 0; }
table.family-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.family-table th { text-align: left; color: #888; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 6px; border-bottom: 1px solid #eee; }
table.family-table td { padding: 7px 6px; border-bottom: 1px solid #eee; }
table.family-table input { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 6px 8px; font-size: 0.84rem; }
.remove-row { background: none; border: none; color: var(--temple-maroon); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.empty-state { text-align: center; padding: 20px 10px; color: #999; font-size: 0.85rem; }

.step-subhead { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.step-subhead .n { font-size: 0.7rem; font-weight: 700; color: var(--temple-gold); letter-spacing: 0.05em; text-transform: uppercase; }
.step-subhead h4 { font-size: 0.94rem; color: #333; margin: 0; }

.puja-for-date-placeholder {
  border: 1.5px dashed #e7dcc4; border-radius: 10px; padding: 28px 16px;
  text-align: center; color: #999; font-size: 0.88rem; margin-bottom: 22px;
}

.select-btn {
  border: 1.5px solid var(--temple-maroon); color: var(--temple-maroon); background: #fff;
  border-radius: 7px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.select-btn.added { background: var(--temple-maroon); color: #fff; }
.select-btn:disabled { opacity: 0.45; cursor: not-allowed; border-color: #999; color: #999; }

.all-sevas-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.all-seva-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  border: 1px solid #eee; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.all-seva-row.standalone { border-color: var(--temple-gold); background: #fffdf5; }
.all-seva-row .info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
.all-seva-row .info .name { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.all-seva-row .info .meta { font-size: 0.78rem; color: var(--temple-light-blue); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.all-seva-row .right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.standalone-section { border-top: 1px dashed #e7dcc4; padding-top: 18px; margin-top: 6px; }

.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-item .meta .name { font-size: 0.84rem; font-weight: 600; }
.cart-item .meta .sub { font-size: 0.72rem; color: #888; }
.cart-empty { text-align: center; color: #999; font-size: 0.84rem; padding: 20px 10px; }
.qty-stepper { display: flex; align-items: center; gap: 6px; }
.qty-stepper button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #ddd; background: var(--bg-soft); cursor: pointer; font-size: 0.8rem; line-height: 1; }
.qty-stepper span { font-size: 0.82rem; min-width: 14px; text-align: center; }
.remove-x { background: none; border: none; color: #999; cursor: pointer; font-size: 0.9rem; margin-left: 4px; }

.totals-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 6px 0; }
.totals-row.grand { font-size: 1.05rem; font-weight: 700; border-top: 1px solid #eee; margin-top: 6px; padding-top: 10px; }

.review-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid #f3f3f3; }
.review-row .k { color: #888; }
.review-row.grand { font-size: 1.05rem; font-weight: 700; border-top: 2px solid var(--temple-gold); border-bottom: none; margin-top: 6px; padding-top: 12px; }

@media (max-width: 920px) {
  .reg-hero { grid-template-columns: 1fr; }
  .reg-hero-art { max-width: 280px; margin: 0 auto; }
  .layout { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

/* Deliberately no @media (prefers-color-scheme: dark) block - this page
   always renders light/white regardless of the visitor's system setting,
   per an explicit request after dark mode made the page render black. */
