/* ============================================================
   VN Consulting Booking – Frontend Styles
   ============================================================ */

.vncb-booking-app {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0,0,0,.08);
  overflow: hidden;
  min-height: 600px;
}

/* ── Sidebar ─────────────────────────────────── */
.vncb-sidebar {
  width: 260px;
  min-width: 260px;
  padding: 36px 28px;
  border-right: 1px solid #f0f0f0;
  background: #fafafa;
}
.vncb-logo-wrap { margin-bottom: 4px; }
.vncb-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
.vncb-logo-placeholder {
  width: 72px; height: 72px; background: #1a1a2e; color: #fff;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 22px;
}
.vncb-brand { font-size: 12px; color: #888; letter-spacing: .08em; margin: 12px 0 4px; }
.vncb-service-name { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 16px; line-height: 1.3; }
.vncb-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #555; }
.vncb-meta span { display: flex; align-items: center; gap: 6px; }
.vncb-selected-summary {
  margin-top: 20px; padding: 14px 16px; background: #f0fdf4;
  border-left: 3px solid #22c55e; border-radius: 8px;
  font-size: 13px; color: #166534; display: flex; flex-direction: column; gap: 6px;
}

/* ── Steps ───────────────────────────────────── */
.vncb-step { flex: 1; display: flex; padding: 32px; gap: 0; }

/* ── Calendar ────────────────────────────────── */
.vncb-calendar-wrap { flex: 1; }
.vncb-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.vncb-cal-header span { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.vncb-cal-header button {
  background: none; border: none; font-size: 22px; cursor: pointer;
  color: #888; padding: 4px 10px; border-radius: 6px; transition: background .15s;
}
.vncb-cal-header button:hover { background: #f0f0f0; }

.vncb-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 12px; font-weight: 600;
  color: #999; text-transform: uppercase; margin-bottom: 8px; letter-spacing: .05em;
}

.vncb-cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}

.vncb-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 500; cursor: default;
  transition: all .15s;
}
.vncb-day.empty { visibility: hidden; }
.vncb-day.past, .vncb-day.unavailable { color: #ccc; }
.vncb-day.available {
  background: #f3f4f6; cursor: pointer; color: #1a1a2e; font-weight: 600;
}
.vncb-day.available:hover { background: #e0e7ff; color: #3730a3; }
.vncb-day.selected { background: #3730a3 !important; color: #fff !important; }

.vncb-timezone-row {
  margin-top: 20px; font-size: 13px; color: #888;
  border-top: 1px solid #f0f0f0; padding-top: 14px;
}

/* ── Time Slots Panel ────────────────────────── */
.vncb-timeslots-panel {
  width: 240px; min-width: 240px; margin-left: 24px;
  display: flex; flex-direction: column;
  max-height: 580px;
}
.vncb-ts-header {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15px; color: #1a1a2e; margin-bottom: 14px;
}
.vncb-ts-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 340px; padding-right: 2px; }
.vncb-slot {
  padding: 14px 16px; border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
  color: #1a1a2e; transition: all .15s;
}
.vncb-slot:hover { border-color: #3730a3; color: #3730a3; background: #eef2ff; }
.vncb-slot.selected { background: #3730a3; border-color: #3730a3; color: #fff; }
.no-slots { color: #888; font-size: 13px; padding: 16px 0; text-align: center; }

/* ── Fixed "Tiếp theo" footer in timeslot panel ── */
.vncb-next-wrap {
  margin-top: 12px;
  border-top: 2px solid #e5e7eb;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-bottom: 6px;
}
.vncb-next-selected-time {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
}
.next-time-label {
  font-size: 13px;
  color: #6b7280;
}
.next-time-value {
  font-size: 20px;
  font-weight: 800;
  color: #166534;
  letter-spacing: .02em;
}
.vncb-btn-next-big {
  width: 100%;
  padding: 16px;
  background: #3730a3;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(55,48,163,.35);
}
.vncb-btn-next-big:hover  { background: #4f46e5; transform: translateY(-1px); }
.vncb-btn-next-big:active { transform: translateY(0); }

/* ── Form Step ───────────────────────────────── */
#vncb-step-form { flex-direction: column; }
.vncb-form-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.vncb-form-header h3 { margin: 0; font-size: 20px; color: #1a1a2e; }
.vncb-back-btn {
  background: none; border: 1.5px solid #e5e7eb; padding: 7px 14px;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: #555;
  transition: all .15s;
}
.vncb-back-btn:hover { border-color: #3730a3; color: #3730a3; }

/* ── Form Fields ─────────────────────────────── */
.vncb-field { margin-bottom: 20px; }
.vncb-label { display: block; font-weight: 600; font-size: 14px; color: #1a1a2e; margin-bottom: 6px; }
.vncb-required { color: #ef4444; }
.vncb-help { display: block; font-size: 12px; color: #888; margin-bottom: 6px; font-style: italic; }

.vncb-input, .vncb-select, .vncb-textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e5e7eb;
  border-radius: 10px; font-size: 14px; color: #1a1a2e;
  background: #fff; box-sizing: border-box; transition: border .15s;
  font-family: inherit;
}
.vncb-input:focus, .vncb-select:focus, .vncb-textarea:focus {
  outline: none; border-color: #3730a3; box-shadow: 0 0 0 3px rgba(55,48,163,.08);
}
.vncb-textarea { resize: vertical; }

.vncb-phone-wrap { display: flex; gap: 0; }
.vncb-phone-prefix {
  padding: 12px 14px; background: #f3f4f6; border: 1.5px solid #e5e7eb;
  border-right: none; border-radius: 10px 0 0 10px; font-size: 14px;
  white-space: nowrap; color: #555;
}
.vncb-phone-input { border-radius: 0 10px 10px 0 !important; }

.vncb-options { display: flex; flex-direction: column; gap: 10px; }
.vncb-option-label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 14px; color: #374151; padding: 10px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 8px; transition: all .15s;
}
.vncb-option-label:hover { border-color: #3730a3; background: #eef2ff; }
.vncb-option-label input { margin-top: 2px; accent-color: #3730a3; }

/* ── Submit button ───────────────────────────── */
.vncb-btn-primary {
  margin-top: 24px; padding: 16px 32px; background: #3730a3; color: #fff;
  border: none; border-radius: 12px; font-size: 16px; font-weight: 700;
  cursor: pointer; width: 100%; transition: background .15s; letter-spacing: .01em;
}
.vncb-btn-primary:hover { background: #4f46e5; }
.vncb-btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── Error ───────────────────────────────────── */
.vncb-error {
  background: #fef2f2; border-left: 4px solid #ef4444;
  color: #991b1b; padding: 12px 16px; border-radius: 8px;
  margin-top: 12px; font-size: 13px;
}

/* ── Loading ─────────────────────────────────── */
.vncb-loading { padding: 24px; text-align: center; color: #888; font-size: 14px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .vncb-booking-app { flex-direction: column; }
  .vncb-sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid #f0f0f0; }
  .vncb-step { flex-direction: column; padding: 20px; }
  .vncb-timeslots-panel { width: 100%; margin-left: 0; margin-top: 24px; }
  .vncb-ts-list { flex-direction: row; flex-wrap: wrap; max-height: unset; }
  .vncb-slot { min-width: 80px; }
}
