label[for]:after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  background-image: url('https://www.jnjmedtech.com/profiles/contrib/helix/themes/jnjmdc_global/images/required.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 5px;
}

body {
  background-color: #f2f2f2;
  font-family: JJ Circular Std Black, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column; 
}

.header-logo {
  padding-left: 60px;
  width: 250px;
  /* Altura da logo */
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  align-items: center;
  margin-top: auto;
}

.footer-logo {
  padding-top: 10px;
  height: 30px;
  /* Altura da logo */
  position: center;
  line-height: normal;
  align-items: center;
}

.footer-text {
  padding-top: 20px;
  font-family: J&J Circular;
  color: #ABB1BB;
  font-size: 12px;
  line-height: normal;
}

.form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  margin-top: 20px;
  border-radius: 5px;
}

.form-label {
  font-weight: bold;
  color: #4D4D4F;
  font-size: 16px;
}

#CampaignText {
  color: #4D4D4F;
  font-family: J&J Circular;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 20px;
}

#CampaignSubtext {
  color: #4D4D4F;
  margin-bottom: 20px;
}

.form-row {
  margin-bottom: 15px;
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  align-items: center;
}

/* Estilização para o botão */
#submit-btn {
  background-color: #C5C5C5;
  display: flex;
  width: 185px;
  padding: 12px 22px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: white;
  border-radius: 0 !important;
  border-color: #C5C5C5 !important;
}

#submit-btn span {
  font-weight: bold;
}

label {
  display: inline-block;
  margin-bottom: 0;
}

select option:hover {
  background-color: #C5C5C5 !important;
}

.campaign-banner {
  display: none;
}

/* Estilo para a mensagem de erro */
.error-message {
  color: #eb1700;
  font-family: J&J Circular;
  font-size: 12px;
  font-weight: bold;
  font-style: normal;
  line-height: normal;
  display: none;
  margin-top: 5px;
}

/* Estilo para destacar os campos com erro */
.error-input {
  border: 1px solid #eb1700 !important;
}

/* Estilização para todos os campos de entrada */
input[type="text"],
input[type="email"] {
    border: 1px solid #212121;
    border-radius: 0 !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

textarea {
  border: 1px solid #212121 !important;
  border-radius: 0 !important;
  margin-top: 10px;
  margin-bottom: 10px;
}

select {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #212121 !important;
    border-radius: 0 !important;
}

input[type="radio"] {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Estilos para telas menores que 600px */
@media screen and (max-width: 600px) {

  input,
  select {
    font-size: 16px !important;
  }

  .header-logo,
  .header {
    text-align: center;
    display: flex;
    align-items: center;
    padding-left: 20px;
  }

  .header-logo {
    max-width: 200px;
  }

  .footer,
  .footer-logo,
  .footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .col {
    flex-basis: auto !important;
  }

  body {
    font-size: 16px;
  }

  h2 {
    font-size: 24px;
  }

  #CampaignSubText {
    display: none;
  }

  #CampaignText {
    margin-bottom: 10px;
  }

  /* Reorganiza a ordem dos campos */
  label[for="first-name"],
  label[for="last-name"],
  label[for="email"],
  label[for="institution"],
  label[for="state"],
  label[for="type"],
  label[for="specialty"],
  label[for="educational-category"],
  label[for="terms"] {
    display: block;
  }

  input[type="text"],
  input[type="email"],
  select,
  .form-check {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Certifique-se de que os campos de radio e checkbox sejam exibidos corretamente */
  .form-check {
    display: flex;
  }

  /* Estilos para evitar que o texto quebre em várias linhas */
  .form-check label {
    display: inline-block;
    width: calc(100% - 30px);
    /* Ajuste o valor conforme necessário */
    word-wrap: break-word; !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .campaign-banner {
    display: block; /* Mostra a imagem quando a largura for menor que 600px */
    max-width: 100%;
  }

  #submit-btn{
    display: block !important;
    margin: 0 auto !important;
  }

  .custom-checkbox,.custom-radio {
    margin-right: 8px;
  }

  .banner-container {
    flex-direction: column; /* Empilha os elementos verticalmente */
    align-items: center; /* Centraliza os elementos verticalmente */
  }

  .banner-image {
    order: 1; /* Altera a ordem de exibição para ficar acima */
    height: 80px;
    text-align: center;
  }

  .banner-text {
    order: 2; /* Altera a ordem de exibição para ficar abaixo */
    text-align: center;
    font-size: 14px;
  }
  #CampaignBanner{
    width: 300px;
  }
}

@media screen and (min-width: 600px) {
  .banner-container {
    max-width: 1000px; /* Largura máxima do container */
    margin: 0 auto; /* Centralizar o container horizontalmente */
    display: flex;
    align-items: center; /* Alinhar verticalmente os elementos */
  }

  .banner-image {
    text-align: left;
    margin-right: 20px;
  }

  .banner-text {
    flex: 1; /* Ocupa 50% do espaço disponível na linha */
    text-align: justify;
    font-size: 18px !important;
    width: 200px;
  }
  #CampaignBanner{
    width: 500px;
  }
}
