/* ================================================================
   PetClinic Booking Pro v2 – Frontend CSS
   Font: Quicksand (display) + DM Sans (body) — warm & modern
   Palette: Deep forest green + warm ivory + amber gold
   Aesthetic: Organic warmth with clinical precision
   ================================================================ */


/* ── Variables ─────────────────────────────────────────────── */
:root {
  --g1: #173a27;
  --g2: #1f5e3e;
  --g3: #2d8a5e;
  --g4: #52b788;
  --g5: #95d5b2;
  --ivory: #faf7f2;
  --cream: #f2ede4;
  --sand:  #e8e0d0;
  --amber: #e9a825;
  --red:   #d63031;
  --blue:  #0984e3;
  --text:  #1e2d23;
  --muted: #6b8070;
  --border:#d1e0d5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(23,58,39,.08);
  --shadow-md: 0 8px 32px rgba(23,58,39,.12);
  --shadow-lg: 0 20px 60px rgba(23,58,39,.16);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;
  --font-display: Cambria, 'Times New Roman', serif;
  --font-body:    Cambria, 'Times New Roman', serif;
  --tr: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
.pcb-page *, .pcb-page *::before, .pcb-page *::after { box-sizing: border-box; }
.pcb-page { font-family: var(--font-body); color: var(--text); line-height: 1.6; }

/* ── Page wrapper ──────────────────────────────────────────── */
.pcb-page {
  max-width: 760px;
  margin: 32px auto;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.req { color: var(--red); }
.pcb-optional { font-weight: 400; font-size: 12px; color: var(--muted); }

/* ══ TAB NAV ═══════════════════════════════════════════════════ */
.pcb-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--g1);
}
.pcb-tab-btn {
  padding: 18px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
}
.pcb-tab-btn:hover { color: rgba(255,255,255,.85); }
.pcb-tab-btn.active {
  color: var(--white);
  border-bottom-color: var(--amber);
  background: rgba(255,255,255,.07);
}
.pcb-tab-icon { font-size: 18px; }

/* ══ TAB CONTENT ════════════════════════════════════════════════ */
.pcb-tab-content { display: none; }
.pcb-tab-content.active { display: block; }

/* ══ PROGRESS ═══════════════════════════════════════════════════ */
.pcb-progress {
  display: flex;
  align-items: center;
  padding: 24px 40px 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--sand);
}
.pcb-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pcb-progress-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sand);
  border: 2.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: var(--muted);
  transition: all var(--tr);
}
.pcb-progress-label {
  font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: .5px;
  text-transform: uppercase;
  transition: color var(--tr);
}
.pcb-progress-connector {
  flex: 1; height: 2px;
  background: var(--sand);
  margin: 0 8px 20px;
  transition: background var(--tr);
}
.pcb-progress-item.active .pcb-progress-dot {
  background: var(--g2); border-color: var(--g2);
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(31,94,62,.18);
  transform: scale(1.08);
}
.pcb-progress-item.active .pcb-progress-label { color: var(--g2); }
.pcb-progress-item.done .pcb-progress-dot {
  background: var(--g4); border-color: var(--g4); color: var(--white);
}
.pcb-progress-item.done .pcb-progress-label { color: var(--g4); }
.pcb-progress-connector.done { background: var(--g4); }

/* ══ STEP ════════════════════════════════════════════════════ */
.pcb-step { display: none; padding: 32px 40px; }
.pcb-step.active { display: block; animation: pcb-slide-in .3s ease; }
@keyframes pcb-slide-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.pcb-step-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--cream);
  margin-bottom: 24px;
}
.pcb-step-emoji {
  font-size: 36px;
  width: 60px; height: 60px;
  background: var(--ivory);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--sand);
  flex-shrink: 0;
}
.pcb-step-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--g1);
}
.pcb-step-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ══ FIELDS ══════════════════════════════════════════════════ */
.pcb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcb-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.pcb-field  { margin-bottom: 16px; }

