/* book-a-demo.html — booking widget styles
   Design intent: an elevated, Calendly-grade scheduling card sitting inside
   the site's existing landing-section chrome, using the brand accent
   (--secondaryMastercolor) and type scale already defined in config.css.
*/

.bkd-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

.bkd-intro {
  flex: 1 1 380px;
  padding: 56px 40px 56px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bkd-intro .about-label {
  margin-bottom: 22px;
}

.bkd-intro ul {
  margin-top: 8px;
}

/* ── Widget shell — floats above the section as an elevated card ─────── */
.bkd-widget {
  flex: 1.5 1 560px;
  display: flex;
  align-items: center;
  padding: 40px 32px;
}

.bkd-widget-inner {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 20px;
  /* box-shadow:
    0 1px 2px rgba(17, 16, 19, 0.04),
    0 24px 48px -16px rgba(17, 16, 19, 0.14); */
  padding: 30px 30px 28px;
}

@media (max-width: 991px) {
  .bkd-widget {
    padding: 8px 24px 40px;
  }
}

/* ── Widget header: rep mark, title, meta chips ───────────────────────── */
.bkd-widget-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bkd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(155deg, var(--secondaryMastercolor), #ff8a4d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bkd-avatar svg {
  width: 22px;
  height: 22px;
}

.bkd-widget-eyebrow {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--secondaryMastercolor);
}

.bkd-widget-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--primaryHeadingColor);
  letter-spacing: -0.01em;
}

.bkd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--layoutBorderColor);
}

.bkd-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primaryTextColor);
  background: #f7f5f2;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 100px;
  padding: 5px 12px 5px 10px;
}
.bkd-meta-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Picker layout ─────────────────────────────────────────────────────── */
.bkd-picker {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.bkd-calendar-col {
  flex: 1.1 1 280px;
  padding-right: 26px;
}

.bkd-slots-col {
  flex: 1 1 220px;
  padding-left: 26px;
  border-left: 1px solid var(--layoutBorderColor);
}

@media (max-width: 640px) {
  .bkd-calendar-col {
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--layoutBorderColor);
    margin-bottom: 24px;
  }
  .bkd-slots-col {
    padding-left: 0;
    border-left: none;
  }
}

.bkd-col-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primaryHeadingColor);
  margin-bottom: 14px;
}

.bkd-slots-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Timezone selector ─────────────────────────────────────────────────── */
.bkd-tz-select {
  position: relative;
  margin-bottom: 14px;
}

.bkd-tz-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--primaryTextColor);
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 6px;
  margin: 0;
  cursor: pointer;
  max-width: 220px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.bkd-tz-chip:hover {
  background: #f7f5f2;
}
.bkd-tz-chip[aria-expanded="true"] {
  border-color: var(--layoutBorderColor);
  background: #f7f5f2;
}
.bkd-tz-chip svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}
.bkd-tz-chip #bkd-tz-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bkd-tz-chevron {
  width: 11px !important;
  height: 11px !important;
  opacity: 0.6;
  transition: transform 0.15s;
}
.bkd-tz-chip[aria-expanded="true"] .bkd-tz-chevron {
  transform: rotate(180deg);
}

.bkd-tz-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 14px;
  box-shadow: 0 16px 40px -8px rgba(17, 16, 19, 0.2);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bkd-tz-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 9px;
  padding: 8px 10px;
}
.bkd-tz-search:focus-within {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 0 0 3px var(--secondaryMastercolorLite);
}
.bkd-tz-search svg {
  width: 15px;
  height: 15px;
  color: #9a978f;
  flex-shrink: 0;
}
.bkd-tz-search input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--primaryHeadingColor);
}
.bkd-tz-search input::placeholder {
  color: #b3aea3;
}

.bkd-tz-list {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--layoutBorderColor) transparent;
}
.bkd-tz-list::-webkit-scrollbar {
  width: 6px;
}
.bkd-tz-list::-webkit-scrollbar-thumb {
  background: var(--layoutBorderColor);
  border-radius: 100px;
}

.bkd-tz-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a978f;
  padding: 10px 8px 4px;
}

.bkd-tz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--primaryHeadingColor);
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.bkd-tz-option:hover {
  background: var(--secondaryMastercolorLite);
  color: var(--secondaryMastercolor);
}
.bkd-tz-option[aria-selected="true"] {
  background: var(--secondaryMastercolorLite);
  color: var(--secondaryMastercolor);
  font-weight: 600;
}
.bkd-tz-option-offset {
  flex-shrink: 0;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: inherit;
  opacity: 0.7;
}

