/* ==========================================================
   Event Registration Wizard — matches the Guru Purnima
   Mahotsav reference design (light, app-style, multi-step)
   Builds on top of assets/style.css tokens/colors.
   ========================================================== */

body.wizard-body {
  background: #FBF6EC;
}

/* Safety net: no image may ever exceed its container, even if some
   stylesheet fails to load or is stale-cached on a device */
img { max-width: 100%; height: auto; }

/* ---------------- TOP HEADER BAR (logo left, admin login right) ---------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid #F0E0BE;
  box-shadow: 0 2px 10px rgba(90,50,10,0.06);
  position: relative;
  z-index: 2;
}

.site-header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
}

.sh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.sh-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.sh-brand .sh-name {
  font-family: var(--font-display);
  color: var(--temple-red);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-brand .sh-sub {
  display: block;
  font-family: var(--font-en);
  font-size: 9.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sh-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--saffron);
  border-radius: 999px;
  color: var(--saffron-dark);
  background: #FFF9EF;
  font-family: var(--font-hindi);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.sh-admin-btn:hover { background: var(--saffron); color: #fff; }

/* ---------------- EVENT BANNER (title + ONE combined image) ---------------- */

.event-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(120deg, #FDEFDA 0%, #FBF6EC 55%, #FBF6EC 100%);
  border: 1px solid #F0E0BE;
  border-radius: 16px;
  padding: 18px 18px;
  max-width: 860px;
  margin: 16px auto 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.event-banner-text {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.banner-side-img {
  flex: 0 0 auto;
  width: 150px;
  position: relative;
  z-index: 1;
}

.banner-side-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(180,90,20,0.20));
}

.event-banner-text { position: relative; z-index: 1; }

.event-title {
  font-family: var(--font-display);
  color: var(--temple-red);
  font-size: 24px;
  margin: 0 0 6px;
}

.event-divider {
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  margin: 0 auto 10px;
}

.event-subtitle {
  color: var(--ink);
  font-size: 14px;
  margin: 0 0 12px;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  margin: 6px 0;
}

.event-meta svg { flex-shrink: 0; color: var(--saffron-dark); }

/* ---------------- FOOTER ---------------- */

.site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 16px calc(84px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.site-footer .sf-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E0D4B0, transparent);
  margin: 0 auto 12px;
}

.site-footer a {
  color: var(--saffron-dark);
  font-weight: 600;
  text-decoration: none;
}

@media print {
  .site-footer, .site-header { display: none !important; }
}

/* ---------------- DIKSHA INFO SECTION ---------------- */

.diksha-section {
  max-width: 860px;
  margin: 16px auto 0;
  background: #fff;
  border: 1px solid #F0E0BE;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 6px 20px rgba(90,50,10,0.06);
}

.diksha-header {
  text-align: center;
  margin-bottom: 18px;
}

.diksha-header .dk-pre {
  display: inline-block;
  background: #FDEBD8;
  color: var(--saffron-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.diksha-header h2 {
  font-family: var(--font-display);
  color: var(--temple-red);
  font-size: 26px;
  margin: 0 0 8px;
}

.diksha-header .dk-sub {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 6px;
}

.diksha-header .dk-desc {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}

.diksha-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .diksha-cols { grid-template-columns: 1fr; }
}

.diksha-box {
  background: #FFFBF2;
  border: 1px solid #F0E0BE;
  border-radius: 12px;
  padding: 18px 18px 14px;
}

.diksha-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hindi);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--royal-blue);
  margin: 0 0 12px;
}

.diksha-box ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 2;
}

.diksha-box ol li::marker { color: var(--saffron-dark); font-weight: 700; }

.diksha-note {
  margin-top: 18px;
  background: #FDECEC;
  border: 1px solid #F3C1C1;
  border-radius: 12px;
  padding: 13px 16px;
  color: #A02A2A;
  font-size: 13px;
  line-height: 1.8;
}

.diksha-note b { color: var(--temple-red); }

.diksha-cta {
  text-align: center;
  margin-top: 22px;
}

.btn-goto-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff;
  font-family: var(--font-hindi);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(196,30,42,0.25);
}

/* Visitor counter pill under banner (light theme variant) */
.visitor-counter-light {
  max-width: 860px;
  margin: 12px auto 0;
  text-align: center;
  font-family: var(--font-hindi);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid #F0E0BE;
  border-radius: 999px;
  padding: 6px 16px;
  display: table;
}

