/* Floating hotline popup (js/hotline-popup.js) on the homepage and the 41 service pages.
   Desktop: the full box, fixed under the top bar on the right; the whole box is a tel:
   link and the close button sits over its corner. Phones (max-width 767px): only a
   compact pill under the menu, so the fields, the send button and the keyboard stay
   clear; tapping it opens the box. The pulse is a ring around the phone icon only.
   Layers: above the top bar (60), under the submenus (65), menus (70) and the phone
   hero panel (80). */
.hdt-hotline { position: fixed; top: 96px; right: 24px; z-index: 64; width: min(340px, calc(100vw - 48px)); font-family: "Inter","Helvetica Neue",Arial,sans-serif; }
.hdt-hotline[hidden] { display: none; }
.hdt-hotline-pill { display: none; }
.hdt-hotline-panel { position: relative; background: #FBF7EF; border: 1px solid rgba(138,101,18,.35); border-radius: 8px; box-shadow: 0 18px 40px rgba(18,41,61,.18); }
.hdt-hotline-call { display: flex; align-items: flex-start; gap: 14px; padding: 18px 52px 18px 18px; border-radius: 8px; color: #12293D; font-size: 14px; line-height: 1.55; text-decoration: none; transition: background 200ms; }
.hdt-hotline-call:hover { background: #FBF0DC; }
.hdt-hotline-call:focus-visible { outline: 2px solid #8A6512; outline-offset: 2px; }
.hdt-hotline-icon { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #14304A; color: #FBF7EF; font-size: 20px; }
.hdt-hotline-icon::after { content: ""; position: absolute; inset: 0; border: 2px solid #B58A43; border-radius: 50%; opacity: 0; pointer-events: none; }
.hdt-hotline[data-pulse] .hdt-hotline-icon::after { animation: hdtHotlineRing 1.2s ease-out 0s 3, hdtHotlineRingIdle 6s ease-out 3.6s infinite; }
.hdt-hotline-text { padding-top: 1px; }
.hdt-hotline-phone-line { display: block; margin-top: 6px; }
.hdt-hotline-phone { white-space: nowrap; font-size: 16px; font-weight: 500; letter-spacing: .02em; }
.hdt-hotline-lawyer { white-space: nowrap; }
.hdt-hotline-close { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 0; border-radius: 50%; color: #12293D; font-size: 18px; cursor: pointer; }
.hdt-hotline-close:hover { background: rgba(18,41,61,.08); }
.hdt-hotline-close:focus-visible { outline: 2px solid #8A6512; outline-offset: 0; }
.hdt-hotline-pill:focus-visible { outline: 2px solid #B58A43; outline-offset: 3px; }

@keyframes hdtHotlineRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes hdtHotlineRingIdle { 0% { transform: scale(1); opacity: .7; } 20% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1.8); opacity: 0; } }

@media (max-width: 767px) {
  .hdt-hotline { top: 76px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; width: auto; max-width: calc(100vw - 24px); }
  .hdt-hotline-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 4px; background: #14304A; border: 0; border-radius: 999px; box-shadow: 0 10px 24px rgba(18,41,61,.22); color: #FBF7EF; font: 500 13px/1 "Inter","Helvetica Neue",Arial,sans-serif; cursor: pointer; }
  .hdt-hotline-pill .hdt-hotline-icon { width: 32px; height: 32px; background: #B58A43; color: #12293D; font-size: 16px; }
  .hdt-hotline:not([data-expanded]) .hdt-hotline-panel { display: none; }
  .hdt-hotline[data-expanded] .hdt-hotline-pill { display: none; }
  .hdt-hotline-panel { width: min(340px, calc(100vw - 24px)); }
  /* The hero form is full screen on phones (z-index 80); keep the pill above it.
     js/hero-panel.js puts .hdt-hero-open on <body> while that panel is open. */
  .hdt-hero-open .hdt-hotline { z-index: 85; }
}

@media (prefers-reduced-motion: reduce) {
  .hdt-hotline-icon::after, .hdt-hotline[data-pulse] .hdt-hotline-icon::after { animation: none; display: none; }
  .hdt-hotline-call { transition: none; }
}
