/* Brasil Emprega 7.8.06 — indicadores de carrossel discretos e data de nascimento alinhada no mobile */

@media (max-width: 820px) {
  /*
   * Os estilos globais de área de toque aplicavam min-height aos botões dos
   * carrosséis. O botão continua clicável, mas o desenho visual volta a ser
   * pequeno e proporcional ao restante da interface.
   */
  .testimonial-dots,
  .company-logo-dots,
  .be-carousel-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 20px !important;
    margin-top: 8px !important;
  }

  .testimonial-dots button,
  .company-logo-dot,
  .be-carousel-dot {
    position: relative !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .testimonial-dots button::before,
  .company-logo-dot::before,
  .be-carousel-dot::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 999px !important;
    background: #cfdae6 !important;
    transform: translate(-50%, -50%) !important;
    transition: width .18s ease, height .18s ease, background-color .18s ease, opacity .18s ease !important;
    opacity: .9 !important;
  }

  .testimonial-dots button.active,
  .company-logo-dot.is-active,
  .be-carousel-dot.is-active {
    flex-basis: 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    background: transparent !important;
  }

  .testimonial-dots button.active::before,
  .company-logo-dot.is-active::before,
  .be-carousel-dot.is-active::before {
    width: 16px !important;
    height: 5px !important;
    background: #168653 !important;
    opacity: 1 !important;
  }

  .testimonial-dots button:focus-visible,
  .company-logo-dot:focus-visible,
  .be-carousel-dot:focus-visible {
    outline: 2px solid rgba(22, 134, 83, .34) !important;
    outline-offset: 1px !important;
  }

  /* Evita que os indicadores absolutos invadam o conteúdo dos carrosséis. */
  .be-carousel {
    padding-bottom: 28px !important;
  }
  .be-carousel-dots {
    bottom: 3px !important;
  }
  .company-logo-carousel {
    padding-bottom: 26px !important;
  }

  /* Cadastro: todos os campos ocupam exatamente a largura útil do cartão. */
  .be-register-card .grid,
  .be-register-card .field,
  .be-register-card .field > input,
  .be-register-card .field > select,
  .be-register-card .field > textarea {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .be-register-card input[type="date"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 44px 0 14px !important;
    border: 1px solid #d8e2ec !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235d7187' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 20px 20px !important;
    color: #173450 !important;
    font: inherit !important;
    font-size: 16px !important;
    line-height: normal !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
  }

  .be-register-card input[type="date"]:focus {
    border-color: #169a55 !important;
    outline: 3px solid rgba(22, 154, 85, .14) !important;
    outline-offset: 0 !important;
  }

  .be-register-card input[type="date"]::-webkit-date-and-time-value {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .be-register-card input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute !important;
    right: 0 !important;
    width: 44px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
  }
}

@media (max-width: 390px) {
  .testimonial-dots,
  .company-logo-dots,
  .be-carousel-dots {
    gap: 0 !important;
  }

  .be-register-card input[type="date"] {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }
}
