/* Basic tweaks for embed-friendly, mobile-first UI */
body {
  background-color: #f8f9fa;
}

.calendar {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: #fff;
  overflow: hidden;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cal-month {
  font-weight: 600;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0.5rem;
}

.cal-dow {
  text-align: center;
  font-size: 0.75rem;
  color: #6c757d;
  padding-bottom: 0.25rem;
}

.cal-day {
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
  cursor: pointer;
  user-select: none;
}

.cal-day:hover { background-color: #f1f3f5; }

.cal-day.disabled {
  color: #adb5bd;
  cursor: not-allowed;
}

.cal-day.other-month { color: #adb5bd; }

.cal-day.selected {
  background-color: rgba(13, 110, 253, 0.1);
  outline: 1px solid rgba(13, 110, 253, 0.4);
}

.cal-day .date-num { font-weight: 500; }

.cal-day .slot-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #198754; /* green shows slot availability */
  margin-left: 6px;
}

.slot-chips {
  min-height: 2.25rem;
}

.slot-chip {
  white-space: nowrap;
}

.slot-chip.active,
.slot-chip:focus {
  outline: none;
}

.selectable-card {
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.selectable-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

/* Brand theming */
:root {
  --brand-color: #B85BC4;
}

.header{
  padding: 1rem;
  background-color: var(--brand-color);
  color: #ffffff;
}

.btn-primary {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #a34db0;
  border-color: #a34db0;
  color: #ffffff;
}
.btn-outline-primary {
  color: var(--brand-color);
  border-color: var(--brand-color);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  color: #ffffff;
}

.selectable-card.selected {
  border-color: var(--brand-color) !important;
  background-color: var(--brand-color) !important;
  box-shadow: 0 0.25rem 0.75rem rgba(184, 91, 196, 0.25);
}

#paymentImageWrapper img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

#upidDisplay {
  color: #495057;
}

#upidDisplay .upi-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #f8f9fa;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  display: inline-block;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Small helpers for alerts spacing */
#alerts > .alert {
  margin-bottom: 0.5rem;
}

/* Centered initial choice section */
.choice-hero {
  min-height: 40vh;
  display: grid;
  place-items: center;
}

/* Rate card gradient theme */
.rate-card-section {
  background: linear-gradient(120deg, #0d6efd 0%, #6610f2 100%);
  color: #fff;
}
.rate-card-section .card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}
.rate-card-section .card-title,
.rate-card-section .card-text,
.rate-card-section .text-muted { color: #fff !important; opacity: 0.95; }
.rate-card-section .text-white-50 { color: rgba(255,255,255,0.7) !important; }

.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.brand-logo {
  width: 90px;
  margin-left: 0.35rem;
}

/* Full-page loading overlay to block UI interactions */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2000; /* above page content and backdrops */
  pointer-events: all; /* capture all pointer events */
}
.loading-overlay .loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
