/* =============================================
   Clinic Zoom Booking Pro - Frontend Styles
   Modern Healthcare Theme — v2.0
   Inspired by maxphysio.in
   ============================================= */

/* ── Google Font Import (Poppins) ─────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────── */
:root {
  /* Brand palette — teal/cyan healthcare */
  --czb-primary:        #0891b2;   /* cyan-600  */
  --czb-primary-dark:   #0e7490;   /* cyan-700  */
  --czb-primary-darker: #155e75;   /* cyan-800  */
  --czb-primary-light:  #ecfeff;   /* cyan-50   */
  --czb-primary-mid:    #cffafe;   /* cyan-100  */
  --czb-accent:         #06b6d4;   /* cyan-500  */
  --czb-accent-grad:    linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);

  /* Semantic colours */
  --czb-success:        #059669;
  --czb-success-light:  #d1fae5;
  --czb-danger:         #dc2626;
  --czb-danger-light:   #fee2e2;
  --czb-warning:        #d97706;
  --czb-warning-light:  #fef3c7;

  /* Neutrals */
  --czb-white:    #ffffff;
  --czb-gray-50:  #f8fafc;
  --czb-gray-100: #f1f5f9;
  --czb-gray-200: #e2e8f0;
  --czb-gray-300: #cbd5e1;
  --czb-gray-400: #94a3b8;
  --czb-gray-500: #64748b;
  --czb-gray-600: #475569;
  --czb-gray-700: #334155;
  --czb-gray-800: #1e293b;
  --czb-gray-900: #0f172a;

  /* Shape & shadow */
  --czb-radius:    14px;
  --czb-radius-sm: 9px;
  --czb-radius-xs: 5px;
  --czb-shadow:    0 8px 32px rgba(8, 145, 178, .10), 0 2px 8px rgba(0,0,0,.06);
  --czb-shadow-sm: 0 2px 10px rgba(0,0,0,.07);
  --czb-shadow-card: 0 4px 24px rgba(8, 145, 178, .08);

  /* Motion */
  --czb-transition: all .22s cubic-bezier(.4, 0, .2, 1);

  /* Typography */
  --czb-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset / Base ────────────────────────────── */
.czbook-wrap {
  font-family: var(--czb-font);
  max-width: 900px;
  margin: 0 auto;
  color: var(--czb-gray-800);
}
.czbook-wrap * { box-sizing: border-box; }

/* ── Step Indicator ──────────────────────────── */
.czbook-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 4px;
}
.czbook-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: default;
}
.czbook-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--czb-gray-200);
  color: var(--czb-gray-500);
  transition: var(--czb-transition);
  position: relative;
}
.czbook-step-label {
  font-size: 11px;
  color: var(--czb-gray-500);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .3px;
}
.czbook-step--active .czbook-step-number {
  background: var(--czb-accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, .40);
}
.czbook-step--active .czbook-step-label {
  color: var(--czb-primary);
  font-weight: 700;
}
.czbook-step--done .czbook-step-number {
  background: var(--czb-success);
  color: #fff;
  box-shadow: 0 3px 10px rgba(5, 150, 105, .30);
}
.czbook-step--done .czbook-step-label { color: var(--czb-success); }
.czbook-step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--czb-gray-200), var(--czb-gray-200));
  min-width: 24px;
  max-width: 56px;
  margin-bottom: 22px;
  border-radius: 2px;
  transition: var(--czb-transition);
}
.czbook-step--done + .czbook-step-connector {
  background: linear-gradient(90deg, var(--czb-success), var(--czb-accent));
}

/* ── Form Body Card ──────────────────────────── */
.czbook-form-body {
  background: var(--czb-white);
  border-radius: var(--czb-radius);
  box-shadow: var(--czb-shadow);
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, .08);
}
.czbook-panel { display: none; animation: czb-fadein .28s ease; }
.czbook-panel--active { display: block; }
@keyframes czb-fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Panel Header ────────────────────────────── */
.czbook-panel-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid var(--czb-gray-100);
  background: linear-gradient(135deg, var(--czb-primary-light) 0%, #fff 60%);
  position: relative;
  overflow: hidden;
}
.czbook-panel-header::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(8, 145, 178, .06);
  pointer-events: none;
}
.czbook-panel-header h2 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 700;
  color: var(--czb-gray-900);
  letter-spacing: -.3px;
}
.czbook-panel-header p {
  margin: 0;
  color: var(--czb-gray-500);
  font-size: 13px;
  font-weight: 400;
}

