/* ── Wrapper principal ── */
#fcb-booking-wrapper {
  display: flex;
  max-width: 860px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  font-family: Arial, sans-serif;
  min-height: 520px;
}

/* ── Sidebar ── */
.fcb-sidebar {
  width: 240px;
  min-width: 240px;
  background: #1a2e6e;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 0 24px;
}

.fcb-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.fcb-step.active,
.fcb-step.done { opacity: 1; }

.fcb-step-icon { font-size: 18px; }

.fcb-step-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fcb-step-title    { font-size: 14px; font-weight: bold; }
.fcb-step-subtitle { font-size: 11px; opacity: 0.8; margin-top: 2px; }

.fcb-step-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.fcb-step-check.done {
  background: #4caf50;
  color: #fff;
}
.fcb-step-check.done::after { content: '✓'; }

.fcb-collapse-btn {
  margin-top: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  cursor: pointer;
  padding: 12px 20px;
  text-align: left;
}

/* ── Panel principal ── */
.fcb-main {
  flex: 1;
  background: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.fcb-panel { display: none; flex-direction: column; flex: 1; }
.fcb-panel.active { display: flex; }

.fcb-main h2 {
  color: #1a2e6e;
  font-size: 20px;
  margin: 0 0 24px;
}

/* ── Navegación del calendario ── */
.fcb-calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.fcb-calendar-nav select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.fcb-calendar-nav button {
  background: #f4f6fb;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
}
.fcb-calendar-nav button:hover { background: #e0e4f0; }

/* ── Grid del calendario ── */
.fcb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.fcb-day-header {
  text-align: center;
  font-size: 12px;
  color: #888;
  padding: 4px 0;
}
.fcb-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.fcb-day:hover:not(.disabled) { background: #e8ecf8; }
.fcb-day.available { color: #1a2e6e; border-color: #c5cce8; }
.fcb-day.selected  { background: #1a2e6e; color: #fff; border-color: #1a2e6e; }
.fcb-day.disabled  { color: #ccc; cursor: default; }
.fcb-day.today::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: #1a2e6e;
  border-radius: 50%;
  margin: 2px auto 0;
}

/* ── Slots de hora ── */
.fcb-time-slots { margin-top: 20px; }
.fcb-time-slots h3 { font-size: 14px; color: #333; margin-bottom: 12px; }

.fcb-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fcb-slot {
  padding: 10px;
  text-align: center;
  border: 1px solid #c5cce8;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #1a2e6e;
  transition: all 0.15s;
}
.fcb-slot:hover   { background: #e8ecf8; }
.fcb-slot.selected { background: #1a2e6e; color: #fff; border-color: #1a2e6e; }
.fcb-slot.booked  { background: #f4f4f4; color: #bbb; cursor: default; border-color: #eee; }

/* ── Formulario paso 2 ── */
.fcb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fcb-field { display: flex; flex-direction: column; gap: 6px; }
.fcb-field label { font-size: 13px; color: #333; }
.fcb-field input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.15s;
}
.fcb-field input:focus {
  outline: none;
  border-color: #1a2e6e;
}

/* ── Resumen de pago ── */
.fcb-summary {
  background: #f4f6fb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.fcb-summary h3       { font-size: 14px; color: #888; margin: 0 0 12px; }
.fcb-summary-row      { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.fcb-summary-total    { display: flex; justify-content: space-between; font-size: 15px; margin-top: 12px; border-top: 1px solid #ddd; padding-top: 12px; }

/* ── Error ── */
.fcb-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── Footer con botones ── */
.fcb-panel-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.fcb-btn-primary {
  background: #1a2e6e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 28px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.fcb-btn-primary:hover    { background: #243d8f; }
.fcb-btn-primary:disabled { background: #aab0c8; cursor: default; }
.fcb-btn-secondary {
  background: #f4f6fb;
  color: #1a2e6e;
  border: 1px solid #c5cce8;
  border-radius: 6px;
  padding: 11px 20px;
  font-size: 14px;
  cursor: pointer;
}
.fcb-btn-secondary:hover { background: #e0e4f0; }

/* ── Responsive ── */
@media (max-width: 620px) {
  #fcb-booking-wrapper { flex-direction: column; }
  .fcb-sidebar { width: 100%; flex-direction: row; padding: 12px; overflow-x: auto; }
  .fcb-collapse-btn { display: none; }
  .fcb-form-grid { grid-template-columns: 1fr; }
  .fcb-slots-grid { grid-template-columns: 1fr 1fr; }
}