.pcb-label {
  display: block;
  font-size: 12.5px; font-weight: 700;
  color: var(--text); letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pcb-input {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14.5px; color: var(--text);
  background: var(--ivory);
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
  outline: none;
  appearance: none; -webkit-appearance: none;
}
.pcb-input:focus {
  border-color: var(--g3);
  box-shadow: 0 0 0 4px rgba(45,138,94,.14);
  background: var(--white);
}
.pcb-input.error { border-color: var(--red); box-shadow: 0 0 0 4px rgba(214,48,49,.12); }
.pcb-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6L0 0h10z' fill='%236b8070'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.pcb-textarea { min-height: 90px; resize: vertical; }

/* ══ SERVICE CARDS ══════════════════════════════════════════ */
.pcb-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; margin-top: 6px;
}
.pcb-service-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  background: var(--ivory);
  cursor: pointer;
  text-align: center;
  transition: all var(--tr);
}
.pcb-service-card:hover {
  border-color: var(--g4); background: rgba(82,183,136,.06);
  transform: translateY(-2px);
}
.pcb-service-card.selected {
  border-color: var(--g2); background: rgba(31,94,62,.07);
  box-shadow: 0 0 0 4px rgba(31,94,62,.1);
}
.pcb-service-icon { font-size: 26px; }
.pcb-service-name { font-size: 12px; font-weight: 700; color: var(--text); }
.pcb-service-dur  { font-size: 11px; color: var(--muted); }

/* ══ DOCTOR LIST ═════════════════════════════════════════════ */
.pcb-doctor-list { display: flex; flex-direction: column; gap: 8px; }
.pcb-doctor-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--tr);
  background: var(--ivory);
}
.pcb-doctor-card:hover { border-color: var(--g4); background: rgba(82,183,136,.05); }
.pcb-doctor-card.selected {
  border-color: var(--g2); background: rgba(31,94,62,.07);
  box-shadow: 0 0 0 3px rgba(31,94,62,.12);
}
.pcb-doctor-avatar { font-size: 22px; }
.pcb-doctor-name { font-size: 14px; font-weight: 700; color: var(--text); }
.pcb-doctor-spec { font-size: 12px; color: var(--muted); }

/* ══ SLOTS ═══════════════════════════════════════════════════ */
.pcb-date { cursor: pointer; }
.pcb-slots-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px;
  background: var(--ivory);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  min-height: 56px;
  align-items: center;
}
.pcb-slots-hint { font-size: 13px; color: var(--muted); margin: 0; font-style: italic; }
.pcb-slot {
  padding: 7px 14px; border-radius: var(--r-full);
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 13px; font-weight: 700; font-family: var(--font-display);
  cursor: pointer; transition: all var(--tr);
  color: var(--text); user-select: none;
}
.pcb-slot:hover:not(.pcb-slot-booked) {
  border-color: var(--g3); color: var(--g3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pcb-slot.pcb-slot-selected {
  background: var(--g2); border-color: var(--g2);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(31,94,62,.35);
  transform: translateY(-2px);
}
.pcb-slot.pcb-slot-booked {
  background: var(--cream); color: var(--sand);
  cursor: not-allowed; border-color: var(--sand);
  text-decoration: line-through;
}

/* ══ SUMMARY ═════════════════════════════════════════════════ */
.pcb-summary {
  background: linear-gradient(135deg, rgba(23,58,39,.04), rgba(82,183,136,.06));
  border: 2px solid var(--g5);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-top: 20px;
  animation: pcb-slide-in .3s ease;
}
.pcb-summary-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; color: var(--g1);
  margin-bottom: 14px;
}
.pcb-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.pcb-summary-item { font-size: 13px; }
.pcb-summary-label { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; }
.pcb-summary-val   { color: var(--text); font-weight: 700; margin-top: 2px; }

/* ══ ALERT ═══════════════════════════════════════════════════ */
.pcb-alert {
  margin: 16px 40px 0;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  animation: pcb-slide-in .2s ease;
}
.pcb-alert-error   { background: #fff0f0; color: var(--red);  border-left: 4px solid var(--red);  }
.pcb-alert-success { background: #f0fff8; color: var(--g2);   border-left: 4px solid var(--g4);   }

/* ══ FOOTER BUTTONS ══════════════════════════════════════════ */
.pcb-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 20px;
  border-top: 2px solid var(--cream);
}
.pcb-btn {
  padding: 12px 26px; border: none; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all var(--tr); letter-spacing: .3px;
  display: inline-flex; align-items: center; gap: 8px;
}
.pcb-btn-prev {
  background: var(--cream); color: var(--muted);
  border: 2px solid var(--sand);
}
.pcb-btn-prev:hover { background: var(--sand); color: var(--text); }
.pcb-btn-next, .pcb-btn-submit {
  background: linear-gradient(135deg, var(--g3), var(--g1));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(23,58,39,.3);
}
.pcb-btn-next:hover, .pcb-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23,58,39,.38);
}
.pcb-btn-next:active, .pcb-btn-submit:active { transform: translateY(0); }
.pcb-btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.pcb-btn-outline {
  background: transparent; border: 2px solid var(--g3); color: var(--g3);
}
.pcb-btn-outline:hover { background: var(--g3); color: var(--white); }
.pcb-btn-full { width: 100%; justify-content: center; border-radius: var(--r-sm); }
.pcb-arrow { font-size: 16px; }