.visitor-counter-light b { color: var(--temple-red); font-family: var(--font-en); }
.visitor-counter-light .vc-sep { opacity: 0.5; margin: 0 6px; }

/* ---------------- WIZARD CARD ---------------- */

.wizard-card {
  max-width: 860px;
  margin: 16px auto 0;
  background: #fff;
  border: 1px solid #F0E0BE;
  border-radius: 16px;
  padding: 22px 20px 24px;
  box-shadow: 0 6px 22px rgba(90,50,10,0.06);
}

.wizard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.wizard-header .wh-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FDEBD8;
  color: var(--saffron-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wizard-header h2 {
  font-family: var(--font-hindi);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}

/* ---------------- STEPPER ---------------- */

.stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 26px;
}

.stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 74px;
}

.stepper .step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #EFEFEF;
  color: #999;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.stepper .step.active .step-circle,
.stepper .step.done .step-circle {
  background: var(--saffron);
  color: #fff;
}

.stepper .step-label {
  font-size: 10.5px;
  color: #999;
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
}

.stepper .step.active .step-label { color: var(--saffron-dark); font-weight: 600; }
.stepper .step.done .step-label { color: var(--ink-soft); }

.stepper .step-line {
  flex: 1 1 auto;
  height: 2px;
  background-image: linear-gradient(to right, #ccc 40%, transparent 0%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  margin-top: 16px;
}

.stepper .step-line.done {
  background-image: none;
  background-color: var(--saffron);
}

/* ---------------- FORM STEPS ---------------- */

.form-step { display: none; }
.form-step.active { display: block; animation: ssmFadeIn .25s ease; }

@keyframes ssmFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-heading {
  font-family: var(--font-hindi);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 16px;
}

/* Icon input fields */
.icon-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #E9E4D8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #FEFEFC;
  transition: border-color .15s, box-shadow .15s;
}

.icon-field:focus-within {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(225, 97, 28, 0.12);
}

.icon-field .if-icon {
  color: var(--saffron-dark);
  flex-shrink: 0;
  display: flex;
}

.icon-field .if-body { flex: 1; min-width: 0; }

.icon-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.icon-field label .req { color: var(--temple-red); }

.icon-field input,
.icon-field select,
.icon-field textarea {
  width: 100%;
  border: none;
  outline: none;
  padding: 0;
  font-size: 14.5px;
  font-family: var(--font-hindi);
  color: var(--ink);
  background: transparent;
}

.icon-field textarea { resize: vertical; min-height: 60px; padding-top: 4px; }

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.field-row-2 .icon-field { margin-bottom: 0; }
.field-row-2 { margin-bottom: 14px; }

/* Maharaj Ji info box */
.maharaj-info-box {
  background: #F4F4F4;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 18px;
}

.maharaj-info-box .mi-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 6px;
}

.maharaj-info-box p.mi-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* File upload (Step 4) */
.file-drop {
  border: 2px dashed #E0D4B0;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  background: #FFFBF2;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color .15s, background .15s;
}

.file-drop:hover { border-color: var(--saffron); background: #FFF6E8; }
.file-drop input[type="file"] { display: none; }
.file-drop .fd-icon { color: var(--saffron-dark); margin-bottom: 8px; }
.file-drop .fd-text { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.file-drop .fd-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }
.file-drop .fd-filename { font-size: 12.5px; color: var(--success); margin-top: 8px; font-weight: 600; }

/* Step navigation buttons */
.step-nav {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-step-next, .btn-submit-final {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff;
  font-family: var(--font-hindi);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-step-prev {
  flex: 0 0 auto;
  padding: 14px 20px;
  border: 1.5px solid #E0D4B0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-hindi);
  font-size: 15px;
  cursor: pointer;
}

.field-error {
  color: var(--temple-red);
  font-size: 11.5px;
  margin: -10px 0 12px 2px;
  display: none;
}

/* ---------------- INFO BOX ---------------- */

.important-info-box {
  max-width: 860px;
  margin: 16px auto 90px;
  background: #FDF3E3;
  border: 1px solid #F0DBA8;
  border-radius: 14px;
  padding: 16px 18px;
}

.important-info-box .ii-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin: 0 0 10px;
}

.important-info-box .ii-title .ii-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--saffron-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}

.important-info-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------------- BOTTOM NAV ---------------- */

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #EEE3C4;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 20;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.05);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #A99C82;
  font-size: 10.5px;
  padding: 4px 8px;
}

.bottom-nav a.active { color: var(--saffron-dark); font-weight: 700; }
.bottom-nav a svg { width: 21px; height: 21px; }

