/* Graaho — meeting booking modal. Brand: navy #11256c, Poppins headings, Rubik body. */
.ghb-overlay, .ghb-embed {
  --ghb-navy: #11256c;
  --ghb-navy-soft: #eef1f9;
  --ghb-ink: #353d57;
  --ghb-text: #494949;
  --ghb-muted: #7a8094;
  --ghb-line: #e3e6ee;
  font-family: Rubik, sans-serif; color: var(--ghb-text);
}
.ghb-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(14, 22, 52, .55);
  opacity: 0; transition: opacity .18s ease;
  font-family: Rubik, sans-serif; color: var(--ghb-text);
}
.ghb-overlay[hidden], .ghb-step[hidden] { display: none !important; }
.ghb-overlay.is-open { opacity: 1; }
html.ghb-lock, html.ghb-lock body { overflow: hidden !important; }

.ghb-dialog {
  position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 48px);
  overflow: auto; background: #fff; box-shadow: 0 24px 60px rgba(14, 22, 52, .28);
  transform: translateY(12px); transition: transform .18s ease;
}
.ghb-overlay.is-open .ghb-dialog { transform: none; }
.ghb-dialog[data-step="2"], .ghb-dialog[data-step="3"] { max-width: 620px; }

.ghb-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 28px 32px 20px; border-bottom: 1px solid var(--ghb-line);
}
.ghb-title { margin: 0; font: 500 28px/1.2 Poppins, sans-serif; color: var(--ghb-navy); letter-spacing: 0; }
.ghb-sub { margin: 6px 0 0; font: 400 15px/1.4 Poppins, sans-serif; color: var(--ghb-muted); }
:is(.ghb-overlay, .ghb-embed) .ghb-close {
  flex: none; padding: 0 !important; box-shadow: none !important; font-family: Arial, sans-serif; font-weight: 300; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--ghb-muted); border-radius: 50%;
}
:is(.ghb-overlay, .ghb-embed) .ghb-close:hover { background: var(--ghb-navy-soft); color: var(--ghb-navy); }

.ghb-step { padding: 24px 32px 28px; }
.ghb-pick { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }

