* {
  box-sizing: border-box;
}

:root {
  --navy: #082f49;
  --navy-dark: #061f31;
  --green: #63c900;
  --green-dark: #438900;
  --text: #173042;
  --muted: #71808b;
  --border: #e4e9ed;
  --background: #f5f7f9;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, #eaf1f5 0, #f5f7f9 42%, #eef2f5 100%);
  color: var(--text);
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 18px 45px;
}

/* CABEÇALHO */

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  box-shadow: 0 14px 35px rgba(6, 31, 49, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  background: #fff;
  border-radius: 17px;
  padding: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.brand h1 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 7px;
  letter-spacing: -0.3px;
}

.brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

/* ÁREA DE CONSULTA */

.search-card {
  margin-top: 20px;
  background: var(--white);
  border-radius: 22px;
  padding: 23px;
  box-shadow: 0 10px 28px rgba(16, 40, 55, 0.08);
  border: 1px solid var(--border);
}

.search-card label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 11px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  min-width: 0;
  border: 2px solid #dce4e9;
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  background: #fbfcfd;
  text-transform: uppercase;
  outline: none;
  transition: 0.2s ease;
}

.search-row input::placeholder {
  color: #a0abb2;
  font-weight: 400;
}

.search-row input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 201, 0, 0.10);
}

.search-row button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #102400;
  font-weight: 900;
  padding: 0 22px;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(70, 140, 0, 0.20);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(70, 140, 0, 0.27);
}

.search-row button:active {
  transform: translateY(0);
}

/* MENSAGEM */

.status {
  min-height: 20px;
  margin-top: 11px;
  color: #9a3b3b;
  font-size: 13px;
  font-weight: 600;
}

/* RESULTADO */

.result {
  margin-top: 20px;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 40, 55, 0.10);
  border: 1px solid var(--border);
}

.result-head {
  background: linear-gradient(135deg, #edf8df, #f7fbf1);
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #dce9cc;
}

.result-head span {
  display: block;
  color: #537000;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-head strong {
  display: block;
  margin-top: 7px;
  color: var(--navy);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
}

/* DETALHES */

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.details div {
  background: #fff;
  padding: 16px;
}

.details small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.details span {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}

.hidden {
  display: none;
}

/* RODAPÉ */

footer {
  text-align: center;
  color: #849099;
  font-size: 11px;
  margin-top: 24px;
  padding: 0 10px;
}

/* CELULAR */

@media (max-width: 520px) {
  .app {
    padding: 18px 13px 35px;
  }

  .brand {
    padding: 17px;
    border-radius: 20px;
    gap: 13px;
  }

  .brand img {
    width: 70px;
    height: 70px;
    border-radius: 13px;
  }

  .brand h1 {
    font-size: 19px;
  }

  .brand p {
    font-size: 12px;
  }

  .search-card {
    padding: 18px;
    border-radius: 19px;
  }

  .search-row {
    flex-direction: column;
  }

  .search-row button {
    height: 50px;
  }

  .result {
    border-radius: 19px;
  }

  .result-head {
    padding: 22px 16px;
  }

  .result-head strong {
    font-size: 31px;
  }

  .details div {
    padding: 13px;
  }
}