/* ============================================================
   MY COMFORT — Comfort Medcare brand
   Palette: #060D1A navy · #1A5FAD blue · #fff white · #F4F7FC bg
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────── */

.mc-body { background: #F4F7FC; }

.mc-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 100px;
  min-height: calc(100vh - 58px);
}

/* ── Top bar ────────────────────────────────────────────── */

.mc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 40px;
}
.mc-topbar-spacer { width: 80px; flex-shrink: 0; }

.mc-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #1A5FAD;
  background: transparent; border: none; cursor: pointer;
  padding: 8px 14px 8px 6px; border-radius: 100px;
  transition: background 0.15s; min-width: 80px; flex-shrink: 0;
  font-family: inherit;
}
.mc-back:hover { background: rgba(26,95,173,0.08); }
.mc-back i { font-size: 10px; }

.mc-steps { display: flex; align-items: center; gap: 8px; }
.mc-step {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(6,13,26,0.20);
  transition: color 0.3s; white-space: nowrap;
}
.mc-step.active { color: #1A5FAD; }
.mc-step.done   { color: rgba(26,95,173,0.45); }
.mc-step-sep    { font-size: 7px; color: rgba(0,0,0,0.15); }

/* ── Screen transitions ─────────────────────────────────── */

.mc-screen { display: none; }
.mc-screen.active {
  display: block;
  animation: mcSlideUp 0.42s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes mcSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mc-anim {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.mc-anim.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   SCREEN 0 — Category selection
══════════════════════════════════════════════════════════ */

.mc-intro-header { text-align: center; padding: 40px 0 56px; }

.mc-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #1A5FAD; margin-bottom: 20px;
}

.mc-title {
  font-size: clamp(30px, 5vw, 52px); font-weight: 800; color: #060D1A;
  letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 16px;
}

.mc-subtitle {
  font-size: 16px; line-height: 1.70; color: rgba(6,13,26,0.40);
  max-width: 440px; margin: 0 auto;
}

/* Category grid */
.mc-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.mc-cat-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid rgba(6,13,26,0.07);
  border-radius: 14px; padding: 18px 20px; cursor: pointer;
  text-align: left; width: 100%;
  box-shadow: 0 1px 8px rgba(6,13,26,0.04);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.2s;
}
.mc-cat-card:hover {
  border-color: #1A5FAD; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,95,173,0.12);
}
.mc-cat-card:active { transform: translateY(0); }

.mc-cat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
  background: #EEF4FF; color: #1A5FAD;
  transition: background 0.2s, color 0.2s;
}
.mc-cat-card:hover .mc-cat-icon { background: #1A5FAD; color: #fff; }

.mc-cat-info { flex: 1; min-width: 0; }
.mc-cat-info strong {
  display: block; font-size: 14px; font-weight: 700;
  color: #060D1A; margin-bottom: 2px; letter-spacing: -0.01em;
}
.mc-cat-info span {
  font-size: 11.5px; color: rgba(6,13,26,0.35);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mc-cat-chev {
  font-size: 10px; color: rgba(6,13,26,0.18); flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}
.mc-cat-card:hover .mc-cat-chev { transform: translateX(3px); color: #1A5FAD; }

/* ══════════════════════════════════════════════════════════
   SCREEN 1 — Options
══════════════════════════════════════════════════════════ */

.mc-q-header { padding: 0 0 30px; }

.mc-cat-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; border: 1.5px solid;
  border-radius: 100px; padding: 5px 14px; margin-bottom: 20px;
}

.mc-q-title {
  font-size: clamp(24px, 3.8vw, 36px); font-weight: 800; color: #060D1A;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 8px;
}

.mc-q-hint { font-size: 13px; color: rgba(6,13,26,0.35); }

/* Options grid */
.mc-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.mc-opt-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; background: #fff; border: 1px solid rgba(6,13,26,0.07);
  border-radius: 14px; padding: 20px 18px 18px; cursor: pointer;
  text-align: left; width: 100%; font-size: 13px; font-weight: 600;
  color: #060D1A; line-height: 1.4;
  box-shadow: 0 1px 8px rgba(6,13,26,0.04);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.2s;
  font-family: inherit;
}
.mc-opt-card:hover {
  border-color: #1A5FAD; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,95,173,0.12);
}
.mc-opt-card:active { transform: translateY(0); box-shadow: none; }

.mc-opt-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #EEF4FF; color: #1A5FAD;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.mc-opt-card:hover .mc-opt-icon { background: #1A5FAD; color: #fff; }

/* ══════════════════════════════════════════════════════════
   SCREEN 2 — Results header
══════════════════════════════════════════════════════════ */

.mc-results-header { padding: 8px 0 32px; }

.mc-res-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #1A5FAD; margin-bottom: 10px;
}

