/* Forms: stacked fields on a paper card. */

.stacked-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 640px;
}

.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.field-row { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: end; }
.field-row .field { flex: 1 1 180px; }

label {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-toggle { text-transform: none; letter-spacing: 0; }

input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="date"], select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.isbn-row { display: flex; gap: 0.6rem; }
.isbn-row input { flex: 1; }
.isbn-status { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.isbn-preview { max-width: 90px; }

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}

.button, input[type="submit"] {
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.button:hover, input[type="submit"]:hover { background: var(--paper); }

.button-primary, input[type="submit"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.button-primary:hover, input[type="submit"]:hover { filter: brightness(1.12); background: var(--accent); }

.button-danger { border-color: #a33; color: #a33; background: transparent; }
.button-small { font-size: 0.8rem; padding: 0.25rem 0.7rem; }

.form-errors {
  border: 1px solid #a33;
  border-radius: 4px;
  background: rgba(170, 51, 51, 0.08);
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.form-errors p { margin: 0 0 0.4rem; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
