/* 2026-12-03 (Blake): the logo's blues instead of the site teal, on this page only (this file loads on booking2 alone).
   Shades sampled from assets/images/logo-header.png: deep #3c54a0, mid #3c78b8, bright #24a8e4. */
:root {
  --b2-note: "logo blue";
  --primary: #2f6db5;
  --primary-dark: #234f8a;
  --primary-light: #e7f1fb;
}
/* ============================================
   Booking page v2 — one day at a time, a column per therapist.
   Added 2026-12-02 (hidden page booking2.html). Loads AFTER booking.css and reuses its colours.
   ============================================ */

#step-2 { position: relative; }

/* --- Day header: arrows, date button (opens the calendar), "Today / Tomorrow" --- */
.day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.day-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}
.day-arrow:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-light); }
.day-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.day-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.day-title:hover, .day-title[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.day-sub { color: var(--text-light); font-size: 0.9rem; }

/* --- Therapist pills (stack: tap more than one) --- */
.pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.on { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* --- Two-month jump-to-date popup --- */
.cal-pop {
  position: relative;
  z-index: 30;
  max-width: 640px;
  margin: 0 0 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.cal-pop[hidden] { display: none; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cal-month h4 { text-align: center; margin: 0 0 8px; font-size: 0.95rem; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow span { font-size: 0.7rem; color: var(--text-light); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.cal-day.has { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.cal-day.today { border-color: var(--primary); }
.cal-day.cur { background: var(--primary); color: var(--white); }
.cal-day.dim { color: #b8bfc6; cursor: not-allowed; }
.cal-day.blank { visibility: hidden; }
.cal-day:hover:not(.dim):not(.blank) { border-color: var(--primary); }
.cal-foot { margin: 12px 0 0; text-align: center; font-size: 0.8rem; color: var(--text-light); }
.cal-foot button { background: none; border: 0; color: var(--primary); font-family: inherit; font-weight: 600; cursor: pointer; }

/* --- The day grid --- */
.day-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.day-grid {
  --rowh: 16px;
  display: grid;
  grid-template-columns: 56px repeat(var(--cols, 1), minmax(150px, 1fr));
  min-width: min-content;
}
.day-grid .col-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.day-grid .ruler-head { border-bottom: 1px solid var(--border); background: var(--white); }
.day-grid .ruler {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: right;
  padding: 2px 8px 0 0;
}
.day-grid .lane {
  background-image: repeating-linear-gradient(to bottom, var(--border) 0, var(--border) 1px, transparent 1px, transparent calc(var(--rowh) * 4));
  border-left: 1px solid var(--border);
}
.blk {
  z-index: 2;
  margin: 1px 5px;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: inherit;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blk.open {
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.blk.open:hover { background: var(--primary-light); }
.blk.open.selected { background: var(--primary); color: var(--white); }
.blk.open:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.blk.taken { background: #dce9f8; border: 2px solid #a9c6e8; color: #234f8a; font-size: 0.75rem; }
.blk.taken .wl { display: inline-block; margin-top: 5px; padding: 4px 11px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--white); font-weight: 700; font-size: 0.74rem; line-height: 1.2;
  cursor: pointer; font-family: inherit; transition: background .15s, transform .1s; }
.blk.taken .wl:hover { background: var(--primary-dark); }
.blk.taken .wl:active { transform: scale(0.97); }
.blk.taken .wl.on { background: var(--white); color: #234f8a; cursor: default; }
.blk.taken .wl.on:hover { background: var(--white); }
.wl-confirm { margin: 10px 0; padding: 12px 14px; border: 2px solid var(--primary); border-radius: 12px; background: var(--white); }
.wl-confirm p { margin: 0 0 10px; font-size: 0.95rem; }
.wl-confirm-btns { display: flex; gap: 10px; }
.wl-confirm-btns button { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-family: inherit; font-size: 0.9rem; cursor: pointer; border: 2px solid var(--primary); }
.wl-confirm-btns .wl-yes { background: var(--primary); color: var(--white); }
.wl-confirm-btns .wl-no { background: var(--white); color: var(--primary-dark); }
.wl-confirm-btns button:disabled { opacity: 0.6; cursor: default; }
.wl-msg { margin: 8px 0; font-size: 0.9rem; }
.wl-msg.done { color: #234f8a; font-weight: 600; }
.wl-msg.note { color: #6b7280; }
.blk.taken.past { opacity: 0.5; background: #eceff1; border-color: transparent; color: #7a858f; }
.blk.taken.soon { background: var(--accent-light); color: var(--accent-dark); border-color: transparent; }
.day-off { margin: 2px 0 8px; font-size: 0.85rem; color: #6b7280; }

.day-empty { padding: 28px 12px; text-align: center; color: var(--text-light); }
.day-empty[hidden] { display: none; }

.pick-bar { margin-top: 14px; }
.ver { margin-left: 10px; font-size: 0.75rem; opacity: 0.7; }

/* --- Phones: arrows that slide the grid one column, calendar months stacked --- */
.scroll-arrow {
  display: none;
  position: fixed;
  top: 55%;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.scroll-arrow.left { left: 6px; }
.scroll-arrow.right { right: 6px; }
@media (max-width: 600px) {
  .scroll-arrow:not([hidden]) { display: block; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-pop { max-height: 70vh; overflow-y: auto; }
}

/* a therapist who does not work the shown day: pill stays tappable but reads as off */
.pill.off { border-style: dashed; color: #9aa3ad; }
.pill.off::after { content: " \00b7 off"; font-weight: 400; }
.pill.off.on { background: #9db4d0; border-color: #9db4d0; color: var(--white); }

/* v2.5 (Blake): every block shows its start time; taken blocks read as solid blue blocks */
.blk .tm { font-weight: 700; font-size: 0.88rem; line-height: 1.15; }
.blk .row1 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.blk.taken .rsv { font-size: 0.72rem; opacity: 0.85; }
.blk.open .opn { font-size: 0.72rem; font-weight: 600; color: var(--primary); }
.blk.open.selected .opn { color: var(--white); }
.blk.taken .wl { align-self: stretch; text-align: center; }

/* v2.6 (Blake 12-03): open times must catch the eye first; reserved ones sit back; the book button is green */
.blk.open { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 1px 4px rgba(35,79,138,.25); }
.blk.open .opn { color: #dbe9fb; }
.blk.open:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.blk.open.selected { background: #1f8a4c; border-color: #1f8a4c; color: var(--white); }
.blk.open.selected .opn { color: #dff5e7; }
.blk.taken { background: #f1f5fa; border: 1px solid #dbe4ef; color: #6f7f92; }
.blk.taken .tm { font-weight: 600; }
.blk.taken .wl { align-self: flex-start; background: none; color: var(--primary); padding: 2px 0; margin-top: 2px;
  border-radius: 0; text-decoration: underline; font-weight: 600; text-align: left; }
.blk.taken .wl:hover { background: none; color: var(--primary-dark); }
.blk.taken .wl.on { background: none; color: #234f8a; text-decoration: none; }
.blk.taken .wl.on:hover { background: none; }
#pick-btn:not(:disabled) { background: #1f8a4c; border-color: #1f8a4c; color: var(--white); }
#pick-btn:not(:disabled):hover { background: #18723e; }

/* v2.7 (Blake 12-03): a key above the grid, striped reserved blocks, centred waitlist text, book button flashes */
.legend { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; font-size: 0.85rem; color: var(--text-light); }
.legend .lg { display: inline-block; width: 18px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.legend .lg.o { background: var(--primary); }
.legend .lg.t, .blk.taken { background: repeating-linear-gradient(135deg, #f1f5fa 0 7px, #e4ebf4 7px 14px); }
.legend .lg.t { border: 1px solid #dbe4ef; }
.blk.taken.past { background: #eceff1; }
.blk.taken.soon { background: var(--accent-light); }
.blk.taken .wl { align-self: center; text-align: center; }
@keyframes b2flash { 0% { box-shadow: 0 0 0 0 rgba(31,138,76,.55); } 100% { box-shadow: 0 0 0 16px rgba(31,138,76,0); } }
#pick-btn.flash { animation: b2flash .9s ease-out 2; }

/* v2.8 (Blake 12-03): no stripes; reserved = light grey with a clear border and a muted-red "Reserved";
   open = time on the left, "Book now" on the right */
.legend .lg.t, .blk.taken { background: #eef0f3; }
.blk.taken { border: 1.5px solid #c3cad3; color: #5f6b78; }
.legend .lg.t { border: 1.5px solid #c3cad3; }
.blk.taken .rsv { color: #b0483f; font-weight: 700; font-size: 0.74rem; opacity: 1; text-transform: uppercase; letter-spacing: .03em; }
.blk.taken.past { background: #f1f2f4; border-color: transparent; }
.blk.taken.past .rsv { color: #7a858f; }
.blk.taken.soon { background: var(--accent-light); border-color: #ecd3b6; }
.blk.taken.soon .rsv { color: var(--accent-dark); }
.blk.open { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; border: 2px solid var(--primary-dark); }
.blk.open .opn { font-size: 0.8rem; font-weight: 700; color: var(--white); white-space: nowrap;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 999px; padding: 2px 9px; }
.blk.open.selected { border-color: #18723e; }
.blk.open.selected .opn { color: var(--white); }

/* v2.9 (Blake 12-03, from block-options page): reserved = option 2 (centred two lines), open = option 5 (tag + button) */
.blk.taken { flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center;
  background: #eef0f3; border: 1.5px solid #c3cad3; color: #5f6b78; }
.blk.taken .tm { font-weight: 600; font-size: 0.9rem; }
.blk.taken .ln { font-size: 0.78rem; line-height: 1.25; }
.blk.taken .rsv { color: inherit; font-weight: 400; font-size: inherit; text-transform: none; letter-spacing: 0; opacity: 1; }
.blk.taken .wl { display: inline; align-self: auto; margin: 0; padding: 0; background: none; border: 0; border-radius: 0;
  color: var(--primary); font-weight: 600; font-size: inherit; text-decoration: underline; text-align: center; }
.blk.taken .wl:hover { background: none; color: var(--primary-dark); }
.blk.taken .wl.on { color: #234f8a; text-decoration: none; }
.blk.taken.past .rsv, .blk.taken.soon .rsv { color: inherit; }
.blk.open { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 4px; padding: 6px 8px 7px;
  background: var(--primary-light); border: 2px solid var(--primary); color: var(--primary-dark); box-shadow: none; }
.blk.open:hover { background: #d6e7fa; border-color: var(--primary-dark); }
.blk.open .row1 { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 6px; }
.blk.open .tag { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px;
  padding: 2px 6px; background: #1f8a4c; color: var(--white); }
.blk.open .opn { display: block; text-align: center; border: 0; border-radius: 6px; padding: 5px 0; background: var(--primary);
  color: var(--white); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.blk.open.selected { background: #e3f4ea; border-color: #1f8a4c; color: #17603a; }
.blk.open.selected .opn { background: #1f8a4c; color: var(--white); }
.blk.open.short { flex-direction: row; align-items: center; padding: 2px 8px; }
.blk.open.short .tag { display: none; }
.blk.open.short .opn { padding: 2px 9px; }
.blk.taken.short { flex-direction: row; gap: 8px; }
.legend .lg.o { background: var(--primary-light); border: 2px solid var(--primary); }

/* v3.0 phone: on a narrow column the waitlist link sits on its own line, with no dangling dot */
@media (max-width: 600px) {
  .blk.taken .sep { display: none; }
  .blk.taken .wl { display: block; margin: 1px auto 0; }
}

/* v3.2 (Blake 12-04): the "i" next to each therapist's name and its card */
.day-grid .col-head .th-info { margin-left: 6px; width: 20px; height: 20px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--primary); background: var(--white); color: var(--primary); cursor: pointer;
  font: italic 700 0.78rem/1 Georgia, 'Times New Roman', serif; vertical-align: 1px; }
.day-grid .col-head .th-info:hover, .day-grid .col-head .th-info:focus-visible { background: var(--primary); color: var(--white); }
.th-pop { position: absolute; z-index: 60; width: 260px; max-width: calc(100vw - 16px); background: #fff;
  border: 1px solid #c9d6e6; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 12px 14px;
  font-family: inherit; font-size: 0.86rem; line-height: 1.45; color: #2d3436; text-align: left; }
.th-pop strong { display: block; font-size: 1rem; margin-bottom: 3px; color: #234f8a; }
.th-pop .th-line { display: block; margin-top: 2px; }
