.spell-form-builder {
  background-color: #f0d8af;
  padding: 40px;
  display: flex;
  justify-content: center;
  font-family: sans-serif;
  margin: 0 auto;
}

/* container interno do formulário (simula colunas) */
.spell-form-builder {
  display: flex;
  gap: 40px;
  max-width: 800px;
  flex-wrap: wrap;
}

/* imagem simulada (use um campo 'file' como o primeiro) */
.spell-form-builder .spell-field-file {
  width: 120px;
  height: 150px;
  background-color: #fff;
  border: 1px solid #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* campo de upload real dentro da caixa */
.spell-form-builder .spell-field-file input {
  display: none; /* opcional: esconder input de file se for só decorativo */
}

/* os outros campos: grade com label e input lado a lado */
.spell-form-field:not(.spell-field-file) {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 15px;
  row-gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.spell-form-field label {
  font-weight: 500;
}

.spell-form-field input,
.spell-form-field textarea,
.spell-form-field select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.spell-form-field button {
  grid-column: span 2;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.spell-form-field button:hover {
  background-color: #555;
}

/* checkbox e radio: quebra de linha */
.spell-field-checkbox label,
.spell-field-radio label {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spell-form-field.spell-field-radio{
    display: contents;
}

.spell-file-upload {
  width: 120px;
  height: 160px;
  background-color: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 14px;
  color: #333;
}

.spell-file-upload img.spell-file-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.spell-file-label {
  pointer-events: none;
}