/* =====================================================================
   Mind Meadow public site theme (2026)
   Warm, pastel, parent-friendly look. Loaded AFTER premium-design.css on
   every page: it re-points the shared tokens, so inline styles that use
   var(--primary), var(--primary-soft) ... pick up the new palette too.
   ===================================================================== */

:root {
  /* Brand */
  --primary: #1A7A6E;
  --primary-light: #23A091;
  --primary-soft: #E7F6F2;
  --secondary: #FFFFFF;
  --accent: #FFC857;

  /* Warm accents (CTA + illustration colours) */
  --mm-coral: #F2694D;
  --mm-coral-dark: #DB5236;
  --mm-sun: #FFC857;
  --mm-lavender: #8B7CF6;
  --mm-sky: #46A8E0;
  --mm-pink: #F38BB0;
  --mm-leaf: #4CB782;

  /* Pastel surfaces */
  --mm-cream: #FFF9F1;
  --mm-mint: #EAF7F2;
  --mm-lav: #F3F0FF;
  --mm-peach: #FFF0E9;
  --mm-skyl: #EAF5FD;
  --mm-butter: #FFF7DC;

  /* Text */
  --text-dark: #1F2A37;
  --text-muted: #5B6B7A;
  --text-light: #F8FAFC;

  /* Surfaces */
  --bg-main: #FFFCF8;
  --bg-card: #FFFFFF;
  --bg-light: #F7FAF9;
  --mm-border: #ECE6DD;

  --success: #2EAB7B;
  --error: #E5484D;

  /* Type */
  --font-main: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Nunito', 'DM Sans', system-ui, sans-serif;
  --font-serif: var(--font-head); /* old hero headings used this */

  /* Shape */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Soft, warm shadows */
  --shadow-sm: 0 2px 10px rgba(31, 42, 55, .06);
  --shadow-md: 0 12px 32px rgba(31, 42, 55, .09);
  --shadow-lg: 0 24px 60px rgba(26, 122, 110, .14);
  --glass-bg: rgba(255, 255, 255, .92);
  --glass-border: 1px solid var(--mm-border);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main) !important;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-head) !important;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.display-4 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.display-5 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

p { color: inherit; }
.lead { font-size: 1.125rem; font-weight: 400; }
.text-muted { color: var(--text-muted) !important; }

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid rgba(26, 122, 110, .45) !important;
  outline-offset: 2px;
}

::selection {
  background: var(--mm-butter);
  color: var(--text-dark);
}

/* ---------- Bootstrap utility overrides ---------- */
.bg-light { background-color: var(--mm-mint) !important; }
.bg-primary-soft { background-color: var(--primary-soft) !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-warning { color: #F5A524 !important; }
.rounded-4 { border-radius: var(--radius-lg) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow, .shadow-lg { box-shadow: var(--shadow-md) !important; }

/* Eyebrow pills (".badge bg-primary-soft text-primary rounded-pill") */
.badge.rounded-pill {
  font-family: var(--font-head);
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  font-size: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn:active { transform: scale(.98); }

.btn-primary,
.btn-premium {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-head);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(26, 122, 110, .22);
}

.btn-primary:hover,
.btn-premium:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  background: transparent !important;
  border-radius: var(--radius-pill) !important;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

.btn-accent,
.mm-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--mm-coral) !important;
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(242, 105, 77, .3);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn-accent:hover,
.mm-btn-cta:hover {
  background: var(--mm-coral-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(242, 105, 77, .35);
}

.mm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border: 2px solid var(--text-dark);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.mm-btn-ghost:hover {
  background: var(--text-dark);
  color: #fff;
}

/* ---------- Cards ---------- */
.glass-card,
.glass-panel,
.card {
  background: var(--bg-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--mm-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 122, 110, .25) !important;
}

/* ---------- Forms ---------- */
.form-control,
.form-select,
.input-premium {
  border: 1.5px solid var(--mm-border);
  border-radius: 14px;
  padding: .7rem 1rem;
  background-color: #fff;
  color: var(--text-dark);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus,
.input-premium:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 122, 110, .14);
}

.form-label { font-weight: 600; color: var(--text-dark); }

/* =====================================================================
   HEADER
   ===================================================================== */
.mm-topbar {
  background: var(--mm-butter);
  color: var(--text-dark);
  font-size: .875rem;
  padding: 6px 0;
}

.mm-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-topbar a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
}

.mm-topbar a:hover { color: var(--primary); }

.mm-topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.mm-topbar-info i { color: var(--mm-coral); margin-right: 6px; }

.mm-topbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mm-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 10px 0;
  background: rgba(255, 252, 248, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--mm-border);
  transition: box-shadow .2s ease, padding .2s ease;
}

.mm-nav.is-scrolled {
  padding: 6px 0;
  box-shadow: 0 6px 24px rgba(31, 42, 55, .07);
}

.mm-nav .navbar-brand img {
  height: 46px;
  width: auto;
}

.mm-nav .navbar-nav {
  gap: 2px;
}

.mm-nav .nav-link {
  position: relative;
  padding: 8px 14px !important;
  border-radius: var(--radius-pill);
  color: var(--text-dark) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  transition: background-color .15s ease, color .15s ease;
}

.mm-nav .nav-link:hover {
  background: var(--mm-mint);
  color: var(--primary) !important;
}

.mm-nav .nav-link.active,
.mm-nav .nav-link[aria-current="page"] {
  background: var(--mm-mint);
  color: var(--primary) !important;
}

.mm-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-nav-actions .mm-btn-cta { padding: 10px 20px; font-size: .95rem; }

.mm-login {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--mm-border);
  transition: border-color .15s ease, color .15s ease;
}

