html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f4f5f7;
  font-family: Arial, sans-serif;
  width: 100vw;
}

.centro {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 375px;
  width: 96vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #00000015;
  padding: 24px 14px 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.titulo-consulta {
  font-weight: bold;
  font-size: 2em;
  color: #111;
  margin-top: 0;
  margin-bottom: 22px;
  padding: 0 8px;
  user-select: text;
  text-align: center;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* INPUT */
input[type="text"] {
  padding: 15px 16px;
  font-size: 1.875em;
  border: 1px solid #bdbdbd;
  border-radius: 6.25px;
  width: 85%;
  min-width: 206px;
  max-width: 375px;
  margin-bottom: 30px;
  background: #fafafa;
  transition: border 0.2s;
  text-align: left;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-transform: uppercase;
}

input[type="text"]:focus {
  border: 1.5px solid #0074D9;
  outline: none;
  background: #fff;
}

/* RESULTADO */
#resultado {
  min-width: 150px;
  max-width: 100%;
  width: max-content;
  display: none;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background: #f8f8f8;
  border-radius: 7.5px;
  box-shadow: 0 2px 7.5px #00000010;
  font-size: 1.0625em;
  margin-bottom: 15px;
  margin-top: 0;
  padding: 8.75px 7.5px 7.5px 7.5px;
  overflow-x: auto;
}

/* CAMPOS DE DADOS */
.linha-dado {
  margin: 8.75px 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1.25em;
  white-space: nowrap;
  overflow-x: auto;
}

.dado-label {
  color: #222;
  font-weight: bold;
  flex-shrink: 0;
}

.dado-valor {
  color: #222;
  font-weight: normal;
  margin-left: 7.5px;
  text-transform: uppercase;
}

/* BUTTONS */
.grupo-botoes {
  display: flex;
  flex-direction: column; /* UM EM BAIXO DO OUTRO */
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.btn {
  padding: 10px 16px;
  font-size: 1.025em;
  border: none;
  border-radius: 6.25px;
  background: #1976ed;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin: 0 auto;
  font-weight: 500;
  width: 85%;
  min-width: 206px;
  max-width: 375px;
  box-sizing: border-box;
}

.btn:hover, .btn:focus {
  background: #0456b2;
}

#consultar-btn {
  display: block;
}

#nova-consulta {
  display: none;
}

.assinatura {
  margin-top: 19px;
  font-size: 0.9375em;
  color: #222;
  opacity: 1;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.01em;
  user-select: text;
}

/* ===== Alert (sua div .alert) — apenas proporção compacta ===== */
.alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  background: linear-gradient(95deg, #ff0000 0%, #d50000 100%);
  color: #fff;
  border-radius: 10px;
  border: 1.5px solid #d50000;
  box-shadow: 0 2px 10px #ff000033;

  padding: 0x 0px;   /* menor que antes */
  max-width: 375px;
  width: 85%;
  min-width: 206px;
  margin: 8px auto 0 auto; /* colado na assinatura */

  transition: box-shadow 0.18s;
  position: relative;
  font-size: 0.9em;     /* mais discreto */
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: break-word;
  filter: drop-shadow(0 1px 2px #d5000088);
  user-select: none;
}

.alert1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  background: linear-gradient(95deg, #ff0000 0%, #d50000 100%);
  color: #fff;
  border-radius: 10px;
  border: 1.5px solid #d50000;
  box-shadow: 0 2px 10px #ff000033;

  padding: 0x 0px;   /* menor que antes */
  max-width: 375px;
  width: 85%;
  min-width: 206px;
  margin: 8px auto 0 auto; /* colado na assinatura */

  transition: box-shadow 0.18s;
  position: relative;
  font-size: 0.9em;     /* mais discreto */
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: break-word;
  filter: drop-shadow(0 1px 2px #d5000088);
  user-select: none;
}

.alert2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  background: linear-gradient(95deg, #ff0000 0%, #d50000 100%);
  color: #fff;
  border-radius: 10px;
  border: 1.5px solid #d50000;
  box-shadow: 0 2px 10px #ff000033;

  padding: 0x 0px;   /* menor que antes */
  max-width: 375px;
  width: 85%;
  min-width: 206px;
  margin: 8px auto 0 auto; /* colado na assinatura */

  transition: box-shadow 0.18s;
  position: relative;
  font-size: 0.9em;     /* mais discreto */
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: break-word;
  filter: drop-shadow(0 1px 2px #d5000088);
  user-select: none;
}

/* RESPONSIVO */
@media (max-width: 540px) {
  .container {
    max-width: 97vw;
    padding: 11px 2vw 11px 2vw;
  }
  input[type="text"] {
    width: 97vw;
    min-width: 0;
    max-width: 99vw;
    font-size: 0.9375em;
    padding: 7.5px 5px;
    margin-bottom: 11px;
  }
  #resultado {
    max-width: 98vw;
    min-width: 0;
    font-size: 0.875em;
    padding: 6.25px 2.5px 6.25px 2.5px;
  }
  .linha-dado {
    font-size: 0.9375em;
    max-width: 99vw;
    white-space: nowrap;
    overflow-x: auto;
  }
  .btn {
    padding: 7.5px 5px;
    font-size: 0.9375em;
    width: 97vw;
    min-width: 0;
    max-width: 99vw;
  }
  .assinatura {
    font-size: .9em;
    margin-top: 11px;
  }
  .titulo-consulta {
    font-size: 1.125em;
  }
  .alert {
    width: 97vw; min-width: 0; max-width: 99vw;
    padding: 8x 2vw;
    margin-top: 10px;
    font-size: 0.88em;
  }
  .alert1 {
    width: 97vw; min-width: 0; max-width: 99vw;
    padding: 8x 2vw;
    margin-top: 10px;
    font-size: 0.88em;
  }
  }
  .alert2 {
    width: 97vw; min-width: 0; max-width: 99vw;
    padding: 8x 2vw;
    margin-top: 10px;
    font-size: 0.88em;
  }
}