/* ────────────────────────────────────────────
   BOOKING WIZARD — Alpha Dent Service
   ──────────────────────────────────────────── */

/* Panel contenedor */
.booking-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(30,111,217,0.1);
  box-shadow: 0 8px 40px rgba(13,35,72,0.1);
  overflow: hidden;
}

/* Progress Bar */
.bw-progress {
  display: flex; align-items: center;
  padding: 1.2rem 1.5rem;
  background: var(--navy);
  gap: 0;
}
.bw-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex-shrink: 0;
}
.bw-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.bw-step span {
  font-size: 0.7rem; color: rgba(255,255,255,0.4); font-weight: 500;
  white-space: nowrap;
}
.bw-step.active .bw-step-num {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
}
.bw-step.active span { color: var(--gold); }
.bw-step.done .bw-step-num {
  background: #4ecca3; color: var(--navy);
  border-color: #4ecca3;
}
.bw-step.done span { color: #4ecca3; }
.bw-step-line {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 8px; margin-bottom: 18px;
}

/* Section wrapper */
.bw-section { padding: 1.8rem; }
.bw-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.3rem;
}
.bw-sub { font-size: 0.85rem; color: var(--gray); margin-bottom: 1.2rem; }

/* Service Cards */
.bw-services { display: flex; flex-direction: column; gap: 0.7rem; }
.bw-service-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: 10px;
  border: 2px solid var(--glass-border);
  cursor: pointer; transition: all 0.25s;
  background: #fafafa;
}
.bw-service-card:hover { border-color: var(--blue); background: rgba(30,111,217,0.03); }
.bw-service-card.selected {
  border-color: var(--blue);
  background: rgba(30,111,217,0.06);
}
.bw-svc-icon { font-size: 1.4rem; flex-shrink: 0; width: 28px; text-align: center; }
.bw-svc-info { flex: 1; }
.bw-svc-info strong { display: block; font-size: 0.9rem; color: var(--navy); }
.bw-svc-info span   { font-size: 0.78rem; color: var(--gray); }
.bw-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: transparent;
  transition: all 0.2s; flex-shrink: 0;
}
.bw-service-card.selected .bw-check {
  background: var(--blue); border-color: var(--blue); color: white;
}

/* City Buttons */
.bw-field { margin-bottom: 1.2rem; }
.bw-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.bw-city-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bw-city-btn {
  padding: 0.4rem 0.9rem; border-radius: 50px;
  border: 2px solid var(--glass-border); background: #fafafa;
  font-size: 0.82rem; font-weight: 500; color: var(--gray);
  cursor: pointer; transition: all 0.2s;
}
.bw-city-btn:hover { border-color: var(--blue); color: var(--blue); }
.bw-city-btn.active {
  border-color: var(--blue); background: var(--blue); color: white;
}