.mm-login:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* !important beats the older toggler rules in premium-design.css */
.mm-nav .navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--mm-mint) !important;
  color: var(--primary);
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .mm-nav .navbar-collapse {
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--mm-border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
  }

  .mm-nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
  }

  .mm-nav-actions > * { text-align: center; justify-content: center; }
}

@media (max-width: 575.98px) {
  .mm-topbar-info .mm-hide-xs { display: none; }
  .mm-nav .navbar-brand img { height: 38px; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
/* Sticky footer: the page is a column and the spacer before the footer grows
   to fill short pages, so the footer always reaches the bottom of the window. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > * { flex-shrink: 0; }

.mm-footer-spacer {
  flex: 1 0 32px;
}

/* Same brand teal + warm glow as the CTA bands, a touch deeper so footer text stays readable */
.mm-footer {
  position: relative;
  margin-top: 0;
  padding: 72px 0 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 200, 87, .26) 0, transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .08) 0, transparent 40%),
    linear-gradient(160deg, #23A091 0%, #1E8E81 50%, #1A7A6E 100%);
  color: rgba(255, 255, 255, .95);
  border-radius: 48px 48px 0 0;
}

.mm-footer::before {
  /* playful colour strip on the top edge */
  content: "";
  position: absolute;
  left: 48px;
  right: 48px;
  top: 0;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--mm-coral), var(--mm-sun), var(--mm-leaf), var(--mm-sky), var(--mm-lavender));
}

.mm-footer h2,
.mm-footer h3 {
  color: #fff !important;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.mm-footer p { color: rgba(255, 255, 255, .95); }

.mm-footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.mm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-footer li { margin-bottom: 10px; }

.mm-footer a {
  color: rgba(255, 255, 255, .95);
  text-decoration: none;
  transition: color .15s ease;
}

.mm-footer a:hover { color: var(--mm-sun); }

.mm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mm-footer-contact i {
  margin-top: 5px;
  color: var(--mm-sun);
}

.mm-newsletter {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-pill);
}

.mm-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
}

.mm-newsletter input::placeholder { color: rgba(255, 255, 255, .55); }

.mm-newsletter button {
  padding: 10px 18px;
  font-size: .9rem;
  box-shadow: none;
}

.mm-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mm-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .15s ease, transform .15s ease;
}

.mm-social a:hover {
  background: var(--mm-coral);
  color: #fff;
  transform: translateY(-2px);
}

.mm-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: .875rem;
  color: rgba(255, 255, 255, .9);
}

#newsletterMessage .text-success { color: #9BE7C4 !important; }
#newsletterMessage .text-danger { color: #FFB4A6 !important; }

@media (max-width: 767.98px) {
  .mm-footer { border-radius: 32px 32px 0 0; padding-top: 56px; }
  .mm-footer::before { left: 24px; right: 24px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  display: none;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--mm-coral) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(242, 105, 77, .35);
  line-height: 48px;
  text-align: center;
}

/* ---------- Owl carousel dots ---------- */
.owl-dots { text-align: center; margin-top: 12px; }
.owl-dot span {
  width: 10px;
  height: 10px;
  margin: 4px;
  display: inline-block;
  border-radius: 999px;
  background: var(--mm-border);
  transition: width .2s ease, background-color .2s ease;
}
.owl-dot.active span { width: 26px; background: var(--primary); }

/* =====================================================================
   SECTION BUILDING BLOCKS (home page + reusable)
   ===================================================================== */
.mm-section { padding: 88px 0; position: relative; }
.mm-section-sm { padding: 56px 0; }
.mm-bg-cream { background: var(--mm-cream); }
.mm-bg-mint { background: var(--mm-mint); }
.mm-bg-lav { background: var(--mm-lav); }
.mm-bg-peach { background: var(--mm-peach); }
.mm-bg-sky { background: var(--mm-skyl); }

.mm-rounded-section {
  border-radius: 48px;
  margin: 0 16px;
}

.mm-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.mm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--primary);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.mm-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin-bottom: 14px;
}

.mm-highlight {
  position: relative;
  color: var(--primary);
  white-space: nowrap;
}

.mm-highlight::after {
  /* hand-drawn style underline */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.08em;
  height: .32em;
  z-index: -1;
  border-radius: 999px;
  background: var(--mm-sun);
  opacity: .55;
}

.mm-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.mm-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 200, 87, .28) 0, transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(139, 124, 246, .18) 0, transparent 30%),
    radial-gradient(circle at 70% 95%, rgba(70, 168, 224, .14) 0, transparent 30%),
    var(--mm-cream);
}

.mm-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
}

.mm-hero-lead {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.mm-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.mm-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.mm-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.mm-trust-item small {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mm-trust-item a,
.mm-trust-item strong {
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.mm-hero-visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.mm-hero-blob {
  position: absolute;
  inset: 6% -4% -4% 6%;
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: linear-gradient(140deg, var(--mm-sun), #FFE3A3);
  z-index: 0;
}

.mm-hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 40% 60% 46% 54% / 46% 44% 56% 54%;
  border: 8px solid #fff;
  box-shadow: var(--shadow-lg);
}

.mm-float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  animation: mmFloat 5s ease-in-out infinite;
}

.mm-float-card strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.1;
}

.mm-float-card span { font-size: .82rem; color: var(--text-muted); }

.mm-float-card .mm-fc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
}

.mm-float-1 { left: -18px; bottom: 12%; }
.mm-float-2 { right: -10px; top: 10%; animation-delay: 1.2s; }

@keyframes mmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Decorative wave between sections */
.mm-wave {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: -1px;
}