/* ── Services Grid ───────────────────────────── */
.czbook-services-grid {
  padding: 28px 36px;
  display: grid;
  grid-template-columns:1fr;
  gap: 18px;
}
.czbook-service-card {
  border: 2px solid var(--czb-gray-200);
  border-radius: var(--czb-radius);
  padding: 22px 20px;
  cursor: pointer;
  transition: var(--czb-transition);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--czb-white);
}
.czbook-service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: calc(var(--czb-radius) - 2px);
  background: linear-gradient(135deg, rgba(8,145,178,.03), transparent);
  opacity: 0;
  transition: var(--czb-transition);
  pointer-events: none;
}
.czbook-service-card:hover {
  border-color: var(--czb-accent);
  box-shadow: var(--czb-shadow-card);
  transform: translateY(-3px);
}
.czbook-service-card:hover::after { opacity: 1; }
.czbook-service-card.czbook-selected {
  border-color: var(--czb-primary);
  background: linear-gradient(135deg, var(--czb-primary-light), #fff 70%);
  box-shadow: 0 6px 20px rgba(8, 145, 178, .18);
}
.czbook-service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--czb-radius-sm);
  background: var(--czb-primary-mid);
  color: var(--czb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--czb-transition);
}
.czbook-service-card.czbook-selected .czbook-service-icon {
  background: var(--czb-accent-grad);
  color: #fff;
}
.czbook-service-info { flex: 1; min-width: 0; }
.czbook-service-info h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--czb-gray-900);
  line-height: 1.3;
}
.czbook-service-info p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--czb-gray-500);
  line-height: 1.6;
}
.czbook-service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.czbook-service-duration {
  font-size: 12px;
  color: var(--czb-gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--czb-gray-100);
  padding: 3px 8px;
  border-radius: 20px;
}
.czbook-service-fee {
  font-size: 16px;
  font-weight: 800;
  color: var(--czb-primary);
  letter-spacing: -.3px;
}
.czbook-service-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--czb-accent-grad);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(6, 182, 212, .40);
}
.czbook-service-card.czbook-selected .czbook-service-check { display: flex; }

/* ── Calendar ────────────────────────────────── */
.czbook-datetime-layout {
  display: flex;
  gap: 28px;
  padding: 24px 36px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.czbook-datetime-layout .czbook-calendar-wrap,
.czbook-datetime-layout .czbook-slots-wrap {
  padding: 0;
  flex: 0 0 auto;
}
.czbook-datetime-layout .czbook-slots-wrap {
  flex: 1;
  min-width: 200px;
}
.czbook-calendar-wrap { padding: 24px 36px; }
.czbook-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.czbook-cal-prev, .czbook-cal-next {
  background: var(--czb-white);
  border: 1.5px solid var(--czb-gray-200);
  border-radius: var(--czb-radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--czb-gray-600);
  transition: var(--czb-transition);
  display: flex;
  align-items: center;
}
.czbook-cal-prev:hover, .czbook-cal-next:hover {
  background: var(--czb-accent-grad);
  border-color: var(--czb-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6,182,212,.30);
}
.czbook-cal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--czb-gray-900);
  letter-spacing: -.2px;
}
.czbook-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 300px;
}
.czbook-cal-day-name {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--czb-primary);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.czbook-cal-day {
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--czb-radius-xs);
  font-size: 12px;
  font-weight: 500;
  transition: var(--czb-transition);
  cursor: default;
}
.czbook-cal-day--available {
  cursor: pointer;
  color: var(--czb-gray-800);
  border: 1.5px solid var(--czb-gray-200);
  background: var(--czb-white);
}
.czbook-cal-day--available:hover {
  background: var(--czb-primary-mid);
  border-color: var(--czb-accent);
  color: var(--czb-primary-darker);
  transform: scale(1.08);
}
.czbook-cal-day--selected {
  background: var(--czb-accent-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 10px rgba(6, 182, 212, .40);
  font-weight: 700;
}
.czbook-cal-day--disabled {
  color: var(--czb-gray-300);
  background: var(--czb-gray-50);
}
.czbook-cal-day--empty { background: transparent; border: none; }
.czbook-cal-day--today {
  font-weight: 800;
  color: var(--czb-primary);
  border-color: var(--czb-accent) !important;
}
.czbook-cal-loading {
  text-align: center;
  color: var(--czb-gray-500);
  padding: 24px;
  grid-column: 1/-1;
}
.czbook-cal-legend {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.czbook-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--czb-gray-600);
  font-weight: 500;
}
.czbook-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.czbook-legend-available  { background: var(--czb-white); border: 1.5px solid var(--czb-gray-300); }
.czbook-legend-unavailable { background: var(--czb-gray-100); }
.czbook-legend-selected   { background: var(--czb-accent); }

