/* =========================================================================
   Booking — four steps, one screen each.
   ========================================================================= */

.pgc-booking { padding: 16px 14px 120px; }

/* ----------------------------------------------------------------- head */

.pgc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--pgc-border);
}
.pgc-head-main h2 { margin: 0 !important; }
.pgc-head-main p { margin: 2px 0 0 !important; font-size: 14px; color: var(--pgc-muted); }

.pgc-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pgc-success-bg);
  border: 1px solid var(--pgc-success-border);
  color: var(--pgc-success);
  font-size: 12.5px;
  font-weight: 600;
}
.pgc-trust svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- steps */

.pgc-steps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 20px !important;
  padding: 0 !important;
}
.pgc-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 8px 6px;
  border-radius: var(--pgc-r-sm);
  background: var(--pgc-surface-3);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pgc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pgc-steps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pgc-border);
  color: var(--pgc-ink-soft);
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.pgc-steps li.is-active { background: var(--pgc-primary-50); color: var(--pgc-primary-700); }
.pgc-steps li.is-active span { background: var(--pgc-primary); color: #fff; }
.pgc-steps li.is-done span { background: var(--pgc-success); color: #fff; }

@media (max-width: 560px) {
  /* On a narrow phone the labels stop fitting; the numbered dots still
     communicate position, so drop the words rather than wrap the row. */
  .pgc-steps li { justify-content: center; font-size: 0; padding: 8px 4px; gap: 0; }
  .pgc-steps li.is-active { font-size: 12.5px; gap: 7px; }
}

.pgc-step { display: none; }
.pgc-step.is-active { display: block; animation: pgc-fade .22s ease both; }
@keyframes pgc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pgc-step-title { margin-bottom: 4px !important; }
.pgc-step-hint { margin-bottom: 16px !important; font-size: 14px; color: var(--pgc-muted); }

/* ----------------------------------------------------------- visit types */

.pgc-type-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.pgc-type {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 2px solid var(--pgc-border);
  border-radius: var(--pgc-r-lg);
  background: var(--pgc-surface);
  font-family: var(--pgc-font);
  text-align: right;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pgc-type:hover { border-color: var(--pgc-primary-100); }
.pgc-type.is-selected { border-color: var(--pgc-primary); box-shadow: 0 0 0 4px var(--pgc-ring); }

.pgc-type-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--pgc-r-md);
  background: var(--pgc-primary-50);
  color: var(--pgc-primary);
  flex: none;
}
.pgc-type-icon svg { width: 26px; height: 26px; }

.pgc-type-body { flex: 1; min-width: 0; }
.pgc-type-body strong { display: block; font-size: 17px; font-weight: 800; }
.pgc-type-body p { margin: 4px 0 8px !important; font-size: 14px; color: var(--pgc-ink-soft); line-height: 1.8; }

.pgc-type-facts { display: flex; flex-wrap: wrap; gap: 6px; }

/* -------------------------------------------------------------- calendar */

.pgc-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 12px;
}
.pgc-month strong { font-size: 16.5px; font-weight: 800; }
.pgc-month-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--pgc-border);
  border-radius: var(--pgc-r-md);
  background: var(--pgc-surface);
  color: var(--pgc-ink-soft);
  cursor: pointer;
}
.pgc-month-nav:hover:not(:disabled) { background: var(--pgc-surface-3); color: var(--pgc-ink); }
.pgc-month-nav:disabled { opacity: .35; cursor: not-allowed; }

.pgc-rail-wrap { position: relative; display: flex; align-items: center; gap: 4px; }
.pgc-rail {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px;
}
.pgc-rail::-webkit-scrollbar { display: none; }

.pgc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: none;
  width: 62px;
  padding: 10px 4px;
  border: 1.5px solid var(--pgc-border);
  border-radius: var(--pgc-r-md);
  background: var(--pgc-surface);
  font-family: var(--pgc-font);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pgc-day small { font-size: 12px; color: var(--pgc-muted); }