/* ---------- Concern chips (Parentune-style pill filters) ---------- */
.mm-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--mm-border);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.mm-chip i { color: var(--c, var(--primary)); }

.mm-chip:hover {
  transform: translateY(-2px);
  border-color: var(--c, var(--primary));
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* ---------- Stats ---------- */
.mm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mm-stat {
  padding: 24px 20px;
  border-radius: 24px;
  background: var(--c-soft, var(--mm-mint));
  text-align: center;
}

.mm-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--c, var(--primary));
}

.mm-stat-label {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 767.98px) {
  .mm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Service cards ---------- */
.mm-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.mm-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--mm-border);
  color: var(--text-dark);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mm-service:hover {
  transform: translateY(-4px);
  border-color: var(--c, var(--primary));
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
}

.mm-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--c-soft, var(--mm-mint));
  color: var(--c, var(--primary));
  font-size: 1.5rem;
}

.mm-service h3 {
  margin: 6px 0 0;
  font-size: 1.2rem;
}

.mm-service p {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
}

.mm-service-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--c, var(--primary));
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
}

/* Colour themes for cards / chips / stats */
.mm-c-teal { --c: var(--primary); --c-soft: var(--mm-mint); }
.mm-c-coral { --c: var(--mm-coral); --c-soft: var(--mm-peach); }
.mm-c-sun { --c: #D99413; --c-soft: var(--mm-butter); }
.mm-c-lav { --c: var(--mm-lavender); --c-soft: var(--mm-lav); }
.mm-c-sky { --c: var(--mm-sky); --c-soft: var(--mm-skyl); }
.mm-c-pink { --c: #D9588A; --c-soft: #FDEEF4; }
.mm-c-leaf { --c: #2E9A66; --c-soft: #E8F7EF; }

/* ---------- About split ---------- */
.mm-about-img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.mm-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.mm-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--mm-border);
  font-weight: 600;
}

.mm-checklist i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mm-mint);
  color: var(--primary);
  font-size: .85rem;
}

/* ---------- How it works ---------- */
.mm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.mm-step {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--mm-border);
}

.mm-step-num {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--c, var(--primary));
  opacity: .9;
}

.mm-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.mm-step p { margin: 0; color: var(--text-muted); }

@media (max-width: 767.98px) {
  .mm-steps { grid-template-columns: 1fr; }
}

/* ---------- Centres ---------- */
.mm-city-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.mm-city-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--mm-border);
  color: var(--text-dark);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}

.mm-city-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.game-map-container {
  height: clamp(340px, 52vw, 560px) !important;
  border-radius: 40px !important;
}

.pin-body {
  background: linear-gradient(135deg, var(--mm-coral), var(--mm-sun)) !important;
  box-shadow: 0 10px 20px rgba(242, 105, 77, .4), inset 0 2px 0 rgba(255, 255, 255, .5) !important;
}

.map-point:hover .pin-label { color: var(--mm-coral) !important; }

/* ---------- Testimonials ---------- */
.mm-testimonial {
  height: 100%;
  margin: 12px 8px 20px;
  padding: 28px 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--shadow-sm);
}

.mm-stars { color: #F5A524; font-size: .9rem; margin-bottom: 12px; }

.mm-testimonial blockquote {
  margin: 0 0 18px;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mm-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-soft, var(--mm-mint));
  color: var(--c, var(--primary));
  font-family: var(--font-head);
  font-weight: 900;
}

.mm-testimonial-author strong {
  font-family: var(--font-head);
  font-weight: 800;
}

/* Blog toolbar: search + category chips */
.mm-blog-toolbar { text-align: center; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--mm-border) !important;
  background: #fff !important;
  color: var(--text-dark) !important;
  font-family: var(--font-head);
  font-weight: 800 !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.filter-pill:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

.filter-pill.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.blog-card,
.blog-item .card {
  border-radius: 28px !important;
  border: 1px solid var(--mm-border) !important;
  box-shadow: none !important;
}

.blog-card:hover,
.blog-item .card:hover { box-shadow: var(--shadow-md) !important; }

/* Testimonials page: masonry-style wall */
.mm-testimonial-grid {
  column-count: 3;
  column-gap: 20px;
}

.mm-testimonial-grid > * {
  break-inside: avoid;
  margin: 0 0 20px;
}

.mm-testimonial-grid .mm-testimonial blockquote {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

@media (max-width: 991.98px) { .mm-testimonial-grid { column-count: 2; } }
@media (max-width: 575.98px) { .mm-testimonial-grid { column-count: 1; } }

/* ---------- FAQ ---------- */
.mm-faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.mm-faq details {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--mm-border);
  transition: box-shadow .2s ease;
}

.mm-faq details[open] { box-shadow: var(--shadow-sm); }

.mm-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
}

.mm-faq summary::-webkit-details-marker { display: none; }

.mm-faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mm-mint);
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform .2s ease;
}

.mm-faq details[open] summary::after { transform: rotate(45deg); }

.mm-faq .mm-faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
}

/* ---------- CTA band ---------- */
.mm-cta-band {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(24px, 5vw, 64px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 200, 87, .35) 0, transparent 35%),
    radial-gradient(circle at 5% 90%, rgba(255, 255, 255, .12) 0, transparent 40%),
    var(--primary);
  color: #fff;
}

.mm-cta-band h2 { color: #fff !important; margin-bottom: 10px; }
.mm-cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }

.mm-cta-band .mm-btn-ghost {
  border-color: #fff;
  color: #fff;
}

.mm-cta-band .mm-btn-ghost:hover {
  background: #fff;
  color: var(--primary);
}