.pcb-btn-inner, .pcb-submit-loading { display: flex; align-items: center; gap: 8px; }

/* ══ SUCCESS ═════════════════════════════════════════════════ */
.pcb-success {
  padding: 48px 40px;
  text-align: center;
  animation: pcb-slide-in .4s ease;
}
.pcb-success-inner { max-width: 420px; margin: auto; }
.pcb-success-anim {
  font-size: 72px; margin-bottom: 12px;
  animation: pcb-pop .5s cubic-bezier(.36,.07,.19,.97);
}
@keyframes pcb-pop {
  0%  { transform: scale(.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100%{ transform: scale(1); opacity: 1; }
}
.pcb-success h3 {
  font-family: var(--font-display); font-size: 26px;
  color: var(--g1); margin: 0 0 20px;
}
.pcb-success-code-wrap {
  background: var(--ivory); border: 2px solid var(--sand);
  border-radius: var(--r-md); padding: 20px; margin: 0 0 20px;
}
.pcb-success-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.pcb-success-code {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--g1); letter-spacing: 4px;
  margin: 8px 0;
}
.pcb-success p { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.pcb-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══ CHECK BOOKING TAB ═══════════════════════════════════════ */
.pcb-check-wrap {
  padding: 40px;
  max-width: 480px; margin: auto;
  text-align: center;
}
.pcb-check-icon { font-size: 56px; margin-bottom: 12px; }
.pcb-check-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--g1); margin: 0 0 8px;
}
.pcb-check-sub { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.pcb-check-form { text-align: left; }
.pcb-input-code { letter-spacing: 4px; font-weight: 800; text-transform: uppercase; font-size: 18px !important; text-align: center; }

.pcb-check-result {
  margin-top: 24px; text-align: left;
  animation: pcb-slide-in .3s ease;
}
.pcb-result-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: 16px; font-weight: 800;
  margin-bottom: 16px;
}
.pcb-result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pcb-result-table tr:nth-child(odd) td { background: var(--ivory); }
.pcb-result-table td { padding: 10px 14px; border-bottom: 1px solid var(--sand); }
.pcb-result-table td:first-child { font-weight: 700; color: var(--muted); width: 45%; }
.pcb-result-note {
  margin-top: 12px; padding: 14px;
  background: #fff8e1; border-left: 4px solid var(--amber);
  border-radius: var(--r-sm); font-size: 13px;
}

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .pcb-progress  { padding: 16px 20px 0; }
  .pcb-step      { padding: 24px 20px; }
  .pcb-success   { padding: 36px 20px; }
  .pcb-check-wrap{ padding: 28px 20px; }
  .pcb-alert     { margin: 12px 20px 0; }
  .pcb-grid-2, .pcb-grid-3 { grid-template-columns: 1fr; gap: 0; }
  .pcb-service-grid { grid-template-columns: repeat(2, 1fr); }
  .pcb-summary-grid { grid-template-columns: 1fr; }
  .pcb-progress-connector { min-width: 16px; }
  .pcb-progress-label { font-size: 9px; }
}

