/* ============================================================
   SRHR Clinic Manager — Frontend Styles
   ============================================================ */

:root {
  --srhr-primary:     #2c6e8a;
  --srhr-primary-dk:  #1e4f65;
  --srhr-accent:      #e8553e;
  --srhr-green:       #27ae60;
  --srhr-yellow:      #f39c12;
  --srhr-bg:          #f4f7fa;
  --srhr-white:       #ffffff;
  --srhr-border:      #dde3ea;
  --srhr-text:        #2d3748;
  --srhr-muted:       #718096;
  --srhr-radius:      10px;
  --srhr-shadow:      0 2px 16px rgba(44,110,138,.10);
  --srhr-shadow-lg:   0 8px 32px rgba(44,110,138,.18);
  --srhr-font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---- Reset / Base ---- */
.srhr-wrap *,
.srhr-wrap *::before,
.srhr-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.srhr-wrap {
  font-family: var(--srhr-font);
  color: var(--srhr-text);
  line-height: 1.6;
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ============================================================
   AUTH CARDS (Login / Register)
   ============================================================ */
.srhr-auth-card {
  background: var(--srhr-white);
  border-radius: var(--srhr-radius);
  box-shadow: var(--srhr-shadow-lg);
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.srhr-auth-header {
  background: linear-gradient(135deg, var(--srhr-primary), var(--srhr-primary-dk));
  padding: 36px 40px 28px;
  text-align: center;
  color: #fff;
}

.srhr-auth-header .srhr-logo {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 28px;
}

.srhr-auth-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.srhr-auth-header p  { opacity: .82; font-size: .9rem; }

.srhr-auth-body { padding: 32px 40px; }

/* ============================================================
   FORMS
   ============================================================ */
.srhr-form-group { margin-bottom: 18px; }

.srhr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.srhr-form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--srhr-text);
  margin-bottom: 5px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.srhr-form-group input,
.srhr-form-group select,
.srhr-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--srhr-border);
  border-radius: 7px;
  font-size: .95rem;
  font-family: var(--srhr-font);
  color: var(--srhr-text);
  background: #fafbfc;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.srhr-form-group input:focus,
.srhr-form-group select:focus,
.srhr-form-group textarea:focus {
  border-color: var(--srhr-primary);
  box-shadow: 0 0 0 3px rgba(44,110,138,.12);
  background: #fff;
}

.srhr-form-group textarea { resize: vertical; min-height: 80px; }

.srhr-form-group .srhr-hint {
  font-size: .78rem;
  color: var(--srhr-muted);
  margin-top: 4px;
}

/* ---- Buttons ---- */
.srhr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px;
  border-radius: 7px;
  border: none;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--srhr-font);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
}

.srhr-btn:active { transform: translateY(1px); }

.srhr-btn-primary {
  background: var(--srhr-primary);
  color: #fff;
}
.srhr-btn-primary:hover { background: var(--srhr-primary-dk); box-shadow: 0 4px 14px rgba(44,110,138,.3); }