/* ---------- Reveal on scroll ----------
   Only hidden once js/mm-site.js has added .mm-js to <html>, so content stays
   visible to crawlers and to visitors without JavaScript. */
.mm-js .mm-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.mm-js .mm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .mm-js .mm-reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   INNER PAGES
   ===================================================================== */

/* ---------- Page hero (generated from the PAGES table in apply.js) ---------- */
.mm-page-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 20%, var(--c-soft, var(--mm-mint)) 0, transparent 38%),
    radial-gradient(circle at 92% 30%, rgba(255, 200, 87, .22) 0, transparent 30%),
    var(--mm-cream);
  border-radius: 0 0 48px 48px;
}

.mm-page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  background: var(--c-soft, var(--mm-mint));
  opacity: .8;
  z-index: 0;
}

.mm-page-hero .container { position: relative; z-index: 1; }
.mm-page-hero .mm-eyebrow i { color: var(--c, var(--primary)); }

.mm-page-hero h1 {
  max-width: 860px;
  margin: 0 auto 14px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 900;
}

.mm-page-lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.mm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--text-muted);
}

.mm-breadcrumb li + li::before {
  content: "\203A";
  margin-right: 6px;
  color: #A8B8C2;
}

.mm-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.mm-breadcrumb a:hover { color: var(--primary); }
.mm-breadcrumb [aria-current] { color: var(--text-dark); font-weight: 700; }

@media (max-width: 767.98px) {
  .mm-page-hero { padding: 28px 0 40px; border-radius: 0 0 32px 32px; }
}

/* ---------- Long-form text (policies) ---------- */
.mm-prose-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.mm-toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--mm-border);
}

.mm-toc h2 {
  margin-bottom: 10px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mm-toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: .92rem;
}

.mm-toc a { color: var(--text-dark); text-decoration: none; }
.mm-toc a:hover { color: var(--primary); }

.mm-prose {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--mm-border);
  font-size: 1.02rem;
  line-height: 1.75;
}

.mm-prose h2 {
  scroll-margin-top: 96px;
  margin: 2.2rem 0 .8rem;
  font-size: 1.35rem;
}

.mm-prose h2:first-child { margin-top: 0; }
.mm-prose h3 { margin: 1.4rem 0 .5rem; font-size: 1.1rem; }
.mm-prose p, .mm-prose li { color: #3E4C5A; }
.mm-prose ul, .mm-prose ol { padding-left: 1.3rem; }
.mm-prose li { margin-bottom: .4rem; }
.mm-prose li::marker { color: var(--primary); }
.mm-prose a { font-weight: 600; }

.mm-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mm-mint);
  color: var(--primary);
  font-size: .875rem;
  font-weight: 700;
}

.mm-note {
  margin: 1.5rem 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--c-soft, var(--mm-butter));
  border-left: 4px solid var(--c, var(--mm-sun));
}

.mm-note p:last-child { margin-bottom: 0; }

@media (max-width: 991.98px) {
  .mm-prose-wrap { grid-template-columns: 1fr; gap: 20px; }
  .mm-toc { position: static; }
}

/* ---------- Generic content cards ---------- */
.mm-card {
  height: 100%;
  padding: 28px 26px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--mm-border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mm-card:hover {
  transform: translateY(-3px);
  border-color: var(--c, var(--primary));
  box-shadow: var(--shadow-md);
}

.mm-card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.mm-card p { color: var(--text-muted); margin-bottom: 0; }

.mm-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--c-soft, var(--mm-mint));
  color: var(--c, var(--primary));
  font-size: 1.35rem;
}

.mm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mm-contact-item small {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mm-contact-item a,
.mm-contact-item strong {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mm-contact-item a:hover { color: var(--primary); }

/* ---------- Forms ---------- */
.mm-form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--shadow-sm);
}

.mm-form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.mm-form-card textarea.form-control { min-height: 140px; }

/* ---------- Dynamic listings ---------- */
.mm-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--shadow-sm);
}

.mm-search-bar .form-control,
.mm-search-bar .form-select {
  flex: 1 1 200px;
  border: 0;
  background: var(--bg-light);
}

.mm-empty {
  padding: 48px 20px;
  border-radius: 26px;
  border: 1.5px dashed var(--mm-border);
  background: #fff;
  text-align: center;
  color: var(--text-muted);
}

.mm-empty i {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  color: #A8B8C2;
}

/* Older inner-page banners that still use inline gradients get the new shape */
.container-fluid[style*="var(--primary-soft)"] {
  background: var(--mm-cream) !important;
  border-radius: 0 0 48px 48px !important;
  box-shadow: none !important;
}

/* Older uppercase "kicker" headings above titles become eyebrow pills */
h5.text-uppercase {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary) !important;
  font-size: .8rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  box-shadow: var(--shadow-sm);
}

.table {
  --bs-table-bg: #fff;
  border-color: var(--mm-border);
}

.table > thead th {
  background: var(--mm-mint);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 800;
  border-bottom: 0;
}

/* =====================================================================
   AUTH SCREENS (login / signup / forgot password)
   ===================================================================== */
.mm-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: calc(100vh - 110px);
  background: var(--mm-cream);
}

/* Left welcome panel */
.mm-auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(40px, 5vw, 72px);
  margin: 16px 0 16px 16px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 200, 87, .35) 0, transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(35, 160, 145, .55) 0, transparent 45%),
    linear-gradient(150deg, #1A7A6E 0%, #135E55 100%);
  color: #fff;
}

.mm-auth-aside-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.mm-auth-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  animation: mmFloat 7s ease-in-out infinite;
}