.bkd-tz-empty {
  font-size: 12.5px;
  color: var(--primaryTextColor);
  padding: 16px 8px;
  text-align: center;
}

@media (max-width: 480px) {
  .bkd-tz-panel {
    right: auto;
    left: 0;
    width: min(320px, calc(100vw - 48px));
  }
}

/* ── Flatpickr re-skin ─────────────────────────────────────────────────── */
/* Note: never force width:100% on .flatpickr-calendar — its day-grid layout
   is computed in JS from a fixed pixel width, and overriding it via CSS
   desyncs that math (renders a large blank gap above the grid). Instead let
   it size itself naturally and center it in the column. */
#bkd-calendar {
  display: flex;
  justify-content: center;
}

.flatpickr-calendar {
  box-shadow: none !important;
  font-family: var(--font-primary) !important;
}
.flatpickr-months {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--layoutBorderColor);
}
.flatpickr-current-month {
  font-size: 14.5px !important;
  font-weight: 600;
  color: var(--primaryHeadingColor);
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 600;
  color: var(--primaryHeadingColor);
}
/* Flatpickr's default nav buttons are sized via padding + line-height,
   which drifts off-center once our font/spacing overrides above change the
   surrounding metrics. Pin them to a fixed, flex-centered, vertically
   centered box instead so the hover background is always true to the icon. */
.flatpickr-prev-month,
.flatpickr-next-month {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  /* top: 50% !important; */
  /* transform: translateY(-50%); */
  border-radius: 8px;
  transition: background 0.15s;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: #f7f5f2;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 14px;
  height: 14px;
  margin: 0 !important;
  fill: var(--primaryTextColor) !important;
}
span.flatpickr-weekday {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a978f !important;
}
.flatpickr-day {
  border-radius: 10px !important;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primaryHeadingColor);
  height: 38px;
  line-height: 38px;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #d3d0c9 !important;
}
.flatpickr-day:hover {
  background: var(--secondaryMastercolorLite) !important;
  border-color: transparent !important;
  color: var(--secondaryMastercolor) !important;
}
.flatpickr-day.today {
  border-color: var(--secondaryMastercolor) !important;
}
.flatpickr-day.today:hover {
  color: var(--secondaryMastercolor) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--secondaryMastercolor) !important;
  border-color: var(--secondaryMastercolor) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(246, 99, 32, 0.35);
}

/* ── Slot list ─────────────────────────────────────────────────────────── */
.bkd-slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--layoutBorderColor) transparent;
}
.bkd-slots-list::-webkit-scrollbar {
  width: 6px;
}
.bkd-slots-list::-webkit-scrollbar-thumb {
  background: var(--layoutBorderColor);
  border-radius: 100px;
}

.bkd-hint {
  font-size: 13px;
  color: var(--primaryTextColor);
  line-height: 1.6;
}

.bkd-slot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 10px;
  background: #fff;
  color: var(--primaryHeadingColor);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s,
    transform 0.1s;
}

.bkd-slot-btn:hover {
  border-color: var(--secondaryMastercolor);
  background: var(--secondaryMastercolorLite);
  color: var(--secondaryMastercolor);
}
.bkd-slot-btn:active {
  transform: scale(0.98);
}

/* ── Form step ─────────────────────────────────────────────────────────── */
.bkd-form {
  max-width: 100%;
}

.bkd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primaryTextColor);
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.15s;
}
.bkd-back:hover {
  color: var(--secondaryMastercolor);
}

.bkd-selected-slot {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--secondaryMastercolor);
  background: var(--secondaryMastercolorLite);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
}

.bkd-form .row {
  --bs-gutter-x: 14px;
}

.bkd-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--primaryHeadingColor);
  margin-bottom: 6px;
  display: block;
}

.bkd-form .form-control {
  font-size: 13.5px;
  padding: 10px 13px;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 9px;
  color: var(--primaryHeadingColor);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.bkd-form .form-control:focus {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 0 0 3px var(--secondaryMastercolorLite);
}
.bkd-form .form-control::placeholder {
  color: #b3aea3;
}

.bkd-error {
  font-size: 13px;
  font-weight: 500;
  color: #d92d20;
  background: #fdf2f1;
  border: 1px solid #f6c6c1;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
}

.bkd-form button[type="submit"] {
  margin-top: 4px;
  /* box-shadow: 0 6px 20px -4px rgba(246, 99, 32, 0.45); */
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    opacity 0.12s;
}
.bkd-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  /* box-shadow: 0 10px 26px -6px rgba(246, 99, 32, 0.5); */
}
.bkd-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── Success step ──────────────────────────────────────────────────────── */
.bkd-success {
  text-align: center;
  padding: 28px 8px 12px;
}