/* ── User / Guest badges ─────────────────────────────────── */
.pcb-user-badge {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: 12px; color: var(--white);
  flex-shrink: 0;
}
.pcb-user-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #52e89a;
  box-shadow: 0 0 0 3px rgba(82,232,154,.3);
  flex-shrink: 0;
  animation: pcb-pulse 2s infinite;
}
@keyframes pcb-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(82,232,154,.3); }
  50%      { box-shadow: 0 0 0 6px rgba(82,232,154,.1); }
}
.pcb-guest-badge {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: 12px; color: rgba(255,255,255,.8);
  flex-shrink: 0;
}
.pcb-login-link {
  color: #ffd97a; text-decoration: none; font-weight: 700;
  font-size: 11px; white-space: nowrap;
}
.pcb-login-link:hover { text-decoration: underline; }

/* ── Autofill notice ─────────────────────────────────────── */
.pcb-autofill-notice {
  margin: 0 0 18px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(82,183,136,.12), rgba(82,183,136,.06));
  border: 1px solid rgba(82,183,136,.4);
  border-radius: var(--r-sm);
  font-size: 13px; color: var(--g2); font-weight: 600;
}

/* ── Pre-filled input styling ────────────────────────────── */
.pcb-input-prefilled {
  background: linear-gradient(135deg, rgba(82,183,136,.07), rgba(82,183,136,.03)) !important;
  border-color: rgba(82,183,136,.5) !important;
  color: var(--g1) !important;
}
.pcb-input-prefilled:focus {
  border-color: var(--g3) !important;
  background: var(--white) !important;
}
/* ════════════════════════════════════════════════════════════
   HỒ SƠ THÚ CƯNG – Thêm vào cuối booking.css
   ════════════════════════════════════════════════════════════ */

