/* "Book a free consultation" chat */
.bk[hidden] { display: none; }
.bk { position: fixed; inset: 0; z-index: 70; background: rgba(26,26,26,.45); display: flex; align-items: flex-end; justify-content: flex-end; padding: 24px; }
.bk-panel { width: 400px; max-width: 100%; height: min(640px, calc(100vh - 48px)); background: var(--cream, #f7f4ef); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; animation: bkIn .25s ease; }
@keyframes bkIn { from { transform: translateY(16px); opacity: 0; } }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--forest, #3f6b57); color: #fff; }
.bk-head b { display: block; font-size: 17px; }
.bk-head span { font-size: 13px; opacity: .8; }
.bk-x { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bk-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.bk-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 16px; line-height: 1.4; animation: bkIn .2s ease; }
.bk-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, #e2d9cc); border-bottom-left-radius: 4px; }
.bk-me { align-self: flex-end; background: var(--forest, #3f6b57); color: #fff; border-bottom-right-radius: 4px; }
.bk-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line, #e2d9cc); background: var(--cream, #f7f4ef); max-height: 55%; overflow-y: auto; }
.bk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-opt { font: 600 15px/1.2 var(--body, Arial, sans-serif); color: var(--forest-deep, #2f5343); background: #fff; border: 1.5px solid var(--forest, #3f6b57); border-radius: 999px; padding: 11px 16px; cursor: pointer; }
.bk-opt:hover, .bk-opt:focus-visible { background: var(--forest, #3f6b57); color: #fff; outline: none; }
.bk-back { display: block; margin-top: 10px; background: none; border: 0; color: var(--stone, #5f6a66); font-size: 14px; cursor: pointer; padding: 4px 0; }
.bk-form { display: grid; gap: 8px; }
.bk-form input { font: 16px var(--body, Arial, sans-serif); padding: 12px 12px; border: 1px solid var(--line, #e2d9cc); border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; margin: 0; }
.bk-form input:focus { outline: 2px solid var(--forest, #3f6b57); outline-offset: 0; border-color: transparent; }
.bk-form .btn, .bk-foot > .btn { width: 100%; margin-top: 4px; }
.bk-err { color: #a3361f; font-size: 14px; margin: 2px 0 0; min-height: 0; }
.bk-err:empty { display: none; }
html.bk-open, html.bk-open body { overflow: hidden; }
@media (max-width: 760px) {
  .bk { padding: 0; }
  .bk-panel { width: 100%; height: 100%; border-radius: 0; }
  .bk-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}
.book-alt { margin-top: 18px; font-size: 16px; }
.book-alt a { color: var(--sand, #d9c9b5); font-weight: 700; }

/* Scroll pop-up */
.bk-nudge { position: fixed; z-index: 26; right: 24px; bottom: 24px; width: 320px; max-width: calc(100vw - 32px); box-sizing: border-box; background: #fff; border: 1px solid var(--line, #e2d9cc); border-top: 4px solid var(--forest, #3f6b57); border-radius: 10px; box-shadow: 0 18px 44px rgba(0,0,0,.18); padding: 18px 18px 16px; opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.bk-nudge.in { opacity: 1; transform: none; }
.bk-nudge-t { margin: 0 28px 4px 0; font: 900 20px/1.1 "Archivo", Arial, sans-serif; font-stretch: 112%; text-transform: uppercase; color: var(--charcoal, #1a1a1a); }
.bk-nudge-s { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--stone, #5f6a66); }
.bk-nudge .btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.bk-nudge-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--stone, #5f6a66); cursor: pointer; padding: 4px 6px; }
html.bk-open .bk-nudge { display: none; }
@media (max-width: 760px) { .bk-nudge { left: 16px; right: 16px; width: auto; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .bk-nudge { transition: none; } }
