/* ─────────────────────────────────────────────────────────────────
   Healthcare Booking — Consult Flow Styles
   Primary accent: #e8562a (coral/red-orange from the reference images)
   Secondary: #1a9b8a (teal for step 2 reference)
   ───────────────────────────────────────────────────────────────── */
:root {
  --hbf-accent:   #e8562a;
  --hbf-accent-h: #d04820;
  --hbf-teal:     #1a9b8a;
  --hbf-teal-h:   #157a6c;
  --hbf-text:     #1a1a2e;
  --hbf-muted:    #6b7280;
  --hbf-border:   #e5e7eb;
  --hbf-bg:       #f9fafb;
  --hbf-white:    #ffffff;
  --hbf-radius:   12px;
  --hbf-shadow:   none;
}

/* ── Wrap ────────────────────────────────────────────────────────── */
.hbf-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 60px;
  color: var(--hbf-text);
}

/* ── Login gate ──────────────────────────────────────────────────── */
.hbf-login-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hbf-gate-inner {
  text-align: center;
  padding: 48px 32px;
  background: var(--hbf-white);
  border-radius: var(--hbf-radius);
  box-shadow: var(--hbf-shadow);
  max-width: 360px;
  width: 100%;
}
.hbf-gate-icon { font-size: 48px; margin-bottom: 16px; }
.hbf-gate-inner h2 { font-size: 22px; margin: 0 0 8px; }
.hbf-gate-inner p { color: var(--hbf-muted); margin-bottom: 24px; }

/* ── Step indicator ──────────────────────────────────────────────── */
.hbf-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 36px;
  gap: 0;
}
.hbf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.hbf-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--hbf-bg);
  border: 2px solid var(--hbf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--hbf-muted);
  transition: all .25s ease;
  position: relative;
  z-index: 1;
}
.hbf-step.active .hbf-step-circle {
  background: var(--hbf-white);
  border-color: var(--hbf-accent);
  color: var(--hbf-accent);
  border-width: 3px;
}
.hbf-step.done .hbf-step-circle {
  background: var(--hbf-teal);
  border-color: var(--hbf-teal);
  color: #fff;
}
.hbf-step.done .hbf-step-circle::after {
  content: '✓';
  position: absolute;
  font-size: 14px;
}
.hbf-step.done .hbf-step-circle span { display: none; }
.hbf-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hbf-muted);
  white-space: nowrap;
}
.hbf-step.active .hbf-step-label { color: var(--hbf-accent); }
.hbf-step.done .hbf-step-label { color: var(--hbf-teal); }
.hbf-step-line {
  flex: 1;
  height: 2px;
  background: var(--hbf-border);
  min-width: 60px;
  max-width: 120px;
  margin-bottom: 18px;
  transition: background .25s;
}
.hbf-step-line.done { background: var(--hbf-teal); }

/* ── Panel ───────────────────────────────────────────────────────── */
.hbf-panel {
  background: var(--hbf-white);
  border: 1px solid var(--hbf-border);
  border-radius: var(--hbf-radius);
  padding: 32px;
  animation: hbfIn .2s ease;
}
@keyframes hbfIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.hbf-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.hbf-panel-header h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.hbf-panel-header p  { color: var(--hbf-muted); font-size: 14px; margin: 0; max-width: 420px; }
.hbf-panel-icon { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; margin-left: 16px; }