/* calendar */
.ghb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ghb-month { font: 500 17px/1 Poppins, sans-serif; color: var(--ghb-ink); }
.ghb-nav {
  width: 36px; height: 36px; border: 1px solid var(--ghb-line); background: #fff; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ghb-navy); border-radius: 50%;
}
.ghb-nav:hover:not(:disabled) { border-color: var(--ghb-navy); }
.ghb-nav:disabled { opacity: .35; cursor: default; }
.ghb-dow, .ghb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ghb-dow span { text-align: center; font: 500 12px/1 Poppins, sans-serif; color: var(--ghb-muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0 10px; }
.ghb-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--ghb-navy-soft); color: var(--ghb-navy); cursor: pointer;
  font: 500 15px/1 Poppins, sans-serif; border-radius: 50%; padding: 0;
}
.ghb-day:hover:not(:disabled) { background: #dfe5f4; }
.ghb-day:disabled { background: transparent; color: #c3c7d2; cursor: default; font-weight: 400; }
.ghb-day.ghb-empty { background: transparent; }
.ghb-day.is-today { box-shadow: inset 0 0 0 1px var(--ghb-navy); }
.ghb-day.is-selected { background: var(--ghb-navy); color: #fff; }

/* slots */
.ghb-side { display: flex; flex-direction: column; min-width: 0; }
.ghb-slot-head { font: 500 15px/1.3 Poppins, sans-serif; color: var(--ghb-ink); margin: 8px 0 14px; min-height: 20px; }
.ghb-slots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  max-height: 300px; overflow-y: auto; padding-right: 4px; align-content: start;
}
.ghb-slots:empty::before {
  content: 'Available times appear here.'; grid-column: 1 / -1;
  font-size: 14px; color: var(--ghb-muted); padding: 28px 12px; text-align: center;
  border: 1px dashed var(--ghb-line);
}
.ghb-slot {
  border: 1px solid #c9d0e4; background: #fff; color: var(--ghb-navy); cursor: pointer;
  font: 500 14px/1 Poppins, sans-serif; padding: 12px 6px; transition: background .12s, border-color .12s;
}
.ghb-slot:hover { border-color: var(--ghb-navy); }
.ghb-slot.is-selected { background: var(--ghb-navy); border-color: var(--ghb-navy); color: #fff; }
.ghb-tz { margin: 14px 0 0; font-size: 13px; line-height: 1.4; color: var(--ghb-muted); }

/* actions + buttons */
.ghb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ghb-line); }
.ghb-actions.ghb-center { justify-content: center; border-top: 0; padding-top: 0; }
:is(.ghb-overlay, .ghb-embed) .ghb-btn, :is(.ghb-overlay, .ghb-embed) .ghb-btn:hover, :is(.ghb-overlay, .ghb-embed) .ghb-btn:focus {
  border: 0 !important; background: var(--ghb-navy) !important; color: #fff !important; border-radius: 0 !important;
  box-shadow: none !important; text-transform: none; height: auto; cursor: pointer;
  font: 600 15px/1 Poppins, sans-serif; letter-spacing: .02em; padding: 16px 32px; min-width: 180px;
  transition: opacity .12s;
}
:is(.ghb-overlay, .ghb-embed) .ghb-btn:hover:not(:disabled) { opacity: .9; }
:is(.ghb-overlay, .ghb-embed) .ghb-btn:disabled { opacity: .4; cursor: default; }
.ghb-link { border: 0; background: none; cursor: pointer; font: 500 15px/1 Poppins, sans-serif; color: var(--ghb-navy); padding: 8px 0; margin-right: auto; }
.ghb-overlay button:focus-visible, .ghb-overlay input:focus-visible, .ghb-overlay textarea:focus-visible, .ghb-overlay a:focus-visible {
  outline: 2px solid var(--ghb-navy); outline-offset: 2px;
}

/* form */
.ghb-summary {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; margin-bottom: 22px;
  background: var(--ghb-navy-soft); border-left: 3px solid var(--ghb-navy);
}
.ghb-summary strong { font: 500 16px/1.3 Poppins, sans-serif; color: var(--ghb-navy); }
.ghb-summary span { font-size: 14px; color: var(--ghb-ink); }
.ghb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ghb-field { display: block; margin: 0 0 16px; }
.ghb-field > span { display: block; font: 500 13px/1.2 Poppins, sans-serif; color: var(--ghb-ink); margin-bottom: 7px; }
.ghb-field em { font-style: normal; font-weight: 400; color: var(--ghb-muted); }
.ghb-field input, .ghb-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #cfd4e1; background: #fff; border-radius: 0;
  padding: 12px 14px; font: 400 15px/1.4 Rubik, sans-serif; color: var(--ghb-ink); margin: 0; box-shadow: none;
}
.ghb-field textarea { resize: vertical; min-height: 84px; }
.ghb-field input:focus, .ghb-field textarea:focus { border-color: var(--ghb-navy); outline: none; }
.ghb-field .is-invalid { border-color: #c0392b; }
.ghb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ghb-error { min-height: 0; margin: 0; font-size: 14px; color: #b3261e; }
.ghb-error:not(:empty) { margin-top: 4px; }
.ghb-error a { color: var(--ghb-navy); text-decoration: underline; }

/* done */
.ghb-step3 { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.ghb-check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--ghb-navy); color: #fff; font-size: 30px; line-height: 64px;
}
.ghb-done-title { margin: 0 0 10px; font: 500 24px/1.25 Poppins, sans-serif; color: var(--ghb-navy); }
.ghb-done-text { max-width: 440px; margin: 0 auto 24px; font-size: 16px; line-height: 1.6; color: var(--ghb-ink); }

/* phones: full-screen sheet */
@media (max-width: 720px) {
  .ghb-overlay { padding: 0; align-items: stretch; }
  .ghb-dialog, .ghb-dialog[data-step="2"], .ghb-dialog[data-step="3"] { max-width: none; max-height: none; height: 100%; }
  .ghb-head { padding: 20px 20px 16px; position: sticky; top: 0; background: #fff; z-index: 1; }
  .ghb-title { font-size: 22px; }
  .ghb-step { padding: 20px 20px 24px; }
  .ghb-pick { grid-template-columns: 1fr; gap: 20px; }
  .ghb-slots { grid-template-columns: repeat(3, 1fr); max-height: none; }
  .ghb-row { grid-template-columns: 1fr; gap: 0; }
  .ghb-actions { position: sticky; bottom: 0; background: #fff; margin: 20px -20px -24px; padding: 14px 20px; }
  .ghb-btn { flex: 1; min-width: 0; }
  :is(.ghb-overlay, .ghb-embed) .ghb-step1 .ghb-actions .ghb-btn { flex: 1; }
}

/* ---------- inline (embedded on /book) ---------- */
.ghb-embed .ghb-dialog { max-width: none; max-height: none; transform: none; overflow: visible;
  box-shadow: 0 1px 2px rgba(14,22,52,.06), 0 12px 40px rgba(14,22,52,.10); border: 1px solid var(--ghb-line); }
.ghb-embed .ghb-dialog[data-step="2"], .ghb-embed .ghb-dialog[data-step="3"] { max-width: none; }
.ghb-embed .ghb-head { padding: 24px 28px 18px; }
.ghb-embed .ghb-step { padding: 22px 28px 26px; }
.ghb-embed .ghb-pick { grid-template-columns: 1fr; gap: 22px; }
.ghb-embed .ghb-slots { grid-template-columns: repeat(3, 1fr); max-height: none; }
@media (max-width: 720px) {
  .ghb-embed .ghb-dialog { height: auto; }
  .ghb-embed .ghb-head { position: static; padding: 20px 18px 14px; }
  .ghb-embed .ghb-step { padding: 18px 18px 22px; }
  .ghb-embed .ghb-actions { margin: 20px -18px -22px; padding: 14px 18px; box-shadow: 0 -6px 16px rgba(14,22,52,.06); }
}
