/* DevPitra — Book Purohit page (everything below the hero banner).
   Brand palette: maroon #6E1E1E, gold #FDB813, cream #FDF6E9. */
.bp {
  --bp-maroon: #6E1E1E;
  --bp-maroon-dk: #521414;
  --bp-gold: #FDB813;
  --bp-cream: #FDF6E9;
  --bp-sand: #f3e3c3;
  --bp-line: #eedfc6;
  --bp-ink: #2d2320;
  --bp-muted: #6b5b4e;
  color: var(--bp-ink);
  padding-bottom: 8px;
}
.bp *, .bp *::before, .bp *::after { box-sizing: border-box; }
.bp a { color: var(--bp-maroon); }

.bp-intro, .bp-finder, .bp-grid, .bp-block > *, .bp-cta {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Intro ---------- */
.bp-intro { text-align: center; padding: 48px 0 28px; }
.bp-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b8860b;
}
.bp-intro h1 {
  margin: 0 0 12px;
  color: var(--bp-maroon);
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.15;
  text-wrap: balance;
}
.bp-lead { margin: 0 auto; max-width: 720px; color: var(--bp-muted); font-size: 16px; line-height: 1.65; }
.bp-trust {
  list-style: none;
  margin: 24px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.bp-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--bp-maroon); }
.bp-trust-ic {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bp-cream); border: 1px solid var(--bp-line); color: var(--bp-maroon);
}
.bp-trust-ic b { font-size: 15px; }

/* ---------- Finder ---------- */
.bp-finder {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(110, 30, 30, .07);
  padding: 18px 20px 14px;
  margin-bottom: 28px;
}
.bp-finder-fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.bp-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-field[hidden] { display: none; }
.bp-field span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bp-muted); }
.bp-field input, .bp-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--bp-line);
  border-radius: 10px;
  background: var(--bp-cream);
  font: inherit;
  font-size: 15px;
  color: var(--bp-ink);
}
.bp-field input:focus, .bp-field select:focus { outline: none; border-color: var(--bp-gold); background: #fff; box-shadow: 0 0 0 3px rgba(253, 184, 19, .25); }
.bp-clear {
  height: 46px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid var(--bp-maroon); background: transparent; color: var(--bp-maroon);
  font: inherit; font-weight: 700; cursor: pointer;
}
.bp-clear:hover { background: var(--bp-maroon); color: #fff; }
.bp-count { margin: 12px 0 0; font-size: 14px; color: var(--bp-muted); font-weight: 600; }

/* ---------- Pandit cards ---------- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 380px));
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}
.bp-card {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(60, 30, 10, .06);
  transition: transform .2s, box-shadow .2s;
  min-width: 0;
}
.bp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(110, 30, 30, .12); }
.bp-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bp-cream), var(--bp-sand));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bp-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.bp-initials { font-size: 54px; font-weight: 800; color: var(--bp-maroon); opacity: .8; }
.bp-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #1f7a3d;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.bp-card-body { padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bp-card-body h3 { margin: 0; font-size: 19px; color: var(--bp-maroon); line-height: 1.25; }
.bp-place { margin: -4px 0 0; display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--bp-muted); }
.bp-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--bp-line); border-radius: 10px; overflow: hidden; }
.bp-facts div { padding: 8px 10px; background: var(--bp-cream); min-width: 0; }
.bp-facts div + div { border-left: 1px solid var(--bp-line); }
.bp-facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9a7d5f; }
.bp-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--bp-ink); overflow-wrap: anywhere; }
.bp-bio { margin: 0; font-size: 14px; line-height: 1.55; color: #4c403a; font-style: italic; }
.bp-pujas-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9a7d5f; margin-bottom: -4px; }
.bp-pills, .bp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-pills span { padding: 4px 10px; border-radius: 999px; background: var(--bp-cream); border: 1px solid var(--bp-line); color: var(--bp-maroon); font-size: 12px; font-weight: 700; }
.bp-pills span.is-match { background: var(--bp-gold); border-color: var(--bp-gold); color: #3a2400; }
.bp-pills .bp-more { background: transparent; border-style: dashed; color: var(--bp-muted); }
.bp-tags span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #1f6f8b; }
.bp-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bp-card-foot { padding: 14px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bp-card-foot .dp-btn { width: 100%; padding: 13px 12px; border-radius: 10px; font-size: 15px; }
.bp a.dp-btn-outline { color: var(--bp-maroon); }
.bp a.dp-btn-outline:hover { color: #fff; }
a.bp-card-media { display: grid; text-decoration: none; }
.bp-card-body h3 a { color: inherit; text-decoration: none; }
.bp-card-body h3 a:hover { text-decoration: underline; }

.bp-request {
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--bp-maroon) 0%, var(--bp-maroon-dk) 100%);
  border: none;
  color: #fbeee0;
  justify-content: center;
  gap: 12px;
}
.bp-request:hover { transform: none; }
.bp-request-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(253, 184, 19, .18); }
.bp-request h3 { margin: 0; font-size: 22px; color: #fff; }
.bp-request p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #f1dcc8; }
.bp-request ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bp-request li { display: flex; gap: 8px; font-size: 14px; color: #fff; }
.bp-request li::before { content: "✓"; color: var(--bp-gold); font-weight: 900; }
.bp-request .dp-btn { margin-top: 6px; padding: 13px 20px; border-radius: 10px; font-size: 15px; }

.bp-skel { min-height: 420px; border-radius: 16px; background: linear-gradient(90deg, #f6ede0 25%, #fbf5ec 50%, #f6ede0 75%); background-size: 200% 100%; animation: bp-shimmer 1.3s infinite linear; }
@keyframes bp-shimmer { to { background-position: -200% 0; } }

/* ---------- Content blocks ---------- */
.bp-block { padding: 64px 0; }
.bp-grid + .bp-block { margin-top: 48px; border-top: 1px solid var(--bp-line); }
.bp-block-tint { background: linear-gradient(180deg, #fdf8ef, var(--bp-cream)); border-block: 1px solid var(--bp-line); }
.bp-head { text-align: center; margin-bottom: 32px; }
.bp-head h2 { margin: 0; color: var(--bp-maroon); font-size: clamp(24px, 3.2vw, 32px); text-wrap: balance; }
.bp-head > p:not(.bp-eyebrow) { margin: 10px auto 0; max-width: 620px; color: var(--bp-muted); line-height: 1.6; }
.bp-center { text-align: center; margin-top: 28px; }

.bp-steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.bp-steps li { position: relative; padding: 24px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--bp-line); }
.bp-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -21px; width: 22px; border-top: 2px dashed var(--bp-gold);
}
.bp-step-no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bp-gold); color: #3a2400; font-weight: 900; font-size: 17px; margin-bottom: 14px; }
.bp-steps h3 { margin: 0 0 6px; font-size: 17px; color: var(--bp-maroon); }
.bp-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bp-muted); }