.mm-auth-shape-1 { width: 120px; height: 120px; top: -30px; right: 18%; background: rgba(255, 200, 87, .9); }
.mm-auth-shape-2 { width: 60px; height: 60px; bottom: 12%; right: 8%; background: var(--mm-coral); animation-delay: 1.5s; }
.mm-auth-shape-3 { width: 34px; height: 34px; top: 38%; left: 6%; background: var(--mm-lavender); animation-delay: 3s; }

.mm-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.mm-auth-kicker i { color: var(--mm-sun); }

.mm-auth-aside h1 {
  color: #fff !important;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.mm-auth-intro {
  max-width: 440px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .88);
}

.mm-auth-visual {
  position: relative;
  width: min(100%, 380px);
  margin: 28px 0 26px;
}

.mm-auth-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 32px;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
}

.mm-auth-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
  font-size: .8rem;
  animation: mmFloat 5s ease-in-out infinite;
}

.mm-auth-chip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
}

.mm-auth-chip strong { display: block; font-family: var(--font-head); font-size: .92rem; }
.mm-auth-chip span { color: var(--text-muted); line-height: 1.25; }
.mm-auth-chip-1 { left: -22px; bottom: 18%; }
.mm-auth-chip-1 i { background: var(--mm-coral); }
.mm-auth-chip-2 { right: -26px; top: 12%; animation-delay: 1.6s; }
.mm-auth-chip-2 i { background: var(--mm-lavender); }

.mm-auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.mm-auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.mm-auth-points i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--mm-sun);
}

/* Right: form */
.mm-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) 20px;
}

.mm-auth-card {
  width: 100%;
  max-width: 440px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--shadow-md);
  animation: mmCardIn .5s ease both;
}

@keyframes mmCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mm-auth-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 22px;
}

.mm-auth-card h2 {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.mm-auth-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mm-auth-form {
  display: grid;
  gap: 18px;
}

.mm-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text-dark);
}

.mm-field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mm-input {
  position: relative;
  display: flex;
  align-items: center;
}

.mm-input > i {
  position: absolute;
  left: 16px;
  color: #9AA8B4;
  pointer-events: none;
  transition: color .15s ease;
}

.mm-input input,
.mm-input select {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 44px;
  border: 1.5px solid var(--mm-border);
  border-radius: 16px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none;
}

.mm-input select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235B6B7A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

.mm-input input:hover,
.mm-input select:hover { border-color: #D6CEC2; }

.mm-input input:focus,
.mm-input select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 122, 110, .13);
}

.mm-input:focus-within > i { color: var(--primary); }

.mm-input-btn {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  transition: background-color .15s ease, color .15s ease;
}

.mm-input-btn:hover { background: var(--mm-mint); color: var(--primary); }

.mm-remember { margin: -4px 0 0; }
.mm-remember .form-check-input { cursor: pointer; }
.mm-remember .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.mm-remember .form-check-label { color: var(--text-muted); cursor: pointer; font-size: .92rem; }

.mm-auth-form .mm-btn-cta {
  height: 54px;
  font-size: 1.05rem;
}

.mm-auth-form .mm-btn-cta:disabled {
  opacity: .5;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.mm-auth-link {
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.mm-auth-link:hover { text-decoration: underline; }

.mm-auth-switch {
  margin: 4px 0 0;
  text-align: center;
  color: var(--text-muted);
}

.mm-auth-switch a {
  color: var(--mm-coral);
  font-weight: 800;
  text-decoration: none;
}

.mm-auth-switch a:hover { text-decoration: underline; }

.mm-auth-alert {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #FDECEC;
  color: #B42318;
  font-weight: 600;
  font-size: .92rem;
}

.mm-auth-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--mm-mint);
  color: var(--text-dark);
  font-size: .95rem;
}

.mm-auth-info i { margin-top: 3px; color: var(--primary); }

.mm-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mm-auth-divider::before,
.mm-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mm-border);
}

.mm-auth-back {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
}

.mm-auth-back:hover { color: var(--primary); }

.mm-auth-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--mm-border);
  color: var(--text-muted);
  font-size: .88rem;
}

.mm-auth-help i { color: var(--mm-coral); }
.mm-auth-help a { font-weight: 700; text-decoration: none; }

/* Signup / reset keep their multi-step form markup; restyle it to match login */
.mm-auth-card-wide { max-width: 500px; }

.mm-auth-card .stepper {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 28px !important;
}

.mm-auth-card .stepper::before { display: none; }

.mm-auth-card .stepper-item {
  flex: 1;
  position: relative;
  height: 8px !important;
  width: auto !important;
  border-radius: 999px !important;
  background: var(--mm-border) !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden;
  transition: background-color .3s ease;
}

.mm-auth-card .stepper-item::after { display: none !important; }
.mm-auth-card .stepper-item.active { background: var(--mm-coral) !important; }

.mm-auth-card .form-floating > .form-control,
.mm-auth-card .form-floating > .form-select,
.mm-auth-card .form-control,
.mm-auth-card .form-select {
  border: 1.5px solid var(--mm-border) !important;
  border-radius: 16px !important;
  background-color: var(--bg-light) !important;
}

.mm-auth-card .form-floating > .form-control:focus,
.mm-auth-card .form-floating > .form-select:focus,
.mm-auth-card .form-control:focus,
.mm-auth-card .form-select:focus {
  border-color: var(--primary) !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(26, 122, 110, .13) !important;
}

.mm-auth-card .form-control.is-invalid,
.mm-auth-card .form-select.is-invalid { border-color: var(--error) !important; }

.mm-auth-card .btn.text-white,
.mm-auth-card .btn-primary {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--mm-coral) !important;
  font-family: var(--font-head);
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(242, 105, 77, .28);
}