/* ── Members ─────────────────────────────────────────────────────── */
.hbf-members-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.hbf-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--hbf-border);
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all .15s;
  background: var(--hbf-white);
}
.hbf-member-card:hover { border-color: var(--hbf-accent); }
.hbf-member-card.selected {
  border-color: var(--hbf-accent);
  background: rgba(232,86,42,.04);
}
.hbf-member-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.hbf-member-meta { font-size: 13px; color: var(--hbf-muted); }
.hbf-member-actions { display: flex; gap: 8px; }
.hbf-member-edit {
  font-size: 13px;
  color: var(--hbf-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 600;
}
.hbf-member-edit:hover { text-decoration: underline; }
.hbf-member-del {
  font-size: 13px;
  color: var(--hbf-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}
.hbf-member-del:hover { color: #c00; }
.hbf-member-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--hbf-border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.hbf-member-card.selected .hbf-member-radio {
  border-color: var(--hbf-accent);
  background: var(--hbf-accent);
}
.hbf-member-card.selected .hbf-member-radio::after {
  content: '';
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* Add member form */
.hbf-add-member-btn {
  background: none;
  border: 2px dashed var(--hbf-border);
  color: var(--hbf-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}
.hbf-add-member-btn:hover { border-color: var(--hbf-accent); background: rgba(232,86,42,.03); }
.hbf-add-member-btn span { font-size: 20px; line-height: 1; }
.hbf-add-member-form {
  background: var(--hbf-bg);
  border: 1px solid var(--hbf-border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 8px;
}
.hbf-inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.hbf-inline-form .hbf-input { flex: 1; min-width: 140px; }
.hbf-inline-form .hbf-input-sm { flex: 0 0 110px; }

/* ── Phone field ─────────────────────────────────────────────────── */
.hbf-phone-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--hbf-border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  background: var(--hbf-white);
  transition: border-color .15s;
}
.hbf-phone-wrap:focus-within { border-color: var(--hbf-accent); }
.hbf-phone-prefix {
  padding: 0 14px;
  color: var(--hbf-muted);
  font-size: 14px;
  font-weight: 600;
  border-right: 1.5px solid var(--hbf-border);
  background: var(--hbf-bg);
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hbf-phone-input {
  border: none !important;
  outline: none;
  flex: 1;
  padding: 0 14px !important;
  font-size: 15px;
  height: 44px;
  background: transparent;
}
.hbf-phone-clear {
  padding: 0 12px;
  background: none;
  border: none;
  color: var(--hbf-muted);
  cursor: pointer;
  font-size: 16px;
}

/* ── Mode selector ───────────────────────────────────────────────── */
.hbf-mode-group { display: flex; gap: 12px; flex-wrap: wrap; }
.hbf-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--hbf-border);
  border-radius: 10px;
  padding: 16px 28px;
  cursor: pointer;
  transition: all .15s;
  background: var(--hbf-white);
  min-width: 100px;
}
.hbf-mode-card input[type="radio"] { display: none; }
/* Selected state — applied by JS adding .hbf-mode-selected */
.hbf-mode-card.hbf-mode-selected,
.hbf-mode-card:has(input:checked) {
  border-color: var(--hbf-accent);
  background: rgba(232,86,42,.03);
}
.hbf-mode-icon { font-size: 26px; }
.hbf-mode-label { font-size: 14px; font-weight: 700; color: var(--hbf-text); }

/* ── Specialty grid ──────────────────────────────────────────────── */
.hbf-specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 20px;
}
.hbf-specialty-grid::-webkit-scrollbar { width: 6px; }
.hbf-specialty-grid::-webkit-scrollbar-track { background: var(--hbf-bg); border-radius: 3px; }
.hbf-specialty-grid::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ── Slim Specialty Rows ─────────────────────────────────────────── */
.hbf-spec-row-wrapper {
  background: var(--hbf-white);
  border: 1px solid var(--hbf-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.hbf-spec-row-wrapper:hover { border-color: var(--hbf-teal); }

.hbf-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--hbf-white);
  transition: all .2s;
}
.hbf-spec-row.active {
  background: rgba(26,155,138,.04);
  border-bottom: 1px solid var(--hbf-border);
}

.hbf-spec-icon-slim {
  width: 40px; height: 40px;
  background: rgba(26,155,138,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hbf-spec-info { flex: 1; }
.hbf-spec-name { font-size: 15px; font-weight: 700; color: var(--hbf-text); line-height: 1.2; }
.hbf-spec-desc-slim { font-size: 12px; color: var(--hbf-muted); margin-top: 3px; }

.hbf-spec-chevron {
  font-size: 10px; color: var(--hbf-muted);
  transition: transform .2s ease;
}
.hbf-spec-row.active .hbf-spec-chevron { transform: rotate(180deg); }

/* ── Doctor List inside Specialty ─────────────────────────────────── */
.hbf-doctor-list {
  background: #fafafa;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbf-doc-card {
  background: var(--hbf-white);
  border: 1px solid var(--hbf-border);
  border-radius: 8px;
  padding: 14px;
  cursor: default;
  transition: all .2s;
}
.hbf-doc-card:hover { border-color: #d1d5db; }
.hbf-doc-card.selected {
  border-color: var(--hbf-accent);
  box-shadow: 0 0 0 2px rgba(232,86,42,.15);
}

.hbf-doc-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hbf-doc-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hbf-border);
  flex-shrink: 0;
}
.hbf-doc-avatar-stub {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.hbf-doc-info { flex: 1; min-width: 0; }
.hbf-doc-name { font-size: 15px; font-weight: 700; color: var(--hbf-text); margin-bottom: 2px; }
.hbf-doc-qual { font-size: 12px; color: var(--hbf-muted); margin-bottom: 2px; }
.hbf-doc-lang { font-size: 11px; color: #94a3b8; }

.hbf-doc-fee-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.hbf-doc-fee { font-size: 14px; font-weight: 800; color: var(--hbf-teal); }
.hbf-doc-select-btn { padding: 6px 14px; font-size: 12px; border-radius: 6px; }

/* Skeleton loader */
.hbf-spec-skeleton {
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Not-sure banner */
.hbf-not-sure-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff8f5;
  border: 1px solid #ffd5c5;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.hbf-not-sure-banner > div { flex: 1; min-width: 180px; }
.hbf-not-sure-banner strong { font-size: 14px; display: block; margin-bottom: 4px; }
.hbf-not-sure-banner p { font-size: 13px; color: var(--hbf-muted); margin: 0; }
.hbf-ns-btn {
  background: none;
  border: none;
  color: var(--hbf-accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  padding: 0;
}

/* ── Date strip ──────────────────────────────────────────────────── */
.hbf-date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.hbf-date-strip::-webkit-scrollbar { height: 4px; }
.hbf-date-strip::-webkit-scrollbar-thumb { background: var(--hbf-border); border-radius: 2px; }
.hbf-date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 2px solid var(--hbf-border);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  background: var(--hbf-white);
  transition: all .15s;
  flex-shrink: 0;
  min-width: 64px;
}
.hbf-date-btn:hover { border-color: var(--hbf-accent); }
.hbf-date-btn.selected {
  background: var(--hbf-accent);
  border-color: var(--hbf-accent);
  color: #fff;
}
.hbf-date-day  { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.hbf-date-num  { font-size: 22px; font-weight: 800; line-height: 1; }
.hbf-date-month{ font-size: 11px; }

/* ── Time slots ──────────────────────────────────────────────────── */
.hbf-time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.hbf-time-btn {
  padding: 9px 18px;
  border: 2px solid var(--hbf-border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  background: var(--hbf-white);
  font-weight: 600;
  transition: all .15s;
}
.hbf-time-btn:hover { border-color: var(--hbf-accent); color: var(--hbf-accent); }
.hbf-time-btn.selected { background: var(--hbf-accent); border-color: var(--hbf-accent); color: #fff; }
.hbf-time-btn.busy { opacity: .4; cursor: not-allowed; }
.hbf-slots-loading { color: var(--hbf-muted); font-size: 13px; padding: 16px 0; display: flex; align-items: center; gap: 8px; }
.hbf-slots-loading::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid var(--hbf-border);
  border-top-color: var(--hbf-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Booking chip ────────────────────────────────────────────────── */
.hbf-booking-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hbf-chip {
  background: #f0fdf9;
  border: 1px solid #a7f3d0;
  color: var(--hbf-teal);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Fee box ─────────────────────────────────────────────────────── */
.hbf-fee-box {
  background: var(--hbf-bg);
  border: 1px solid var(--hbf-border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 20px;
}
.hbf-fee-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 4px 0; }
.hbf-fee-row strong { color: var(--hbf-teal); font-size: 18px; }
.hbf-fee-note { font-size: 12px; color: var(--hbf-muted); margin-top: 8px; }
.hbf-fee-note span { display: block; line-height: 1.5; }

/* ── Form inputs ─────────────────────────────────────────────────── */
.hbf-field { margin-bottom: 0; }
.hbf-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--hbf-text); }
.hbf-input {
  width: 100%;
  border: 2px solid var(--hbf-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--hbf-white);
  color: var(--hbf-text);
  transition: border-color .15s;
  box-sizing: border-box;
}
.hbf-input:focus { outline: none; border-color: var(--hbf-accent); }
textarea.hbf-input { resize: vertical; min-height: 80px; }
select.hbf-input { 
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%236b7280'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; 
  background-position: right 14px center; 
  padding: 10px 36px 10px 14px; /* Fix vertical centering */
  line-height: 1.5;
  cursor: pointer; 
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.hbf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  line-height: 1;
  white-space: nowrap;
}
.hbf-btn-primary { background: var(--hbf-accent); color: #fff; padding: 12px 24px; font-size: 15px; }
.hbf-btn-primary:hover { background: var(--hbf-accent-h); color: #fff; transform: translateY(-1px); }
.hbf-btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.hbf-btn-ghost { background: var(--hbf-bg); color: var(--hbf-text); border: 1.5px solid var(--hbf-border); padding: 12px 20px; font-size: 15px; }
.hbf-btn-ghost:hover { background: #f0f0f0; }
.hbf-btn-sm { padding: 8px 16px; font-size: 13px; }
.hbf-btn-lg { padding: 14px 32px; font-size: 16px; }

.hbf-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hbf-border);
}
.hbf-actions-right { justify-content: flex-end; }

/* ── Messages ────────────────────────────────────────────────────── */
.hbf-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 16px;
}
.hbf-field-error { color: #b91c1c; font-size: 13px; margin-top: 6px; }
.hbf-muted { color: var(--hbf-muted); font-size: 14px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hbf-panel { padding: 20px 16px; }
  .hbf-specialty-grid { grid-template-columns: 1fr; max-height: none; }
  .hbf-step-line { min-width: 32px; }
  .hbf-mode-group { gap: 8px; }
  .hbf-mode-card { padding: 12px 16px; min-width: 80px; }
  .hbf-actions { flex-direction: column-reverse; gap: 10px; }
  .hbf-actions .hbf-btn { width: 100%; justify-content: center; }
  .hbf-inline-form { flex-direction: column; }
  .hbf-inline-form .hbf-input-sm { flex: 1; }
  .hbf-panel-icon { display: none; }
  .hbf-not-sure-banner { flex-direction: column; }
}

/* ── Lab Booking Modal Premium Styles ────────────────────────────── */
.hb-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hb-modal-overlay.hb-active {
  opacity: 1;
  visibility: visible;
}

.hb-modal-container {
  background: #ffffff;
  width: 92%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.hb-modal-overlay.hb-active .hb-modal-container {
  transform: scale(1) translateY(0);
}

/* Progress Strip */
.hb-modal-progress {
  height: 4px;
  background: #f1f5f9;
  width: 100%;
}
.hb-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--hbf-accent), #f97316);
  width: 0%;
  transition: width 0.6s ease;
}

/* Header */
.hb-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hb-modal-subtitle {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hbf-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.hb-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.hb-modal-close {
  background: #f8fafc;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hb-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg);
}

/* Body */
.hb-modal-body {
  padding: 24px 32px;
  max-height: 65vh;
  overflow-y: auto;
}
.hb-step-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #334155;
}

/* Form Elements */
.hb-field-group { margin-bottom: 20px; }
.hb-modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}
.hb-modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
}
.hb-modal-input:focus {
  outline: none;
  border-color: var(--hbf-accent);
  box-shadow: 0 0 0 4px rgba(232, 86, 42, 0.1);
}

.hb-fields-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 16px;
}

/* Chips */
.hb-chip-group { display: flex; gap: 8px; }
.hb-chip {
  padding: 8px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.hb-chip:hover { border-color: var(--hbf-accent); }
.hb-chip.hb-selected {
  background: var(--hbf-accent);
  border-color: var(--hbf-accent);
  color: #fff;
}

/* Slots Grid */
.hb-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hb-slot-item {
  padding: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.hb-slot-item:hover { border-color: var(--hbf-accent); }
.hb-slot-item.hb-selected {
  background: #fff;
  border-color: var(--hbf-accent);
  color: var(--hbf-accent);
  box-shadow: inset 0 0 0 1px var(--hbf-accent);
}

.hb-modal-hint {
  font-size: 12px;
  color: #ef4444;
  margin-top: 8px;
  font-weight: 500;
}

/* Footer */
.hb-modal-footer {
  padding: 24px 32px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hb-modal-price-wrap { display: flex; flex-direction: column; }
.hb-price-label { font-size: 12px; color: #64748b; font-weight: 600; }
.hb-price-amount { font-size: 22px; font-weight: 800; color: #0f172a; }

.hb-modal-submit-btn {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.hb-modal-submit-btn:hover { background: #1e293b; transform: translateY(-2px); }
.hb-modal-submit-btn svg { width: 18px; height: 18px; }

/* Loader */
.hb-modal-loader-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0; visibility: hidden;
  transition: 0.3s;
}
.hb-modal-loader-overlay.hb-active { opacity: 1; visibility: visible; }
.hb-spinner {
  width: 40px; height: 40px;
  border: 4px solid #f1f5f9;
  border-top-color: var(--hbf-accent);
  border-radius: 50%;
  animation: hbSpin 1s linear infinite;
  margin-bottom: 16px;
}
@keyframes hbSpin { to { transform: rotate(360deg); } }

/* ── Minimal Date Field UI ──────────────────────────────────── */
.hb-date-field-minimal {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 16px 10px 42px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.hb-date-field-minimal:hover,
.hb-date-field-minimal:focus {
    border-color: var(--hbf-accent) !important;
    background: #fff !important;
    color: #0f172a !important;
    outline: none !important;
}
.hb-date-field-minimal.hb-selected {
    border-color: var(--hbf-accent) !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px var(--hbf-accent) !important;
    color: #0f172a !important;
}

@media (max-width: 540px) {
  .hb-modal-container { bottom: 0; border-radius: 20px 20px 0 0; max-height: 90vh; width: 100%; transform: translateY(100%); }
  .hb-modal-overlay.hb-active .hb-modal-container { transform: translateY(0); }
  .hb-modal-body { padding: 20px; }
  .hb-modal-header, .hb-modal-footer { padding: 20px; }
  .hb-slot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Premium Date Field Enhancements ────────────────────────────── */
.hb-input-icon-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.hb-input-icon-wrapper i { 
    position: absolute; left: 14px; color: #94a3b8; font-size: 16px; 
    pointer-events: none; transition: all 0.2s; z-index: 1; 
}
.hb-input-icon-wrapper .hb-input,
.hb-input-icon-wrapper .hb-modal-input { padding-left: 42px !important; }
.hb-input-icon-wrapper:focus-within i { color: var(--hbf-accent); transform: scale(1.1); }

/* Flatpickr Brand Override */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px !important;
}
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: var(--hbf-accent) !important;
    border-color: var(--hbf-accent) !important;
}
.flatpickr-months .flatpickr-month { background: #fff !important; color: #0f172a !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700 !important; }
.flatpickr-day.today { border-color: var(--hbf-accent) !important; }
.flatpickr-day.today:hover { background: var(--hbf-accent) !important; color: #fff !important; }
.flatpickr-day:hover { background: #f1f5f9 !important; }
.flatpickr-calendar.static { top: 100% !important; }
/* Flatpickr Modal Fix */
.flatpickr-calendar {
    z-index: 10000000 !important;
}

/* ── Premium My Consultations Redesign ───────────────────────────── */
.hb-consultations-list { 
  --hb-primary: #2796B7; 
  --hb-border: #E2E8F0; 
  --hb-radius-lg: 16px; 
  --hb-radius-sm: 8px; 
  --hb-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05); 
  --hb-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1); 
  --hb-text-dark: #0F172A; 
  --hb-muted: #64748B; 
  --hb-text: #334155; 
  --hb-border-light: #F1F5F9;
  font-family: var(--hbf-font-family, 'Inter', sans-serif);
  display: flex; flex-direction: column; gap: 24px; margin-top: 20px; 
}
.hb-cons-card { 
  background: #fff; border: 1px solid var(--hb-border); border-radius: var(--hb-radius-lg); box-shadow: var(--hb-shadow-sm); overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; 
}
.hb-cons-card:hover { box-shadow: var(--hb-shadow-lg); border-color: #cbd5e1; transform: translateY(-2px); }
.hbc-header { background: #f8fafc; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hb-border); }
.hbc-datetime { display: flex; align-items: center; gap: 16px; }
.hbc-date-box { background: var(--hb-primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--hb-radius-sm); padding: 6px 12px; min-width: 60px; box-shadow: 0 4px 10px rgba(39, 150, 183, 0.2); }
.hbc-month { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; line-height: 1.2; }
.hbc-day { font-size: 20px; font-weight: 800; font-family: 'Montserrat', sans-serif; line-height: 1; }
.hbc-time-info { display: flex; flex-direction: column; }
.hbc-time { font-size: 16px; font-weight: 700; color: var(--hb-text-dark); line-height: 1.3; }
.hbc-year { font-size: 13px; color: var(--hb-muted); margin-bottom: 2px; }
.hbc-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hbc-type-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 6px; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.type-video { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.type-in_person { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.hbc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.hbc-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--hb-muted); margin: 0 0 16px 0; padding-bottom: 8px; border-bottom: 1px dashed var(--hb-border); }
.hbc-doctor-profile { display: flex; gap: 16px; align-items: flex-start; }

/* ── Medical Locker Premium Redesign — Restored & Isolated ────────── */
.hbl-locker-wrap { padding: 10px 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

.hbl-locker-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 36px; padding: 32px;
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 24px; gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.hbl-header-content h2 { margin: 0; font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.hbl-header-content p { margin: 6px 0 0; color: #64748b; font-size: 15px; }

.hbl-btn-slim {
    display: inline-flex; align-items: center; gap: 10px;
    background: #0f172a; color: #ffffff;
    padding: 14px 28px; border-radius: 100px;
    border: none; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}
.hbl-btn-slim:hover { transform: translateY(-2px); background: #1e293b; box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3); }

.hbl-locker-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px; margin-top: 10px;
}

.hbl-record-card {
    display: flex; align-items: center; gap: 20px;
    background: #ffffff; border: 1.5px solid #f1f5f9;
    border-radius: 24px; padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.hbl-record-card:hover {
    border-color: #e2e8f0; transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.hbl-record-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--hbf-teal); opacity: 0; transition: opacity 0.3s;
}
.hbl-record-card:hover::before { opacity: 1; }

.hbl-record-icon {
    width: 64px; height: 64px; background: #f0fdfa;
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; flex-shrink: 0; color: var(--hbf-teal);
}
.hbl-record-icon svg { stroke: var(--hbf-teal); }
.hbl-record-card:hover .hbl-record-icon { background: #ccfbf1; transform: scale(1.05); }

.hbl-record-details { flex: 1; min-width: 0; }
.hbl-record-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbl-record-info { margin: 0 0 12px; font-size: 13px; color: #64748b; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hbl-record-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.hbl-meta-tag { background: #f1f5f9; color: #475569; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 6px; }
.hbl-meta-tag svg { flex-shrink: 0; }

.hbl-record-actions { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid #f1f5f9; }
.hbl-action-btn { 
    width: 36px; height: 36px; background: #ffffff; border: 1px solid #f1f5f9; 
    color: #94a3b8; cursor: pointer; border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; 
    transition: all 0.2s; font-size: 14px; text-decoration: none;
}
.hbl-action-btn svg { stroke: #94a3b8; transition: stroke 0.2s; }
.hbl-action-btn:hover { background: #f8fafc; color: #0f172a; border-color: #e2e8f0; }
.hbl-action-btn:hover svg { stroke: #0f172a; }
.hbl-action-btn.del:hover { color: #ef4444; background: #fef2f2; border-color: #fee2e2; }
.hbl-action-btn.del:hover svg { stroke: #ef4444; }

/* Premium Slim Modals - Prefix Isolated */
.hbl-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; display: none; padding: 20px; box-sizing: border-box; }
.hbl-modal.active { display: flex !important; align-items: center; justify-content: center; }
.hbl-modal-blur { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7) !important; backdrop-filter: blur(14px) !important; -webkit-backdrop-filter: blur(14px) !important; }

.hbl-slim-modal {
    background: #ffffff !important; width: 100%; max-width: 440px; border-radius: 32px;
    position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: hblPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh; overflow-y: auto; z-index: 10; padding: 0;
}
@keyframes hblPopIn { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.hbl-modal-inner { padding: 40px; }
.hbl-modal-header { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; margin-bottom: 32px !important; position: relative; border-bottom: none !important; padding: 0 !important; }
.hbl-modal-header i { font-size: 48px; color: var(--hbf-teal); margin-bottom: 16px; display: block; filter: drop-shadow(0 4px 10px rgba(26, 155, 138, 0.2)); }
.hbl-modal-header h3 { margin: 0 !important; font-size: 24px; font-weight: 800; color: #0f172a; line-height: 1.2 !important; }
.hbl-modal-header p { font-size: 14px; color: #64748b; margin-top: 8px !important; line-height: 1.4 !important; }

.hbl-modal-close {
    position: absolute; top: 24px; right: 24px; width: 36px; height: 36px;
    background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #64748b; cursor: pointer; transition: all 0.3s; z-index: 20;
}
.hbl-modal-close:hover { background: #e2e8f0; color: #0f172a; transform: rotate(90deg); }

.hbl-form-compact { display: flex; flex-direction: column; gap: 24px; }
.hbl-field-slim { display: flex; flex-direction: column; gap: 10px; }
.hbl-field-slim label { font-size: 14px; font-weight: 700; color: #334155; padding-left: 2px; }

.hbl-input-premium {
    background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 16px;
    padding: 14px 18px; font-size: 15px; color: #0f172a; transition: all 0.3s;
    width: 100%; box-sizing: border-box;
}
.hbl-input-premium:focus { background: #ffffff; border-color: var(--hbf-teal); outline: none; box-shadow: 0 0 0 5px rgba(26, 155, 138, 0.1); }

/* File Vibe Zone */
.hbl-file-vibe {
    cursor: pointer; position: relative;
    border: 2px dashed #cbd5e1; border-radius: 20px;
    padding: 40px 24px; transition: all 0.3s; background: #fafafa;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hbl-file-vibe:hover { border-color: var(--hbf-teal); background: #f0fdfa; }
.hbl-file-vibe i { font-size: 32px; color: #94a3b8; transition: all 0.3s; }
.hbl-file-vibe:hover i { color: var(--hbf-teal); transform: translateY(-3px); }
.hbl-file-name { font-size: 14px; font-weight: 600; color: #64748b; text-align: center; }
.hbl-hint { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 4px; display: block; }

.hbl-btn-premium {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff; padding: 18px; border-radius: 18px;
    border: none; font-weight: 700; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 12px; transition: all 0.3s;
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.4);
}
.hbl-btn-premium:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.5); }

/* Empty State */
.hbl-empty-locker {
    text-align: center; padding: 100px 40px; background: #ffffff;
    border: 2px dashed #e2e8f0; border-radius: 32px; margin-top: 20px;
}
.hbl-empty-icon { font-size: 96px; margin-bottom: 24px; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.08)); }
.hbl-empty-locker h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: #0f172a; }
.hbl-empty-locker p { color: #64748b; font-size: 16px; max-width: 360px; margin: 0 auto; line-height: 1.6; }

@media (max-width: 600px) {
    .hbl-locker-header { flex-direction: column; align-items: stretch; text-align: center; padding: 24px; }
    .hbl-btn-slim { justify-content: center; }
    .hbl-locker-grid { grid-template-columns: 1fr; }
    .hbl-slim-modal { border-radius: 32px 32px 0 0; position: fixed; bottom: 0; }
    .hbl-modal-inner { padding: 32px 24px; }
}




