:root {
  --vcb-bg: #ffffff;
  --vcb-card: #ffffff;
  --vcb-border: #e6e6e6;
  --vcb-text: #111111;
  --vcb-muted: #666666;
  --vcb-soft: #f5f5f5;
  --accent: #111111;
}

.vcb-noscroll { overflow: hidden; }

.vcb-premium {
  max-width: 980px;
  margin: 30px auto;
  color: var(--vcb-text);
  background: var(--vcb-bg);
  border: 1px solid var(--vcb-border);
  border-radius: 24px;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

/* Header */
.vcb-header { margin-bottom: 18px; }
.vcb-title { font-size: 28px; font-weight: 700; }
.vcb-subtitle { margin-top: 6px; color: var(--vcb-muted); font-size: 14px; }

/* Steps */
.vcb-step {
  border-top: 1px solid var(--vcb-border);
  padding: 20px 0;
}

.vcb-step-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.vcb-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcb-step-title { font-size: 16px; font-weight: 600; }
.vcb-step-hint { font-size: 13px; color: var(--vcb-muted); }

/* Inputs */
.vcb-search-input,
.vcb-date {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--vcb-border);
  background: #fff;
  color: #111;
}

.vcb-search-input:focus,
.vcb-date:focus {
  outline: none;
  border-color: #111;
}

/* Services grid */
.vcb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Service card */
.vcb-card {
  border: 1px solid var(--vcb-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all .15s ease;
}

.vcb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.vcb-card.is-active {
  border-color: #111;
  box-shadow: 0 0 0 2px #111 inset;
}

.vcb-card-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #f2f2f2;
}

.vcb-card-body { padding: 14px; }

.vcb-card-title {
  font-size: 15px;
  font-weight: 600;
}