/* Calendar */
.bw-calendar {
  border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden;
}
.bw-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; background: var(--navy);
}
.bw-cal-title { font-size: 0.88rem; font-weight: 600; color: white; text-transform: capitalize; }
.bw-cal-nav {
  background: rgba(255,255,255,0.1); border: none;
  color: white; width: 28px; height: 28px; border-radius: 6px;
  cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.bw-cal-nav:hover:not(:disabled) { background: rgba(255,255,255,0.25); }
.bw-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.bw-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0; padding: 0.5rem;
}
.bw-day-label {
  text-align: center; font-size: 0.7rem; font-weight: 600;
  color: var(--gray); padding: 0.3rem 0;
}
.bw-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; border-radius: 8px; cursor: pointer;
  transition: all 0.2s; margin: 1px;
}
.bw-day.empty { cursor: default; }
.bw-day.disabled { color: #ccc; cursor: not-allowed; }
.bw-day.available { color: var(--navy); font-weight: 500; }
.bw-day.available:hover { background: rgba(30,111,217,0.1); color: var(--blue); }
.bw-day.selected { background: var(--blue); color: white; font-weight: 700; }

/* Time Slots */
.bw-times { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bw-time-btn {
  padding: 0.5rem 0.9rem; border-radius: 8px;
  border: 2px solid var(--glass-border); background: #fafafa;
  font-size: 0.82rem; font-weight: 500; color: var(--navy);
  cursor: pointer; transition: all 0.2s;
}
.bw-time-btn:hover:not(:disabled) { border-color: var(--blue); }
.bw-time-btn.selected { border-color: var(--blue); background: var(--blue); color: white; }
.bw-time-btn.booked { color: #ccc; cursor: not-allowed; border-color: #eee; }
.bw-time-btn.booked small { display: block; font-size: 0.68rem; }
.bw-no-slots { font-size: 0.85rem; color: var(--gray); font-style: italic; }

/* Summary Box */
.bw-summary-box {
  background: rgba(30,111,217,0.05);
  border: 1px solid rgba(30,111,217,0.15);
  border-radius: 10px; padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}
.bw-sum-row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; padding: 0.25rem 0;
  border-bottom: 1px solid rgba(30,111,217,0.07);
}
.bw-sum-row:last-child { border-bottom: none; }
.bw-sum-row span { color: var(--gray); }
.bw-sum-row strong { color: var(--navy); }

/* Form */
.bw-form { display: flex; flex-direction: column; gap: 0.8rem; }
.bw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.bw-form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.bw-form-group label { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.bw-form-group input,
.bw-form-group textarea {
  padding: 0.6rem 0.8rem; border-radius: 8px;
  border: 2px solid var(--glass-border); background: #fafafa;
  font-size: 0.87rem; color: var(--navy); transition: border 0.2s;
  font-family: inherit;
}
.bw-form-group input:focus,
.bw-form-group textarea:focus { outline: none; border-color: var(--blue); background: white; }
.bw-form-group textarea { resize: vertical; min-height: 70px; }
.bw-privacy { font-size: 0.73rem; color: var(--gray); margin-top: 0.3rem; }
.bw-field-err { font-size: 0.73rem; color: #e74c3c; margin-top: 2px; }
.bw-error-banner {
  background: #fdecea; color: #c0392b;
  font-size: 0.82rem; padding: 0.6rem 1rem;
  border-radius: 8px; margin-bottom: 0.8rem;
}

/* Footer buttons */
.bw-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.2rem; gap: 1rem;
}
.bw-btn-next, .bw-btn-submit {
  padding: 0.7rem 1.5rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #1458b0);
  color: white; border: none; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; transition: all 0.25s;
  font-family: inherit;
}
.bw-btn-next:hover:not(:disabled), .bw-btn-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.bw-btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.bw-btn-back {
  background: none; border: 1px solid var(--glass-border);
  color: var(--gray); padding: 0.7rem 1rem; border-radius: 10px;
  font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bw-btn-back:hover { border-color: var(--navy); color: var(--navy); }

/* Success Screen */
.bw-success {
  padding: 2rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.bw-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #4ecca3, #2ecc71);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white; font-weight: 700;
}
.bw-success h3 { font-size: 1.3rem; color: var(--navy); margin: 0; }
.bw-success p  { color: var(--gray); font-size: 0.9rem; margin: 0; }
.bw-success-detail {
  width: 100%; background: rgba(78,204,163,0.08);
  border: 1px solid rgba(78,204,163,0.2);
  border-radius: 10px; padding: 0.8rem 1rem; margin: 0.5rem 0;
}
.bw-success-note {
  font-size: 0.85rem; color: var(--gray);
  background: rgba(30,111,217,0.05);
  border-radius: 8px; padding: 0.7rem 1rem;
}
.bw-btn-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: white; font-weight: 600;
  padding: 0.7rem 1.5rem; border-radius: 10px;
  text-decoration: none; font-size: 0.9rem;
  transition: all 0.2s;
}
.bw-btn-wa:hover { background: #1db954; transform: translateY(-1px); }
.bw-btn-new {
  background: none; border: 1px solid var(--glass-border);
  color: var(--gray); padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.bw-btn-new:hover { border-color: var(--navy); color: var(--navy); }

/* Contact Trust badges */
.contact-trust { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ct-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--navy); font-weight: 500;
}
.ct-item::before {
  content: '✓'; display: inline-flex;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(78,204,163,0.2); color: #4ecca3;
  align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .bw-form-row { grid-template-columns: 1fr; }
  .bw-progress { padding: 1rem; gap: 0; }
  .bw-step span { display: none; }
  .bw-section { padding: 1.2rem; }
  .booking-panel { width: 100%; max-width: 100vw; box-sizing: border-box; overflow: hidden; }
  .bw-cal-grid { gap: 2px; padding: 0.2rem; }
}