.srhr-btn-accent {
  background: var(--srhr-accent);
  color: #fff;
}
.srhr-btn-accent:hover { background: #c0392b; }

.srhr-btn-outline {
  background: transparent;
  color: var(--srhr-primary);
  border: 1.5px solid var(--srhr-primary);
}
.srhr-btn-outline:hover { background: var(--srhr-primary); color: #fff; }

.srhr-btn-sm { padding: 7px 16px; font-size: .83rem; }
.srhr-btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.srhr-btn-block { width: 100%; }

.srhr-btn:disabled,
.srhr-btn.loading { opacity: .7; cursor: not-allowed; pointer-events: none; }

.srhr-btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: srhr-spin .6s linear infinite;
}

@keyframes srhr-spin { to { transform: rotate(360deg); } }

/* ---- Auth footer ---- */
.srhr-auth-footer {
  padding: 16px 40px 28px;
  text-align: center;
  font-size: .88rem;
  color: var(--srhr-muted);
}
.srhr-auth-footer a { color: var(--srhr-primary); font-weight: 600; text-decoration: none; }
.srhr-auth-footer a:hover { text-decoration: underline; }

/* ---- Alert messages ---- */
.srhr-alert {
  padding: 12px 16px;
  border-radius: 7px;
  font-size: .9rem;
  margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.srhr-alert-error   { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }
.srhr-alert-success { background: #f0fdf4; color: #166534; border-left: 4px solid #22c55e; }
.srhr-alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
.srhr-alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }

/* ============================================================
   PATIENT PORTAL
   ============================================================ */
.srhr-portal {
  background: var(--srhr-bg);
  border-radius: var(--srhr-radius);
  min-height: 500px;
}

/* ---- Portal Header ---- */
.srhr-portal-header {
  background: linear-gradient(135deg, var(--srhr-primary), var(--srhr-primary-dk));
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--srhr-radius) var(--srhr-radius) 0 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

.srhr-portal-header .srhr-user-info { display: flex; align-items: center; gap: 14px; }

.srhr-avatar {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}

.srhr-portal-header h3 { font-size: 1.15rem; font-weight: 700; }
.srhr-portal-header p  { font-size: .85rem; opacity: .82; }

.srhr-portal-header .srhr-header-actions { display: flex; gap: 10px; align-items: center; }

/* ---- Portal Nav ---- */
.srhr-portal-nav {
  background: var(--srhr-white);
  border-bottom: 1.5px solid var(--srhr-border);
  display: flex; overflow-x: auto;
}

.srhr-portal-nav a {
  padding: 14px 22px;
  color: var(--srhr-muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}

.srhr-portal-nav a:hover { color: var(--srhr-primary); }
.srhr-portal-nav a.active {
  color: var(--srhr-primary);
  border-bottom-color: var(--srhr-primary);
}

/* ---- Portal Content ---- */
.srhr-portal-content { padding: 28px 32px; }

/* ---- Stats Row ---- */
.srhr-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.srhr-stat-card {
  background: var(--srhr-white);
  border-radius: var(--srhr-radius);
  padding: 20px 22px;
  box-shadow: var(--srhr-shadow);
  display: flex; align-items: center; gap: 14px;
}

.srhr-stat-card .srhr-stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.srhr-stat-icon.blue   { background: #eff6ff; }
.srhr-stat-icon.green  { background: #f0fdf4; }
.srhr-stat-icon.orange { background: #fff7ed; }
.srhr-stat-icon.purple { background: #faf5ff; }

.srhr-stat-card h4 { font-size: 1.4rem; font-weight: 700; }
.srhr-stat-card p  { font-size: .78rem; color: var(--srhr-muted); font-weight: 500; }

/* ---- Cards / Panels ---- */
.srhr-panel {
  background: var(--srhr-white);
  border-radius: var(--srhr-radius);
  box-shadow: var(--srhr-shadow);
  margin-bottom: 22px;
  overflow: hidden;
}

.srhr-panel-header {
  padding: 16px 22px;
  border-bottom: 1.5px solid var(--srhr-border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.srhr-panel-header h4 { font-size: 1rem; font-weight: 700; }
.srhr-panel-body { padding: 20px 22px; }

/* ---- Appointment List ---- */
.srhr-appt-list { list-style: none; }

.srhr-appt-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--srhr-border);
}
.srhr-appt-item:last-child { border-bottom: none; padding-bottom: 0; }

.srhr-appt-date {
  min-width: 52px;
  text-align: center;
  background: var(--srhr-bg);
  border-radius: 8px;
  padding: 8px 4px;
}
.srhr-appt-date .day  { font-size: 1.4rem; font-weight: 800; color: var(--srhr-primary); line-height: 1; }
.srhr-appt-date .mon  { font-size: .68rem; text-transform: uppercase; color: var(--srhr-muted); font-weight: 600; }

.srhr-appt-info { flex: 1; }
.srhr-appt-info h5 { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.srhr-appt-info p  { font-size: .82rem; color: var(--srhr-muted); }

.srhr-appt-actions { display: flex; gap: 8px; align-items: center; }

/* ---- Badges ---- */
.srhr-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.srhr-badge-pending    { background: #fffbeb; color: #92400e; }
.srhr-badge-confirmed  { background: #eff6ff; color: #1e40af; }
.srhr-badge-completed  { background: #f0fdf4; color: #166534; }
.srhr-badge-cancelled  { background: #fef2f2; color: #b91c1c; }
.srhr-badge-paid       { background: #f0fdf4; color: #166534; }
.srhr-badge-unpaid     { background: #fef2f2; color: #b91c1c; }
.srhr-badge-partial    { background: #fffbeb; color: #92400e; }

/* ---- Invoice Table ---- */
.srhr-table-wrap { overflow-x: auto; }

.srhr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.srhr-table th {
  background: var(--srhr-bg);
  padding: 10px 14px;
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--srhr-muted);
  font-weight: 700;
}

.srhr-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--srhr-border);
  color: var(--srhr-text);
}

.srhr-table tr:last-child td { border-bottom: none; }
.srhr-table tr:hover td { background: #fafbfc; }

/* ---- Profile Form ---- */
.srhr-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .srhr-profile-grid { grid-template-columns: 1fr; }
  .srhr-form-row     { grid-template-columns: 1fr; }
}

/* ---- Empty state ---- */
.srhr-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--srhr-muted);
}
.srhr-empty .srhr-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.srhr-empty h4 { font-size: 1.05rem; font-weight: 600; color: var(--srhr-text); margin-bottom: 6px; }
.srhr-empty p  { font-size: .9rem; }

/* ============================================================
   BOOKING WIZARD
   ============================================================ */
.srhr-wizard {
  background: var(--srhr-white);
  border-radius: var(--srhr-radius);
  box-shadow: var(--srhr-shadow-lg);
  overflow: hidden;
}

/* ---- Progress ---- */
.srhr-wizard-progress {
  background: var(--srhr-primary);
  padding: 24px 32px;
}

.srhr-progress-steps {
  display: flex; align-items: center; justify-content: center;
  max-width: 480px; margin: 0 auto;
}

.srhr-step-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1;
}

.srhr-step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: background .3s;
  position: relative;
  z-index: 1;
}

.srhr-step-item.active   .srhr-step-circle { background: #fff; color: var(--srhr-primary); }
.srhr-step-item.done     .srhr-step-circle { background: var(--srhr-green); }

.srhr-step-label {
  font-size: .72rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  text-align: center;
}
.srhr-step-item.active .srhr-step-label { color: #fff; }

.srhr-step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.25);
  margin-bottom: 22px;
}
.srhr-step-connector.done { background: var(--srhr-green); }

/* ---- Wizard Body ---- */
.srhr-wizard-body { padding: 32px; }

.srhr-wizard-step { display: none; }
.srhr-wizard-step.active { display: block; }

.srhr-wizard-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.srhr-wizard-step .srhr-step-desc {
  font-size: .88rem;
  color: var(--srhr-muted);
  margin-bottom: 24px;
}

/* ---- Service/Clinic/Doctor grid ---- */
.srhr-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.srhr-select-card {
  border: 2px solid var(--srhr-border);
  border-radius: var(--srhr-radius);
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  text-align: center;
}

.srhr-select-card:hover {
  border-color: var(--srhr-primary);
  box-shadow: 0 2px 12px rgba(44,110,138,.12);
}

.srhr-select-card.selected {
  border-color: var(--srhr-primary);
  background: #eff6ff;
}

.srhr-select-card .srhr-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.srhr-select-card h5 { font-size: .92rem; font-weight: 700; margin-bottom: 4px; }
.srhr-select-card p  { font-size: .78rem; color: var(--srhr-muted); }

/* ---- Doctor Card ---- */
.srhr-doctor-card {
  border: 2px solid var(--srhr-border);
  border-radius: var(--srhr-radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  display: flex; align-items: flex-start; gap: 14px;
}

.srhr-doctor-card:hover { border-color: var(--srhr-primary); }
.srhr-doctor-card.selected { border-color: var(--srhr-primary); background: #eff6ff; }

.srhr-doctor-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--srhr-primary), var(--srhr-primary-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}

.srhr-doctor-card h5 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.srhr-doctor-card .srhr-spec { font-size: .8rem; color: var(--srhr-primary); font-weight: 600; }
.srhr-doctor-card .srhr-clinic { font-size: .78rem; color: var(--srhr-muted); margin-top: 4px; }

/* ---- Slots Grid ---- */
.srhr-slot-picker { margin-top: 8px; }
.srhr-slot-picker h5 { font-size: .88rem; font-weight: 600; margin-bottom: 10px; color: var(--srhr-muted); }

.srhr-slots-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}

.srhr-slot {
  padding: 8px 16px;
  border: 1.5px solid var(--srhr-border);
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
}

.srhr-slot:hover   { border-color: var(--srhr-primary); color: var(--srhr-primary); }
.srhr-slot.selected { border-color: var(--srhr-primary); background: var(--srhr-primary); color: #fff; }
.srhr-slot.taken   { opacity: .45; cursor: not-allowed; text-decoration: line-through; pointer-events: none; }

/* ---- Booking Summary ---- */
.srhr-summary-box {
  background: var(--srhr-bg);
  border-radius: var(--srhr-radius);
  padding: 22px;
  margin-bottom: 22px;
}

.srhr-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed var(--srhr-border);
  font-size: .9rem;
}
.srhr-summary-row:last-child { border-bottom: none; }
.srhr-summary-row .label { color: var(--srhr-muted); font-weight: 500; }
.srhr-summary-row .value { font-weight: 700; }

.srhr-summary-total {
  display: flex; justify-content: space-between;
  padding: 12px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--srhr-primary);
}

/* ---- Wizard Nav ---- */
.srhr-wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 32px 28px;
  gap: 12px;
}

/* ---- Confirm screen ---- */
.srhr-booking-success {
  text-align: center;
  padding: 40px 24px;
}
.srhr-booking-success .srhr-success-icon {
  width: 72px; height: 72px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
}
.srhr-booking-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.srhr-booking-success p  { color: var(--srhr-muted); font-size: .92rem; max-width: 340px; margin: 0 auto 24px; }

/* ============================================================
   DOCTOR PORTAL
   ============================================================ */
.srhr-doctor-portal {
  background: var(--srhr-bg);
  border-radius: var(--srhr-radius);
}

.srhr-dp-header {
  background: linear-gradient(135deg, #1e3a5f, #2c6e8a);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--srhr-radius) var(--srhr-radius) 0 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

.srhr-dp-header h3 { font-size: 1.2rem; font-weight: 700; }
.srhr-dp-header p  { font-size: .85rem; opacity: .8; }

.srhr-dp-body { padding: 24px 32px; }

.srhr-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.srhr-schedule-card {
  background: var(--srhr-white);
  border-radius: var(--srhr-radius);
  box-shadow: var(--srhr-shadow);
  padding: 18px;
  display: flex; align-items: flex-start; gap: 14px;
  border-left: 4px solid var(--srhr-primary);
}

.srhr-schedule-card.confirmed { border-left-color: var(--srhr-green); }
.srhr-schedule-card.pending   { border-left-color: var(--srhr-yellow); }
.srhr-schedule-card.cancelled { border-left-color: #ef4444; opacity: .7; }

.srhr-sc-time {
  min-width: 58px;
  text-align: center;
  background: var(--srhr-bg);
  border-radius: 7px;
  padding: 8px 4px;
}
.srhr-sc-time .t { font-size: .92rem; font-weight: 800; color: var(--srhr-primary); }
.srhr-sc-time .period { font-size: .68rem; color: var(--srhr-muted); font-weight: 600; }

.srhr-sc-info h5 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.srhr-sc-info p  { font-size: .8rem; color: var(--srhr-muted); }
.srhr-sc-info .srhr-sc-actions { margin-top: 10px; display: flex; gap: 8px; }

/* ============================================================
   SEARCH / FILTER BAR
   ============================================================ */
.srhr-filter-bar {
  background: var(--srhr-white);
  border: 1.5px solid var(--srhr-border);
  border-radius: var(--srhr-radius);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}

.srhr-filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.srhr-filter-group label { font-size: .76rem; font-weight: 700; color: var(--srhr-muted); text-transform: uppercase; }
.srhr-filter-group select,
.srhr-filter-group input {
  padding: 8px 12px;
  border: 1.5px solid var(--srhr-border);
  border-radius: 6px;
  font-size: .88rem;
  font-family: var(--srhr-font);
  outline: none;
  background: #fafbfc;
}
.srhr-filter-group select:focus,
.srhr-filter-group input:focus {
  border-color: var(--srhr-primary);
  background: #fff;
}

/* ============================================================
   TOAST
   ============================================================ */
.srhr-toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 99999;
  display: flex; flex-direction: column; gap: 10px;
}

.srhr-toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 360px;
  animation: srhr-toast-in .25s ease;
}

.srhr-toast.success { border-left: 4px solid var(--srhr-green); }
.srhr-toast.error   { border-left: 4px solid #ef4444; }
.srhr-toast.info    { border-left: 4px solid var(--srhr-primary); }

@keyframes srhr-toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LOADER OVERLAY
   ============================================================ */
.srhr-loader {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,.7);
  z-index: 9999;
  align-items: center; justify-content: center;
}

.srhr-loader.active { display: flex; }

.srhr-loader-ring {
  width: 48px; height: 48px;
  border: 4px solid var(--srhr-border);
  border-top-color: var(--srhr-primary);
  border-radius: 50%;
  animation: srhr-spin .8s linear infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .srhr-wrap { padding: 0 12px; margin: 16px auto; }
  .srhr-portal-header, .srhr-portal-content, .srhr-dp-body { padding: 20px 16px; }
  .srhr-auth-header, .srhr-auth-body { padding: 24px 20px; }
  .srhr-wizard-body { padding: 20px 16px; }
  .srhr-wizard-nav  { padding: 0 16px 20px; }
  .srhr-select-grid { grid-template-columns: 1fr 1fr; }
  .srhr-stats-row   { grid-template-columns: 1fr 1fr; }
  .srhr-portal-nav a { padding: 12px 14px; font-size: .82rem; }
}

@media (max-width: 480px) {
  .srhr-select-grid { grid-template-columns: 1fr; }
  .srhr-stats-row   { grid-template-columns: 1fr; }
  .srhr-schedule-grid { grid-template-columns: 1fr; }
}

/* ── Booking Step 1 — Clinic picker ──────────────────────────────────── */
.srhr-clinic-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.srhr-clinic-pick-card {
    border: 2px solid var(--srhr-border);
    border-radius: var(--srhr-radius);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color .18s, background .18s, box-shadow .18s;
    background: #fff;
}

.srhr-clinic-pick-card:hover {
    border-color: var(--srhr-primary);
    box-shadow: 0 2px 12px rgba(44,110,138,.12);
}

.srhr-clinic-pick-card.selected {
    border-color: var(--srhr-primary);
    background: #eff6ff;
}

.srhr-clinic-pick-card.hidden {
    display: none;
}

.srhr-cpc-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.srhr-cpc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.srhr-cpc-info strong {
    font-size: .95rem;
    color: var(--srhr-text);
}

.srhr-cpc-info span {
    font-size: .82rem;
    color: var(--srhr-primary);
    font-weight: 600;
}

.srhr-cpc-info small {
    font-size: .78rem;
    color: var(--srhr-muted);
}

/* ── Step 2 doctor cards ─────────────────────────────────────────────── */
.srhr-doctor-pick-card {
    border: 2px solid var(--srhr-border);
    border-radius: var(--srhr-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    background: #fff;
}

.srhr-dp-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--srhr-primary), var(--srhr-primary-dk));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    flex-shrink: 0;
}

.srhr-dp-info { flex: 1; }
.srhr-dp-info h4 { margin: 0 0 3px; font-size: .95rem; }
.srhr-dp-spec { font-size: .82rem; color: var(--srhr-primary); font-weight: 600; }
.srhr-dp-clinic { font-size: .78rem; color: var(--srhr-muted); margin-top: 2px; }

@media (max-width: 600px) {
    .srhr-clinic-pick-grid { grid-template-columns: 1fr; }
}
