/**
 * Muhurat catalog service detail — hero + booking card (design reference: marketing hero + form).
 * Hero headline: offering title + short description when set; else static marketing line.
 * Packages, prices, kundli, pandit: dynamic from offering.
 */

:root {
  --muhurat-hero-orange: #ff5700;
  --muhurat-hero-orange-soft: rgba(255, 87, 0, 0.08);
  --muhurat-hero-bg-top: #faf9f7;
  --muhurat-hero-bg-bottom: #f5f3f0;
  --muhurat-hero-check: #22a06b;
}

.muhurat-hero {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(255, 87, 0, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, var(--muhurat-hero-bg-top) 0%, var(--muhurat-hero-bg-bottom) 100%);
  padding: 2rem 0 3rem;
}

@media (min-width: 992px) {
  .muhurat-hero {
    padding: 2.75rem 0 4rem;
  }
}

.muhurat-hero__sparkle {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 1rem;
  line-height: 0;
}

.muhurat-hero__sparkle svg {
  width: 22px;
  height: 22px;
}

.muhurat-hero__title {
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.45rem);
  line-height: 1.2;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.muhurat-hero__title-emoji {
  display: inline-block;
  margin-right: 0.2em;
  font-style: normal;
}

.muhurat-hero__highlight {
  color: var(--muhurat-hero-orange);
}

.muhurat-hero__lead {
  font-size: 1.05rem;
  color: #4a4a4a;
  line-height: 1.55;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

/* Admin short description (TinyMCE) under hero title */
.muhurat-hero__short {
  font-size: 1.02rem;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.muhurat-hero__short p:last-child {
  margin-bottom: 0;
}

.muhurat-hero__short p {
  margin-bottom: 0.75rem;
}

.muhurat-hero__short ul:not(.muhurat-hero__features),
.muhurat-hero__short ol {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}

.muhurat-hero__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.muhurat-hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.98rem;
  color: #333;
  margin-bottom: 0.65rem;
}

.muhurat-hero__features li:last-child {
  margin-bottom: 0;
}

.muhurat-hero__features .bi-check-circle-fill {
  color: var(--muhurat-hero-check);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.muhurat-hero__stats {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  width: min(100%, 34rem);
  overflow: hidden;
}

.muhurat-hero__stat {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 1rem 0.5rem;
  border-right: 1px solid #eceae6;
}

.muhurat-hero__stat:last-child {
  border-right: 0;
}

.muhurat-hero__stat-val {
  display: block;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  color: var(--muhurat-hero-orange);
  line-height: 1.2;
  word-break: break-word;
}

.muhurat-hero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.25rem;
  text-transform: none;
}

/* Booking card (overflow visible so /search-location dropdown is not clipped) */
.muhurat-booking-card {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.muhurat-booking-card .card-inner {
  padding: 1.5rem 1.35rem 1.75rem;
}

.muhurat-booking-form .suggestion_birth ul {
  z-index: 1050;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid #e8e8e8;
}

@media (min-width: 992px) {
  .muhurat-booking-card.sticky-lg-top {
    top: 1rem;
  }
}

.muhurat-booking-part {
  margin-bottom: 0;
}

.muhurat-booking-part + .muhurat-booking-part {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px dashed #e2e0dc;
}

.muhurat-booking-step-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muhurat-hero-orange);
  margin-bottom: 0.4rem;
}

.muhurat-booking-card__section-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111;
  margin-bottom: 1rem;
}

.muhurat-booking-card__section-title--compact {
  margin-bottom: 0.65rem;
}

.muhurat-pkg-option-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.muhurat-pkg-option-wrap:last-of-type {
  margin-bottom: 0;
}

.muhurat-pkg-option__box {
  display: block;
  margin: 0;
  padding: 1rem;
  border: 1px solid #e2e0dc;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.muhurat-pkg-option__box:has(.form-check-input:checked) {
  border-color: var(--muhurat-hero-orange);
  background: var(--muhurat-hero-orange-soft);
  box-shadow: 0 0 0 1px var(--muhurat-hero-orange);
}