.mm-auth-card .btn.text-white:hover,
.mm-auth-card .btn-primary:hover { background: var(--mm-coral-dark) !important; }

.mm-auth-card .btn-light {
  border-radius: 999px !important;
  background: #fff !important;
  border: 2px solid var(--mm-border) !important;
}

.mm-auth-card .alert {
  border-radius: 14px !important;
  border: 0 !important;
}

.mm-auth-card .alert-warning { background: var(--mm-butter); color: #7A5200; }
.mm-auth-card .text-success { color: var(--success) !important; }

.mm-auth-card .policy-item.passed { color: var(--success); }
.mm-auth-card .policy-item.passed .policy-icon { background: #E6F6EF; }
.mm-auth-card .strength-seg { border-radius: 999px; }

.mm-auth-card a[style*="2b7a78"],
.mm-auth-card .text-primary { color: var(--primary) !important; }

@media (max-width: 991.98px) {
  .mm-auth { grid-template-columns: 1fr; }
  .mm-auth-aside { display: none; }
}

@media (max-width: 480px) {
  .mm-auth-main { padding: 20px 12px; }
  .mm-auth-card { border-radius: 26px; }
}

/* =====================================================================
   DIRECTORY CARDS (centres, therapists)
   ===================================================================== */
.mm-centre-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--mm-border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mm-centre-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 122, 110, .3);
  box-shadow: var(--shadow-md);
}

.mm-centre-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mm-centre-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--mm-peach);
  color: var(--mm-coral);
  font-size: 1.3rem;
}

.mm-centre-hours {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mm-mint);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
}

.mm-centre-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.mm-centre-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: .95rem;
}

.mm-centre-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mm-centre-meta i {
  margin-top: 4px;
  width: 16px;
  color: var(--primary-light);
}

.mm-centre-meta a {
  color: var(--text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mm-centre-meta a:hover { color: var(--primary); }

.mm-centre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--mm-border);
}

.mm-centre-actions > * {
  flex: 1 1 140px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.mm-centre-actions .mm-btn-cta:disabled {
  opacity: .5;
  transform: none;
  box-shadow: none;
}

.mm-search-bar .mm-btn-cta { padding: 10px 22px; box-shadow: none; }

/* ---------- Therapist cards ---------- */
.mm-doc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 20px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--mm-border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mm-doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--c, var(--primary));
  box-shadow: var(--shadow-md);
}

.mm-doc-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Round avatar. !important beats the page's older .img-container rule
   (min-height: 250px; height: 100%) that stretched it to the card height. */
.mm-doc-photo {
  position: relative;
  flex: 0 0 64px;
  width: 64px !important;
  height: 64px !important;
  min-height: 0 !important;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-soft, var(--mm-mint)) !important; /* beats the colour the image loader sets */
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--mm-border);
}

.mm-doc-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-doc-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--c, var(--primary));
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
}

.mm-doc-id { min-width: 0; }

.mm-doc-id h2 {
  margin: 0 0 2px;
  font-size: 1.15rem;
}

.mm-doc-id p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.35;
}

.mm-doc-exp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mm-butter);
  color: #8A5A00;
  font-size: .78rem;
  font-weight: 700;
}

.mm-doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mm-doc-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-soft, var(--mm-mint));
  color: var(--c, var(--primary));
  font-size: .78rem;
  font-weight: 700;
}

.mm-doc-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .9rem;
}

.mm-doc-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mm-doc-facts span { color: var(--text-muted); }

.mm-doc-facts strong {
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mm-doc-fee {
  color: var(--mm-coral);
  font-family: var(--font-head);
  font-weight: 900 !important;
}

.mm-doc-social {
  display: flex;
  gap: 8px;
}

.mm-doc-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: .85rem;
}

.mm-doc-social a:hover { background: var(--mm-mint); color: var(--primary); }

.mm-doc-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--mm-border);
}

.mm-doc-actions > * {
  flex: 1;
  padding: 10px 14px;
  font-size: .92rem;
}

.mm-doc-actions .mm-btn-ghost { border-width: 1.5px; border-color: var(--mm-border); }
.mm-doc-actions .mm-btn-ghost:hover { border-color: var(--text-dark); }

/* Therapists search + filters (existing markup) */
.search-section .input-premium {
  border-radius: 999px !important;
  border: 1px solid var(--mm-border) !important;
  box-shadow: var(--shadow-sm);
}

.search-section .btn-premium { height: 100%; min-height: 52px; }

#filter-badges .badge,
#filter-badges span {
  margin: 0 6px 6px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mm-mint) !important;
  color: var(--primary) !important;
  font-weight: 700;
}

.modal-content {
  border-radius: 28px !important;
  border: 0 !important;
  overflow: hidden;
}

.modal-header[style*="var(--primary)"] {
  background: var(--mm-cream) !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid var(--mm-border);
}

.modal-header[style*="var(--primary)"] .btn-close-white { filter: none; }
.modal-header .modal-title { font-family: var(--font-head); font-weight: 800; }

.list-group-item-action {
  border-radius: 16px !important;
  border: 1px solid var(--mm-border) !important;
}

.list-group-item-action:hover { background: var(--mm-mint); }

/* =====================================================================
   DETAIL PAGES (clinic, therapist, job, booking, job application)
   Content is filled in by page scripts; these rules restyle the containers.
   ===================================================================== */

/* Job detail: header was "bg-light text-white", unreadable once bg-light became mint */
#job-detail { background: var(--mm-cream) !important; }

#job-detail .card {
  border-radius: 32px !important;
  overflow: hidden;
  border: 1px solid var(--mm-border) !important;
  box-shadow: var(--shadow-md) !important;
}

