/* Cleaning Ninjas Booking – Popup Styles */

/* ── Overlay ── */
.cnb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.cnb-overlay.cnb-open {
  display: flex;
}

/* ── Modal ── */
.cnb-modal {
  background: var(--cnb-bg, #eff6ff);
  border-radius: 18px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: cnb-slide-up 0.28s ease;
}
@keyframes cnb-slide-up {
  from { transform: translateY(32px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Close button ── */
.cnb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--cnb-muted, #6b7280);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.cnb-close:hover { color: var(--cnb-text, #1a1a2e); }

/* ── Progress ── */
.cnb-progress-wrap {
  height: 6px;
  background: #d1d5db;
  border-radius: 99px;
  margin-bottom: 4px;
  overflow: hidden;
}
.cnb-progress-bar {
  height: 100%;
  background: var(--cnb-primary, #2563eb);
  border-radius: 99px;
  transition: width 0.35s ease;
  width: 33%;
}
.cnb-step-label {
  text-align: right;
  font-size: 13px;
  color: var(--cnb-muted, #6b7280);
  margin: 0 0 18px;
}

/* ── Typography ── */
.cnb-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--cnb-text, #1a1a2e);
  margin: 0 0 6px;
  line-height: 1.2;
}
.cnb-subtitle {
  font-size: 14px;
  color: var(--cnb-muted, #6b7280);
  margin: 0 0 20px;
}

/* ── Steps ── */
.cnb-step { display: block; }
.cnb-hidden { display: none !important; }

/* ── Fields ── */
.cnb-field {
  margin-bottom: 14px;
}
.cnb-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cnb-text, #1a1a2e);
  margin-bottom: 6px;
}
.cnb-field input[type="text"],
.cnb-field input[type="email"],
.cnb-field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: var(--cnb-card-bg, #ffffff);
  font-size: 15px;
  color: var(--cnb-text, #1a1a2e);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.cnb-field input:focus {
  border-color: var(--cnb-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ── Selects ── */
.cnb-select-wrap {
  position: relative;
}
.cnb-select-wrap::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: var(--cnb-muted, #6b7280);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.cnb-select-wrap select {
  width: 100%;
  padding: 12px 38px 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: var(--cnb-card-bg, #ffffff);
  font-size: 15px;
  color: var(--cnb-text, #1a1a2e);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cnb-select-wrap select:focus {
  border-color: var(--cnb-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ── Upsell note ── */
.cnb-popular-note {
  font-size: 13px;
  color: var(--cnb-primary, #2563eb);
  margin: -6px 0 16px;
  font-weight: 500;
}

/* ── Buttons ── */
.cnb-btn-primary {
  display: block;
  background: var(--cnb-primary, #2563eb);
  color: var(--cnb-btn-text, #ffffff);
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 28px;
  cursor: pointer;
  text-align: center;
  transition: filter 0.18s, transform 0.12s;
}
.cnb-btn-primary:hover  { filter: brightness(1.08); }
.cnb-btn-primary:active { transform: scale(0.98); }
.cnb-btn-full { width: 100%; }

.cnb-btn-secondary {
  display: block;
  background: transparent;
  color: var(--cnb-text, #1a1a2e);
  border: 2px solid #d1d5db;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.cnb-btn-secondary:hover { border-color: #9ca3af; background: rgba(0,0,0,0.03); }

.cnb-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cnb-btn-row .cnb-btn-secondary { flex: 1; }
.cnb-btn-row .cnb-btn-primary   { flex: 2; }

/* ── Step 4: Price Card ── */
.cnb-price-intro {
  font-size: 14px;
  color: var(--cnb-muted, #6b7280);
  margin: 0 0 10px;
}
.cnb-price-card {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.cnb-price-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--cnb-text, #1a1a2e);
  margin: 0 0 12px;
  line-height: 1.4;
}
.cnb-price-row {
  font-size: 14px;
  color: var(--cnb-text, #1a1a2e);
  padding: 3px 0;
}
.cnb-price-row strong { color: var(--cnb-text, #1a1a2e); }

.cnb-price-footer {
  font-size: 13px;
  color: var(--cnb-muted, #6b7280);
  margin: 0 0 14px;
}

.cnb-confirm-box {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--cnb-text, #1a1a2e);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cnb-urgency {
  text-align: center;
  font-size: 12px;
  color: var(--cnb-muted, #6b7280);
  margin: 8px 0 12px;
}

/* ── Call button ── */
.cnb-call-btn {
  display: block;
  text-align: center;
  border: 2px solid var(--cnb-primary, #2563eb);
  border-radius: 50px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cnb-primary, #2563eb);
  text-decoration: none;
  transition: background 0.18s;
}
.cnb-call-btn:hover { background: rgba(37,99,235,0.07); }

/* ── Messages ── */
.cnb-error {
  color: #dc2626;
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 18px;
}
.cnb-success {
  background: #d1fae5;
  color: #065f46;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

/* ── Trigger button (shortcode) ── */
.cnb-trigger {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.18s, transform 0.12s;
}
.cnb-trigger:hover  { filter: brightness(1.08); }
.cnb-trigger:active { transform: scale(0.98); }

/* ── Scrollbar ── */
.cnb-modal::-webkit-scrollbar { width: 5px; }
.cnb-modal::-webkit-scrollbar-track { background: transparent; }
.cnb-modal::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .cnb-modal { padding: 20px 18px 20px; border-radius: 14px; }
  .cnb-title { font-size: 20px; }
  .cnb-btn-primary { font-size: 15px; padding: 14px 20px; }
}