.mc-res-title {
  font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; color: #060D1A;
  letter-spacing: -0.03em; line-height: 1.05;
}

/* ══════════════════════════════════════════════════════════
   PRESCRIPTION CARD
══════════════════════════════════════════════════════════ */

.mc-rx-card {
  background: #060D1A; border-radius: 24px;
  padding: 28px 30px 26px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(6,13,26,0.25), 0 4px 16px rgba(6,13,26,0.12);
}

.mc-rx-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 60% at 0% 110%, rgba(26,95,173,0.20) 0%, transparent 65%);
  pointer-events: none;
}

.mc-rx-scan-line {
  position: absolute; left: 0; right: 0; height: 1.5px; top: 0; opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(91,158,232,0.90) 50%, transparent 100%);
}
.mc-rx-card.scanning .mc-rx-scan-line { animation: mcScanLine 1.5s ease-out forwards; }
@keyframes mcScanLine {
  0%   { top: 0;    opacity: 1; }
  80%  { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

.mc-rx-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.mc-rx-seal {
  display: flex; align-items: center; gap: 8px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.mc-rx-seal i { font-size: 14px; color: #5B9EE8; }
.mc-rx-date { font-size: 10.5px; color: rgba(255,255,255,0.18); letter-spacing: 0.04em; }

.mc-rx-rule { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 22px; }

.mc-rx-treatment-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.28);
  margin-bottom: 10px;
}
.mc-rx-t-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.mc-rx-treatment-name {
  font-size: 34px; font-weight: 800; color: #fff;
  letter-spacing: -0.035em; line-height: 1.0; margin-bottom: 10px;
}
.mc-rx-treatment-desc {
  font-size: 14px; line-height: 1.80; color: rgba(255,255,255,0.48);
}

.mc-rx-checklist {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 9px;
}
.mc-rx-checklist li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255,255,255,0.42);
}
.mc-rx-checklist i { color: #5B9EE8; font-size: 12px; flex-shrink: 0; }

.mc-notes-wrap { margin-top: 22px; }
.mc-notes-label {
  display: block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); margin-bottom: 9px;
}
.mc-notes-label span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.mc-notes {
  width: 100%; min-height: 90px; border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 14px 16px; font-family: inherit;
  font-size: 14px; color: #fff; background: rgba(255,255,255,0.05);
  resize: vertical; transition: border-color 0.2s; box-sizing: border-box;
}
.mc-notes::placeholder { color: rgba(255,255,255,0.18); }
.mc-notes:focus { outline: none; border-color: rgba(91,158,232,0.65); }

.mc-rx-note {
  background: rgba(26,95,173,0.10);
  border: 1px solid rgba(91,158,232,0.18);
  border-left: 3px solid #1A5FAD;
  border-radius: 16px; padding: 20px 22px; margin-top: 22px;
}
.mc-rx-note-dr { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mc-rx-note-photo-wrap {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 0 4px rgba(26,95,173,0.22);
}
.mc-rx-note-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mc-rx-note-meta { display: flex; flex-direction: column; gap: 4px; }
.mc-rx-note-tag {
  display: flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #5B9EE8;
}
.mc-rx-note-tag i { font-size: 11px; }
.mc-rx-note-name { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.36); }
.mc-rx-quote {
  margin: 0; font-size: 13.5px; line-height: 1.85; font-style: italic;
  color: rgba(255,255,255,0.56);
}

/* ══════════════════════════════════════════════════════════
   OFFER CARD
══════════════════════════════════════════════════════════ */