#job-detail .card-header {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 200, 87, .35) 0, transparent 35%),
    var(--primary) !important;
  color: #fff !important;
  border: 0;
  padding: 32px !important;
}

#job-detail .card-header h1,
#job-detail .card-header .h4 { color: #fff !important; }

#job-detail .card-header .badge {
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
  font-weight: 700;
}

/* ---------- Therapist profile ---------- */
.mm-profile {
  padding: 32px 0 16px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 200, 87, .22) 0, transparent 28%),
    radial-gradient(circle at 0% 8%, rgba(26, 122, 110, .10) 0, transparent 30%),
    var(--mm-cream);
}

.mm-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--shadow-md);
}

.mm-profile-photo {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mm-mint);
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--mm-sun);
}

.mm-profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 900;
}

.mm-profile-id h1 {
  margin: 0 0 4px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
}

.mm-profile-qual {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.mm-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-pb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-soft, var(--mm-mint));
  color: var(--c, var(--primary));
  font-size: .82rem;
  font-weight: 700;
}

.mm-pb.mm-c-sun { color: #8A5A00; }

.mm-profile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-profile-panel {
  transform: none !important;
}

.mm-profile-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mm-profile-panel h2 i { color: var(--mm-coral); font-size: 1.1rem; }

.mm-profile-about { color: #3E4C5A; line-height: 1.75; }
.mm-profile-about p:last-child { margin-bottom: 0; }

.mm-profile-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mm-profile-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mm-profile-facts small {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mm-profile-facts strong { font-weight: 600; overflow-wrap: anywhere; }

.mm-pf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--c-soft);
  color: var(--c);
}

.mm-profile-services {
  display: grid;
  gap: 10px;
}

.mm-ps-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--bg-light);
  border: 1px solid var(--mm-border);
  transition: border-color .15s ease, background-color .15s ease;
}

.mm-ps-row:hover { border-color: rgba(26, 122, 110, .3); background: #fff; }

.mm-ps-info strong { display: block; font-family: var(--font-head); font-weight: 800; }

.mm-ps-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: .9rem;
}

.mm-ps-info span i { color: var(--primary-light); }

.mm-ps-fee {
  color: var(--mm-coral);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  white-space: nowrap;
}

.mm-ps-fee s {
  margin-left: 4px;
  color: #A8B8C2;
  font-size: .85rem;
  font-weight: 600;
}

.mm-ps-book { padding: 9px 20px; box-shadow: none; }

@media (max-width: 991.98px) {
  .mm-profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mm-profile-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .mm-profile-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .mm-profile-badges { justify-content: center; }
  .mm-profile-cta { justify-content: center; }
  .mm-profile-photo { width: 112px; height: 112px; }

  .mm-ps-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mm-ps-book { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Booking checkout ---------- */
.mm-booking {
  padding: 28px 0 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 200, 87, .22) 0, transparent 28%),
    radial-gradient(circle at 0% 10%, rgba(26, 122, 110, .10) 0, transparent 30%),
    var(--mm-cream);
}

/* 3-step progress */
.mm-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
  max-width: 560px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  color: var(--text-muted);
}

.mm-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mm-progress li + li::before {
  content: "";
  width: clamp(18px, 6vw, 56px);
  height: 2px;
  margin-right: 4px;
  border-radius: 2px;
  background: var(--mm-border);
}

.mm-progress span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--mm-border);
  font-size: .85rem;
}

.mm-progress .done { color: var(--primary); }
.mm-progress .done span { background: var(--primary); border-color: var(--primary); color: #fff; }
.mm-progress .done + li::before,
.mm-progress .current::before { background: var(--primary); }
.mm-progress .current { color: var(--text-dark); }
.mm-progress .current span { background: var(--mm-coral); border-color: var(--mm-coral); color: #fff; }

@media (max-width: 575.98px) {
  .mm-progress { font-size: 0; gap: 4px; }
  .mm-progress span { font-size: .85rem; }
}

/* Summary */
.mm-booking-summary {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--shadow-md);
}

.mm-bs-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--mm-border);
}

.mm-bs-head small,
.mm-bs-facts small {
  display: block;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mm-bs-photo {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mm-mint);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mm-sun);
}

.mm-bs-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-bs-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
}

.mm-bs-facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mm-bs-facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mm-bs-facts li > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--mm-mint);
  color: var(--primary);
  font-size: .9rem;
}

.mm-bs-facts strong { font-weight: 700; overflow-wrap: anywhere; }

/* Fee markup comes from the page script with inline colours; restyle it */
.mm-bs-fee span[style*="black"] {
  color: var(--mm-coral) !important;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900 !important;
}

.mm-bs-fee s { color: #A8B8C2 !important; font-weight: 600; margin-right: 4px; }

.mm-bs-fee span[style*="green"] {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #E8F7EF;
  color: #2E9A66 !important;
  font-size: .78rem !important;
  font-weight: 800;
}

.mm-bs-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--mm-butter);
  color: #6B5200;
  font-size: .86rem;
}

.mm-bs-note i { margin-top: 3px; color: #D99413; }

/* Picker card */
.mm-booking-card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--shadow-md);
}

.mm-bc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.mm-bc-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mm-mint);
  color: var(--primary);
  font-size: .8rem;
}

.mm-date-input {
  margin-bottom: 14px;
}

.mm-date-input .form-control {
  border-radius: 14px 0 0 14px !important;
  background: var(--bg-light);
}

.mm-date-input .input-group-text {
  border: 1.5px solid var(--mm-border);
  border-left: 0;
  border-radius: 0 14px 14px 0 !important;
  background: var(--bg-light);
  color: var(--primary);
  cursor: pointer;
}