.bp-pujas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bp-puja {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--bp-line);
  text-decoration: none; transition: border-color .2s, transform .2s;
  min-width: 0;
}
.bp-puja:hover { border-color: var(--bp-gold); transform: translateY(-2px); }
.bp-puja-cat { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b8860b; }
.bp-puja strong { font-size: 16px; color: var(--bp-maroon); line-height: 1.3; }
.bp-puja-hi { font-size: 14px; color: var(--bp-muted); }
.bp-puja-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; font-size: 18px; font-weight: 900; color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.bp-puja-price small { font-size: 13px; font-weight: 800; color: var(--bp-maroon); }

.bp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bp-why > div { padding: 22px 20px; border-left: 3px solid var(--bp-gold); background: #fff; border-radius: 0 12px 12px 0; box-shadow: 0 4px 14px rgba(60, 30, 10, .05); }
.bp-why h3 { margin: 0 0 8px; font-size: 17px; color: var(--bp-maroon); }
.bp-why p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bp-muted); }

.bp-faq { max-width: 820px; display: grid; gap: 12px; }
.bp-faq details { background: #fff; border: 1px solid var(--bp-line); border-radius: 12px; padding: 0 20px; }
.bp-faq details[open] { border-color: #e6c88e; }
.bp-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 800; font-size: 15.5px; color: var(--bp-maroon); }
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: #b8860b; }
.bp-faq details[open] summary::after { content: "−"; }
.bp-faq details p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: #4c403a; }

/* ---------- CTA ---------- */
.bp-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 64px 0 16px; }
.bp-cta-card { padding: 32px; border-radius: 18px; }
.bp-cta-card h2 { margin: 0 0 8px; font-size: 24px; }
.bp-cta-card p { margin: 0 0 20px; line-height: 1.6; }
.bp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-cta-help { background: linear-gradient(135deg, var(--bp-maroon), var(--bp-maroon-dk)); color: #f1dcc8; }
.bp-cta-help h2 { color: #fff; }
.bp-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.bp-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.bp a.bp-btn-ghost { color: #fff; }
.bp-cta-join { background: var(--bp-cream); border: 1px solid var(--bp-line); color: var(--bp-muted); }
.bp-cta-join h2 { color: var(--bp-maroon); }
.bp a.dp-btn-primary { color: var(--bp-cream); }

/* Booking modal tweaks */
#pandit-booking-overlay .dp-modal { max-height: calc(100vh - 32px); overflow-y: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bp-steps, .bp-pujas, .bp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-steps li::after { display: none; }
  .bp-cta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bp-intro { padding: 32px 0 20px; }
  .bp-lead { font-size: 15px; }
  .bp-trust { justify-content: flex-start; flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
  .bp-finder { padding: 16px; }
  .bp-clear { width: 100%; }
  .bp-block { padding: 44px 0; }
  .bp-steps, .bp-why { grid-template-columns: 1fr; }
  .bp-pujas { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bp-puja { padding: 14px; }
  .bp-puja strong { font-size: 15px; }
  .bp-puja-price { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 16px; }
  .bp-cta { padding: 44px 0 8px; }
  .bp-cta-card { padding: 24px 20px; }
  .bp-cta-actions .dp-btn { flex: 1 1 100%; }
  .dp-form-row { grid-template-columns: 1fr; }
}
