*{
    box-sizing:border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #eef4ff 0%, #f7f9fc 100%);
    margin:0;
    padding:40px 20px;
    color:#1f2937;
}

.container{
    max-width:520px;
    margin:0 auto;
    background:white;
    padding:32px;
    border-radius:20px;
    box-shadow:0 20px 50px rgba(15, 23, 42, 0.10);
    border:1px solid #e5e7eb;
}

h1{
    text-align:center;
    font-size:32px;
    margin:0 0 10px 0;
    color:#111827;
}

.descricao{
    text-align:center;
    color:#6b7280;
    margin-bottom:28px;
    font-size:15px;
    line-height:1.5;
}

.campo{
    margin-bottom:16px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
    font-size:14px;
    color:#374151;
}

input{
    width:100%;
    padding:14px 16px;
    font-size:16px;
    border:1px solid #d1d5db;
    border-radius:12px;
    outline:none;
    transition:all 0.2s ease;
    background:#fcfdff;
}

input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37, 99, 235, 0.12);
    background:white;
}

button {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,0.25);
}

.resultado-grid{
    margin-top:30px;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}

.card-resultado{
    background:linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
    border:1px solid #dbeafe;
    border-radius:16px;
    padding:16px;
    text-align:center;
}

.titulo-resultado{
    display:block;
    font-size:13px;
    color:#6b7280;
    margin-bottom:8px;
    text-transform:uppercase;
    letter-spacing:0.4px;
}

.card-resultado strong{
    font-size:28px;
    color:#1d4ed8;
}

canvas{
    margin-top:28px;
    background:white;
    border-radius:16px;
}

@media (max-width: 600px){
    body{
        padding:20px 12px;
    }

    .container{
        padding:22px;
        border-radius:16px;
    }

    h1{
        font-size:26px;
    }

    .card-resultado strong{
        font-size:24px;
    }
}

.selo{
    text-align:center;
    margin:-8px 0 24px 0;
    font-size:13px;
    color:#2563eb;
    font-weight:bold;
}

.resumo-topo{
    background:linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border:1px solid #bfdbfe;
    padding:22px;
    border-radius:16px;
    margin-bottom:24px;
    margin-top: 25px;
    text-align:center;
}

.resumo-topo-titulo{
    font-size:13px;
    font-weight:bold;
    text-transform:uppercase;
    letter-spacing:0.6px;
    color:#1d4ed8;
    margin-bottom:8px;
}

.resumo-topo-valor{
    font-size:36px;
    font-weight:800;
    color:#1d4ed8;
    margin-bottom:10px;
}

.resumo-topo-texto{
    font-size:14px;
    color:#1e3a8a;
    line-height:1.6;
}

@media (max-width: 600px){

    body{
        padding:20px 12px;
    }

    .container{
        padding:20px;
        border-radius:16px;
    }

    h1{
        font-size:24px;
    }

    input{
        font-size:16px;
        padding:16px;
    }

    button{
        padding:16px;
        font-size:17px;
    }

    .resumo-topo-valor{
        font-size:28px;
    }

    .card-resultado strong{
        font-size:22px;
    }

}

canvas{
    width:100% !important;
    height:auto !important;
}

.seo{
  max-width:900px;
  margin:60px auto;
  line-height:1.6;
  font-size:16px;
  color:#333;
}

.seo h2{
  margin-top:40px;
  font-size:24px;
}

input, select {
  width: 100%;
  padding: 16px 20px;
  margin: 8px 0 18px 0;
  font-size: 18px;
  border: 1px solid #cfd6e4;
  border-radius: 18px;
  box-sizing: border-box;
  background: #fff;
  color: #1f2937;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.card-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

.card-link span {
  display: block;
  margin-top: 8px;
}

.card-link strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.card-link:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 26px rgba(37,99,235,.12);
}

.card-resultado{
  padding:28px;
}

.hero h1{
  margin-top:8px;
  margin-bottom:12px;
}

.tabela-imc{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.tabela-imc th,
.tabela-imc td{
border:1px solid #ddd;
padding:10px;
text-align:left;
}

.tabela-imc th{
background:#f4f4f4;
}

.tabela-imc tr.ativo{
background:#e8f7e8;
font-weight:bold;
}

.controle-quantidade{
display:flex;
align-items:center;
gap:10px;
margin-top:6px;
}

.controle-quantidade button{
width:34px;
height:34px;
font-size:18px;
cursor:pointer;
padding:0;
}

#contadorValores{
min-width:24px;
text-align:center;
font-weight:bold;
}