/* ---------------- SITE BACKGROUND IMAGE (admin-uploaded) ---------------- */

.site-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* keep all content above the background layer */
.event-banner, .diksha-section, .wizard-card, .important-info-box,
.bottom-nav, .receipt-banner, .receipt-body, .site-header, .site-footer {
  position: relative;
  z-index: 1;
}

@media print {
  .site-bg { display: none !important; }
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 640px) {
  .sh-brand .sh-name { font-size: 13.5px; }
  .sh-admin-btn { font-size: 12px; padding: 7px 12px; }
  .event-banner {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    margin: 12px 12px 0;
  }
  .banner-side-img { width: 82px; }
  .event-title { font-size: 15.5px; }
  .event-subtitle { font-size: 11.5px; margin-bottom: 8px; }
  .event-meta { font-size: 10.5px; gap: 5px; margin: 4px 0; }
  .event-meta svg { width: 13px; height: 13px; }
  .event-divider { margin-bottom: 6px; }
}

/* ==========================================================
   RECEIPT (matches the current light theme, not the older
   ornate certificate look)
   ========================================================== */

.receipt-banner {
  max-width: 480px;
  margin: 16px auto 0;
  text-align: center;
  background: linear-gradient(120deg, #FDEFDA 0%, #FBF6EC 60%, #FBF6EC 100%);
  border: 1px solid #F0E0BE;
  border-radius: 16px;
  padding: 22px 20px;
}

.receipt-banner img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(180,90,20,0.18);
  margin-bottom: 10px;
}

.receipt-banner h1 {
  font-family: var(--font-display);
  color: var(--saffron-dark);
  font-size: 19px;
  margin: 0 0 3px;
}

.receipt-banner .rb-sub {
  color: var(--ink-soft);
  font-size: 12px;
  margin: 0 0 10px;
}

.receipt-banner .rb-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #F0E0BE;
  color: var(--temple-red);
  font-family: var(--font-hindi);
  font-size: 11.5px;
  padding: 4px 14px;
  border-radius: 999px;
}

.receipt-body {
  max-width: 480px;
  margin: 14px auto 40px;
  background: #fff;
  border: 1px solid #F0E0BE;
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 6px 20px rgba(90,50,10,0.06);
}

.receipt-title-v2 {
  text-align: center;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 19px;
  margin: 0 0 4px;
}

.receipt-title-v2 .en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.verified-badge-v2 {
  display: block;
  width: fit-content;
  margin: 10px auto 16px;
  background: #EAF6EA;
  border: 1px solid #B6DFB8;
  color: var(--success);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}

@media print {
  @page { size: A5 portrait; margin: 4mm; }

  body { background: #fff !important; font-size: 11px; }
  .no-print { display: none !important; }
  .wrap { max-width: 100%; padding: 0; }

  .receipt-banner {
    padding: 7px 8px;
    margin: 0 auto;
    border-radius: 10px;
    max-width: 100%;
  }
  .receipt-banner img { width: 34px; height: 34px; margin-bottom: 3px; }
  .receipt-banner h1 { font-size: 12px; margin-bottom: 1px; }
  .receipt-banner .rb-sub { font-size: 8px; margin-bottom: 4px; }
  .receipt-banner .rb-tag { font-size: 8px; padding: 1px 8px; }

  .receipt-body {
    margin: 6px auto 0;
    padding: 10px 10px 8px;
    border-radius: 8px;
    box-shadow: none;
    max-width: 100%;
  }

  .receipt-title-v2 { font-size: 13px; margin-bottom: 3px; }
  .receipt-title-v2 .en { font-size: 7px; margin-top: 1px; }
  .verified-badge-v2 { font-size: 8.5px; padding: 2px 8px; margin: 4px auto 7px; }

  .regno-box { padding: 5px; margin: 6px 0 8px; }
  .regno-box .label { font-size: 7.5px; }
  .regno-box .value { font-size: 15px; }

  table.details td { padding: 3px 2px; font-size: 9.5px; line-height: 1.35; }

  .blessing-box { margin-top: 7px; padding: 6px 8px; font-size: 9.5px; line-height: 1.45; }

  .timestamp { font-size: 8px; margin-top: 6px; margin-bottom: 0; }
}

/* iOS: inputs under 16px trigger automatic page zoom on focus.
   Kept at end of file so it wins over the base .icon-field rules. */
@media (max-width: 640px) {
  .icon-field input,
  .icon-field select,
  .icon-field textarea { font-size: 16px; }
}
