/* LankaResearch consultant booking demo UI
   Brand palette sampled visually from the supplied logo:
   indigo #3F438F, sky blue #159FD0. */
:root {
  --ccb-indigo: #3F438F;
  --ccb-sky: #159FD0;
  --ccb-ink: #18233A;
  --ccb-muted: #64748B;
  --ccb-page: #F3F6FA;
  --ccb-border: #E2E8F0;
  --ccb-white: #FFFFFF;
}
.ccb-booking-shell {
  max-width: 900px; margin: 28px auto; background: var(--ccb-white);
  border: 1px solid var(--ccb-border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(35, 55, 95, .08); color: var(--ccb-ink);
}
.ccb-booking-hero {
  padding: clamp(24px, 5vw, 42px); color: var(--ccb-white);
  background: linear-gradient(125deg, var(--ccb-indigo), #343978 70%, #2C629F);
}
.ccb-booking-hero h2 { color: #fff; margin: 8px 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
.ccb-booking-hero p { margin: 0; color: rgba(255,255,255,.86); max-width: 620px; }
.ccb-eyebrow { display: inline-block; color: var(--ccb-sky); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.ccb-booking-hero .ccb-eyebrow { color: #B8EAFE; }
.ccb-booking-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; padding: clamp(22px, 4vw, 38px); }
.ccb-booking-form p { margin: 0; min-width: 0; }
.ccb-booking-form label { display: block; color: var(--ccb-ink); font-size: 14px; font-weight: 650; }
.ccb-booking-form select, .ccb-booking-form input[type="text"], .ccb-booking-form input[type="email"],
.ccb-booking-form input[type="datetime-local"] {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 8px;
  min-height: 48px; padding: 11px 13px; border: 1px solid #CBD5E1; border-radius: 10px;
  background: #fff; color: var(--ccb-ink); font: inherit; font-weight: 400;
}
.ccb-booking-form select:focus, .ccb-booking-form input:focus { outline: 2px solid rgba(21,159,208,.24); border-color: var(--ccb-sky); }
.ccb-booking-form p:nth-last-child(2), .ccb-booking-form .ccb-payment-note { grid-column: 1 / -1; }
.ccb-booking-form button[type="submit"] {
  width: 100%; min-height: 50px; border: 0; border-radius: 10px; padding: 13px 20px;
  background: var(--ccb-indigo); color: #fff; font-weight: 750; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ccb-booking-form button[type="submit"]:hover { background: #303574; transform: translateY(-1px); }
.ccb-payment-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 10px; background: #EFF8FC; color: #36556B; }
.ccb-payment-note small { font-size: 13px; line-height: 1.6; }
.ccb-note-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--ccb-sky); color: #fff; font-weight: 800; font-size: 12px; }
.ccb-booking-shell + .woocommerce-info, .woocommerce .ccb-booking-shell .woocommerce-info { border-top-color: var(--ccb-sky); }
.ccb-admin-wrap { color: var(--ccb-ink); }
.ccb-admin-heading { margin: 22px 0 18px; }
.ccb-admin-heading h1 { color: var(--ccb-indigo); font-size: 28px; font-weight: 750; margin: 7px 0; }
.ccb-admin-heading p { color: var(--ccb-muted); font-size: 13px; }
.ccb-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 20px 0 26px; }
.ccb-kpi-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--ccb-border); border-radius: 12px; box-shadow: 0 4px 14px rgba(35,55,95,.04); }
.ccb-kpi-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #E5F6FC; color: var(--ccb-sky); font-size: 22px; font-weight: 800; }
.ccb-kpi-label { color: var(--ccb-muted); font-size: 12px; font-weight: 650; }
.ccb-kpi-card strong { color: var(--ccb-indigo); font-size: 30px; line-height: 1.15; }
.ccb-table-panel { background: #fff; border: 1px solid var(--ccb-border); border-radius: 12px; padding: 18px; }
.ccb-table-panel h2 { color: var(--ccb-indigo); margin: 0 0 14px; font-size: 17px; }
.ccb-table-scroll { overflow-x: auto; }
.ccb-table-panel table { border: 0; box-shadow: none; min-width: 980px; }
.ccb-table-panel table thead th { background: #F3F6FA; color: var(--ccb-indigo); font-weight: 700; }
.ccb-table-panel table td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
.ccb-table-panel .button { border-radius: 6px; }
@media (max-width: 700px) {
  .ccb-booking-form { grid-template-columns: 1fr; gap: 16px; }
  .ccb-booking-form p:nth-last-child(2), .ccb-booking-form .ccb-payment-note { grid-column: auto; }
  .ccb-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .ccb-kpi-card { padding: 14px; }
  .ccb-kpi-card strong { font-size: 25px; }
  .ccb-table-panel { padding: 12px; }
}

/* Unified dashboard landing page */
.ccb-dashboard-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.ccb-dashboard-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--ccb-border); border-radius: 13px; box-shadow: 0 5px 18px rgba(35,55,95,.05); }
.ccb-dashboard-card > .dashicons { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #E5F6FC; color: var(--ccb-sky); font-size: 25px; padding: 8px; box-sizing: border-box; }
.ccb-dashboard-card h2 { margin: 2px 0 0; color: var(--ccb-indigo); font-size: 18px; }
.ccb-dashboard-card p { margin: 0; color: var(--ccb-muted); min-height: 42px; }
.ccb-dashboard-count { color: var(--ccb-indigo); font-size: 28px; margin: 2px 0 8px; }
.ccb-dashboard-card .button-primary { background: var(--ccb-indigo); border-color: var(--ccb-indigo); }
.ccb-dashboard-card .button-primary:hover { background: #303574; border-color: #303574; }
@media (max-width: 900px) { .ccb-dashboard-links { grid-template-columns: 1fr; } }

.ccb-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; margin-top:18px; }
.ccb-calendar-day { min-height:95px; background:#fff; border:1px solid var(--ccb-border); border-radius:7px; padding:7px; min-width:0; overflow-wrap:anywhere; }
.ccb-calendar-head { min-height:auto; background:var(--ccb-indigo); color:#fff; text-align:center; font-weight:700; }
.ccb-calendar-empty { background:#F8FAFC; }
.ccb-calendar-event { font-size:11px; line-height:1.35; margin-top:6px; padding:5px; border-radius:5px; background:#E0F2FE; color:#075985; }
.ccb-calendar-event.confirmed { background:#DCFCE7; color:#166534; }
.ccb-calendar-event.cancelled { background:#FEE2E2; color:#991B1B; }
.ccb-calendar-event small { display:block; font-size:10px; }
@media(max-width:900px) { .ccb-calendar-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .ccb-calendar-head { display:none; } .ccb-calendar-day { min-height:70px; } }

.ccb-integration-card table input[type=time] { max-width: 130px; }


/* Public consultant profile cards */
.ccb-consultant-directory { max-width: 1100px; margin: 28px auto; color: var(--ccb-ink); }
.ccb-directory-heading { margin: 0 0 18px; }
.ccb-directory-heading h2 { margin: 7px 0; color: var(--ccb-indigo); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.ccb-directory-heading p { margin: 0; color: var(--ccb-muted); }
.ccb-consultant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ccb-consultant-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--ccb-border); border-radius: 16px; box-shadow: 0 8px 24px rgba(35,55,95,.07); }
.ccb-consultant-photo { display: flex; align-items: center; justify-content: center; height: 260px; overflow: hidden; background: linear-gradient(135deg, #E9F7FC, #E9EAF8); }
.ccb-consultant-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ccb-consultant-avatar { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; color: #fff; background: var(--ccb-indigo); font-size: 38px; font-weight: 750; }
.ccb-consultant-card-body { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px; }
.ccb-consultant-card h3 { margin: 0; color: var(--ccb-indigo); font-size: 19px; line-height: 1.3; }
.ccb-consultant-location { margin: 0; color: var(--ccb-muted); font-size: 13px; }
.ccb-consultant-summary { margin: 0; color: #475569; font-size: 14px; line-height: 1.6; }
.ccb-consultant-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.ccb-consultant-actions button { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--ccb-indigo); border-radius: 9px; background: var(--ccb-indigo); color: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.ccb-consultant-actions button:hover { filter: brightness(.93); }
.ccb-consultant-actions .ccb-custom-select { color: var(--ccb-indigo); background: #fff; border-color: #B8C0E8; }
.ccb-booking-shell[id] { scroll-margin-top: 28px; }
@media (max-width: 850px) { .ccb-consultant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px) { .ccb-consultant-grid { grid-template-columns: 1fr; } .ccb-consultant-photo { height: 210px; } }


/* Side-by-side appointment mode tabs */
.ccb-appointment-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 28px auto 0;
  padding: 6px;
  border: 1px solid var(--ccb-border);
  border-radius: 16px;
  background: #F3F6FA;
}
.ccb-appointment-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 82px;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ccb-indigo);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ccb-appointment-tab:hover { border-color: rgba(63,67,143,.22); }
.ccb-appointment-tab.is-active {
  background: #fff;
  border-color: rgba(63,67,143,.20);
  box-shadow: 0 4px 14px rgba(35,55,95,.09);
}
.ccb-tab-title { font-size: 16px; line-height: 1.3; font-weight: 800; }
.ccb-tab-subtitle { color: var(--ccb-muted); font-size: 12px; line-height: 1.4; font-weight: 500; }
.ccb-appointment-tab:focus-visible { outline: 3px solid rgba(21,159,208,.35); outline-offset: 2px; }
.ccb-booking-shell[hidden] { display: none !important; }
.ccb-appointment-tabs + .ccb-booking-shell { margin-top: 14px; }
@media (max-width: 540px) {
  .ccb-appointment-tabs { gap: 6px; padding: 4px; border-radius: 12px; }
  .ccb-appointment-tab { min-height: 76px; padding: 12px 10px; }
  .ccb-tab-title { font-size: 13px; }
  .ccb-tab-subtitle { font-size: 11px; }
}

/* Consultant profile page */
.ccb-consultant-card .ccb-view-profile-button{display:inline-flex;align-items:center;justify-content:center;margin-top:10px;padding:10px 16px;background:#3F438F;color:#fff;text-decoration:none;border-radius:8px;font-weight:600}
.ccb-consultant-profile{max-width:1100px;margin:24px auto;padding:24px;border:1px solid #e4e7ef;border-radius:16px;background:#fff}
.ccb-profile-back{display:inline-block;margin-bottom:18px;color:#3F438F;text-decoration:none;font-weight:600}
.ccb-profile-main{display:grid;grid-template-columns:minmax(220px, 34%) 1fr;gap:28px;align-items:start}
.ccb-profile-photo img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain;object-position:center;border-radius:14px}
.ccb-profile-details h2{margin:8px 0 12px}
.ccb-profile-description{line-height:1.7}
.ccb-profile-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.ccb-profile-actions a{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:8px;text-decoration:none;font-weight:600;background:#3F438F;color:#fff}
.ccb-profile-actions .ccb-profile-custom-button{background:#159FD0}
@media(max-width:650px){.ccb-profile-main{grid-template-columns:1fr}.ccb-profile-photo img{max-height:320px}.ccb-profile-actions{flex-direction:column}.ccb-profile-actions a{text-align:center}}
/* v0.7.1: keep consultant profile portraits focused on the face */
.ccb-profile-photo img { width:100%; height:100%; object-fit:contain; object-position:center; }
.ccb-services-directory { max-width:1100px; margin:24px auto; }