.mc-offer-card {
  background: #fff; border: 1.5px solid rgba(26,95,173,0.15);
  border-radius: 20px; padding: 24px 26px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.mc-offer-card::after {
  content: ''; position: absolute; bottom: -32px; right: -32px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(26,95,173,0.04); pointer-events: none;
}
.mc-offer-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #1A5FAD;
  background: #EEF4FF; border-radius: 100px; padding: 4px 12px; margin-bottom: 12px;
}
.mc-offer-headline {
  font-size: 19px; font-weight: 800; color: #060D1A;
  letter-spacing: -0.015em; margin-bottom: 8px; line-height: 1.25;
}
.mc-offer-body {
  font-size: 14px; line-height: 1.65; color: rgba(6,13,26,0.55); margin-bottom: 14px;
}
.mc-offer-body strong { color: #060D1A; font-weight: 700; }
.mc-offer-savings {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #1A5FAD;
  background: #EEF4FF; border-radius: 100px; padding: 7px 16px;
}
.mc-offer-savings i { font-size: 12px; }

/* ══════════════════════════════════════════════════════════
   CTA BLOCK
══════════════════════════════════════════════════════════ */

.mc-cta-block {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 12px 0 32px;
}
.mc-btn-book {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1A5FAD; color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  padding: 17px 52px; border-radius: 100px; text-decoration: none;
  box-shadow: 0 8px 32px rgba(26,95,173,0.30);
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  font-family: inherit; border: none; cursor: pointer;
}
.mc-btn-book:hover {
  background: #1554A0; transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,95,173,0.36);
}
.mc-btn-book:active { transform: translateY(0); }
.mc-btn-restart {
  display: flex; align-items: center; gap: 6px; background: transparent; border: none;
  font-size: 12px; color: rgba(6,13,26,0.22); cursor: pointer; padding: 8px;
  transition: color 0.2s; font-family: inherit;
}
.mc-btn-restart:hover { color: rgba(6,13,26,0.50); }

/* ══════════════════════════════════════════════════════════
   MYERS COCKTAIL POPUP
══════════════════════════════════════════════════════════ */

.mc-myers-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,13,26,0.55); backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mc-myers-overlay.active { opacity: 1; pointer-events: all; }

.mc-myers-popup {
  background: #fff; border-radius: 28px 28px 0 0;
  padding: 16px 32px 48px; width: 100%; max-width: 600px;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative; text-align: center;
}
.mc-myers-overlay.active .mc-myers-popup { transform: translateY(0); }

.mc-myers-popup-handle {
  width: 36px; height: 4px; border-radius: 100px;
  background: rgba(6,13,26,0.10); margin: 0 auto 24px;
}
.mc-myers-popup-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(6,13,26,0.06); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(6,13,26,0.35);
  transition: background 0.2s, color 0.2s;
}
.mc-myers-popup-close:hover { background: rgba(6,13,26,0.12); color: rgba(6,13,26,0.60); }