/* ── Time Slots ──────────────────────────────── */
.czbook-slots-wrap { padding: 24px 36px; }
.czbook-slots-loading { text-align: center; color: var(--czb-gray-500); padding: 40px; }
.czbook-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.czbook-slot-card {
  padding: 12px 8px;
  border: 2px solid var(--czb-gray-200);
  border-radius: var(--czb-radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--czb-transition);
  font-size: 13px;
  font-weight: 600;
  color: var(--czb-gray-700);
  background: var(--czb-white);
  letter-spacing: -.2px;
}
.czbook-slot-card:hover {
  border-color: var(--czb-accent);
  color: var(--czb-primary);
  background: var(--czb-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(6,182,212,.15);
}
.czbook-slot-card.czbook-selected {
  border-color: transparent;
  background: var(--czb-accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6,182,212,.35);
}
.czbook-slot-card.czbook-unavailable {
  border-color: var(--czb-gray-100);
  color: var(--czb-gray-300);
  background: var(--czb-gray-50);
  cursor: not-allowed;
  text-decoration: line-through;
}
.czbook-slots-empty {
  color: var(--czb-gray-500);
  padding: 32px;
  text-align: center;
  font-size: 14px;
}

/* ── Form Fields ─────────────────────────────── */
.czbook-form-grid {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.czbook-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.czbook-field-group--full { grid-column: 1 / -1; }
.czbook-field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--czb-gray-700);
  letter-spacing: .1px;
}
.czbook-input,
.czbook-select,
.czbook-textarea {
  border: 1.5px solid var(--czb-gray-200);
  border-radius: var(--czb-radius-sm);
  padding: 11px 15px;
  font-size: 14px;
  font-family: var(--czb-font);
  color: var(--czb-gray-900);
  background: var(--czb-white);
  transition: var(--czb-transition);
  width: 100%;
  font-weight: 400;
}
.czbook-input:focus,
.czbook-select:focus,
.czbook-textarea:focus {
  outline: none;
  border-color: var(--czb-accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .15);
  background: #fff;
}
.czbook-input::placeholder,
.czbook-textarea::placeholder { color: var(--czb-gray-400); font-weight: 400; }
.czbook-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.czbook-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.czbook-required { color: var(--czb-danger); }
.czbook-field-error { font-size: 12px; color: var(--czb-danger); min-height: 16px; font-weight: 500; }
.czbook-input.czbook-input--error { border-color: var(--czb-danger); box-shadow: 0 0 0 3px rgba(220,38,38,.10); }