.bkd-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--secondaryMastercolorLite);
  color: var(--secondaryMastercolor);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bkd-success-icon svg {
  width: 26px;
  height: 26px;
}
.bkd-success-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--secondaryMastercolorLite);
}

.bkd-success h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primaryHeadingColor);
}

.bkd-success p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--primaryTextColor);
  margin-bottom: 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.bkd-success .primaryButton {
  display: inline-flex;
  margin: 0 auto;
}

.bkd-success-ref {
  margin: 16px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #b3aea3;
  font-variant-numeric: tabular-nums;
}

/* ── Shared section heading ────────────────────────────────────────────── */
.bkd-section-head {
  margin-bottom: 48px;
}
.bkd-section-sub {
  max-width: 560px;
}

/* ── Trust / logo strip ───────────────────────────────────────────────── */
.bkd-trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primaryTextColor);
  opacity: 0.6;
  margin-bottom: 4px;
}

/* ── Why Book a Demo — connected timeline + premium highlight panel ─────
   Intent: an editorial, Linear/Stripe-style split — a numbered process on
   the left with a connecting rail, and a dark elevated panel on the right
   that carries the "premium" weight instead of three interchangeable cards. */
.bkd-why-wrap {
  display: flex;
  align-items: stretch;
  gap: 64px;
  margin-top: 8px;
}

@media (max-width: 991px) {
  .bkd-why-wrap {
    flex-direction: column;
    gap: 40px;
  }
}

.bkd-why-steps {
  flex: 1.3 1 420px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bkd-why-step {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 40px 0;
}
.bkd-why-step:last-child {
  padding-bottom: 0;
}

/* Connecting rail behind the numbered nodes */
.bkd-why-step::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 0;
  left: 21px;
  width: 1px;
  background: var(--layoutBorderColor);
}
.bkd-why-step:last-child::before {
  display: none;
}

.bkd-why-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--secondaryMastercolor);
  background: var(--secondaryMastercolorLite);
  border: 1px solid var(--layoutBorderColor);
  position: relative;
  z-index: 1;
}

.bkd-why-step-body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primaryHeadingColor);
  margin: 6px 0 8px;
}
.bkd-why-step-body p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--primaryTextColor);
  margin: 0;
  max-width: 440px;
}

/* Right: premium dark highlight panel */
.bkd-why-panel {
  flex: 1 1 320px;
  border-radius: 20px;
  padding: 36px 32px;
  background: linear-gradient(155deg, #17161a 0%, #201d24 55%, #2a2116 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.bkd-why-panel::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 99, 32, 0.35), transparent 70%);
  pointer-events: none;
}

.bkd-why-panel-stat {
  margin-bottom: 0;
}
.bkd-why-panel-stat strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.bkd-why-panel-stat strong span {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}
.bkd-why-panel-stat p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 260px;
}

.bkd-why-panel-list {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bkd-why-panel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.bkd-why-panel-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(246, 99, 32, 0.2);
  color: var(--secondaryMastercolor);
  box-sizing: border-box;
}

.bkd-why-panel-quote {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Embed mode (?embed=1) — used inside the <iframe> that
   js/embed-book-a-demo.js injects on other sites. Strips everything down
   to just the booking widget so it can sit cleanly inside a host page. ── */
html.bkd-embed,
html.bkd-embed body {
  background: transparent;
  margin: 0;
  padding: 0;
}
html.bkd-embed [data-include="./common/header.html"],
html.bkd-embed [data-include="./common/footer.html"],
html.bkd-embed [data-include="./common/cookie-banner.html"],
html.bkd-embed [data-include="./common/cookie-settings.html"],
html.bkd-embed [data-include="./common/cookie-icon-btn.html"],
html.bkd-embed .skip-link,
html.bkd-embed main#main > section:not(#bkd-demo-section) {
  display: none !important;
}
html.bkd-embed main#main {
  padding: 0 !important;
}
html.bkd-embed #bkd-demo-section {
  border-bottom: none !important;
  background: transparent !important;
}
html.bkd-embed #bkd-demo-section .container,
html.bkd-embed #bkd-demo-section .layoutBorderLeft,
html.bkd-embed #bkd-demo-section .layoutBorderRight {
  border: none !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
html.bkd-embed .bkd-intro {
  display: none !important;
}
html.bkd-embed .bkd-wrap {
  display: block !important;
}
html.bkd-embed .bkd-widget {
  padding: 0 !important;
  overflow: hidden;
}
html.bkd-embed .bkd-widget-inner {
  box-shadow: none !important;
}