.mc-myers-popup-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: #EEF4FF; color: #1A5FAD;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 16px;
}
.mc-myers-popup-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #1A5FAD;
  background: #EEF4FF; border-radius: 100px;
  padding: 5px 14px; margin-bottom: 16px;
}
.mc-myers-popup-title {
  font-size: 26px; font-weight: 800; color: #060D1A;
  letter-spacing: -0.025em; line-height: 1.10; margin-bottom: 12px;
}
.mc-myers-popup-desc {
  font-size: 14px; line-height: 1.72; color: rgba(6,13,26,0.48);
  max-width: 360px; margin: 0 auto 20px;
}
.mc-myers-popup-desc strong { color: #060D1A; font-weight: 700; }
.mc-myers-popup-saving {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #1A5FAD;
  background: #EEF4FF; border-radius: 100px;
  padding: 8px 20px; margin-bottom: 24px;
}
.mc-myers-popup-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #1A5FAD; color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 700; padding: 16px 28px;
  border-radius: 100px; margin-bottom: 14px; width: 100%;
  box-shadow: 0 8px 28px rgba(26,95,173,0.28);
  transition: background 0.2s, transform 0.15s;
  font-family: inherit; box-sizing: border-box;
}
.mc-myers-popup-cta:hover { background: #1554A0; transform: translateY(-1px); }
.mc-myers-popup-dismiss {
  background: transparent; border: none; cursor: pointer;
  font-size: 12px; color: rgba(6,13,26,0.28); font-family: inherit;
  padding: 8px; transition: color 0.2s; width: 100%;
}
.mc-myers-popup-dismiss:hover { color: rgba(6,13,26,0.52); }

@media (min-width: 640px) {
  .mc-myers-overlay { align-items: center; padding: 24px; }
  .mc-myers-popup {
    border-radius: 28px; max-width: 460px;
    padding: 40px 36px 40px;
  }
  .mc-myers-popup-handle { display: none; }
  .mc-myers-popup-title { font-size: 28px; }
}

/* ── Nav overrides ──────────────────────────────────────── */

.mc-body .nav {
  background: rgba(244,247,252,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,95,173,0.10);
}
.mc-body .nav-logo { color: #060D1A; }
.mc-body .nav-link { color: rgba(6,13,26,0.55); }
.mc-body .nav-link:hover, .mc-body .nav-link.active { color: #060D1A; }
.mc-body .nav-hamburger span { background: #060D1A; }
.mc-body .nav-cta { border-color: #1A5FAD; color: #1A5FAD; }
.mc-body .nav-cta:hover { background: #1A5FAD; color: #fff; }

/* ══════════════════════════════════════════════════════════
   MOBILE — Form / questionnaire style (< 640px)
══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .mc-page { padding: 0 16px 80px; }

  /* Topbar */
  .mc-topbar { padding: 16px 0 22px; }
  .mc-topbar-spacer { display: none; }
  .mc-back { font-size: 12px; min-width: auto; }
  .mc-steps { gap: 5px; }
  .mc-step { font-size: 10px; letter-spacing: 0.04em; }

  /* Screen 0: intro + grouped list */
  .mc-intro-header { padding: 18px 0 28px; text-align: left; }
  .mc-eyebrow { display: flex; }
  .mc-title { font-size: clamp(24px, 8vw, 34px); }
  .mc-subtitle { font-size: 14px; max-width: none; text-align: left; }

  /* Categories — iOS grouped list */
  .mc-category-grid {
    grid-template-columns: 1fr; gap: 0;
    border-radius: 16px; overflow: hidden;
    background: #fff;
    border: 1px solid rgba(6,13,26,0.08);
    box-shadow: 0 2px 16px rgba(6,13,26,0.06);
  }
  .mc-cat-card {
    border-radius: 0; border: none;
    border-bottom: 1px solid rgba(6,13,26,0.06);
    box-shadow: none; padding: 15px 18px; gap: 14px;
    background: transparent;
    transition: background 0.12s;
  }
  .mc-cat-card:last-child { border-bottom: none; }
  .mc-cat-card:hover  { transform: none; box-shadow: none; border-color: transparent; background: #F0F5FF; }
  .mc-cat-card:active { background: #E8F0FF; }
  .mc-cat-icon { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
  .mc-cat-info strong { font-size: 14px; }
  .mc-cat-chev { color: rgba(6,13,26,0.25); }

  /* Screen 1: options — iOS grouped list, horizontal rows */
  .mc-q-header { padding-bottom: 20px; }
  .mc-q-title { font-size: clamp(20px, 7vw, 28px); }
  .mc-q-hint { font-size: 12.5px; }

  .mc-opt-grid {
    grid-template-columns: 1fr; gap: 0;
    border-radius: 16px; overflow: hidden;
    background: #fff;
    border: 1px solid rgba(6,13,26,0.08);
    box-shadow: 0 2px 16px rgba(6,13,26,0.06);
  }
  .mc-opt-card {
    flex-direction: row; align-items: center;
    gap: 14px; padding: 14px 18px;
    border-radius: 0; border: none;
    border-bottom: 1px solid rgba(6,13,26,0.06);
    box-shadow: none; font-size: 13.5px;
    background: transparent;
    transition: background 0.12s;
  }
  .mc-opt-card:last-child { border-bottom: none; }
  .mc-opt-card:hover  { transform: none; box-shadow: none; border-color: transparent; background: #F0F5FF; }
  .mc-opt-card:active { background: #E8F0FF; }
  .mc-opt-card span { flex: 1; text-align: left; }
  .mc-opt-card::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 9px; color: rgba(6,13,26,0.22); flex-shrink: 0;
  }
  .mc-opt-icon { width: 38px; height: 38px; font-size: 14px; border-radius: 9px; flex-shrink: 0; }
  .mc-opt-card:hover .mc-opt-icon { background: #1A5FAD; color: #fff; }

  /* Screen 2: results */
  .mc-results-header { padding: 4px 0 22px; }
  .mc-res-title { font-size: clamp(22px, 7.5vw, 30px); }

  .mc-rx-card { padding: 20px 20px 18px; border-radius: 20px; margin-bottom: 12px; }
  .mc-rx-date { display: none; }
  .mc-rx-treatment-name { font-size: 26px; }
  .mc-rx-treatment-desc { font-size: 13px; line-height: 1.70; }
  .mc-rx-note { padding: 16px 18px; border-radius: 12px; margin-top: 18px; }
  .mc-rx-note-photo-wrap { width: 46px; height: 46px; }
  .mc-rx-quote { font-size: 13px; line-height: 1.75; }

  .mc-offer-card { padding: 18px 18px; border-radius: 16px; margin-bottom: 10px; }
  .mc-offer-headline { font-size: 17px; }
  .mc-offer-body { font-size: 13px; }

  .mc-cta-block { padding: 8px 0 24px; gap: 10px; }
  .mc-btn-book { font-size: 15px; padding: 16px 36px; width: 100%; justify-content: center; }

  /* Myers popup — full-width bottom sheet */
  .mc-myers-popup { padding: 12px 24px 40px; }
  .mc-myers-popup-title { font-size: 22px; }
  .mc-myers-popup-desc { font-size: 13.5px; }
  .mc-myers-popup-icon { width: 58px; height: 58px; font-size: 22px; border-radius: 15px; }
}

@media (max-width: 380px) {
  .mc-page { padding: 0 12px 80px; }
  .mc-title { font-size: 26px; }
  .mc-cat-card { padding: 13px 14px; }
  .mc-opt-card { padding: 13px 14px; }
}

/* ════════════════════════════════════════════════════════════
   MY COMFORT — MOBILE PREMIUM OVERHAUL
   Safe areas · sticky progress bar · 56 px book button
════════════════════════════════════════════════════════════ */

/* ── Touch optimization (all breakpoints) ── */
.mc-cat-card, .mc-opt-card, .mc-back, .mc-btn-book,
.mc-btn-restart, .mc-myers-popup-cta, .mc-myers-popup-close,
.mc-myers-popup-dismiss { touch-action: manipulation; }

/* ── Myers popup: home indicator clearance ── */
.mc-myers-popup {
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .mc-myers-popup { padding-bottom: 40px; }
}

/* ── Mobile overhaul ── */
@media (max-width: 640px) {

  /* Safe area for page bottom */
  .mc-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Sticky topbar so progress is always visible */
  .mc-topbar {
    position: sticky;
    top: var(--nav-height, 60px);
    background: rgba(244,247,252,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10;
    margin: 0 -16px;
    padding: 10px 16px 14px;
    border-bottom: 1px solid rgba(26,95,173,0.08);
  }

  /* Breathing room between sticky topbar and screen content */
  .mc-screen.active { padding-top: 20px; }
  .mc-q-header { padding-top: 4px; }
  .mc-results-header { padding-top: 4px; }

  /* Steps as segmented pill progress bar */
  .mc-steps {
    background: rgba(26,95,173,0.07);
    border-radius: 100px;
    padding: 4px;
    gap: 0;
  }
  .mc-step {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    border-radius: 100px;
    font-size: 10px;
    letter-spacing: 0.05em;
    transition: background 0.25s, color 0.25s;
    color: rgba(6,13,26,0.32);
    white-space: nowrap;
  }
  .mc-step.active { background: #1A5FAD; color: #fff; }
  .mc-step.done { color: rgba(26,95,173,0.55); }
  .mc-step-sep { display: none; }

  /* Back button: adequate tap target */
  .mc-back { min-height: 40px; padding: 8px 12px 8px 8px; font-size: 12px; }

  /* Category cards */
  .mc-cat-card { min-height: 60px; }
  .mc-cat-card:active { background: #E4EDFF; }

  /* Option cards */
  .mc-opt-card { min-height: 56px; }
  .mc-opt-card:active { background: #E4EDFF; }

  /* Premium 56 px book button */
  .mc-btn-book {
    min-height: 56px;
    font-size: 16px;
    letter-spacing: 0.015em;
  }
  .mc-btn-book:active { transform: scale(0.97); }

  /* Restart: larger tap target */
  .mc-btn-restart { min-height: 44px; padding: 10px 16px; }

  /* Rx card */
  .mc-rx-treatment-name { font-size: 28px; }
  .mc-rx-treatment-desc { font-size: 14px; }
  .mc-notes { font-size: 16px !important; }

  /* CTA block */
  .mc-cta-block { padding: 12px 0 32px; gap: 12px; }

  /* Myers popup: bigger close target */
  .mc-myers-popup-close {
    width: 40px; height: 40px;
    top: 16px; right: 16px;
    font-size: 14px;
  }

  /* Myers CTA: full width */
  .mc-myers-popup-cta { min-height: 54px; font-size: 16px; }
}

@media (max-width: 380px) {
  .mc-topbar { padding: 8px 12px 12px; }
  .mc-step { font-size: 9.5px; padding: 5px 6px; }
  .mc-btn-book { font-size: 15px; min-height: 52px; }
  .mc-rx-treatment-name { font-size: 24px; }
}