/* ── Payment ─────────────────────────────────── */
.czbook-payment-wrap {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.czbook-payment-summary {
  background: linear-gradient(135deg, var(--czb-primary-light), #fff);
  border-radius: var(--czb-radius);
  padding: 22px;
  border: 1px solid var(--czb-primary-mid);
}
.czbook-payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(8,145,178,.10);
  font-size: 13.5px;
}
.czbook-payment-summary-row:last-of-type { border-bottom: none; }
.czbook-payment-summary-row span { color: var(--czb-gray-500); font-weight: 500; }
.czbook-payment-summary-row strong { color: var(--czb-gray-900); font-weight: 700; }
.czbook-payment-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--czb-primary-mid);
  font-size: 15px;
  font-weight: 800;
}
.czbook-amount {
  font-size: 22px;
  font-weight: 800;
  background: var(--czb-accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}
.czbook-upi-box {
  background: var(--czb-white);
  border: 1.5px solid var(--czb-gray-200);
  border-radius: var(--czb-radius);
  padding: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.czbook-upi-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--czb-accent-grad);
}
.czbook-qr-code {
  display: inline;
  margin: 0 auto 12px;
}
.czbook-qr-code img {
  display: block;
  width: 130px;
  margin: auto;
  height: 130px;
  object-fit: contain;
  border-radius: var(--czb-radius-sm);
  border: 1px solid var(--czb-gray-200);
  padding: 6px;
  box-shadow: var(--czb-shadow-sm);
}
.czbook-qr-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 130px;
  height: 130px;
  margin: 0 auto;
}
.czbook-qr-loader span {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--czb-primary);
  animation: czbook-bounce .7s infinite alternate;
}
.czbook-qr-loader span:nth-child(2) { animation-delay: .2s; }
.czbook-qr-loader span:nth-child(3) { animation-delay: .4s; }
@keyframes czbook-bounce { from { opacity:.3; transform:scale(.8); } to { opacity:1; transform:scale(1.2); } }
.czbook-qr-hint {
  font-size: 11px;
  color: var(--czb-gray-500);
  margin: 6px 0 0;
  text-align: center;
}
.czbook-upi-pay-link {
  display: inline-block;
  margin: 10px auto 4px;
  background: var(--czb-primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: background .15s;
}
.czbook-upi-pay-link:hover { background: #1557b0; }
.czbook-upi-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.czbook-upi-id > span { color: var(--czb-gray-600); font-weight: 500; }
.czbook-upi-id-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--czb-primary);
}
.czbook-copy-upi {
  background: var(--czb-primary-light);
  color: var(--czb-primary);
  border: 1.5px solid var(--czb-primary-mid);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--czb-transition);
  font-family: var(--czb-font);
  letter-spacing: .2px;
}
.czbook-copy-upi:hover {
  background: var(--czb-accent-grad);
  color: #fff;
  border-color: transparent;
}
.czbook-pay-instructions {
  background: var(--czb-warning-light);
  border-radius: var(--czb-radius-sm);
  padding: 11px 15px;
  text-align: left;
  font-size: 12.5px;
  color: var(--czb-gray-700);
  margin-top: 10px;
  border-left: 3px solid var(--czb-warning);
  line-height: 1.6;
}
.czbook-payment-fields {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── File Upload ─────────────────────────────── */
.czbook-file-upload {
  border: 2px dashed var(--czb-gray-300);
  border-radius: var(--czb-radius-sm);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--czb-transition);
  position: relative;
  background: var(--czb-gray-50);
}
.czbook-file-upload:hover {
  border-color: var(--czb-accent);
  background: var(--czb-primary-light);
}
.czbook-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.czbook-file-upload-label { pointer-events: none; color: var(--czb-gray-500); }
.czbook-file-upload-label svg { color: var(--czb-primary); margin-bottom: 8px; }
.czbook-file-upload-label p { margin: 0 0 4px; font-size: 13px; font-weight: 500; }
.czbook-file-upload-label small { font-size: 11px; color: var(--czb-gray-400); }
.czbook-file-preview { position: relative; display: inline-block; max-width: 120px; }
.czbook-file-preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--czb-radius-sm);
  border: 2px solid var(--czb-primary-mid);
}
.czbook-remove-file {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--czb-danger);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Review Card ─────────────────────────────── */
.czbook-review-card {
  margin: 26px 36px;
  background: var(--czb-gray-50);
  border-radius: var(--czb-radius);
  overflow: hidden;
  border: 1px solid var(--czb-gray-200);
}
.czbook-review-card-header {
  background: var(--czb-accent-grad);
  padding: 14px 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.czbook-review-rows { padding: 4px 0; }
.czbook-review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 22px;
  border-bottom: 1px solid var(--czb-gray-100);
  font-size: 13.5px;
  gap: 16px;
}
.czbook-review-row:last-child { border-bottom: none; }
.czbook-review-label { color: var(--czb-gray-500); flex-shrink: 0; font-weight: 500; }
.czbook-review-value { font-weight: 600; color: var(--czb-gray-900); text-align: right; }

/* ── Terms ───────────────────────────────────── */
.czbook-terms {
  padding: 0 36px 18px;
}
.czbook-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--czb-gray-600);
  line-height: 1.5;
}
.czbook-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--czb-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Nav Row ─────────────────────────────────── */
.czbook-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  border-top: 1px solid var(--czb-gray-100);
  background: var(--czb-gray-50);
}

/* ── Buttons ─────────────────────────────────── */
.czbook-wrap .czbook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;          /* pill shape — modern healthcare look */
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--czb-transition);
  font-family: var(--czb-font);
  letter-spacing: .3px;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}

/* Ripple shimmer on hover */
.czbook-wrap .czbook-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s ease;
  border-radius: inherit;
  pointer-events: none;
}
.czbook-wrap .czbook-btn:hover::after {
  background: rgba(255,255,255,.12);
}

