/* Chik Booking — Frontend CSS v4.0 — Mobile-First */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --ck-ink:    #0a0a0a;
  --ck-red:    #64090b;
  --ck-gold:   #c9a84c;
  --ck-bg:     #ffffff;
  --ck-soft:   #f7f5f2;
  --ck-line:   #e8e3dc;
  --ck-muted:  #9a9488;
  --ck-font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Hard reset scoped to wrap ── */
#ckb-wrap,
#ckb-wrap * {
  box-sizing: border-box !important;
  -webkit-text-size-adjust: 100%;
}

#ckb-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  padding: 0 16px 40px !important;
  font-family: var(--ck-font) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--ck-ink) !important;
  background: var(--ck-bg) !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.ckb-hidden { display: none !important; }
.ckb-loading-sm { font-size: 12px; color: var(--ck-muted); padding: 14px 0; display: block; }

/* ── Progress bar ── */
.ckb-progress {
  display: flex !important;
  gap: 4px;
  margin: 20px 0 28px;
}
.ckb-prog {
  flex: 1;
  height: 3px;
  background: var(--ck-line);
  transition: background .3s;
}
.ckb-prog.active { background: var(--ck-ink); }
.ckb-prog.done   { background: var(--ck-gold); }

/* ── Step ── */
.ckb-step { display: block; }
.ckb-step-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ck-muted);
  margin: 0 0 8px;
  display: block;
}
.ckb-title {
  font-size: 22px !important;
  font-weight: 300 !important;
  color: var(--ck-ink) !important;
  margin: 0 0 22px !important;
  line-height: 1.25 !important;
  padding: 0 !important;
}
.ckb-sec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ck-muted);
  margin: 0 0 10px;
  display: block;
}

/* ── Zones ── */
.ckb-zones-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px;
  background: var(--ck-line);
  border: 1px solid var(--ck-line);
  margin: 0 0 22px;
  width: 100% !important;
}
.ckb-zone-card {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  justify-content: space-between;
  background: var(--ck-bg);
  padding: 16px !important;
  cursor: pointer;
  border: none !important;
  text-align: left;
  font-family: var(--ck-font);
  transition: background .12s;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.ckb-zone-card:active { background: var(--ck-soft); }
.ckb-zone-card.selected { background: var(--ck-ink) !important; }
.ckb-zone-card.selected .ckb-zone-name { color: #fff; }
.ckb-zone-card.selected .ckb-zone-addr { color: rgba(255,255,255,.5); }
.ckb-zone-card.selected .ckb-zone-dot  { background: var(--ck-gold); }
.ckb-zone-name { font-size: 14px; font-weight: 600; color: var(--ck-ink); display: block; }
.ckb-zone-addr { font-size: 11px; color: var(--ck-muted); margin-top: 2px; display: block; }
.ckb-zone-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--ck-line); flex-shrink: 0; transition: background .15s; }

/* ── Cheve question ── */
.ckb-cheve-q { margin: 0 0 22px; }
.ckb-radio-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
}
.ckb-radio-pill {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid var(--ck-line) !important;
  background: var(--ck-bg) !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ck-ink);
  gap: 10px;
  font-family: var(--ck-font);
  transition: all .12s;
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
}
.ckb-radio-pill input { display: none !important; }
.ckb-radio-pill.selected {
  background: var(--ck-ink) !important;
  color: #fff !important;
  border-color: var(--ck-ink) !important;
}

