/* =====================================================================
   AGNI PUJA – BOOKING PLATFORM STYLES
   Adds the components for booking, login, dashboards and the new
   homepage sections. Uses the colours and fonts from styles.css, so the
   look stays the same everywhere.
   ===================================================================== */

/* ---------- Header additions ---------- */
.account { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em .45em .55em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--maroon);
  font: 500 .92rem var(--font-body); cursor: pointer; white-space: nowrap; transition: border-color .2s;
}
.account-btn:hover { border-color: var(--saffron); }
.account-btn > svg { width: 20px; height: 20px; color: var(--saffron-dark); }
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: .6em .8em; border-radius: 8px;
  border: 0; background: none; font: 400 .92rem var(--font-body); color: var(--ink); cursor: pointer; text-align: left;
}
.account-menu a:hover, .account-menu button:hover { background: var(--cream-2); color: var(--maroon); }
.account-menu svg { color: var(--saffron-dark); }
.account-who { margin: 0 0 6px; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.account-who strong { display: block; color: var(--maroon); }
.account-who small { color: var(--ink-soft); font-size: .78rem; word-break: break-all; }

/* ---------- Generic UI ---------- */
.btn-danger { background: #b3261e; color: var(--white); }
.btn-danger:hover { background: #8f1d17; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; box-shadow: none; }

.badge {
  display: inline-flex; align-items: center; gap: .35em; padding: .25em .75em; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; background: var(--cream-2); color: var(--ink-soft); white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-green { background: #e3f5ea; color: #17733b; }
.badge-red { background: #fde7e5; color: #a1251c; }
.badge-maroon { background: #f4e3e5; color: var(--maroon); }
.badge-gold { background: var(--gold-soft); color: #7a5b12; }
.badge-saffron { background: var(--saffron-soft); color: var(--saffron-dark); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream-2); border: 1px solid var(--line); font-size: .9rem; color: var(--ink); margin: 0 0 16px; }
.notice > svg { color: var(--saffron-dark); margin-top: .2em; }
.notice-warn { background: #fff6e8; border-color: #f2d7a6; }
.notice-ok { background: #edf8f1; border-color: #bfe4cc; }
.notice-ok > svg { color: #17733b; }
.notice p { margin: 0; }
.hint { font-size: .85rem; color: var(--ink-soft); }
.hint svg { color: var(--saffron-dark); vertical-align: -.15em; margin-right: 4px; }
.muted { color: var(--ink-soft); }
.demo-note { font-size: .78rem; color: var(--ink-soft); background: var(--gold-soft); border-radius: 8px; padding: 6px 10px; display: inline-flex; gap: 6px; align-items: center; }

/* Form fields – same look as the enquiry form */
.form { display: grid; gap: 14px; }
.field { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); }
.field > .input, .field > input, .field > select, .field > textarea { display: block; margin-top: 6px; }
.field .req { color: var(--saffron-dark); }
.input, .form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea {
  width: 100%; padding: .75em .9em; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  font: 400 .95rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; min-height: 46px;
}
.form textarea { resize: vertical; min-height: 0; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(226,113,29,.18); }
.input[readonly], .form input[readonly] { background: var(--cream-2); color: var(--ink-soft); }
.form .invalid, .input.invalid { border-color: #c0392b; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--saffron); flex-shrink: 0; }
.phone-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
fieldset.group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px 18px; margin: 0; background: var(--white); }
fieldset.group legend { font: 700 1.15rem var(--font-head); color: var(--maroon); padding: 0 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--white); isolation: isolate; overflow: hidden; }
.page-hero .hero-bg { background-position: center, center 45%, center; }
.page-hero .container { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .25em; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 60ch; margin: 0; }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { display: none; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.section-sm { padding: 56px 0; }

/* ---------- Homepage: Today's Panchang ---------- */
.panchang-band { background: var(--cream-2); padding: 0 0 48px; }
.panchang {
  position: relative; margin-top: -40px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg); padding: 26px 28px 20px;
}
.pg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-head .eyebrow { margin-bottom: .3em; }
.pg-head .eyebrow::before { display: none; }
.pg-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0; }
.pg-sub { margin: 2px 0 0; color: var(--saffron-dark); font-weight: 500; font-size: .92rem; }
.pg-controls { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pg-controls .input { width: auto; min-height: 38px; padding: .4em .7em; font-size: .9rem; }
.pg-controls .icon-btn { width: 38px; height: 38px; }
.pg-controls .icon-btn[disabled] { opacity: .4; cursor: not-allowed; }
.pg-special {
  position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 520px;
  padding: 22px 18px 14px; border-radius: var(--radius-sm); background: linear-gradient(115deg, #fff6e8, var(--gold-soft)); border: 1px solid #ecd39a;
}
.pg-special .ribbon { top: -11px; left: 14px; }
.pg-special div { flex: 1; min-width: 180px; }
.pg-special strong { font: 700 1.3rem/1.2 var(--font-head); color: var(--maroon); }
.pg-special p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); }
.pg-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.pg-item { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid rgba(234, 223, 206, .8); }
.pg-item span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.pg-item strong { display: block; font: 700 1.12rem/1.25 var(--font-head); color: var(--maroon); margin-top: 2px; }
/* Nalla Neram: a green row under the panchang boxes */
.pg-nalla {
  display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm); background: #f1f9f3; border: 1px solid #cfe9d7;
}
.pg-nalla-label { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #17733b; }
.pg-nalla-times { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.pg-nalla-times strong {
  font: 600 .95rem var(--font-body); color: #14632f; font-variant-numeric: tabular-nums;
  background: var(--white); border: 1px solid #cfe9d7; border-radius: 999px; padding: .2em .8em; white-space: nowrap;
}
.pg-nalla small { flex-basis: 100%; font-size: .74rem; color: var(--ink-soft); }
/* Chandrashtamam: same row style, in amber */
.pg-ashtama { background: #fff6e8; border-color: #f2d7a6; }
.pg-ashtama .pg-nalla-label { color: #9a5a00; }
.pg-ashtama-text { flex: 1; min-width: 200px; font-size: .9rem; color: var(--ink); line-height: 1.5; }
.pg-ashtama-text strong { color: var(--maroon); font-weight: 600; }
.pg-ashtama-text em { font-style: normal; color: var(--ink-soft); font-size: .82rem; }
/* Timings in the body font: clearer numbers than the heading font */
.pg-item.pg-time strong { font-family: var(--font-body); font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 4px; }
.pg-item small { display: block; font-size: .76rem; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; }
.pg-next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pg-next > span { white-space: nowrap; flex-shrink: 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-dark); margin-right: 4px; }
.pg-next .chip { font-size: .82rem; padding: .45em 1em; }
.pg-next .chip strong { color: var(--maroon); font-weight: 600; margin-right: 4px; }
.pg-note { margin: 12px 0 0; font-size: .78rem; }
@media (max-width: 1080px) { .pg-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .panchang { padding: 20px 16px 16px; margin-top: -28px; }
  .pg-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pg-special { max-width: none; width: 100%; }
  .pg-next { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .pg-next .chip { flex-shrink: 0; }
}

/* ---------- Homepage: two service categories ---------- */
.service-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card { display: flex; flex-direction: column; }
.service-card:hover { transform: none; }
.service-card .media { aspect-ratio: 16 / 8; }
.service-card .card-body { padding: 28px 30px 30px; }
.service-card h3 { font-size: 1.9rem; display: flex; align-items: center; gap: 12px; }
.service-card h3 .feature-icon { width: 52px; height: 52px; margin: 0; }
.service-card h3 .feature-icon svg { width: 24px; height: 24px; }
.service-card .benefits { margin-bottom: 22px; }
.service-card .card-actions .btn { flex: 1; }
.service-label { position: absolute; left: 16px; top: 16px; z-index: 1; }
.price-from { font-size: .88rem; color: var(--ink-soft); margin: -6px 0 14px; }
.price-from strong { color: var(--maroon); font-size: 1.05rem; }

/* Prices switched off in js/pujas-data.js (site.showPrices: false) */
.hide-prices .price-from, .hide-prices .price-table, .hide-prices .price-approx,
.hide-prices [data-price] { display: none !important; }
/* Keep the faces in view when this photo is cropped to a wide card */
.media img[src$="upanayanam.jpg"] { object-position: center top; }
.card-price { font-size: .85rem; color: var(--ink-soft); margin: -4px 0 14px; }
.card-price strong { color: var(--maroon); }

/* ---------- Featured pujas ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--gold); }
.featured-card .media { aspect-ratio: 16 / 10; }
.featured-card .media > svg { width: 22%; height: 22%; }
.featured-card .card-body { padding: 22px 24px 24px; }
.featured-card h3 { font-size: 1.7rem; margin-bottom: .2em; }
.ribbon {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .85em; border-radius: 999px; background: var(--maroon); color: var(--gold); border: 1px solid var(--gold);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.mode-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.featured-card .card-actions .btn-primary { flex: 1; }

/* ---------- NRI section ---------- */
.nri-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.nri-band .eyebrow::before { display: none; }
.nri-band p { color: var(--ink-soft); }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.country-chips .chip { display: inline-flex; align-items: center; gap: .45em; }
.flag { font-size: 1.1em; line-height: 1; }
.nri-panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 26px 22px; }
.nri-panel h3 { margin-bottom: .3em; }
.clock-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.clock { background: var(--cream-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.clock span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.clock strong { font: 700 1.6rem/1.2 var(--font-head); color: var(--maroon); }
.clock small { color: var(--ink-soft); font-size: .8rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .92rem; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list svg { color: var(--saffron); margin-top: .25em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative;
  font: 700 1.2rem/1.3 var(--font-head); color: var(--maroon);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--saffron-soft); color: var(--saffron-dark); font: 500 1.2rem/1 var(--font-body);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* How it works – 6 steps */
.steps.steps-6 { grid-template-columns: repeat(6, 1fr); }
.steps.steps-6::before { left: 8%; right: 8%; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; color: var(--white); isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; }
.auth-side .hero-bg { background-position: center, center, center; }
.auth-side-inner { padding: 48px; max-width: 520px; }
.auth-side h2 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.auth-side p { color: rgba(255,255,255,.85); }
.auth-side .tick-list { color: rgba(255,255,255,.9); }
.auth-side .tick-list svg { color: var(--gold); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 2.4rem; margin-bottom: .15em; }
.auth-card > p { color: var(--ink-soft); }
.btn-google {
  width: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.btn-google:hover { border-color: var(--ink-soft); }
.btn-google svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-soft); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-2); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.tabs button { border: 0; background: none; padding: .7em 1em; border-radius: 999px; font: 500 .92rem var(--font-body); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5em; }
.tabs button.active { background: var(--white); color: var(--maroon); box-shadow: 0 2px 8px rgba(110,26,36,.1); }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-boxes input { text-align: center; font-size: 1.3rem !important; font-weight: 600 !important; padding: .55em 0 !important; }
.link-btn { background: none; border: 0; padding: 0; color: var(--saffron-dark); font: 500 .88rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn[disabled] { color: var(--ink-soft); text-decoration: none; cursor: default; }
.auth-foot { font-size: .8rem; color: var(--ink-soft); text-align: center; margin-top: 18px; }

/* ---------- Booking wizard ---------- */
.stepper { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: st; }
.stepper li { position: relative; padding-top: 44px; text-align: center; font-size: .8rem; color: var(--ink-soft); counter-increment: st; }
.stepper li::before {
  content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); color: var(--ink-soft);
  font: 700 1.1rem var(--font-head); z-index: 1;
}
.stepper li::after { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--line); }
.stepper li:first-child::after { display: none; }
.stepper li.done::before { content: "✓"; background: var(--saffron); border-color: var(--saffron); color: var(--white); font-family: var(--font-body); font-size: .9rem; }
.stepper li.done::after, .stepper li.current::after { background: var(--saffron); }
.stepper li.current { color: var(--maroon); font-weight: 600; }
.stepper li.current::before { border-color: var(--saffron); color: var(--saffron-dark); box-shadow: 0 0 0 4px var(--saffron-soft); }

.wizard { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.wizard-main { min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: .2em; }
.panel-intro { color: var(--ink-soft); margin-bottom: 22px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.wizard-nav .btn-primary { margin-left: auto; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%;
  padding: 22px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--white);
  font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.choice:hover { border-color: var(--saffron); }
.choice.selected { border-color: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); }
.choice.selected::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--saffron); color: var(--white); display: grid; place-items: center; font-size: .8rem; }
.choice .feature-icon { width: 54px; height: 54px; margin-bottom: 6px; }
.choice strong { font: 700 1.45rem/1.2 var(--font-head); color: var(--maroon); }
.choice p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.choice .tick-list { margin: 8px 0 0; font-size: .84rem; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pick {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--white); font: inherit; color: inherit; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.pick:hover { border-color: var(--saffron); }
.pick.selected { border-color: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); }
.pick .media { aspect-ratio: 16 / 9; }
.pick .media > svg { width: 22%; height: 22%; }
.pick-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.pick-body strong { font: 700 1.2rem/1.2 var(--font-head); color: var(--maroon); }
.pick-body span { font-size: .84rem; color: var(--ink-soft); }
.pick-body b { color: var(--saffron-dark); font-weight: 600; }
.pick .ribbon { top: 8px; left: 8px; font-size: .62rem; }

.date-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: end; margin-bottom: 14px; }
.quick-dates { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-dates .chip { padding: .55em 1em; font-size: .84rem; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--white); font: inherit; color: inherit; cursor: pointer; text-align: center;
  transition: border-color .2s, background-color .2s;
}
.slot strong { font-size: 1rem; color: var(--maroon); font-weight: 600; }
.slot small { font-size: .74rem; color: var(--ink-soft); }
.slot .slot-status { font-size: .72rem; color: #17733b; }
.slot .badge { margin-top: 4px; font-size: .64rem; padding: .15em .6em; }
.slot:hover:not([disabled]) { border-color: var(--saffron); }
.slot.selected { border-color: var(--saffron); background: var(--saffron-soft); }
.slot[disabled] { cursor: not-allowed; background: var(--cream-2); opacity: .7; }
.slot[disabled] strong { color: var(--ink-soft); }
.slot[disabled] .slot-status { color: var(--ink-soft); }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary .panel { padding: 22px; }
.summary h3 { font-size: 1.5rem; }
.summary-puja { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.summary-puja .media { aspect-ratio: 1; border-radius: 10px; }
.summary-puja .media > svg { width: 40%; height: 40%; }
.summary-puja strong { display: block; font: 700 1.2rem/1.2 var(--font-head); color: var(--maroon); }
.kv { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .88rem; }
.kv li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; }
.kv svg { color: var(--saffron-dark); margin-top: .25em; }
.price-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 4px; }
.price-table td { padding: 7px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.price-table td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.price-table small { display: block; color: var(--ink-soft); font-size: .76rem; }
.price-table tr.total td { border-bottom: 0; padding-top: 12px; font-weight: 600; font-size: 1rem; color: var(--maroon); }
.price-approx { text-align: right; font-size: .8rem; color: var(--ink-soft); margin: 0; }

.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pay-methods .choice { padding: 14px 16px; flex-direction: row; align-items: center; gap: 10px; }
.pay-methods .choice strong { font: 500 .95rem var(--font-body); color: var(--ink); }
.pay-methods .choice svg { color: var(--saffron-dark); width: 22px; height: 22px; }
.pay-methods .choice.selected::after { top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.review-box { background: var(--cream-2); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; }
.review-box h4 { font-size: 1.1rem; margin: 0 0 .3em; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.review-box p { margin: 0; color: var(--ink-soft); }
.processing { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; text-align: center; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--saffron-soft); border-top-color: var(--saffron); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.confirm-head { text-align: center; padding: 10px 0 20px; }
.confirm-head h2 { margin-bottom: .1em; }
.booking-id { font: 700 1.3rem var(--font-head); color: var(--saffron-dark); letter-spacing: .04em; }
.channels { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.meet-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius-sm); border: 2px dashed var(--gold); background: #fffaf0; margin-bottom: 16px; }
.meet-box code { font-size: .82rem; word-break: break-all; color: var(--maroon); }

/* ---------- Puja detail page ---------- */
.puja-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.puja-layout .media { aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-bottom: 28px; }
.puja-layout .details-meta { margin: 20px 0; }
.price-card h3 { margin-bottom: .6em; }
.price-opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price-opt:last-of-type { border-bottom: 0; }
.price-opt strong { font: 700 1.6rem var(--font-head); color: var(--maroon); }
.price-opt span { display: flex; flex-direction: column; font-size: .9rem; }
.price-opt small { color: var(--ink-soft); font-size: .78rem; }
.price-card .btn { margin-top: 10px; }
.include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }

/* ---------- Dashboards ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: .7em .9em; border-radius: 10px; font-size: .93rem; color: var(--ink-soft); font-weight: 500; }
.dash-nav a svg { color: var(--saffron-dark); width: 18px; height: 18px; }
.dash-nav a:hover { color: var(--maroon); background: var(--cream-2); }
.dash-nav a.active { background: var(--maroon); color: var(--white); }
.dash-nav a.active svg { color: var(--gold); }
.dash-nav .count { margin-left: auto; font-size: .72rem; background: var(--saffron-soft); color: var(--saffron-dark); border-radius: 999px; padding: .1em .6em; }
.dash-nav a.active .count { background: rgba(255,255,255,.15); color: var(--white); }
.dash-main { min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.dash-head p { margin: 0; color: var(--ink-soft); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.kpi span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.kpi strong { font: 700 1.9rem/1.2 var(--font-head); color: var(--maroon); }
.kpi small { display: block; color: var(--ink-soft); font-size: .78rem; }

.bk { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: start; }
.bk + .bk { margin-top: 14px; }
.bk-date { text-align: center; background: var(--cream-2); border-radius: var(--radius-sm); padding: 10px 6px; line-height: 1.15; }
.bk-date b { display: block; font: 700 1.9rem/1 var(--font-head); color: var(--maroon); }
.bk-date span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.bk h3 { font-size: 1.4rem; margin: 0 0 .2em; }
.bk-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bk-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-soft); }
.bk-meta li { display: flex; gap: 8px; align-items: flex-start; }
.bk-meta svg { color: var(--saffron-dark); margin-top: .25em; }
.bk-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 150px; }
.empty { text-align: center; padding: 48px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.empty .feature-icon { margin-bottom: 10px; }
.empty h3 { margin-bottom: .2em; }

.track { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.track li { position: relative; text-align: center; font-size: .72rem; color: var(--ink-soft); padding-top: 22px; }
.track li::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); z-index: 1; }
.track li::after { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.on { color: var(--maroon); font-weight: 600; }
.track li.on::before { background: var(--saffron); border-color: var(--saffron); }
.track li.on::after { background: var(--saffron); }

.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; padding: 12px 14px; background: var(--cream-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table td strong { color: var(--maroon); font-weight: 600; }
.table td small { display: block; color: var(--ink-soft); font-size: .78rem; }
.table .input, .table select { min-height: 38px; padding: .45em .6em; font-size: .85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--white); font-family: var(--font-body); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table td .row-actions { min-width: 190px; }
.table select.input { max-width: 170px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--maroon); cursor: pointer; }
.icon-btn:hover { border-color: var(--saffron); color: var(--saffron-dark); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; min-width: 180px; flex: 1; max-width: 320px; }
.toolbar select.input { flex: 0 1 auto; }
.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 90px; gap: 12px; align-items: center; font-size: .86rem; }
.bar-row span:last-child { text-align: right; color: var(--maroon); font-weight: 600; }
.bar { height: 12px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--saffron), var(--maroon)); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.days label { cursor: pointer; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line); font-size: .76rem; background: var(--white); }
.days input:checked + span { background: #fde7e5; border-color: #f0b8b3; color: #a1251c; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.addr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .9rem; }
.addr h4 { font-size: 1.15rem; margin-bottom: .3em; display: flex; justify-content: space-between; gap: 8px; }
.addr p { color: var(--ink-soft); margin: 0 0 10px; }
.admin-gate { max-width: 520px; margin: 0 auto; text-align: center; }

/* Toasts */
.toasts { position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--maroon-dark); color: var(--white); box-shadow: var(--shadow-lg); font-size: .9rem; animation: pop .2s ease-out; transition: opacity .3s, transform .3s; }
.toast svg { color: var(--gold); margin-top: .2em; }
.toast-error { background: #8f1d17; }
.toast-sms { background: #23303a; }
.toast.out { opacity: 0; transform: translateY(8px); }
.modal-wide { max-width: 760px; }
.modal .slot-grid { grid-template-columns: repeat(4, 1fr); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
.main-nav a { white-space: nowrap; }
.hero h1 { max-width: 17ch; }
/* More menu links now, so the existing mobile menu is used up to 1180px */
@media (max-width: 1180px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 22px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(110,26,36,.1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: .8em 1em; font-size: 1rem; border-radius: 10px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; }
  .main-nav a.nav-cta-mobile { color: var(--white); }
  .main-nav a.nav-cta-mobile:hover { color: var(--white); }
  .menu-toggle { display: block; }
}
@media (max-width: 1080px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid > :last-child { grid-column: span 2; }
  .wizard { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .summary .panel { padding: 16px 18px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-6 { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps.steps-6::before { display: none; }
}
@media (max-width: 920px) {
  .service-split, .nri-band, .puja-layout, .auth-wrap { grid-template-columns: 1fr; }
  .nri-band { gap: 32px; }
  .auth-side { min-height: 220px; }
  .auth-side-inner { padding: 28px 20px; }
  .auth-side .tick-list { display: none; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .dash-nav a { white-space: nowrap; flex-shrink: 0; }
  .steps.steps-6 { grid-template-columns: 1fr; row-gap: 0; }
  .steps.steps-6::before { display: block; }
  .header-actions .account-btn span:not(.avatar) { display: none; }
  .header-actions .account-btn { padding: 6px; border: 0; background: none; }
  .header-actions .account-btn > svg { width: 26px; height: 26px; }
  .split-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid > :last-child { grid-column: auto; }
  .service-card .card-body { padding: 22px 20px; }
  .service-card h3 { font-size: 1.6rem; }
  .service-card .card-actions { flex-direction: column; align-items: stretch; }
  .panel { padding: 22px 18px; }
  .choice-grid, .review-grid, .include-grid, .form-row-3 { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(6, 1fr); }
  .stepper li { font-size: 0; padding-top: 34px; }
  .stepper li.current { font-size: .72rem; }
  .stepper li.current span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .stepper li::before { width: 30px; height: 30px; font-size: .95rem; }
  .stepper li::after { top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); }
  .date-row { grid-template-columns: 1fr; }
  .quick-dates { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .quick-dates .chip { flex-shrink: 0; }
  .slot-grid, .modal .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .pick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pick-body strong { font-size: 1.05rem; }
  .wizard-nav .btn { flex: 1; }
  .bk { grid-template-columns: 64px 1fr; padding: 16px; gap: 14px; }
  .bk-date b { font-size: 1.5rem; }
  .bk-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .bk-actions .btn { flex: 1; }
  .kpi strong { font-size: 1.5rem; }
  .bar-row { grid-template-columns: 1fr 70px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .clock-pair { grid-template-columns: 1fr; }
  .page-hero .container { padding-top: 40px; padding-bottom: 40px; }
  .auth-main { padding: 32px 16px 48px; }
  .phone-row { grid-template-columns: 96px 1fr; }
  .toolbar .input { max-width: none; min-width: 0; flex: 1 1 100%; }
  .track li { font-size: .62rem; }
}

/* =====================================================================
   TRANSLATED PAGES (e.g. Chrome / Google Translate to Tamil)
   Translated words are often much longer, so let text wrap instead of
   running off the screen. `translated-ltr` is added by the translator.
   ===================================================================== */
body { overflow-wrap: break-word; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
/* Grid and flex items may shrink below their longest word */
.pg-grid > *, .features > *, .steps > *, .occasion-grid > *, .service-split > *, .featured-grid > *,
.card-grid > *, .homam-list > *, .testimonial-grid > *, .footer-grid > *, .review-grid > *,
.choice-grid > *, .pick-grid > *, .slot-grid > *, .kpis > *, .addr-grid > *, .form-row > *, .form-row-3 > * { min-width: 0; }
.pg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-item.pg-time strong { white-space: normal; }
@media (max-width: 640px) {
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { white-space: normal; text-align: center; }
  .hero-buttons .btn { flex: 1 1 100%; }
}
.translated-ltr .btn, .translated-ltr .badge, .translated-ltr .chip, .translated-ltr .main-nav a,
.translated-ltr .account-btn, .translated-ltr .tabs button { white-space: normal; text-align: center; }
.translated-ltr h1, .translated-ltr h2, .translated-ltr h3, .translated-ltr h4 { line-height: 1.3; }
.translated-ltr .hero h1 { font-size: clamp(1.65rem, 5vw, 3rem); max-width: none; }
.translated-ltr .page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.translated-ltr h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.translated-ltr .service-card h3 { font-size: 1.5rem; }
.translated-ltr .brand-name { font-size: 1.3rem; }
.translated-ltr .brand-tag { letter-spacing: .04em; }

/* ---------- Admin: Share Panchang ---------- */
.share-layout { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
.share-preview canvas { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--cream-2); }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-actions .btn { white-space: normal; text-align: center; }
.share-side textarea { font-size: .85rem; line-height: 1.5; }
@media (max-width: 920px) { .share-layout { grid-template-columns: 1fr; } .share-preview { max-width: 440px; margin: 0 auto; width: 100%; } }
@media (max-width: 640px) { .share-actions { grid-template-columns: 1fr; } }

/* Reviews: single invite card until real reviews are added */
.testimonial-grid.testimonial-invite { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; text-align: center; }
.testimonial-invite .btn { align-self: center; }