/* Primary — teal gradient pill */
.czbook-wrap .czbook-btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(8, 145, 178, .35);
}
.czbook-wrap .czbook-btn-primary:hover,
.czbook-wrap .czbook-btn-primary:focus {
  box-shadow: 0 8px 24px rgba(8, 145, 178, .50);
  transform: translateY(-2px);
}
.czbook-wrap .czbook-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(8, 145, 178, .30);
}

/* Outline — ghost pill */
.czbook-wrap .czbook-btn-outline {
  background: #ffffff;
  color: var(--czb-gray-600) !important;
  box-shadow: inset 0 0 0 1.5px var(--czb-gray-300);
}
.czbook-wrap .czbook-btn-outline:hover,
.czbook-wrap .czbook-btn-outline:focus {
  background: var(--czb-gray-100);
  color: var(--czb-gray-800) !important;
  box-shadow: inset 0 0 0 1.5px var(--czb-gray-400);
  transform: translateY(-1px);
}
.czbook-wrap .czbook-btn-outline:active {
  transform: translateY(0);
  background: var(--czb-gray-200);
}

/* Success — green pill */
.czbook-wrap .czbook-btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, .35);
}
.czbook-wrap .czbook-btn-success:hover,
.czbook-wrap .czbook-btn-success:focus {
  box-shadow: 0 8px 24px rgba(5, 150, 105, .50);
  transform: translateY(-2px);
}
.czbook-wrap .czbook-btn-success:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(5, 150, 105, .30);
}

/* Large variant */
.czbook-wrap .czbook-btn-lg {
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
}

/* Icon inside button — keep aligned */
.czbook-wrap .czbook-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.czbook-wrap .czbook-btn-lg svg {
  width: 18px;
  height: 18px;
}

/* Disabled state */
.czbook-wrap .czbook-btn:disabled,
.czbook-wrap .czbook-btn[disabled] {
  opacity: .50;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(20%);
}

