.form-page {
  max-width: 760px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 1.5rem;
}

.back-link {
  color: #40916c;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.back-link:hover { text-decoration: underline; }

.form-header h1 {
  font-size: 1.8rem;
  color: #1b4332;
  margin: 0;
}

.error-banner {
  background: #ffe0e0;
  color: #c0392b;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.recipe-form {
  background: #fff;
  border: 1.5px solid #d8f3dc;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2d6a4f;
}

.form-control {
  padding: 0.6rem 0.9rem;
  border: 1.5px solid #b7e4c7;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

.form-control:focus { border-color: #52b788; }

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
}

.ingredient-input-row {
  display: flex;
  gap: 0.6rem;
}

.ingredient-input-row .form-control {
  flex: 1;
}

.btn-add {
  padding: 0.6rem 1.1rem;
  background: #52b788;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-add:hover { background: #40916c; }

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #d8f3dc;
  color: #1b4332;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.remove-btn {
  background: none;
  border: none;
  color: #2d6a4f;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
}

.remove-btn:hover { color: #e63946; }

.hint {
  font-size: 0.82rem;
  color: #aaa;
  margin: 0.3rem 0 0;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-cancel {
  background: #f1f3f5;
  color: #495057;
}

.btn-submit {
  background: #2d6a4f;
  color: #fff;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