/* ── Upload modèl ── */
.ckb-upload-mini {
  display: block;
  width: 100% !important;
  border: 1px dashed var(--ck-line);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  margin: 0 0 22px;
  transition: border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.ckb-upload-mini.has-img { border-style: solid; border-color: var(--ck-gold); }
.ckb-upload-mini p  { font-size: 12px; color: var(--ck-muted); margin: 0; }
.ckb-upload-mini img { max-width: 100%; max-height: 120px; display: block; margin: 0 auto 8px; object-fit: contain; }
.ckb-upload-mini button { font-size: 11px; color: #c62828; background: none; border: none; font-family: var(--ck-font); cursor: pointer; margin-top: 6px; padding: 4px 0; display: inline-block; }

/* ── Hair products ── */
.ckb-hair-section { margin: 0 0 22px; }
.ckb-products-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px;
  background: var(--ck-line);
  border: 1px solid var(--ck-line);
  width: 100% !important;
}
.ckb-product-card {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  gap: 12px;
  background: var(--ck-bg);
  padding: 12px 16px !important;
  cursor: pointer;
  position: relative;
  transition: background .12s;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
.ckb-product-card.selected { background: #fdfaf4; }
.ckb-product-card.selected::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--ck-gold); }
.ckb-product-card.ckb-oos { opacity: .35; cursor: not-allowed; }
.ckb-prod-img     { width: 44px; height: 44px; object-fit: cover; flex-shrink: 0; }
.ckb-prod-img-ph  { width: 44px; height: 44px; background: var(--ck-soft); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ckb-prod-info    { flex: 1; min-width: 0; }
.ckb-prod-name    { font-size: 13px; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ckb-prod-price   { font-size: 11px; color: var(--ck-muted); margin-top: 2px; display: block; }
.ckb-prod-check   { width: 22px; height: 22px; border: 1.5px solid var(--ck-line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; transition: all .12s; }
.ckb-product-card.selected .ckb-prod-check { background: var(--ck-gold); border-color: var(--ck-gold); color: var(--ck-ink); }

/* ── Services ── */
.ckb-svcs-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px;
  background: var(--ck-line);
  border: 1px solid var(--ck-line);
  margin: 0 0 18px;
  width: 100% !important;
}
.ckb-svc-row {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  gap: 12px;
  background: var(--ck-bg);
  padding: 14px 16px !important;
  cursor: pointer;
  position: relative;
  transition: background .12s;
  min-height: 58px;
  -webkit-tap-highlight-color: transparent;
}
.ckb-svc-row.selected { background: #fdf5f5; }
.ckb-svc-row.selected::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--ck-red); }
.ckb-svc-check    { width: 22px; height: 22px; border: 1.5px solid var(--ck-line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; transition: all .12s; }
.ckb-svc-row.selected .ckb-svc-check { background: var(--ck-red); border-color: var(--ck-red); color: #fff; }
.ckb-svc-info     { flex: 1; min-width: 0; }
.ckb-svc-name     { font-size: 14px; font-weight: 500; display: block; }
.ckb-svc-desc     { font-size: 11px; color: var(--ck-muted); margin-top: 2px; display: block; }
.ckb-svc-right    { text-align: right; flex-shrink: 0; }
.ckb-svc-price    { font-size: 14px; font-weight: 700; display: block; white-space: nowrap; }
.ckb-svc-rate     { font-size: 10px; color: var(--ck-muted); display: block; margin-top: 2px; white-space: nowrap; }
.ckb-svc-dur      { font-size: 10px; color: var(--ck-muted); display: block; margin-top: 2px; }

/* ── Order bar ── */
.ckb-order-bar {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px;
  background: var(--ck-soft);
  border: 1px solid var(--ck-line);
  padding: 12px 16px;
  margin: 0 0 18px;
  width: 100% !important;
}
.ckb-order-items { font-size: 12px; color: var(--ck-muted); line-height: 1.6; }
.ckb-order-total { font-size: 18px; font-weight: 700; }
.ckb-order-total small { font-size: 11px; font-weight: 400; color: var(--ck-muted); display: block; margin-top: 1px; }

/* ── Dates ── */
.ckb-dates-row {
  display: flex !important;
  gap: 5px;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin: 0 0 18px;
  scrollbar-width: none;
  width: 100% !important;
}
.ckb-dates-row::-webkit-scrollbar { display: none; }
.ckb-date-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 52px;
  padding: 10px 6px;
  border: 1px solid var(--ck-line) !important;
  background: var(--ck-bg) !important;
  cursor: pointer;
  font-family: var(--ck-font);
  transition: all .12s;
  -webkit-tap-highlight-color: transparent;
}
.ckb-date-btn.selected { background: var(--ck-ink) !important; border-color: var(--ck-ink) !important; color: #fff; }
.ckb-date-day { font-size: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.ckb-date-num { font-size: 20px; font-weight: 300; line-height: 1.1; margin: 2px 0; }
.ckb-date-mon { font-size: 8px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }

/* ── Times ── */
.ckb-times-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px;
  margin: 0 0 18px;
  min-height: 40px;
  width: 100% !important;
}
.ckb-time-btn {
  padding: 10px 14px;
  border: 1px solid var(--ck-line) !important;
  background: var(--ck-bg) !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--ck-font);
  transition: all .12s;
  min-height: 42px;
  -webkit-tap-highlight-color: transparent;
}
.ckb-time-btn.selected { background: var(--ck-ink) !important; color: #fff; border-color: var(--ck-ink) !important; }
.ckb-time-btn.ckb-unavail { opacity: .22; cursor: not-allowed; }

/* ── Fields ── */
.ckb-fields { display: flex !important; flex-direction: column !important; gap: 14px; margin: 0 0 22px; width: 100% !important; }
.ckb-field { display: block; width: 100% !important; }
.ckb-field label {
  display: block !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ck-muted);
  margin: 0 0 6px;
}
.ckb-field input {
  display: block !important;
  width: 100% !important;
  padding: 13px 14px !important;
  border: none !important;
  border-bottom: 2px solid var(--ck-line) !important;
  background: var(--ck-soft) !important;
  font-size: 15px !important;
  font-family: var(--ck-font) !important;
  color: var(--ck-ink) !important;
  outline: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}
.ckb-field input:focus { border-bottom-color: var(--ck-ink) !important; background: #fff !important; }
.ckb-field input::placeholder { color: #c4bfb7; }

/* ── Review ── */
.ckb-review { border: 1px solid var(--ck-line); margin: 0 0 22px; width: 100% !important; }
.ckb-review-row {
  display: flex !important;
  flex-direction: column !important;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ck-line);
  gap: 3px;
}
.ckb-review-row:last-child { border-bottom: none; }
.ckb-review-lbl { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ck-muted); }
.ckb-review-val { font-size: 13px; font-weight: 500; color: var(--ck-ink); }
.ckb-review-total .ckb-review-val { font-size: 17px; font-weight: 700; }
.ckb-review-val small { display: block; font-size: 10px; font-weight: 400; color: var(--ck-muted); margin-top: 3px; }

/* ── Payment ── */
.ckb-pay-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px;
  background: var(--ck-line);
  border: 1px solid var(--ck-line);
  margin: 0 0 12px;
  width: 100% !important;
}
.ckb-pay-card {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  gap: 14px;
  background: var(--ck-bg);
  padding: 15px 16px !important;
  cursor: pointer;
  transition: background .12s;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.ckb-pay-card.selected { background: var(--ck-soft); }
.ckb-pay-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ck-line); flex-shrink: 0; background: #fff; transition: all .12s; }
.ckb-pay-card.selected .ckb-pay-dot { border-color: var(--ck-ink); background: var(--ck-ink); box-shadow: inset 0 0 0 4px #fff; }
.ckb-pay-lbl { font-size: 14px; font-weight: 500; }
.ckb-pay-details { background: var(--ck-soft); border-left: 3px solid var(--ck-gold); padding: 12px 14px; margin: 0 0 14px; font-size: 13px; line-height: 1.8; display: none; }

/* ── Proof ── */
.ckb-proof-box {
  display: block;
  width: 100% !important;
  border: 1px dashed var(--ck-line);
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  margin: 0 0 18px;
  transition: border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.ckb-proof-box.has-file { border-style: solid; border-color: var(--ck-gold); }
.ckb-proof-box p   { font-size: 12px; color: var(--ck-muted); margin: 0; }
.ckb-proof-box img { max-width: 100%; max-height: 100px; display: block; margin: 0 auto 6px; object-fit: contain; }
.ckb-proof-box button { font-size: 11px; color: #c62828; background: none; border: none; cursor: pointer; font-family: var(--ck-font); margin-top: 6px; padding: 4px 0; display: inline-block; }
.ckb-err-msg { display: none; background: #fdecea; color: #c62828; padding: 11px 14px; font-size: 13px; margin: 0 0 14px; width: 100% !important; }

/* ── Buttons ── */
.ckb-actions {
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 8px;
  margin-top: 24px;
  width: 100% !important;
}
.ckb-btn-back {
  display: block !important;
  width: 100% !important;
  background: none !important;
  color: var(--ck-muted) !important;
  border: none !important;
  padding: 12px !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--ck-font);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.ckb-btn-next {
  display: block !important;
  width: 100% !important;
  background: var(--ck-ink) !important;
  color: #fff !important;
  border: none !important;
  padding: 15px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--ck-font) !important;
  text-align: center;
  -webkit-appearance: none;
  margin-left: 0 !important;
}
.ckb-btn-next:disabled { opacity: .28; cursor: not-allowed; }
.ckb-btn-submit {
  display: block !important;
  width: 100% !important;
  background: var(--ck-ink) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--ck-font) !important;
  margin: 8px 0 0;
  -webkit-appearance: none;
}
.ckb-btn-submit:disabled { opacity: .28; cursor: not-allowed; }

/* ── Confirmation ── */
.ckb-confirm-mark { width: 48px; height: 48px; background: var(--ck-ink); display: flex; align-items: center; justify-content: center; margin: 0 0 18px; }
.ckb-confirm-mark svg { width: 22px; height: 22px; stroke: #fff; }
.ckb-confirm-title { font-size: 24px !important; font-weight: 300 !important; margin: 0 0 6px !important; color: var(--ck-ink) !important; }
.ckb-confirm-sub   { font-size: 13px; color: var(--ck-muted); margin: 0 0 22px; }
.ckb-ref-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ck-soft);
  border: 1px solid var(--ck-line);
  margin: 0 0 18px;
  width: 100% !important;
}
.ckb-ref-line span   { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ck-muted); }
.ckb-ref-line strong { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.ckb-qr-block { text-align: center; margin: 18px 0; }
.ckb-qr-img   { width: 140px; border: 1px solid var(--ck-line); padding: 6px; display: inline-block; }
.ckb-qr-hint  { font-size: 11px; color: var(--ck-muted); margin-top: 6px; }
.ckb-wa-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  background: #25D366 !important;
  color: #fff !important;
  padding: 15px !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ck-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 12px 0;
}
.ckb-restart {
  display: block !important;
  width: 100% !important;
  background: none !important;
  border: 1px solid var(--ck-line) !important;
  color: var(--ck-muted) !important;
  padding: 13px !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--ck-font);
  margin-top: 14px;
  text-align: center;
}

/* ── Tablet+ only adjustments ── */
@media (min-width: 540px) {
  #ckb-wrap { padding: 0 24px 40px !important; }
  .ckb-title { font-size: 24px !important; }
  .ckb-radio-row { flex-direction: row !important; }
  .ckb-order-bar { flex-direction: row !important; align-items: flex-start; }
  .ckb-order-total small { text-align: right; }
  .ckb-review-row { flex-direction: row !important; gap: 12px; align-items: flex-start; }
  .ckb-review-lbl { min-width: 90px; padding-top: 2px; }
  .ckb-actions { flex-direction: row !important; justify-content: space-between; align-items: center; }
  .ckb-btn-back  { width: auto !important; }
  .ckb-btn-next  { width: auto !important; padding: 14px 28px !important; }
}