/* ── Alerts ──────────────────────────────────── */
.czbook-alert {
  padding: 13px 18px;
  border-radius: var(--czb-radius-sm);
  font-size: 13px;
  margin: 0 36px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.czbook-alert::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.czbook-alert--error {
  background: var(--czb-danger-light);
  color: var(--czb-danger);
  border: 1px solid rgba(220,38,38,.20);
}
.czbook-alert--error::before { background: var(--czb-danger); }
.czbook-alert--success {
  background: var(--czb-success-light);
  color: var(--czb-success);
  border: 1px solid rgba(5,150,105,.20);
}
.czbook-alert--success::before { background: var(--czb-success); }

/* ── Success State ───────────────────────────── */
.czbook-success-state { text-align: center; padding: 64px 36px; }
.czbook-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: var(--czb-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px rgba(5,150,105,.25);
  animation: czb-pop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes czb-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.czbook-success-state h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--czb-gray-900);
  margin: 0 0 10px;
  letter-spacing: -.4px;
}
.czbook-success-state p { color: var(--czb-gray-500); font-size: 15px; margin: 0 auto 28px; }
.czbook-booking-id-box {
  display: inline-flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--czb-primary-light), #fff);
  border: 1.5px solid var(--czb-primary-mid);
  border-radius: var(--czb-radius);
  padding: 18px 40px;
  margin-bottom: 22px;
}
.czbook-booking-id-box span {
  font-size: 11px;
  color: var(--czb-gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.czbook-booking-id-box strong {
  font-size: 24px;
  font-weight: 800;
  background: var(--czb-accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-top: 4px;
}
.czbook-success-note {
  font-size: 13px;
  color: var(--czb-gray-500);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ── Appointment History ─────────────────────── */
.czbook-history-wrap { max-width: 760px; }
.czbook-history-search-box {
  background: var(--czb-white);
  border-radius: var(--czb-radius);
  box-shadow: var(--czb-shadow);
  padding: 36px;
  margin-bottom: 24px;
  border: 1px solid rgba(8,145,178,.08);
}
.czbook-history-search-box h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.czbook-history-search-box p { color: var(--czb-gray-500); font-size: 14px; margin: 0 0 22px; }
.czbook-history-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.czbook-history-form .czbook-field-group { flex: 1; min-width: 180px; }
.czbook-or-divider { font-size: 12px; font-weight: 700; color: var(--czb-gray-400); white-space: nowrap; }
.czbook-history-list { display: flex; flex-direction: column; gap: 16px; }
.czbook-history-item {
  background: var(--czb-white);
  border-radius: var(--czb-radius);
  box-shadow: var(--czb-shadow-sm);
  border: 1px solid var(--czb-gray-200);
  padding: 22px;
  transition: var(--czb-transition);
}
.czbook-history-item:hover { box-shadow: var(--czb-shadow-card); border-color: var(--czb-primary-mid); }
.czbook-history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.czbook-history-booking-id { font-size: 13px; font-weight: 700; color: var(--czb-primary); letter-spacing: .5px; }
.czbook-history-item-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.czbook-history-field label { color: var(--czb-gray-500); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.czbook-history-field span { font-weight: 600; color: var(--czb-gray-800); }
.czbook-history-zoom { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--czb-gray-100); }
.czbook-history-zoom a { color: var(--czb-primary); font-weight: 700; font-size: 13px; text-decoration: none; }
.czbook-history-zoom a:hover { color: var(--czb-primary-darker); text-decoration: underline; }
.czbook-empty-state { text-align: center; padding: 56px; color: var(--czb-gray-400); }
.czbook-empty-state svg { margin-bottom: 14px; color: var(--czb-gray-300); }
.czbook-loading-state { text-align: center; padding: 48px; color: var(--czb-gray-500); }
.czbook-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--czb-gray-200);
  border-top-color: var(--czb-accent);
  border-radius: 50%;
  animation: czb-spin .7s linear infinite;
  margin: 0 auto 14px;
}
@keyframes czb-spin { to { transform: rotate(360deg); } }

/* ── Badges ──────────────────────────────────── */
.czbook-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.czbook-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.czbook-badge--pending   { background: var(--czb-warning-light);  color: #92400e; }
.czbook-badge--approved  { background: var(--czb-success-light);  color: var(--czb-success); }
.czbook-badge--rejected  { background: var(--czb-danger-light);   color: var(--czb-danger); }
.czbook-badge--completed { background: #e0f2fe; color: #0369a1; }
.czbook-badge--cancelled { background: var(--czb-gray-100);       color: var(--czb-gray-500); }
.czbook-badge--no_show   { background: #fdf4ff; color: #9333ea; }

/* ── Slot section label ──────────────────────── */
#czbook-slots-section > p {
  font-size: 12px;
  font-weight: 700;
  color: var(--czb-gray-700);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
#czbook-selected-date-label {
  color: var(--czb-primary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: block !important;
  margin-top: 3px !important;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 680px) {
  .czbook-steps { gap: 2px; }
  .czbook-step-label { font-size: 9px; }
  .czbook-step-number { width: 30px; height: 30px; font-size: 12px; }
  .czbook-step-connector { min-width: 6px; max-width: 18px; }

  .czbook-panel-header { padding: 18px 20px 14px; }
  .czbook-panel-header h2 { font-size: 17px; }

  .czbook-services-grid { padding: 18px 20px; grid-template-columns: 1fr; }
  .czbook-service-card { padding: 18px 16px; }

  .czbook-datetime-layout { padding: 18px 20px; flex-direction: column; gap: 20px; }
  .czbook-calendar { max-width: 100%; }
  .czbook-cal-day { width: 100%; height: 34px; }
  .czbook-slots-wrap { padding: 0; }
  .czbook-slots-grid { grid-template-columns: repeat(3, 1fr); }

  .czbook-form-grid { padding: 18px 20px; grid-template-columns: 1fr; gap: 16px; }
  .czbook-field-group--full { grid-column: auto; }

  .czbook-payment-wrap { padding: 18px 20px; grid-template-columns: 1fr; gap: 18px; }
  .czbook-payment-fields { grid-column: auto; grid-template-columns: 1fr; }

  .czbook-review-card { margin: 18px 20px; }
  .czbook-review-row { padding: 10px 18px; }
  .czbook-review-card-header { padding: 12px 18px; }

  .czbook-nav-row { padding: 16px 20px; flex-direction: column; gap: 12px; }
  .czbook-nav-row .czbook-wrap .czbook-btn { width: 100%; justify-content: center; }

  .czbook-terms { padding: 0 20px 16px; }
  .czbook-alert { margin: 0 20px 14px; }

  .czbook-success-state { padding: 48px 20px; }
  .czbook-booking-id-box { padding: 16px 24px; }

  .czbook-history-search-box { padding: 24px 20px; }
  .czbook-history-form { flex-direction: column; }
  .czbook-history-item-body { grid-template-columns: 1fr; }
  .czbook-history-item { padding: 18px; }
}
