/* Global additions to the inline-styled pages: focus, phone layout, bottom bar, chat widget. */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
:focus-visible{outline:3px solid #C2410C;outline-offset:2px}
[hidden]{display:none!important}
input:focus{outline:none;border-color:#1F5A41!important;box-shadow:0 0 0 3px rgba(31,90,65,.18)}
#offer{scroll-margin-top:96px}

/* Phone bottom bar (hidden on desktop) */
.hbt-bar{display:none}
@media (max-width:700px){
  body.has-bar{padding-bottom:84px}
  .hbt-bar{display:grid;grid-template-columns:1fr 1fr 56px;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid #E4DFD5;padding:10px 12px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px rgba(20,35,28,.08);font-family:Inter,system-ui,sans-serif}
  .hbt-bar a,.hbt-bar button{height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;text-decoration:none}
  .hbt-bar-call{background:#1F5A41;color:#fff!important}
  .hbt-bar-offer{background:#C2410C;color:#fff!important}
  .hbt-bar-chat{background:#fff;border:1.5px solid #1F5A41;cursor:pointer}
  body.has-bar .hbt-launcher{display:none!important}

  /* Tighten the desktop type scale on phones */
  h1{font-size:32px!important;line-height:1.08!important}
  h2{font-size:26px!important}
  section{padding-left:16px!important;padding-right:16px!important}
  section[style*="padding: 80px"],section[style*="padding: 72px"]{padding-top:44px!important;padding-bottom:44px!important}
  section[style*="padding: 56px 24px"]{padding-top:20px!important}
  #offer{padding:18px!important;max-width:none!important}
  nav[aria-label="Main"]{display:none!important}
  header a[href="/#offer"]{display:none!important}
  table{font-size:14px!important}
  header a[href^="tel:"],header a[href="#offer"],header span[style*="font-size: 13px"]{display:none!important}
  .hbt-bar-2{grid-template-columns:1fr 1fr}
  /* Hero: headline first, then the form, then the extras (matches the phone design) */
  div:has(> #offer){flex-direction:column!important;align-items:stretch!important;gap:16px!important}
  div:has(> #offer) > div[style*="flex: 1 1 520px"]{display:contents!important}
  div[style*="flex: 1 1 520px"] > div{order:2}
  #offer{order:1;flex:none!important}
}

/* Chat widget */
.hbt-chat{position:fixed;right:24px;bottom:24px;z-index:70;font-family:Inter,system-ui,sans-serif;color:#14231C;font-size:15px;line-height:1.45}
.hbt-launcher{display:flex;align-items:center;gap:10px;background:#1F5A41;color:#fff;border:none;border-radius:999px;padding:0 20px 0 14px;height:56px;font:600 16px Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 10px 30px rgba(20,35,28,.25)}
.hbt-launcher-dot{width:8px;height:8px;border-radius:50%;background:#8FD1AE}
.hbt-panel{width:380px;height:620px;max-height:calc(100vh - 48px);background:#fff;border:1px solid #E4DFD5;border-radius:18px;box-shadow:0 18px 50px rgba(20,35,28,.18);display:flex;flex-direction:column;overflow:hidden}
.hbt-head{background:#1F5A41;color:#fff;padding:12px 12px 12px 16px;display:flex;align-items:center;gap:12px}
.hbt-head-t{flex:1;min-width:0;display:flex;flex-direction:column}
.hbt-head-t b{font:800 17px Figtree,sans-serif}
.hbt-head-t span{font-size:13px;color:#D5E6DC}
.hbt-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#2C7355;border:none;cursor:pointer}
.hbt-icon.ghost{background:transparent}
.hbt-list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#FAF8F4}
.hbt-msg{max-width:86%;padding:10px 13px;white-space:pre-wrap}
.hbt-bot{align-self:flex-start;background:#fff;border:1px solid #E4DFD5;border-radius:4px 14px 14px 14px}
.hbt-user{align-self:flex-end;background:#1F5A41;color:#fff;border-radius:14px 4px 14px 14px}
.hbt-typing{color:#5B6660;font-style:italic}
.hbt-chips{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}
.hbt-chip{border:1.5px solid #1F5A41;background:#fff;color:#1F5A41;border-radius:999px;padding:0 14px;min-height:40px;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}
.hbt-chip.primary{background:#C2410C;border-color:#C2410C;color:#fff}
.hbt-form{border-top:1px solid #E4DFD5;padding:10px 12px;display:flex;gap:8px;background:#fff}
.hbt-form input{flex:1;min-width:0;height:46px;border:1.5px solid #C9C2B4;border-radius:12px;padding:0 12px;font:16px Inter,system-ui,sans-serif;color:#14231C}
.hbt-send{width:46px;height:46px;border:none;border-radius:12px;background:#C2410C;display:flex;align-items:center;justify-content:center;cursor:pointer}
.hbt-note{margin:0;padding:0 14px 10px;font-size:12px;color:#5B6660;background:#fff}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:700px){
  .hbt-chat.open{inset:0;right:0;bottom:0;background:rgba(20,35,28,.45)}
  .hbt-chat.open .hbt-panel{position:absolute;left:0;right:0;bottom:0;width:100%;height:92vh;max-height:none;border-radius:20px 20px 0 0}
}

/* Live-box adaptations: no call button in the phone bar; optional SMS consent box; inline errors. */
.hbt-bar{grid-template-columns:1fr 56px}
.hbt-bar.hbt-bar-2{grid-template-columns:1fr}
.hbt-consent{display:flex;gap:8px;align-items:flex-start;flex:1 1 100%;font-size:13px;line-height:1.45;text-align:left;cursor:pointer}
.hbt-consent input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:#1F5A41}
.hbt-err{color:#B42318;font-weight:600;font-size:14px;margin:4px 0 0;flex:1 1 100%}
.hbt-err:empty{display:none}
[aria-invalid="true"]{border-color:#B42318!important}
