/* Brasil Emprega 7.4.7 — correção final e isolada: cabeçalho + buscador */

/* O cabeçalho usa uma única grade. Nenhum item pode ocupar a coluna do outro. */
@media (min-width: 1101px){
  header.be-reference-header{
    height:92px!important;
    min-height:92px!important;
    background:#fff!important;
    border-bottom:1px solid #e4ebf1!important;
    overflow:visible!important;
  }
  header.be-reference-header .container.nav{
    width:min(1580px,calc(100% - 32px))!important;
    max-width:1580px!important;
    height:92px!important;
    min-height:92px!important;
    margin:0 auto!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:minmax(300px,340px) 205px minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:18px!important;
    position:relative!important;
  }
  header.be-reference-header .be-reference-brand,
  header.be-reference-header .brand{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:132px minmax(0,1fr)!important;
    align-items:center!important;
    gap:14px!important;
    position:static!important;
    transform:none!important;
  }
  header.be-reference-header .be-reference-brand img,
  header.be-reference-header .brand img{
    width:126px!important;
    max-width:126px!important;
    height:64px!important;
    object-fit:contain!important;
  }
  header.be-reference-header .be-reference-brand>span{
    display:block!important;
    padding-left:14px!important;
    border-left:1px solid #dbe4ec!important;
    color:#0b2d52!important;
    font-size:13px!important;
    line-height:1.26!important;
    font-weight:750!important;
    white-space:normal!important;
  }
  header.be-reference-header .be-context-widget{
    grid-column:2!important;
    width:205px!important;
    min-width:205px!important;
    max-width:205px!important;
    height:62px!important;
    margin:0!important;
    padding:8px 11px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    position:static!important;
    transform:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    border:1px solid #dfe8f0!important;
    border-radius:15px!important;
    background:#fbfdff!important;
  }
  header.be-reference-header .be-context-icon{width:34px!important;height:34px!important;flex:0 0 34px!important}
  header.be-reference-header .be-context-main{min-width:0!important;overflow:hidden!important;line-height:1.08!important}
  header.be-reference-header .be-context-place,
  header.be-reference-header .be-context-time,
  header.be-reference-header .be-context-weather{
    position:static!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
  }
  header.be-reference-header .be-context-place{font-size:12px!important;font-weight:850!important;color:#0b2d52!important}
  header.be-reference-header .be-context-time{font-size:10px!important;font-weight:700!important;color:#355773!important;margin-top:2px!important}
  header.be-reference-header .be-context-weather{font-size:9px!important;color:#6a7e91!important;margin-top:2px!important}
  header.be-reference-header .mobile-menu-toggle{display:none!important}
  header.be-reference-header #main-menu.links,
  header.be-reference-header .links{
    grid-column:3!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:18px!important;
    white-space:nowrap!important;
    position:static!important;
    transform:none!important;
  }
  header.be-reference-header #main-menu.links>a,
  header.be-reference-header #main-menu .be-services-main-link{
    margin:0!important;
    padding:8px 0!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:700!important;
    color:#071f43!important;
    white-space:nowrap!important;
    flex:0 0 auto!important;
  }
  header.be-reference-header #main-menu .be-services-control{display:flex!important;align-items:center!important;gap:2px!important}
  header.be-reference-header #main-menu .be-services-trigger{width:22px!important;min-width:22px!important;height:30px!important;padding:0!important}
  header.be-reference-header #main-menu .be-login-link,
  header.be-reference-header #main-menu .be-register-link{
    height:44px!important;min-height:44px!important;padding:0 15px!important;border-radius:11px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;flex:0 0 auto!important
  }
}

@media (min-width:1101px) and (max-width:1390px){
  header.be-reference-header .container.nav{
    grid-template-columns:270px 180px minmax(0,1fr)!important;
    column-gap:12px!important;
    width:calc(100% - 20px)!important;
  }
  header.be-reference-header .be-reference-brand,
  header.be-reference-header .brand{grid-template-columns:112px minmax(0,1fr)!important;gap:9px!important}
  header.be-reference-header .be-reference-brand img,
  header.be-reference-header .brand img{width:108px!important;max-width:108px!important;height:56px!important}
  header.be-reference-header .be-reference-brand>span{font-size:10.5px!important;padding-left:9px!important}
  header.be-reference-header .be-context-widget{width:180px!important;min-width:180px!important;max-width:180px!important}
  header.be-reference-header #main-menu.links,
  header.be-reference-header .links{gap:10px!important}
  header.be-reference-header #main-menu.links>a,
  header.be-reference-header #main-menu .be-services-main-link{font-size:11.5px!important}
  header.be-reference-header #main-menu .be-login-link,
  header.be-reference-header #main-menu .be-register-link{font-size:11.5px!important;padding:0 10px!important}
}

/* Buscador: largura centralizada, campos iguais e botão leve. */
.be-hero-search{
  background:#f7fafc!important;
  padding:28px 0 34px!important;
  margin:0!important;
}
.be-hero-search .container.be-hero-search-inner,
.be-hero-search-inner{
  width:min(1360px,calc(100% - 64px))!important;
  max-width:1360px!important;
  margin:0 auto!important;
  transform:none!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 285px!important;
  align-items:stretch!important;
  background:#fff!important;
  border:1px solid #dfe7ef!important;
  border-radius:16px!important;
  box-shadow:0 10px 28px rgba(19,56,92,.08)!important;
  overflow:hidden!important;
  padding:0!important;
}
.be-hero-search label{
  min-width:0!important;
  min-height:82px!important;
  padding:15px 22px 12px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  border-right:1px solid #e5ebf1!important;
  box-sizing:border-box!important;
}
.be-hero-search label>span{font-size:24px!important;color:#0a3768!important;grid-row:1/3!important;align-self:center!important}
.be-hero-search input{
  width:100%!important;min-width:0!important;min-height:28px!important;border:0!important;outline:0!important;background:transparent!important;
  padding:0!important;margin:0!important;font-size:15px!important;font-weight:700!important;color:#17324f!important;box-shadow:none!important
}
.be-hero-search small{grid-column:2!important;margin-top:3px!important;color:#7b8b9d!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.be-hero-search button{
  align-self:center!important;height:54px!important;min-height:54px!important;margin:13px!important;padding:0 24px!important;
  border:0!important;border-radius:12px!important;background:#129a55!important;color:#fff!important;font-size:14px!important;font-weight:800!important;
  box-shadow:0 7px 16px rgba(18,154,85,.16)!important;cursor:pointer!important
}
.be-hero-search button:hover{background:#0d8a4b!important;transform:translateY(-1px)!important}

@media(max-width:950px){
  .be-hero-search .container.be-hero-search-inner,.be-hero-search-inner{width:calc(100% - 32px)!important;grid-template-columns:1fr 1fr!important}
  .be-hero-search button{grid-column:1/-1!important;height:50px!important;margin:10px 14px 14px!important}
}
@media(max-width:620px){
  .be-hero-search{padding:18px 0 24px!important}
  .be-hero-search .container.be-hero-search-inner,.be-hero-search-inner{width:calc(100% - 24px)!important;grid-template-columns:1fr!important}
  .be-hero-search label{border-right:0!important;border-bottom:1px solid #e5ebf1!important;min-height:72px!important}
  .be-hero-search button{grid-column:auto!important}
}
