/* SinergCare V15 — internal site search + header polish
   1) Search trigger button in the header (desktop + mobile)
   2) Search overlay (RTL, keyboard friendly)
   3) Larger centered logo on mobile (overrides V14)
   4) Mobile menu polish: open animation, background scroll lock,
      bigger touch targets, open-state chevron feedback
   Loaded last so it wins the cascade. */

/* ===== 1) search trigger button ===== */
.sc-search-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#fff;
  color:var(--navy,#073e78);
  box-shadow:0 7px 18px rgba(4,39,63,.09);
  cursor:pointer;
  transition:transform .25s,box-shadow .25s,color .25s;
}
.sc-search-btn:hover,
.sc-search-btn:focus-visible{
  transform:translateY(-2px);
  color:var(--blue,#087fa8);
  box-shadow:0 10px 24px rgba(8,127,168,.22);
}
.sc-search-btn svg{width:19px;height:19px;display:block}

/* 1101-1360px: the menu is tight — compact it so the search button fits
   without pushing items to wrap */
@media(min-width:1101px) and (max-width:1360px){
  .sc-search-btn{flex-basis:40px;width:40px;height:40px}
  .nav-inner{gap:12px}
  .nav-menu{gap:5px}
  .nav-menu>li>a{padding:0 13px;font-size:13.5px;white-space:nowrap}
  .nav-cta{padding:11px 16px}
}

@media(max-width:1100px){
  /* same look as the mobile hamburger (V14) */
  .sc-search-btn{
    width:44px;
    height:44px;
    flex:0 0 44px;
    border:1px solid rgba(7,62,120,.16);
    box-shadow:0 4px 14px rgba(5,27,42,.18);
  }
}
@media(max-width:760px){
  /* mirror the hamburger: search sits on the start (right) side at the
     same offset the hamburger has on the left, logo centered between them */
  .sc-search-btn{order:-1;position:relative;z-index:3;margin-right:8px;margin-left:0}
  .mobile-toggle{position:relative;z-index:3}
}

/* ===== 2) search overlay ===== */
.sc-search-overlay{
  position:fixed;
  inset:0;
  z-index:220;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:max(14px,4vh) 14px 20px;
}
.sc-search-overlay[hidden]{display:none}
.sc-search-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,27,42,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.sc-search-panel{
  position:relative;
  z-index:2;
  width:min(640px,100%);
  max-height:min(78vh,640px);
  display:flex;
  flex-direction:column;
  border-radius:26px;
  background:#fff;
  box-shadow:0 30px 80px rgba(5,27,42,.35);
  overflow:hidden;
  animation:scSearchIn .22s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes scSearchIn{
  from{opacity:0;transform:translateY(14px) scale(.985)}
  to{opacity:1;transform:none}
}
.sc-search-bar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-bottom:1px solid rgba(5,27,42,.08);
}
.sc-search-bar svg{flex:0 0 20px;width:20px;height:20px;color:var(--blue,#087fa8)}
.sc-search-input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#051b2a;
  font:inherit;
  font-size:17px;
  font-weight:600;
}
.sc-search-input::placeholder{color:#8aa0ac;font-weight:500}
.sc-search-input::-webkit-search-cancel-button{display:none}
.sc-search-close{
  flex:0 0 36px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:var(--sky,#eaf7fb);
  color:var(--navy,#073e78);
  font-size:20px;
  line-height:1;
  cursor:pointer;
  transition:background .2s;
}
.sc-search-close:hover{background:#d9f0f8}
.sc-search-chips{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:12px 18px 6px;
}
.sc-search-chips span{color:#5d727c;font-size:12.5px;font-weight:700}
.sc-search-chips button{
  border:1px solid rgba(37,196,181,.35);
  border-radius:999px;
  background:#fff;
  color:var(--blue,#087fa8);
  padding:6px 12px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s;
}
.sc-search-chips button:hover{background:var(--sky,#eaf7fb)}
.sc-search-results{
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:10px;
  display:grid;
  gap:4px;
}
.sc-search-item{
  display:block;
  padding:11px 13px;
  border-radius:14px;
  text-decoration:none;
  transition:background .15s;
}
.sc-search-item:hover,
.sc-search-item.active{background:var(--sky,#eaf7fb)}
.sc-search-item-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.sc-search-item strong{
  color:var(--navy,#073e78);
  font-size:15px;
  line-height:1.35;
}
.sc-search-cat{
  flex:0 0 auto;
  padding:3px 9px;
  border-radius:999px;
  background:rgba(37,196,181,.14);
  color:#0b8f83;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.sc-search-item p{
  margin:4px 0 0;
  color:#5d727c;
  font-size:13px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sc-search-empty{
  padding:28px 18px;
  text-align:center;
  color:#5d727c;
  font-size:14.5px;
  line-height:1.7;
}
.sc-search-empty a{color:var(--blue,#087fa8);font-weight:700}
.sc-search-label{
  padding:8px 13px 2px;
  color:#8aa0ac;
  font-size:12px;
  font-weight:800;
}
body.sc-search-lock{overflow:hidden}

@media(max-width:760px){
  .sc-search-overlay{padding:10px 10px 16px}
  .sc-search-panel{max-height:calc(100dvh - 24px);border-radius:22px}
  .sc-search-bar{padding:12px 14px}
  .sc-search-input{font-size:16px} /* >=16px prevents iOS focus zoom */
  .sc-search-chips{padding:10px 14px 4px}
}

/* ===== 3) larger mobile logo (overrides V14) ===== */
@media(max-width:760px){
  .brand{
    max-width:calc(100vw - 124px) !important;
    padding:6px 12px !important;
  }
  /* cap keeps clear of the hamburger (left) and search button (right) */
  .brand-logo-img{
    width:min(258px,calc(100vw - 150px)) !important;
    max-width:100% !important;
  }
}

/* ===== 5) popup lead form: uniform fields =====
   Older rules only matched input[type="text"/"email"/"tel"], so the
   type-less name field and any <select> rendered unstyled. Normalize
   every field to the same pill style as the email field. */
.popup-lead-form input:not([type="checkbox"]):not(.form-hp),
.popup-lead-form select{
  box-sizing:border-box !important;
  width:100% !important;
  height:48px !important;
  min-height:48px !important;
  padding:0 16px !important;
  border:1px solid rgba(5,27,42,.13) !important;
  border-radius:999px !important;
  background-color:#fff !important;
  color:var(--ink,#051b2a) !important;
  font:inherit !important;
  font-size:16px !important;
  line-height:1.4 !important;
  outline:none !important;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.popup-lead-form textarea{
  box-sizing:border-box !important;
  width:100% !important;
  min-height:96px !important;
  padding:12px 16px !important;
  border:1px solid rgba(5,27,42,.13) !important;
  border-radius:22px !important;
  background-color:#fff !important;
  color:var(--ink,#051b2a) !important;
  font:inherit !important;
  font-size:16px !important;
  resize:vertical;
}
.popup-lead-form select{
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  appearance:none !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23087fa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:left 16px center !important;
  background-size:14px !important;
  padding-left:42px !important; /* room for the chevron on the left (RTL) */
  cursor:pointer;
}
/* the browser UA stylesheet forces direction:ltr on type="tel", which pushes
   the placeholder to the left; keep digits LTR but anchor everything right */
.popup-lead-form input[type="tel"],
.lead-form input[type="tel"],
.newsletter-form input[type="tel"]{
  text-align:right !important;
}
.popup-lead-form input:not([type="checkbox"]):focus,
.popup-lead-form select:focus,
.popup-lead-form textarea:focus{
  border-color:var(--teal,#25c4b5) !important;
  box-shadow:0 0 0 3px rgba(37,196,181,.18) !important;
}
/* keep the honeypot hidden no matter what */
.popup-lead-form .form-hp{
  display:none !important;
}

/* ===== 4) mobile menu polish ===== */
@media(max-width:1100px){
  body.menu-open{overflow:hidden}
  .nav-menu.open{animation:scMenuIn .18s ease both}
  .nav-menu>li.has-dropdown>a:after{transition:transform .2s}
  .nav-menu>li.has-dropdown.open>a{color:var(--blue,#087fa8)}
  .nav-menu>li.has-dropdown.open>a:after{transform:rotate(180deg)}
  .dropdown a{min-height:44px;display:flex;align-items:center}
}
@keyframes scMenuIn{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:none}
}
