.container {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Buscador */
.buscador h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #a100ff;
}

.linha {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.linha input, .linha select {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

details {
    margin-bottom: 1rem;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    color: #a100ff;
    margin-bottom: 0.5rem;
}

button {
    width: 100%;
    padding: 1rem;
    background: #33BFFF;
    color: black;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #363334;
}

.dropdown {
position: relative;
top: 10px;
display: inline-block;
}

.dropdown-toggle {
    padding: 8px 12px;
    width: 220px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    z-index: 1000;
}

.dropdown-content .grupo {
    margin-bottom: 10px;
    font-size: 14px;
}

.dropdown-content .botoes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content button {
    width: 30px;
    height: 30px;
    color: black;
    border: 1px solid #ccc;
    background: #eee;
    cursor: pointer;
}

.dropdown-content input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    background: #fff;
}

.input-wrapper {
  position: relative;
  flex: 1; /* mantém o alinhamento lado a lado */
}

.suggestions {
  position: absolute;
  top: 100%; /* logo abaixo do input */
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000; /* aparece acima dos outros elementos */
}

.suggestion-item {
  padding: 0.5rem;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #f0f0f0;
}

.input-group {
  position: relative;
  flex: 1;
}

.input-group input {
  width: 100%;
  padding: 1rem 0.75rem 0.5rem 0.75rem; /* espaço extra em cima */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

.input-group label {
  position: absolute;
  top: 0.9rem;
  left: 0.75rem;
  color: #777;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
  background: #fff;
  padding: 0 0.2rem;
}

.input-group select {
  width: 100%;
  padding: 1rem 0.75rem 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  appearance: none; /* remove seta nativa */
  outline: none;
}

/* seta personalizada opcional */
.input-group select::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Quando o input tem foco ou já tem valor digitado */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -0.6rem;
  left: 0.5rem;
  font-size: 0.8rem;
  color: #33BFFF; 
}

/* Responsividade */
@media (max-width: 900px) {
    .container {
    grid-template-columns: 1fr;
    }
    .linha {
    flex-direction: column;  /* Força os inputs a ficarem empilhados */
    }
}