.pgc-day b { font-size: 19px; font-weight: 800; line-height: 1.3; }
.pgc-day i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pgc-success);
  margin-top: 2px;
}
.pgc-day:hover:not(:disabled) { border-color: var(--pgc-primary-100); }
.pgc-day.is-selected {
  border-color: var(--pgc-primary);
  background: var(--pgc-primary);
  color: #fff;
}
.pgc-day.is-selected small { color: rgba(255, 255, 255, .82); }
.pgc-day.is-selected i { background: #fff; }
.pgc-day.is-today b { text-decoration: underline; text-underline-offset: 3px; }
.pgc-day:disabled { opacity: .4; cursor: not-allowed; background: var(--pgc-surface-3); }
.pgc-day:disabled i { background: var(--pgc-border-strong); }

.pgc-rail-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 60px;
  flex: none;
  border: 0;
  border-radius: var(--pgc-r-sm);
  background: var(--pgc-surface-3);
  color: var(--pgc-ink-soft);
  cursor: pointer;
}
.pgc-rail-arrow:hover { background: var(--pgc-border); }

.pgc-slots-zone { margin-top: 20px; }
.pgc-slots-zone h4 { margin-bottom: 10px !important; }
.pgc-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

.pgc-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 62px;
  padding: 10px 8px;
  border: 1.5px solid var(--pgc-border);
  border-radius: var(--pgc-r-md);
  background: var(--pgc-surface);
  font-family: var(--pgc-font);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pgc-slot b { font-size: 16px; font-weight: 800; direction: ltr; }
.pgc-slot small { font-size: 12px; color: var(--pgc-muted); }
.pgc-slot:hover:not(:disabled) { border-color: var(--pgc-primary-100); }
.pgc-slot.is-selected { border-color: var(--pgc-primary); background: var(--pgc-primary-50); }
.pgc-slot.is-selected small { color: var(--pgc-primary-700); }
.pgc-slot:disabled { opacity: .45; cursor: not-allowed; background: var(--pgc-surface-3); }

/* ---------------------------------------------------------------- review */

.pgc-review {
  border: 1px solid var(--pgc-border);
  border-radius: var(--pgc-r-lg);
  background: var(--pgc-surface);
  padding: 2px 16px;
  margin-bottom: 16px;
}
.pgc-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--pgc-border);
}
.pgc-review-row:last-child { border-bottom: 0; }
.pgc-review-row span { font-size: 13.5px; color: var(--pgc-muted); }
.pgc-review-row strong { font-size: 15px; text-align: left; }
.pgc-review-row--total strong { font-size: 17px; color: var(--pgc-primary-700); }

.pgc-gateways { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pgc-consent { margin-bottom: 8px; }

.pgc-prep {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 16px;
  border: 1px solid var(--pgc-info-border);
  border-radius: var(--pgc-r-md);
  background: var(--pgc-info-bg);
  color: var(--pgc-info);
  font-size: 14px;
  line-height: 1.85;
}
.pgc-prep svg { width: 19px; height: 19px; margin-top: 3px; flex: none; }

/* ------------------------------------------------------------ sticky bar */

.pgc-foot {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--pgc-border);
  box-shadow: 0 -6px 20px -12px rgba(16, 24, 40, .28);
}
.pgc-price { min-width: 0; }
.pgc-price small { display: block; font-size: 12px; color: var(--pgc-muted); }
.pgc-price strong { display: block; font-size: 17px; font-weight: 800; color: var(--pgc-primary-700); }
.pgc-foot .pgc-btn { flex: none; min-width: 148px; }

@media (max-width: 420px) {
  .pgc-foot .pgc-btn { min-width: 120px; }
}


/* ---- narrow phones ----
   Kept here rather than in base.css: base.css loads first, so an override for
   a class this file also styles has to live in this file to take effect. */
@media (max-width: 360px) {
  .pgc-booking { padding-left: 10px; padding-right: 10px; }
  .pgc-slots { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* --------------------------------------------------------------- doctors */

.pgc-doctor-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.pgc-doctor-avatar svg { width: 30px; height: 30px; }
.pgc-doctor-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgc-doctor-title { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--pgc-primary); }

.pgc-doctor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: var(--pgc-r-md);
  background: var(--pgc-primary-50);
}
.pgc-doctor-bar-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pgc-surface);
  color: var(--pgc-primary);
  flex: none;
}
.pgc-doctor-bar-avatar svg { width: 22px; height: 22px; }
.pgc-doctor-bar strong { display: block; font-size: 16px; font-weight: 800; }
.pgc-doctor-bar small { display: block; font-size: 13px; color: var(--pgc-ink-soft); }