.vcb-card-bottom {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vcb-meta {
  font-size: 12px;
  color: var(--vcb-muted);
}

/* Selected service */
.vcb-selected {
  margin-top: 12px;
  border: 1px solid var(--vcb-border);
  background: #fafafa;
  border-radius: 14px;
  padding: 12px;
}

/* Slots */
.vcb-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.vcb-slot {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--vcb-border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all .12s ease;
}

.vcb-slot:hover {
  border-color: #111;
}

.vcb-slot.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Footer */
.vcb-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--vcb-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vcb-note {
  font-size: 13px;
  color: var(--vcb-muted);
}

.vcb-next {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.vcb-next:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Skeleton */
.vcb-skel {
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* Modal */
.vcb-modal-backdrop {
  background: rgba(0,0,0,.45);
}

.vcb-modal-card {
  background: #fff;
  color: #111;
  border-radius: 18px;
  max-width: 520px;
  margin: 10vh auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.vcb-modal-head {
  padding: 16px;
  border-bottom: 1px solid var(--vcb-border);
}

.vcb-modal-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111 !important;
}

.vcb-modal-body { padding: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .vcb-grid { grid-template-columns: repeat(2, 1fr); }
  .vcb-slots { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .vcb-grid { grid-template-columns: 1fr; }
  .vcb-slots { grid-template-columns: repeat(2, 1fr); }
}


/* Booking form */
.vcb-form {
  display: grid;
  gap: 14px;
}

.vcb-form-group {
  display: grid;
  gap: 6px;
}

.vcb-form-group label {
  font-size: 13px;
  color: #555;
}

.vcb-form-group input,
.vcb-form-group textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}

.vcb-form-group input:focus,
.vcb-form-group textarea:focus {
  outline: none;
  border-color: #111;
}

.vcb-form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.vcb-form { display: grid; gap: 14px; }
.vcb-form-group { display: grid; gap: 6px; }
.vcb-form-group label { font-size: 13px; color: #555; }
.vcb-form-group input, .vcb-form-group textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}
.vcb-form-group input:focus, .vcb-form-group textarea:focus {
  outline: none; border-color: #111;
}
.vcb-form-group textarea { resize: vertical; min-height: 70px; }

/* =========================
   Vegas Facials polish (white/black)
   ========================= */

/* На всякий: скрытие должно работать всегда */
.vcb-hidden { display: none !important; }

/* Если слоты уже есть — НИКОГДА не показываем "No available slots..." */
.vcb-slots:not(:empty) + .vcb-slots-empty {
  display: none !important;
}

/* Step header — делаем аккуратный layout */
.vcb-step-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.vcb-step-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Блок справа (заголовок + подсказка) */
.vcb-step-texts {
  text-align: right;
}

/* Инпут поиска и дата — ровные, аккуратные */
.vcb-search-input,
.vcb-date {
  height: 48px;
  border-radius: 14px;
  border: 1px solid #dedede;
  padding: 0 16px;
  box-shadow: none;
}

.vcb-search-input::placeholder { color: #9a9a9a; }
.vcb-search-input:focus,
.vcb-date:focus {
  border-color: #111;
  outline: none;
}

/* Карточка выбранной услуги — чуть плотнее и красивее */
.vcb-selected {
  border-radius: 18px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  padding: 16px;
}

/* Services grid — равномерно */
.vcb-grid {
  gap: 16px;
}

.vcb-card {
  border-radius: 18px;
  border: 1px solid #e8e8e8;
}

.vcb-card:hover {
  transform: translateY(-2px);
}

.vcb-card-title {
  font-size: 16px;
}

/* ===== Step 3 polish ===== */

/* Refresh — нормальная кнопка, не полоса */
.vcb-refresh {
  height: 44px;
  padding: 0 16px !important;
  border-radius: 12px !important;
  border: 1px solid #111 !important;
  background: #fff !important;
  color: #111 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 120px;
}

.vcb-refresh:hover {
  background: #111 !important;
  color: #fff !important;
}

/* Слоты — одинаковая высота и сетка */
.vcb-slots {
  margin-top: 12px;
  gap: 12px;
}

.vcb-slot {
  height: 52px;
  border-radius: 14px;
  border: 1px solid #e1e1e1;
  font-size: 15px;
  font-weight: 600;
}

.vcb-slot:hover {
  border-color: #111;
}

.vcb-slot.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Footer — кнопка справа, текст слева, красиво */
.vcb-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

.vcb-next {
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}

/* ===== Modal polish ===== */
.vcb-modal-card {
  border-radius: 20px;
  overflow: hidden;
}

.vcb-modal-head {
  padding: 16px 18px;
}

.vcb-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #111;
}

.vcb-modal-close:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Кнопки в модалке (Back / Confirm) — одинаковые, ровные */
.vcb-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.vcb-btn {
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid #111;
  cursor: pointer;
}

.vcb-btn-ghost {
  background: #fff;
  color: #111;
}

.vcb-btn-ghost:hover {
  background: #f3f3f3;
}

.vcb-btn-primary {
  background: #111;
  color: #fff;
}

.vcb-btn-primary:hover {
  background: #000;
}

/* Form inputs inside modal */
.vcb-form-group input,
.vcb-form-group textarea {
  border-radius: 14px;
  border: 1px solid #e2e2e2;
  padding: 12px 14px;
  font-size: 14px;
}

.vcb-form-group input:focus,
.vcb-form-group textarea:focus {
  border-color: #111;
  outline: none;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .vcb-step-texts { text-align: left; }
  .vcb-step-head { align-items: stretch !important; }
  .vcb-refresh { width: 100% !important; }
}

@media (max-width: 520px) {
  .vcb-premium { padding: 18px; }
  .vcb-slot { height: 50px; }
  .vcb-next { width: 100%; }
  .vcb-footer { flex-direction: column; align-items: stretch; gap: 12px; }
}


/* Wizard tabs inside modal */
.vcb-wizard { display: grid; gap: 14px; }

.vcb-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #f3f3f3;
  border-radius: 14px;
}

.vcb-tab {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.vcb-tab.is-active {
  background: #111;
  color: #fff;
}

.vcb-tab:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.vcb-pane { display: none; }
.vcb-pane.is-active { display: block; }

.vcb-summary {
  border: 1px solid #e8e8e8;
  background: #fafafa;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}

.vcb-summary-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.vcb-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px dashed #e5e5e5;
}

.vcb-summary-row:first-of-type { border-top: 0; }

.vcb-done-title { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.vcb-done-text { color: #444; margin-bottom: 12px; }

.vcb-done-card {
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}


/* =========================
   REAL POPUP OVERLAY (FINAL FIX)
   Put this at the VERY END
   ========================= */

.vcb-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

.vcb-modal.vcb-hidden{
  display: none !important;
}

.vcb-modal-backdrop{
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.58) !important;
  backdrop-filter: blur(6px) !important;
}

.vcb-modal-card{
  position: relative !important;
  width: min(680px, 92vw) !important;
  max-height: 84vh !important;
  overflow: auto !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: 22px !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.35) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  z-index: 1 !important;
}

.vcb-modal-head{
  position: sticky !important;
  top: 0 !important;
  background: #fff !important;
  z-index: 2 !important;
}

/* optional: smooth animation */
.vcb-modal-card{
  animation: vcbPop .16s ease-out;
}
@keyframes vcbPop{
  from{ transform: translateY(10px) scale(.98); opacity: .6; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}

/* ensure body scroll lock works */
body.vcb-noscroll{
  overflow: hidden !important;
}

/* ===== Mobile Bottom Sheet ===== */
@media (max-width: 640px) {
  .vcb-modal {
    align-items: flex-end !important;
    padding: 12px !important;
  }

  .vcb-modal-card {
    width: 100% !important;
    max-height: 88vh !important;
    border-radius: 18px 18px 22px 22px !important;
    animation: vcbSheet .18s ease-out !important;
  }

  @keyframes vcbSheet {
    from { transform: translateY(16px); opacity: .85; }
    to { transform: translateY(0); opacity: 1; }
  }

  /* чтобы шапка и крестик были всегда видны */
  .vcb-modal-head {
    border-bottom: 1px solid #eee !important;
  }
}

/* =========================
   MODAL MUST BE TOP LAYER (FINAL)
   ========================= */

.vcb-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important; /* максимальный слой */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  isolation: isolate !important; /* новый stacking context */
}

.vcb-modal.vcb-hidden{ display:none !important; }

.vcb-modal-backdrop{
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.62) !important;
  backdrop-filter: blur(6px) !important;
}

.vcb-modal-card{
  position: relative !important;
  z-index: 1 !important;
  width: min(680px, 92vw) !important;
  max-height: 86vh !important;
  overflow: auto !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: 22px !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.35) !important;
}

/* Сбиваем любые залипания хедера/футера, когда модалка открыта */
body.vcb-noscroll header,
body.vcb-noscroll .site-header,
body.vcb-noscroll .header,
body.vcb-noscroll .elementor-location-header,
body.vcb-noscroll footer,
body.vcb-noscroll .site-footer,
body.vcb-noscroll .footer,
body.vcb-noscroll .elementor-location-footer{
  z-index: 0 !important;
}

/* На всякий случай убираем влияние fixed header поверх */
body.vcb-noscroll .sticky,
body.vcb-noscroll .is-sticky{
  z-index: 0 !important;
}

/* =========================
   SALIENT / NECTAR: force modal above header/footer
   Put at VERY END
   ========================= */

.vcb-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
}

