/* Shared styles: kiosk touch screen, visitor's phone page, admin pages.
   Theme colours are taken from the Madhya Pradesh Travel Mart logo. */
:root {
  --bg: #fff8ee;
  --ink: #2b1d3a;
  --muted: #6f6680;
  --mag: #b04a8a;
  --grn: #1b9a48;
  --org: #f08a1c;
  --blu: #0e9be0;
  --card: #ffffff;
  --line: rgba(43, 29, 58, .12);
  --shadow: 0 14px 40px rgba(43, 29, 58, .12);
  --radius: 28px;
  --bar: linear-gradient(90deg, var(--mag) 0 25%, var(--grn) 25% 50%, var(--org) 50% 75%, var(--blu) 75% 100%);
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  font-family: 'Poppins', 'Noto Sans Devanagari', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; }

/* crisp tilted panels echoing the logo shapes */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  background: radial-gradient(1100px 700px at 50% 45%, #ffffff 0%, var(--bg) 70%); }
.bg-orbs i, .bg-orbs::before { content: ''; position: absolute; opacity: .13; animation: float 14s ease-in-out infinite alternate; }
.bg-orbs i:nth-child(1) { background: var(--mag); width: 34vw; height: 46vh; right: -4vw; top: 24vh; clip-path: polygon(14% 0, 100% 8%, 82% 100%, 0 86%); }
.bg-orbs i:nth-child(2) { background: var(--blu); width: 36vw; height: 40vh; left: -6vw; bottom: -4vh; clip-path: polygon(0 12%, 100% 0, 86% 100%, 10% 92%); animation-delay: -5s; }
.bg-orbs i:nth-child(3) { background: var(--grn); width: 26vw; height: 32vh; right: 12vw; bottom: -6vh; clip-path: polygon(10% 0, 100% 14%, 90% 100%, 0 80%); animation-delay: -9s; }
.bg-orbs::before { background: var(--org); width: 22vw; height: 30vh; left: 14vw; top: 30vh; clip-path: polygon(0 18%, 90% 0, 100% 84%, 14% 100%); animation-delay: -3s; opacity: .10; }
@keyframes float { to { transform: translate(1.2vw, -1.6vh) rotate(1.5deg); } }

/* ---------------- kiosk ---------------- */
body.kiosk { height: 100vh; overflow: hidden; user-select: none; display: flex; flex-direction: column; }

.topbar {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 2vh 3vw; background: #fff; box-shadow: 0 8px 30px rgba(43, 29, 58, .1);
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--bar); }
.partners {
  flex: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px;
  border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(43, 29, 58, .08);
}
.partners figure { position: relative; width: 15vh; height: 11.5vh; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.partners img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.event-logo { height: 22vh; max-width: 40vw; object-fit: contain; display: block; }
.top-title { flex: 1; text-align: center; padding: 0 2vw; }
.top-title b { display: block; font-size: clamp(1.4rem, 3.4vh, 2.6rem); font-weight: 700; line-height: 1.2; background: linear-gradient(90deg, var(--mag), var(--org)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-title span { display: block; margin-top: 6px; font-size: clamp(.9rem, 1.9vh, 1.4rem); color: var(--muted); letter-spacing: .04em; }

.screen { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: 3vh 5vw 6vh; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.screen h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 700; text-align: center; line-height: 1.2; color: var(--ink); }
.alt { color: var(--muted); font-weight: 500; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; flex: 1; }
.lead { max-width: 52ch; font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.6; color: var(--ink); }
.muted { color: var(--muted); }
.strong { font-weight: 600; font-size: 1.3rem; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  --tone: var(--mag);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: clamp(150px, 20vh, 240px); padding: 24px; border-radius: var(--radius);
  font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600; text-align: center; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-bottom: 10px solid var(--tone);
  box-shadow: var(--shadow); transition: transform .15s, background .15s;
}
.card:active { transform: scale(.96); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.card.big { min-height: 26vh; font-size: clamp(2rem, 4vw, 3.2rem); }
.card.big:nth-child(2) { --tone: var(--blu); }
.card .icon { font-size: 3.2rem; }
.tone-spiritual { --tone: var(--org); }
.tone-rural { --tone: var(--grn); }
.tone-adventure { --tone: var(--blu); }
.tone-heritage { --tone: var(--mag); }
.card.num:nth-child(1) { --tone: var(--grn); }
.card.num:nth-child(2) { --tone: var(--org); }
.card.num:nth-child(3) { --tone: var(--blu); }
.card.num b { font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; color: var(--tone); }

.btn-start, .btn-primary {
  background: linear-gradient(135deg, var(--mag), var(--org)); color: #fff; font-weight: 700;
  box-shadow: 0 16px 36px rgba(176, 74, 138, .35); transition: transform .15s;
}
.btn-start:active, .btn-primary:active { transform: scale(.96); }
.btn-start { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 44px 72px; border-radius: 999px; font-size: clamp(1.8rem, 4vw, 3rem); }
.btn-start small { font-size: .55em; font-weight: 600; opacity: .9; }
.pulse-ring { border-radius: 999px; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(176, 74, 138, .45); } 100% { box-shadow: 0 0 0 70px rgba(176, 74, 138, 0); } }
.btn-primary { padding: 22px 46px; border-radius: 20px; font-size: 1.5rem; }
.btn-ghost { align-self: center; padding: 14px 34px; border-radius: 999px; font-size: 1.15rem; background: #fff; border: 1px solid var(--line); color: var(--muted); box-shadow: 0 6px 16px rgba(43, 29, 58, .08); }
.btn-ghost.small { position: absolute; bottom: 2.4vh; left: 50%; transform: translateX(-50%); }

.chips { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.chip { padding: 12px 26px; border-radius: 999px; font-size: 1.3rem; font-weight: 600; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(43, 29, 58, .08); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.plan-day { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--org); box-shadow: var(--shadow); font-size: 1.35rem; }
.plan-day:nth-child(1) { border-left-color: var(--grn); }
.plan-day:nth-child(3) { border-left-color: var(--blu); }
.m-badge { align-self: flex-start; padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--mag), var(--org)); }
.share { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-box { padding: 14px; border-radius: 22px; background: #fff; border: 3px solid var(--mag); }
.qr-box img, .qr-box canvas { display: block; }
.wa { display: flex; gap: 10px; width: 100%; }
.wa input { flex: 1; min-width: 0; padding: 18px 22px; border-radius: 16px; font: inherit; font-size: 1.3rem; color: var(--ink); background: #fff8ee; border: 2px solid var(--line); outline: none; }
.wa input:focus { border-color: var(--mag); }
.wa .btn-primary { padding: 18px 28px; font-size: 1.2rem; }
.err { color: #c62828; }
.check { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; font-size: 4rem; color: #fff; background: linear-gradient(135deg, var(--grn), #5fd08a); box-shadow: 0 14px 40px rgba(27, 154, 72, .4); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .g3 { gap: 12px; }
  .topbar { padding: 12px; }
  .partners figure { width: 64px; height: 46px; }
  .event-logo { height: 90px; }
}

/* ---------------- visitor phone page ---------------- */
body.mobile { padding: 0 16px 40px; }
.m-wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.m-logo { align-self: center; height: 110px; max-width: 80%; object-fit: contain; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mag); font-weight: 600; }
.m-wrap h1 { font-size: 1.9rem; line-height: 1.25; }
.m-hero { width: 100%; border-radius: 22px; display: block; box-shadow: var(--shadow); }
.m-day { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--org); box-shadow: var(--shadow); }
.m-day:nth-of-type(1) { border-left-color: var(--grn); }
.m-day h2 { font-size: 1.25rem; }
.m-day p { color: #4a4058; line-height: 1.65; }
.m-wrap footer { margin-top: 10px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------------- admin / index ---------------- */
body.admin { padding: 32px 20px; }
body.admin main { max-width: 1100px; margin: 0 auto; position: relative; }
body.admin h1 small { color: var(--muted); font-weight: 400; font-size: .55em; margin-left: 10px; }
body.admin a { color: var(--mag); }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 200px; }
.stat span { color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

.welcome { text-align: center; line-height: 1.25; }
.welcome b { display: block; font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 700; color: var(--ink); }
.welcome span { display: block; margin-top: 10px; font-size: clamp(1.3rem, 2.8vw, 2.2rem); color: var(--mag); font-weight: 600; }

.share.solo { align-self: center; width: min(1200px, 94%); flex-direction: row; align-items: center; justify-content: center; gap: 4vw; padding: 4vh 3vw; }
.share-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.share-or { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.share-or::before, .share-or::after { content: ''; flex: 1; width: 2px; background: var(--line); }
.share-or span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--mag), var(--org)); }
.share.solo .wa { flex-direction: column; }
.share.solo .wa input { font-size: 1.6rem; text-align: center; }
.share.solo .wa .btn-primary { width: 100%; }
@media (max-width: 760px) { .share.solo { flex-direction: column; } .share-or { flex-direction: row; } .share-or::before, .share-or::after { width: auto; height: 2px; } }
