/* Discovery Call Booking v1.1.0 */

/* ── WRAPPER ──────────────────────────────────────────────── */
.dcb-wrapper {
  font-family: 'Poppins', Arial, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
}

.dcb-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(0,46,91,0.08);
  padding: 36px 40px;
}

@media (max-width: 600px) { .dcb-card { padding: 24px 18px; } }

/* ── HEADER ───────────────────────────────────────────────── */
.dcb-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f2044;
  margin: 0 0 8px;
  line-height: 1.3;
  text-transform: none !important;
}
.dcb-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 6px;
  line-height: 1.6;
}
.dcb-note {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 24px;
}

/* ── TWO-COLUMN LAYOUT ────────────────────────────────────── */
.dcb-booking-layout {
  display: flex;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.dcb-col-date {
  flex: 0 0 auto;
  width: 340px;
  padding: 24px;
  background: #fff;
}
.dcb-col-divider {
  width: 1px;
  align-self: stretch;
  background: #e8edf2;
  flex-shrink: 0;
}
.dcb-col-time {
  flex: 1;
  padding: 24px;
  background: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

/* ── COLUMN HEADERS ───────────────────────────────────────── */
.dcb-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 16px;
}
.dcb-col-header svg { color: #475569; flex-shrink: 0; }

/* ── MONTH NAV ────────────────────────────────────────────── */
.dcb-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dcb-month-label {
  font-size: 15px;
  font-weight: 600;
  color: #0f2044;
}
.dcb-nav-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}
.dcb-nav-btn:hover:not(:disabled) {
  border-color: #94a3b8;
  color: #0f2044;
  background: transparent;
}
.dcb-nav-btn:focus { outline: none !important; box-shadow: none !important; }
.dcb-nav-btn:active:not(:disabled) { background: #f8fafc; }
.dcb-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }

/* ── CALENDAR GRID ────────────────────────────────────────── */
.dcb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  justify-items: center;
}
.dcb-cal-dow {
  width: 36px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}
.dcb-cal-empty { width: 36px; height: 36px; }

/* ── DAY CELLS ────────────────────────────────────────────── */
.dcb-cal-day {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Poppins', Arial, sans-serif;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #334155;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}
.dcb-cal-day:focus { outline: none !important; box-shadow: none !important; }

/* Available */
.dcb-cal-day.available { color: #166534; font-weight: 600; }
.dcb-cal-day.available:hover:not(.selected) { background: #f0fdf4; color: #166534; }

/* Selected — lock it, nothing overrides */
.dcb-cal-day.selected,
.dcb-cal-day.selected:hover,
.dcb-cal-day.selected:focus,
.dcb-cal-day.selected:active {
  background: #0f2044 !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* Full */
.dcb-cal-day.full {
  color: #fca5a5;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Disabled / past */
.dcb-cal-day.disabled { color: #cbd5e0; cursor: default; }

/* ── LEGEND ───────────────────────────────────────────────── */
.dcb-cal-legend {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748b;
  align-items: center;
}
.dcb-legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}
.dcb-legend-dot.available { background: #22c55e; }
.dcb-legend-dot.full      { background: #fca5a5; }
.dcb-legend-dot.disabled  { background: #e2e8f0; }

/* ── SLOT PLACEHOLDER ─────────────────────────────────────── */
.dcb-slot-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  min-height: 180px;
}

/* ── SLOT DATE LABEL ──────────────────────────────────────── */
.dcb-slot-date-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f2044;
  margin-bottom: 14px;
}

/* ── PERIOD LABELS ────────────────────────────────────────── */
.dcb-slot-period-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 12px 0 8px;
}
.dcb-slot-period-label:first-of-type { margin-top: 0; }

/* ── SLOT GRID ────────────────────────────────────────────── */
.dcb-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* ── SLOT BUTTONS ─────────────────────────────────────────── */
.dcb-slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 6px;
  cursor: pointer;
  font-family: 'Poppins', Arial, sans-serif;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}
.dcb-slot-btn:focus { outline: none !important; box-shadow: none !important; }

.dcb-slot-btn span { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.3; }
.dcb-slot-btn small { font-size: 10px; color: #94a3b8; margin-top: 2px; }

.dcb-slot-btn:hover:not(:disabled):not(.full):not(.selected) {
  border-color: #0f2044;
  background: #f8fafc;
}

/* Selected slot — lock it */
.dcb-slot-btn.selected,
.dcb-slot-btn.selected:hover,
.dcb-slot-btn.selected:focus,
.dcb-slot-btn.selected:active {
  background: #0f2044 !important;
  border-color: #0f2044 !important;
}
.dcb-slot-btn.selected span,
.dcb-slot-btn.selected small,
.dcb-slot-btn.selected:hover span,
.dcb-slot-btn.selected:hover small {
  color: #ffffff !important;
}

.dcb-slot-btn.full {
  border-color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.5;
  background: #f8fafc;
}
.dcb-slot-btn.full span { color: #94a3b8; }
.dcb-slot-btn.full small { color: #fca5a5; }

/* ── TIMEZONE ─────────────────────────────────────────────── */
.dcb-timezone { font-size: 11px; color: #94a3b8; margin: 16px 0 0; }

/* ── SELECTED INFO ────────────────────────────────────────── */
.dcb-selected-info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 20px;
}

/* ── FORM ─────────────────────────────────────────────────── */
.dcb-form { border-top: 1px solid #f1f5f9; padding-top: 24px; }
.dcb-form-row { display: flex; gap: 16px; }
.dcb-form-row .dcb-field { flex: 1; }
.dcb-field { margin-bottom: 14px; }

.dcb-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dcb-required { color: #ef4444; margin-left: 2px; }

.dcb-field input,
.dcb-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', Arial, sans-serif;
  color: #1e293b;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.dcb-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.dcb-field input:focus,
.dcb-field select:focus {
  border-color: #0f2044;
  box-shadow: 0 0 0 3px rgba(15,32,68,0.07);
}

/* ── HONEYPOT ─────────────────────────────────────────────── */
.dcb-honeypot { display: none !important; visibility: hidden !important; }

/* ── SUBMIT BUTTON ────────────────────────────────────────── */
.dcb-book-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: #0f2044;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', Arial, sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
  outline: none;
}
.dcb-book-btn:hover:not(:disabled) { background: #1e3a6e; transform: translateY(-1px); }
.dcb-book-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── MESSAGES ─────────────────────────────────────────────── */
.dcb-message { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; display: none; }
.dcb-message:not(:empty) { display: block; }
.dcb-message.error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.dcb-message.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ── LOADING STATES ───────────────────────────────────────── */
.dcb-loading  { font-size: 13px; color: #94a3b8; padding: 6px 0; font-style: italic; }
.dcb-no-slots { font-size: 12px; color: #94a3b8; padding: 4px 0; }
.dcb-error    { font-size: 13px; color: #dc2626; padding: 4px 0; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .dcb-booking-layout { flex-direction: column; border: none; }
  .dcb-col-date { width: 100%; padding: 16px; border: 1px solid #e8edf2; border-radius: 12px 12px 0 0; }
  .dcb-col-divider { width: 100%; height: 1px; align-self: auto; }
  .dcb-col-time { padding: 16px; border: 1px solid #e8edf2; border-top: none; border-radius: 0 0 12px 12px; }
  .dcb-slot-grid { grid-template-columns: repeat(2, 1fr); }
  .dcb-form-row { flex-direction: column; gap: 0; }
  .dcb-cal-day, .dcb-cal-empty { width: 32px; height: 32px; }
  .dcb-cal-dow { width: 32px; height: 28px; font-size: 10px; }
}