.vcb-modal-backdrop{ z-index: 0 !important; }
.vcb-modal-card{ z-index: 1 !important; }

/* while popup open -> drop Salient layers below */
body.vcb-noscroll #header-outer,
body.vcb-noscroll #search-outer,
body.vcb-noscroll #footer-outer,
body.vcb-noscroll #nectar_fullscreen_rows,
body.vcb-noscroll .nectar-box-roll,
body.vcb-noscroll .nectar-slide-in-cart{
  z-index: 0 !important;
}

/* if theme sets position/transform that creates stacking context */
body.vcb-noscroll #ajax-content-wrap,
body.vcb-noscroll #page-header-wrap,
body.vcb-noscroll #boxed,
body.vcb-noscroll #wrap,
body.vcb-noscroll #page-container{
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

/* ensure WP admin bar doesn't overlay */
#wpadminbar{ z-index: 0 !important; }

.vcb-form-error{
  padding: 10px 12px;
  border: 1px solid #ffd2d2;
  background: #fff5f5;
  border-radius: 12px;
}



.vcb-filters{
  position: relative !important;
  width: 100% !important;
  margin: 12px 0 18px !important;
}

.vcb-category{
  width: 100% !important;
  height: 54px !important;
  padding: 0 52px 0 16px !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 54px !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  outline: none !important;
  box-shadow: none !important;
}

.vcb-category:hover{
  border-color: rgba(0,0,0,.25) !important;
}

.vcb-category:focus{
  border-color: rgb(136 196 125) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,.10) !important;
}

/* arrow */
.vcb-filters::after{
  content: "" !important;
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  width: 10px !important;
  height: 10px !important;
  border-right: 2px solid rgba(0,0,0,.55) !important;
  border-bottom: 2px solid rgba(0,0,0,.55) !important;
  transform: translateY(-60%) rotate(45deg) !important;
  pointer-events: none !important;
}

.vcb-category option{
  color: #111 !important;
}