.mm-date-table { width: 100%; }
.mm-date-table th { padding: 0 0 10px; }

.mm-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  border-radius: 16px;
  background: var(--mm-mint);
}

.mm-month-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
  transition: background-color .15s ease, color .15s ease;
}

.mm-month-nav button:hover { background: var(--primary); color: #fff; }

#tb-month {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--primary);
}

/* Date buttons generated by the script: <div class="row"> of .selected-dates */
#available-dates-data { display: block; }

#available-dates-data .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
}

.selected-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 8px 4px;
  border: 1.5px solid var(--mm-border);
  border-radius: 14px;
  background: #fff;
  color: var(--text-dark);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.selected-dates.col { flex: unset; max-width: unset; }
.selected-dates:hover { border-color: var(--primary); color: var(--primary); }

.selected-dates.current-date {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

/* Time slots generated by the script: buttons with .time-chip */
.slots-avl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slots-avl > p { grid-column: 1 / -1; margin: 0; color: var(--text-muted); }

.mm-slot-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1.5px dashed var(--mm-border);
}

.time-chip {
  padding: 10px 8px !important;
  border: 1.5px solid var(--mm-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  font-size: .85rem !important;
  box-shadow: none !important;
}

.time-chip:hover {
  border-color: var(--mm-coral) !important;
  color: var(--mm-coral) !important;
}

.time-chip.active {
  border-color: var(--mm-coral) !important;
  background: var(--mm-coral) !important;
  color: #fff !important;
}

.mm-booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--mm-border);
}

.mm-booking-actions .mm-btn-cta:disabled {
  opacity: .45;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  .mm-booking-summary { position: static; }
}

/* Older checkout card markup (kept for safety) */
#booking-checkout .glass-card {
  border-radius: 32px !important;
  border: 1px solid var(--mm-border) !important;
  box-shadow: var(--shadow-md) !important;
}

.profile-image-container {
  border-radius: 40% 60% 46% 54% / 46% 44% 56% 54% !important;
  border: 6px solid #fff !important;
  box-shadow: var(--shadow-md) !important;
}

/* Job application form */
.application-wrapper { background: var(--mm-cream); }

.modern-card {
  border-radius: 32px !important;
  border: 1px solid var(--mm-border) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

.card-header-custom {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 200, 87, .35) 0, transparent 35%),
    var(--primary) !important;
}

.form-section-title {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--text-dark) !important;
}

.form-section-title i { color: var(--mm-coral) !important; }

/* Clinic detail: rating stars and back button */
#clinic-name { font-weight: 900; }

/* =====================================================================
   LOCATION PAGES (top-psychologist-in-*.html, best-psychologist-in-india.html)
   Existing local content restyled through the .mm-local wrapper.
   ===================================================================== */
.mm-breadcrumb-left { justify-content: flex-start; }

.mm-local {
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 200, 87, .22) 0, transparent 26%),
    radial-gradient(circle at 4% 10%, rgba(26, 122, 110, .10) 0, transparent 30%),
    var(--mm-cream) !important;
}

.mm-local h1 {
  color: var(--text-dark) !important;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem) !important;
  font-weight: 900;
}

.mm-local h2 {
  color: var(--text-dark) !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.mm-local .lead { color: var(--text-muted); }

.mm-local .btn-lg { padding: 12px 26px; }

/* Hero image */
.mm-local .row.mb-5 img.img-fluid,
.mm-local .col-lg-6 > img.img-fluid {
  border-radius: 36px !important;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}

/* Service cards: ".card-body border rounded shadow-sm" */
.mm-local .card-body.border {
  padding: 24px !important;
  border: 1px solid var(--mm-border) !important;
  border-radius: 24px !important;
  background: #fff;
  box-shadow: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mm-local .card-body.border:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 122, 110, .3) !important;
  box-shadow: var(--shadow-md) !important;
}

.mm-local .card-body .rounded-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0 !important;
  border-radius: 18px !important;
}

.mm-local .card-body .rounded-circle i { font-size: 1.35rem !important; }

/* Bootstrap colour circles -> pastel tiles with coloured icons */
.mm-local .card-body .bg-primary   { background: var(--mm-mint) !important; }
.mm-local .card-body .bg-success   { background: #E8F7EF !important; }
.mm-local .card-body .bg-warning   { background: var(--mm-butter) !important; }
.mm-local .card-body .bg-danger    { background: var(--mm-peach) !important; }
.mm-local .card-body .bg-info      { background: var(--mm-skyl) !important; }
.mm-local .card-body .bg-secondary { background: var(--mm-lav) !important; }
.mm-local .card-body .bg-primary i   { color: var(--primary) !important; }
.mm-local .card-body .bg-success i   { color: #2E9A66 !important; }
.mm-local .card-body .bg-warning i   { color: #D99413 !important; }
.mm-local .card-body .bg-danger i    { color: var(--mm-coral) !important; }
.mm-local .card-body .bg-info i      { color: var(--mm-sky) !important; }
.mm-local .card-body .bg-secondary i { color: var(--mm-lavender) !important; }

/* Check lists */
.mm-local .list-unstyled li { padding-left: 2px; }
.mm-local .fa-check-circle { color: var(--primary) !important; }

/* "Popular searches" side box */
.mm-local .bg-white.border.rounded {
  border: 1px solid var(--mm-border) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

/* Contact card + map */
.mm-local .card.border-0 {
  border-radius: 32px !important;
  overflow: hidden;
  box-shadow: var(--shadow-md) !important;
}

.mm-local iframe {
  display: block;
  width: 100% !important;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.mm-local .card-title { color: var(--text-dark); }
.mm-local h5.text-primary { font-family: var(--font-head); }