/* ── Quickfill bar ──────────────────────────────────────────── */
.pcb-quickfill-wrap {
  background: linear-gradient(135deg, #f0fff8, #fafcfa);
  border: 1.5px solid #52b788;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pcb-quickfill-title {
  font-size: 12px; font-weight: 800; color: #1f5e3e;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px;
}
.pcb-quickfill-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pcb-quickfill-card {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 2px solid #d1e0d5;
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 13px; font-weight: 700; color: #1e2d23;
  cursor: pointer; transition: all .2s;
}
.pcb-quickfill-card:hover, .pcb-quickfill-card.pcb-qf-selected {
  border-color: #2d8a5e; background: #f0fff8; color: #1f5e3e;
}
.pcb-qf-type { font-size: 11px; font-weight: 400; color: #6b8070; }

/* ── Summary note ───────────────────────────────────────────── */
.pcb-summary-note {
  margin-top: 12px; padding: 10px 14px;
  background: #fffbeb; border-left: 3px solid #fcd34d;
  border-radius: 0 6px 6px 0; font-size: 12px; color: #92400e;
}

/* ── Success info box ───────────────────────────────────────── */
.pcb-success-info-box {
  margin: 12px auto; padding: 12px 18px; max-width: 440px;
  background: #f0fff8; border: 1.5px solid #52b788; border-radius: 10px;
  font-size: 13px; color: #276749; line-height: 1.5;
}

/* ── Tab: Hồ sơ thú cưng ────────────────────────────────────── */
.pcb-profile-wrap { padding: 8px 0; }
.pcb-profile-title {
  font-size: 16px; font-weight: 800; color: #173a27;
  margin-bottom: 18px;
}
.pcb-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pcb-profile-card {
  display: flex; gap: 14px;
  background: #fff;
  border: 1.5px solid #d1e0d5;
  border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 10px rgba(23,58,39,.07);
  transition: transform .18s, box-shadow .18s;
}
.pcb-profile-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(23,58,39,.12); }
.pcb-profile-avatar {
  font-size: 34px; width: 56px; height: 56px;
  background: #f8f4ee; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pcb-profile-content { flex: 1; min-width: 0; }
.pcb-profile-name  { font-size: 16px; font-weight: 800; color: #173a27; }
.pcb-profile-breed { font-size: 12px; color: #6b8070; margin-top: 2px; }
.pcb-profile-details {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: #555; margin-top: 8px;
}
.pcb-profile-details > div { display: flex; align-items: center; gap: 4px; }
.pcb-profile-tags  { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pcb-profile-allergy {
  margin-top: 8px; padding: 4px 10px;
  background: #fff5f5; color: #c53030;
  border-radius: 6px; font-size: 11px; font-weight: 700;
}
.pcb-profile-note {
  margin-top: 6px; font-size: 12px; color: #6b8070; line-height: 1.5;
}
.pcb-profile-history {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid #f0f4f1;
  font-size: 11px; font-weight: 700; color: #2d8a5e;
}

/* ── Empty state ────────────────────────────────────────────── */
.pcb-profile-empty {
  text-align: center; padding: 50px 20px;
}
.pcb-profile-empty h3 { font-size: 18px; font-weight: 800; color: #173a27; margin: 12px 0 8px; }
.pcb-profile-empty p  { font-size: 14px; color: #6b8070; margin-bottom: 20px; }

/* ── Guest profile lookup ───────────────────────────────────── */
.pcb-profile-guest {
  margin-top: 28px; padding: 24px;
  background: #f8f4ee; border-radius: 14px;
  border: 1.5px dashed #d1e0d5; text-align: center;
}
.pcb-profile-guest-title { font-size: 15px; font-weight: 800; color: #173a27; margin-bottom: 8px; }
.pcb-profile-guest p { font-size: 13px; color: #6b8070; margin-bottom: 16px; }

/* ── Pet profile in check result ────────────────────────────── */
.pcb-pet-profile-box {
  margin-top: 18px; padding: 16px;
  background: linear-gradient(135deg, #f0fff8, #fafcfa);
  border: 1.5px solid #52b788; border-radius: 10px;
}
.pcb-pet-profile-title {
  font-size: 13px; font-weight: 800; color: #1f5e3e;
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pcb-profile-grid { grid-template-columns: 1fr; }
  .pcb-profile-card { flex-direction: column; align-items: center; text-align: center; }
  .pcb-profile-details { justify-content: center; }
  .pcb-profile-tags { justify-content: center; }
  .pcb-profile-history { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   PET PROFILE – CLICKABLE CARDS & DETAIL PANEL
   ════════════════════════════════════════════════════════════ */

.pcb-profile-header { margin-bottom: 18px; }
.pcb-profile-title    { font-size: 17px; font-weight: 800; color: #173a27; margin-bottom: 4px; }
.pcb-profile-subtitle { font-size: 13px; color: #6b8070; }

/* ── Card có thể click ─────────────────────────────────────── */
.pcb-profile-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid #d1e0d5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23,58,39,.07);
}

.pcb-profile-card {
  cursor: pointer;
  border-bottom: 1px solid #eef2ef;
  transition: background .15s;
  user-select: none;
}
.pcb-profile-card:last-of-type { border-bottom: none; }
.pcb-profile-card:hover        { background: #f8fcf9; }
.pcb-profile-card.pcb-card-open { background: #f0fff8; }

.pcb-profile-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.pcb-profile-avatar {
  font-size: 34px;
  width: 56px; height: 56px;
  background: #f8f4ee;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.pcb-profile-card.pcb-card-open .pcb-profile-avatar { transform: scale(1.08); }

.pcb-profile-content { flex: 1; min-width: 0; }

.pcb-profile-name  { font-size: 16px; font-weight: 800; color: #173a27; }
.pcb-profile-breed { font-size: 12px; color: #6b8070; margin-top: 2px; }

.pcb-profile-tags {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px;
}
.pcb-tag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pcb-tag-green { background: #f0fff8; color: #276749; border: 1px solid #52b788; }
.pcb-tag-blue  { background: #ebf8ff; color: #2b6cb0; border: 1px solid #90cdf4; }
.pcb-tag-red   { background: #fff5f5; color: #c53030; border: 1px solid #fc8181; }

.pcb-profile-history {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px; font-size: 11px; font-weight: 700; color: #2d8a5e;
}

/* Chevron xoay */
.pcb-profile-chevron {
  font-size: 24px; color: #a0b4a8; font-weight: 300;
  transition: transform .25s, color .2s;
  flex-shrink: 0;
}
.pcb-profile-card.pcb-card-open .pcb-profile-chevron {
  transform: rotate(90deg);
  color: #1f5e3e;
}

/* ── Panel chi tiết ──────────────────────────────────────────── */
.pcb-pet-detail {
  border-top: 2px dashed #c8ddd2;
  background: #f8fcf9;
  padding: 20px 20px 4px;
  animation: pcb-slidedown .22s ease;
}
@keyframes pcb-slidedown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pcb-pet-detail.hidden { display: none !important; }

.pcb-detail-section { margin-bottom: 18px; }

.pcb-detail-section-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  color: #1f5e3e; border-bottom: 2px solid #d1e0d5;
  padding-bottom: 7px; margin-bottom: 12px;
}

/* Grid thông tin cơ bản */
.pcb-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.pcb-detail-item {
  background: #fff;
  border: 1px solid #e8f0eb;
  border-radius: 8px;
  padding: 9px 12px;
}
.pcb-detail-label {
  display: block;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .4px;
  color: #6b8070; margin-bottom: 3px;
}
.pcb-detail-val {
  display: block;
  font-size: 13px; font-weight: 700; color: #1e2d23;
}

/* Sức khoẻ badges */
.pcb-detail-health-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.pcb-detail-health-badge {
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  border: 1.5px solid;
}
.health-yes { background: #f0fff8; color: #276749; border-color: #52b788; }
.health-no  { background: #fff5f5; color: #c53030; border-color: #fc8181; }

.pcb-detail-allergy {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff5f5; border: 1.5px solid #fc8181;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
  font-size: 13px; color: #c53030; line-height: 1.6;
}
.pcb-detail-allergy-icon { font-size: 18px; flex-shrink: 0; }

.pcb-detail-notes {
  font-size: 13px; color: #555; line-height: 1.6;
  background: #fffbeb; border-radius: 8px;
  padding: 10px 14px; border-left: 3px solid #fcd34d;
}

/* Lịch sử khám */
.pcb-detail-history {
  display: flex; flex-direction: column; gap: 0;
  border: 1.5px solid #d1e0d5; border-radius: 10px;
  overflow: hidden; background: #fff;
}
.pcb-history-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px;
  border-bottom: 1px solid #eef2ef;
  transition: background .15s;
}
.pcb-history-row:last-child { border-bottom: none; }
.pcb-history-row:hover { background: #f8fcf9; }

.pcb-history-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.pcb-history-main { flex: 1; min-width: 0; }
.pcb-history-top {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 6px;
  margin-bottom: 4px;
}
.pcb-history-date { font-size: 13px; font-weight: 700; color: #1e2d23; }
.pcb-history-badge {
  font-size: 11px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; border: 1.5px solid;
  white-space: nowrap;
}
.pcb-history-detail {
  font-size: 12px; color: #6b8070; margin-bottom: 2px;
}
.pcb-history-code {
  font-size: 11px; color: #a0b4a8; letter-spacing: 1px; margin-bottom: 3px;
}
.pcb-history-note {
  font-size: 12px; color: #555;
  background: #f8f4ee; border-radius: 6px;
  padding: 5px 10px; margin-top: 5px;
  border-left: 2px solid #d1e0d5;
}

.pcb-detail-empty {
  text-align: center; padding: 20px;
  font-size: 13px; color: #6b8070; font-style: italic;
}

/* Nút đặt lịch nhanh */
.pcb-detail-actions {
  padding: 12px 0 16px;
  display: flex; justify-content: flex-end;
}

/* ── Empty & guest states ───────────────────────────────────── */
.pcb-profile-empty {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #d1e0d5;
  box-shadow: 0 2px 10px rgba(23,58,39,.06);
}
.pcb-profile-empty h3 { font-size: 18px; font-weight: 800; color: #173a27; margin: 10px 0 8px; }
.pcb-profile-empty p  { font-size: 14px; color: #6b8070; margin-bottom: 20px; }

.pcb-profile-guest {
  margin-top: 24px;
  padding: 24px;
  background: #f8f4ee;
  border-radius: 14px;
  border: 1.5px dashed #d1e0d5;
  text-align: center;
}
.pcb-profile-guest-title { font-size: 15px; font-weight: 800; color: #173a27; margin-bottom: 8px; }
.pcb-profile-guest p { font-size: 13px; color: #6b8070; margin-bottom: 0; }

/* ── Check booking pet profile ──────────────────────────────── */
.pcb-pet-profile-box {
  margin-top: 16px; padding: 14px 16px;
  background: linear-gradient(135deg, #f0fff8, #fafcfa);
  border: 1.5px solid #52b788; border-radius: 10px;
}
.pcb-pet-profile-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .4px; color: #1f5e3e; margin-bottom: 10px;
}

/* ── Quickfill bar ──────────────────────────────────────────── */
.pcb-quickfill-wrap {
  background: linear-gradient(135deg, #f0fff8, #fafcfa);
  border: 1.5px solid #52b788; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
}
.pcb-quickfill-title {
  font-size: 12px; font-weight: 800; color: #1f5e3e;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px;
}
.pcb-quickfill-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pcb-quickfill-card {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 2px solid #d1e0d5;
  font-family: Cambria, 'Times New Roman', serif;
  font-size: 13px; font-weight: 700; color: #1e2d23;
  cursor: pointer; transition: all .18s;
}
.pcb-quickfill-card:hover, .pcb-quickfill-card.pcb-qf-selected {
  border-color: #2d8a5e; background: #f0fff8; color: #1f5e3e;
}
.pcb-qf-type { font-size: 11px; font-weight: 400; color: #6b8070; }

/* ── Summary & success extras ───────────────────────────────── */
.pcb-summary-note {
  margin-top: 12px; padding: 10px 14px;
  background: #fffbeb; border-left: 3px solid #fcd34d;
  border-radius: 0 6px 6px 0; font-size: 12px; color: #92400e;
}
.pcb-success-info-box {
  margin: 12px auto; padding: 12px 18px; max-width: 440px;
  background: #f0fff8; border: 1.5px solid #52b788; border-radius: 10px;
  font-size: 13px; color: #276749; line-height: 1.5;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pcb-profile-card-inner { gap: 10px; padding: 14px; }
  .pcb-profile-avatar { width: 46px; height: 46px; font-size: 26px; }
  .pcb-detail-grid { grid-template-columns: 1fr 1fr; }
  .pcb-history-top { flex-direction: column; align-items: flex-start; }
  .pcb-detail-actions { justify-content: stretch; }
  .pcb-detail-actions .pcb-btn { width: 100%; text-align: center; }
}