.muhurat-pkg-option__badge {
  position: absolute;
  top: -0.4rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--muhurat-hero-orange);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  line-height: 1.2;
}

.muhurat-pkg-option__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.muhurat-pkg-option__name {
  font-weight: 600;
  color: #111;
  font-size: 0.98rem;
}

.muhurat-pkg-option__price {
  font-weight: 700;
  color: var(--muhurat-hero-orange);
  font-size: 1rem;
  white-space: nowrap;
}

.muhurat-pkg-option__desc {
  display: block;
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.muhurat-pkg-option__compare {
  font-size: 0.78rem;
  color: #999;
}

.muhurat-hero-cta {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff !important;
  background: var(--muhurat-hero-orange) !important;
  box-shadow: 0 6px 20px rgba(255, 87, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.muhurat-hero-cta:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.muhurat-hero-cta--pill {
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
}

.muhurat-kundli-next-btn {
  display: block;
  width: 100%;
  border: 2px solid var(--muhurat-hero-orange);
  background: #fff;
  color: var(--muhurat-hero-orange);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.muhurat-kundli-next-btn:hover {
  background: var(--muhurat-hero-orange-soft);
  color: #e04d00;
  box-shadow: 0 4px 14px rgba(255, 87, 0, 0.15);
}

.muhurat-back-step {
  color: #64748b !important;
}

.muhurat-back-step:hover {
  color: var(--muhurat-hero-orange) !important;
}

.muhurat-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #777;
}

.muhurat-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.muhurat-detail-section {
  background: #fff;
}

.muhurat-detail-section .content-body {
  color: #333;
}

@media (max-width: 767.98px) {
  .muhurat-hero__stats {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .muhurat-hero__stats {
    max-width: none;
    border-radius: 16px;
  }

  .muhurat-hero__stat {
    flex: 1 1 50%;
    min-width: 7rem;
    box-sizing: border-box;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }

  .muhurat-hero__stat:nth-child(2n) {
    border-right: 0;
  }
}

/* Mobile: booking card first (order-* in layout), touch-friendly, iOS input zoom fix */
#muhurat_booking_form.muhurat-booking-form {
  scroll-margin-top: 5rem;
}

/* Mobile: booking card hidden until hero CTA (or validation re-open) */
@media (max-width: 991.98px) {
  .muhurat-booking-mobile-wrap:not(.is-open) {
    display: none !important;
  }
}

.muhurat-hero-mobile-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.95rem 1.15rem;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  background: var(--muhurat-hero-orange) !important;
  box-shadow: 0 8px 24px rgba(255, 87, 0, 0.35);
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

@media (max-width: 991.98px) {
  .muhurat-hero-mobile-cta {
    display: flex;
  }
}

.muhurat-hero-mobile-cta:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.muhurat-hero-mobile-cta:active {
  transform: scale(0.99);
}

.muhurat-hero-mobile-cta__icon {
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .muhurat-hero {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .muhurat-booking-card--mobile {
    border-radius: 16px;
  }

  .muhurat-booking-card--mobile .card-inner {
    padding: 1.15rem 1rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }

  /* Minimum ~48px touch targets (WCAG 2.5.5) */
  .muhurat-hero-cta,
  .muhurat-kundli-next-btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .muhurat-pkg-option__box {
    min-height: 3.25rem;
    padding: 1rem 0.9rem;
  }

  .muhurat-pkg-option__box .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
  }

  .muhurat-booking-form .form-control,
  .muhurat-booking-form .form-select,
  .muhurat-booking-form .form-control-sm,
  .muhurat-booking-form .form-select-sm {
    font-size: 1rem;
    min-height: 2.75rem;
    line-height: 1.4;
  }

  .muhurat-booking-form textarea.form-control,
  .muhurat-booking-form textarea.form-control-sm {
    min-height: 5.5rem;
  }

  .muhurat-back-step {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0;
  }

  .muhurat-booking-part + .muhurat-booking-part {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .muhurat-booking-card__section-title {
    font-size: 1.08rem;
  }
}
